/* Token desain diselaraskan dengan app.tokenexia.ai.id */
:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --muted: #f5f5f5;
  --muted-foreground: #606060;
  --border: #e8e8e8;
  --primary: #3ea4ec;
  --primary-strong: #128bff;
  --primary-foreground: #ffffff;
  --grad-from: #54a2ff;
  --grad-to: #ac4bff;
  --success: #009767;
  --tint: #f7fafd;
  --code-bg: #ffffff;
  --code-head: #fafafa;
  --t-cmd: #0f8a5f;
  --t-str: #c2410c;
  --t-com: #8a8f98;
  --shadow: 0 1px 2px rgba(10, 10, 10, .04), 0 12px 40px -12px rgba(30, 80, 160, .18);
  --radius: 1rem;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
/* Tema gelap: ikut perangkat kecuali pengunjung memilih tema sendiri (data-theme). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #1e1e1e;
    --foreground: #f3f3f3;
    --card: #2a2a2a;
    --muted: #2f2f2f;
    --muted-foreground: #b7b7b7;
    --border: #3a3a3a;
    --primary: #2f95e0;
    --primary-strong: #5fb2ff;
    --tint: #232527;
    --code-bg: #242424;
    --code-head: #2a2a2a;
    --t-cmd: #4fd1a1;
    --t-str: #f4a261;
    --t-com: #8f959e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --background: #1e1e1e;
  --foreground: #f3f3f3;
  --card: #2a2a2a;
  --muted: #2f2f2f;
  --muted-foreground: #b7b7b7;
  --border: #3a3a3a;
  --primary: #2f95e0;
  --primary-strong: #5fb2ff;
  --tint: #232527;
  --code-bg: #242424;
  --code-head: #2a2a2a;
  --t-cmd: #4fd1a1;
  --t-str: #f4a261;
  --t-com: #8f959e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--font-mono); font-size: .88em; background: var(--muted); padding: 1px 6px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; margin-top: 32px; }

/* Latar lembut seperti halaman utama aplikasi */
.glow-wrap { position: absolute; top: 0; left: 0; right: 0; height: 1100px; overflow: hidden; z-index: -1; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.glow-a { width: 620px; height: 520px; top: -160px; left: -120px; background: rgba(84, 162, 255, .22); }
.glow-b { width: 560px; height: 480px; top: -140px; right: -160px; background: rgba(0, 210, 148, .12); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .glow-a { background: rgba(84, 162, 255, .12); }
  :root:not([data-theme="light"]) .glow-b { background: rgba(172, 75, 255, .10); }
}
:root[data-theme="dark"] .glow-a { background: rgba(84, 162, 255, .12); }
:root[data-theme="dark"] .glow-b { background: rgba(172, 75, 255, .10); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(160%) blur(12px); background: color-mix(in srgb, var(--background) 72%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.brand img { height: auto; }
.logo-dark { display: none !important; }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-dark { display: block !important; }
}
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--muted-foreground); font-size: .95rem; font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--foreground); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.theme-toggle { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--border); background: var(--card); color: var(--foreground); border-radius: 10px; cursor: pointer; padding: 0; transition: border-color .15s; }
.theme-toggle:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--border); background: var(--card); border-radius: 10px; cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { display: block; width: 16px; height: 2px; background: var(--foreground); border-radius: 2px; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .95rem; padding: 9px 18px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 13px 22px; font-size: 1rem; }
.btn-pill { border-radius: 999px; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 6px 18px -8px rgba(62, 164, 236, .8); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-outline { background: var(--card); border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.btn-ghost { color: var(--foreground); }
.btn-ghost:hover { background: var(--muted); }
.btn-light { background: #fff; color: #0a0a0a; }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.pill-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--primary-strong); background: color-mix(in srgb, var(--primary) 10%, var(--background)); border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); display: inline-block; }
.dot.ok { background: #00bb7f; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; margin: 22px 0 20px; }
.gradient-text { background: linear-gradient(90deg, var(--grad-from), var(--grad-to)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted-foreground); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 18px; }
.hero-note { font-size: .88rem; color: var(--muted-foreground); }

/* Kartu kode */
.code-card { background: var(--code-bg); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.code-tabs { display: flex; align-items: center; gap: 4px; padding: 8px 12px 0; border-bottom: 1px solid var(--border); background: var(--code-head); }
.code-tabs button { font: inherit; font-size: .88rem; font-weight: 500; color: var(--muted-foreground); background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px 10px; cursor: pointer; }
.code-tabs button[aria-selected="true"] { color: var(--success); border-bottom-color: var(--success); }
.code-tabs .status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .75rem; color: var(--muted-foreground); }
.code-endpoint { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.code-endpoint code { background: none; padding: 0; color: var(--foreground); }
.method { font-family: var(--font-mono); font-size: .7rem; font-weight: 700; color: var(--success); background: color-mix(in srgb, var(--success) 14%, transparent); padding: 2px 8px; border-radius: 6px; }
.code-body { margin: 0; padding: 18px 20px; font-family: var(--font-mono); font-size: .84rem; line-height: 1.7; overflow-x: auto; min-height: 250px; }
.code-body code { background: none; padding: 0; font-size: inherit; }
.t-cmd { color: var(--t-cmd); }
.t-str { color: var(--t-str); }
.t-com { color: var(--t-com); }
.code-foot { display: flex; gap: 10px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-foreground); background: var(--code-head); }

/* Fakta */
.facts { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--muted) 45%, var(--background)); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 36px; padding-bottom: 36px; text-align: center; }
.facts-grid strong { display: block; font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; }
.facts-grid span { font-size: .9rem; color: var(--muted-foreground); }

/* Section */
.section { padding-top: 96px; padding-bottom: 96px; scroll-margin-top: 64px; }
.section-tint { background: var(--tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2, .split h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; margin: 12px 0 14px; }
.section-head p { color: var(--muted-foreground); font-size: 1.05rem; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-strong); }
.muted { color: var(--muted-foreground); }
.muted-lg { color: var(--muted-foreground); font-size: 1.05rem; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.feature:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature h3 { font-size: 1.1rem; margin: 18px 0 8px; }
.feature p { color: var(--muted-foreground); font-size: .95rem; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--grad-from) 18%, transparent), color-mix(in srgb, var(--grad-to) 18%, transparent)); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--primary-strong); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Untuk perusahaan */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--muted-foreground); }
.checklist li strong { color: var(--foreground); font-weight: 600; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--success) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='%23009767' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.soon { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--muted-foreground); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--grad-to) 14%, transparent); color: var(--grad-to); white-space: nowrap; }

.org-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.org-node { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--background); }
.org-node strong { display: block; font-size: .98rem; }
.org-node small { color: var(--muted-foreground); font-size: .84rem; }
.org-root { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.org-branch { margin: 14px 0 0 26px; padding-left: 22px; border-left: 2px dashed var(--border); display: grid; gap: 12px; }
.org-branch .org-node { position: relative; }
.org-branch .org-node::before { content: ""; position: absolute; left: -24px; top: 50%; width: 22px; border-top: 2px dashed var(--border); }
.org-avatar { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: #fff; background: linear-gradient(135deg, var(--grad-from), var(--grad-to)); }
.org-avatar.blue { background: #3ea4ec; }
.org-avatar.violet { background: #8d54ff; }
.org-avatar.green { background: #00a3aa; }
.org-caption { margin-top: 16px; font-size: .8rem; color: var(--muted-foreground); text-align: center; }

/* Model */
.models-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.model-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.model-card header { display: flex; align-items: center; gap: 10px; }
.model-card header .tag { margin-left: auto; }
.model-card h3 { font-size: 1.1rem; }
.model-card ul { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.model-card li { font-size: .95rem; }
.model-card p { color: var(--muted-foreground); font-size: .92rem; margin-top: auto; }
.model-soon li { color: var(--muted-foreground); }
.vendor-dot { width: 12px; height: 12px; border-radius: 4px; }
.vendor-dot.openai { background: #10a37f; }
.vendor-dot.anthropic { background: #d97757; }
.vendor-dot.other { background: linear-gradient(135deg, var(--grad-from), var(--grad-to)); }

/* Langkah */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.steps li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--grad-from), var(--grad-to)); }
.steps h3 { font-size: 1.1rem; margin: 18px 0 8px; }
.steps p { color: var(--muted-foreground); font-size: .95rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted-foreground); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted-foreground); padding-bottom: 20px; }

/* CTA */
.cta { margin: 96px 0; padding: 48px; border-radius: 24px; background: linear-gradient(120deg, #3ea4ec, #7b6cff 60%, #ac4bff); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 32px; box-shadow: 0 24px 60px -24px rgba(110, 90, 255, .6); }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.cta p { margin-top: 10px; opacity: .9; max-width: 34rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid p { margin-top: 12px; font-size: .92rem; }
.footer-grid nav { display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.footer-grid nav a { color: var(--muted-foreground); }
.footer-grid nav a:hover { color: var(--foreground); }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--foreground); margin-bottom: 4px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted-foreground); }

/* Responsif */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .cards-grid, .models-grid, .steps { grid-template-columns: 1fr 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 36px; }
  .cta-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .header-actions .btn-pill { display: none; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: var(--background); border-bottom: 1px solid var(--border); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: 0; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .cards-grid, .models-grid, .steps, .facts-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero-actions .btn { width: 100%; }
  .code-body { font-size: .76rem; min-height: 0; }
  .cta { margin: 64px 0; padding: 28px 22px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .org-card { padding: 18px; }
  .org-branch { margin-left: 12px; padding-left: 16px; }
  .org-branch .org-node::before { left: -18px; width: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
