/* Tomga — clean international company site (reference: Stripe / Linear / Vercel company pages). */
:root {
  --ink: #0b0d12; --ink-2: #2a2f3a; --muted: #5d6472; --line: #e7e9ee; --bg: #ffffff; --soft: #f6f7f9;
  --brand: #0e7a63; --brand-ink: #ffffff; --brand-soft: #e7f4f0; --hero: #0b0d12; --hero-ink: #f4f6f9; --hero-muted: #a7aebb;
  --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #eef0f4; --ink-2: #d3d7df; --muted: #9aa2b1; --line: #262a33; --bg: #0d0f14; --soft: #14171d;
    --brand: #4fd1ae; --brand-ink: #062019; --brand-soft: #12302a; --hero: #07080c; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 "Inter", "IBM Plex Sans Thai", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--hero) 88%, transparent); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--hero-ink); text-decoration: none; font-weight: 700; letter-spacing: .14em; font-size: 15px; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; }
.top nav { display: flex; gap: 24px; font-size: 14px; }
.top nav a { color: var(--hero-muted); text-decoration: none; }
.top nav a:hover { color: var(--hero-ink); }
@media (max-width: 640px) { .top nav { display: none; } }

/* Hero */
.hero { background: var(--hero); color: var(--hero-ink); padding: 96px 0 88px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(closest-side, rgba(79,209,174,.18), transparent); pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--hero-muted); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px 14px; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: #4fd1ae; display: inline-block; }
.hero h1 { font-size: clamp(36px, 6.4vw, 68px); line-height: 1.08; letter-spacing: -.02em; margin: 24px 0 20px; max-width: 900px; font-weight: 700; }
.hero h1 .th { display: block; font-family: "IBM Plex Sans Thai", "Inter", sans-serif; font-size: .52em; letter-spacing: 0; font-weight: 600; color: var(--hero-muted); margin-top: 14px; line-height: 1.4; }
.hero p { font-size: clamp(17px, 2vw, 20px); color: var(--hero-muted); max-width: 640px; margin: 0; }
.cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.ghost { border: 1px solid rgba(255,255,255,.2); color: var(--hero-ink); }

/* Sections */
section.block { padding: 88px 0; }
section.block.alt { background: var(--soft); }
.label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 12px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 0 40px; }
.th-sub { font-family: "IBM Plex Sans Thai", sans-serif; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); transform: translateY(-2px); }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 20px; }
.card h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -.005em; }
.card .th-sub { margin: 0 0 12px; color: var(--muted); font-size: 14px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr; gap: 24px; } }
.principles h3 { font-size: 17px; margin: 0 0 6px; }
.principles p { margin: 0; color: var(--muted); font-size: 15px; }
.principles .n { font-size: 13px; color: var(--brand); font-weight: 700; letter-spacing: .1em; display: block; margin-bottom: 10px; }

.company { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .company { grid-template-columns: 1fr; gap: 24px; } }
.facts { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.facts div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: none; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-weight: 500; }
.facts .sub { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Legal pages */
.doc-head { background: var(--hero); color: var(--hero-ink); padding: 64px 0 48px; }
.doc-head h1 { margin: 0 0 8px; font-size: clamp(30px, 4.6vw, 44px); letter-spacing: -.01em; }
.doc-head p { margin: 0; color: var(--hero-muted); }
.doc { max-width: 760px; padding: 48px 20px 24px; margin: 0 auto; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 20px; }

/* Language switch + business list */
.top-right { display: flex; align-items: center; gap: 24px; }
.lang { display: inline-flex; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 3px; font-size: 13px; font-weight: 600; }
.lang a { color: var(--hero-muted); text-decoration: none; padding: 4px 10px; border-radius: 999px; min-height: 28px; display: inline-flex; align-items: center; }
.lang a[aria-current="true"] { background: var(--hero-ink); color: var(--hero); }
.biz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .biz { grid-template-columns: 1fr; } }
.biz .card { display: flex; flex-direction: column; }
.biz .tagline { font-size: 13px; font-weight: 600; color: var(--brand); margin: 0 0 8px; letter-spacing: .02em; }
.biz .more { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 14px; color: var(--brand); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
html[lang="th"] body { font-family: "IBM Plex Sans Thai", "Inter", system-ui, sans-serif; }
html[lang="th"] .hero h1 { font-size: clamp(32px, 5.6vw, 58px); line-height: 1.22; letter-spacing: 0; }
