/* ============================================================
   DATAGO.ID — Landing Page Design System
   Gaya: developer modern, kontras tinggi, geometris (OpenRouter/Vercel/Linear)
   Font: Plus Jakarta Sans (UI/heading) + JetBrains Mono (kode/data)

   Tema default: DARK. Light via [data-theme="light"] atau prefers-color-scheme.
   WCAG AA: kontras heading/body/muted vs background sudah dihitung.
   ============================================================ */

:root {
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 10px;
  --radius-sm: 8px;
  --maxw: 1180px;

  --transition: 160ms cubic-bezier(.4, 0, .2, 1);
}

/* ---- Tema Gelap (default) ---- */
:root,
[data-theme="dark"] {
  --bg: #0B0F0C;
  --surface: #0E1310;
  --surface-2: #141D18;
  --border: #1C2821;
  --border-strong: #24332A;
  --heading: #F2F6F3;
  --body: #C8D6CD;
  --muted: #95A89C;
  --accent: #5BE389;
  --accent-hover: #8DF0AF;
  --on-accent: #0B0F0C;
  --badge-bg: #0E291A;
  --error: #FF8B7A;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
  --code-bg: #0A0E0B;
}

/* ---- Tema Terang (opsional) ---- */
[data-theme="light"] {
  --bg: #FFFFFF;
  --surface: #F6FAF7;
  --surface-2: #EDF5F0;
  --border: #DCE7E0;
  --border-strong: #B5CBBF;
  --heading: #0B0F0C;
  --body: #243028;
  --muted: #44544A;
  --accent: #0E7A43;
  --accent-hover: #08572E;
  --on-accent: #FFFFFF;
  --badge-bg: #E3F7EB;
  --error: #C0392B;
  --shadow: 0 24px 60px -28px rgba(11, 15, 12, .18);
  --code-bg: #F1F6F2;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) { --bg: #FFFFFF; --surface: #F6FAF7; --surface-2: #EDF5F0; --border: #DCE7E0; --border-strong: #B5CBBF; --heading: #0B0F0C; --body: #243028; --muted: #44544A; --accent: #0E7A43; --accent-hover: #08572E; --on-accent: #FFFFFF; --badge-bg: #E3F7EB; --error: #C0392B; --shadow: 0 24px 60px -28px rgba(11,15,12,.18); --code-bg: #F1F6F2; }
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--transition), color var(--transition);
  overflow-x: clip;
}

h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

code, .mono { font-family: var(--font-mono); font-size: .92em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 26px; width: auto; display: block; }

.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 600;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--heading); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-btn {
  background: var(--surface); color: var(--body);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  width: 36px; height: 36px; display: inline-flex; align-items: center;
  justify-content: center; cursor: pointer; font-size: 15px;
  transition: border-color var(--transition), color var(--transition);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--radius-sm); padding: 9px 18px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--body); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--heading); }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }

.btn-outline { background: transparent; color: var(--heading); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 108px 0 72px; position: relative; overflow: hidden; }

.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(680px 340px at 50% -8%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    radial-gradient(420px 260px at 82% 12%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 70%);
}

.hero-inner { position: relative; text-align: center; max-width: 860px; margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--badge-bg); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 999px; padding: 7px 16px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.badge-sep { opacity: .5; margin: 0 2px; }

.hero h1 { font-size: clamp(38px, 6.4vw, 68px); margin: 26px 0 20px; }
.hero h1 .accent { color: var(--accent); }

.hero-lede { font-size: clamp(16px, 2.1vw, 19px); color: var(--muted); max-width: 660px; margin: 0 auto 34px; }

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-specs {
  margin-top: 46px; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.hero-specs > div {
  padding: 18px 16px; text-align: center;
  border-right: 1px solid var(--border);
}
.hero-specs > div:last-child { border-right: none; }
.hero-specs .spec-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.hero-specs .spec-value { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 600; }

/* ---- Deretan logo model & tools (monokrom) ---- */
.hero-logos { margin-top: 52px; }
.hero-logos .logos-label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 20px;
}
.logos-strip {
  display: flex; align-items: center; justify-content: center; gap: 14px 34px; flex-wrap: wrap;
}
.logo-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 800;
  letter-spacing: -.01em; color: var(--muted);
  opacity: .78; filter: grayscale(1);
  transition: opacity var(--transition), color var(--transition);
}
.logo-chip:hover { opacity: 1; color: var(--heading); }
.logo-chip .lc { width: 18px; height: 18px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; color: var(--accent); }

/* ============================================================
   TERMINAL / KODE
   ============================================================ */
.terminal-card {
  max-width: 820px; margin: 26px auto 0; text-align: left;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.terminal-head {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.term-dots { display: flex; gap: 6px; }
.term-dots span { width: 11px; height: 11px; border-radius: 50%; }
.term-dots span:nth-child(1) { background: #FF5F56; }
.term-dots span:nth-child(2) { background: #FFBD2E; }
.term-dots span:nth-child(3) { background: #27C93F; }

.term-tabs { display: flex; gap: 4px; margin-left: 8px; flex-wrap: wrap; }
.term-tab {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  padding: 6px 12px; border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.term-tab.active { color: var(--accent); background: var(--badge-bg); }
.term-tab:hover:not(.active) { color: var(--heading); }

.term-body { padding: 20px; background: var(--code-bg); position: relative; }
.term-body pre {
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7;
  color: var(--body); overflow-x: auto; white-space: pre;
}
.term-body .tok-a { color: var(--accent); }
.term-body .tok-b { color: #7FB8FF; }
.term-body .tok-c { color: #E5A45B; }
.term-body .tok-k { color: var(--muted); }

.term-toolbar {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  border-top: 1px solid var(--border); padding-top: 14px; flex-wrap: wrap;
}
.term-toolbar .sel {
  background: var(--surface-2); color: var(--heading);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 12.5px; padding: 8px 10px;
}
.term-metric {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.term-metric b { color: var(--accent); font-weight: 600; }

/* ============================================================
   BAGIAN PEMBUKTIAN INTERAKTIF — SPLIT 2 KOLOM
   ============================================================ */
.proof-section { padding: 96px 0 20px; }
.proof-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px;
  align-items: stretch; max-width: 1180px; margin: 0 auto;
}
.proof-grid > * { min-width: 0; }

/* ---- IDE code block ---- */
.ide-card {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.ide-head {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.ide-head .term-tabs { margin-left: 4px; }
.ide-filename {
  margin-left: auto; font-family: var(--font-mono); font-size: 11.5px;
  color: var(--muted);
}
.ide-body { flex: 1; padding: 18px 16px 14px; background: var(--code-bg); min-height: 240px; }
.ide-body pre {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.75;
  color: var(--body); overflow-x: auto; white-space: pre;
}
.ide-body pre .hl {
  background: var(--badge-bg); color: var(--accent);
  border-radius: 4px; padding: 1px 5px; margin: 0 -5px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}
.ide-body pre .cm { color: var(--muted); }
.ide-body pre .fn { color: #7FB8FF; }
.ide-body pre .st { color: #E5A45B; }
.ide-note {
  padding: 10px 16px; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.ide-note .arr { color: var(--accent); }

/* ---- Mini Playground card ---- */
.play-card {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.play-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.play-head .play-title {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.play-head .play-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
}
.play-head .play-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 2.4s infinite;
}
.play-prompt {
  padding: 16px 18px; border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.play-prompt .p-label {
  display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.play-prompt .p-text {
  font-size: 15px; font-weight: 700; color: var(--heading); letter-spacing: -.01em;
  display: flex; align-items: flex-start; gap: 8px;
}
.play-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 18px; }
.play-m { }
.play-m .m-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.play-m .m-name {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--badge-bg); padding: 3px 9px; border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
}
.play-m .m-bubble {
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 13.5px; line-height: 1.6; color: var(--body);
  min-height: 96px;
}
.play-m .m-meta {
  margin-top: 10px; display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.play-m .m-meta b { color: var(--accent); font-weight: 600; }
.play-foot {
  margin-top: auto; padding: 10px 16px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.play-foot .pf-badge {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.play-foot .pf-badge::before { content: "✓"; }
.play-foot .pf-note { margin-left: auto; font-size: 11.5px; color: var(--muted); }

/* ============================================================
   SECTION UMUM
   ============================================================ */
section.section { padding: 92px 0; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.kicker {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; color: var(--accent); text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 4.2vw, 42px); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16.5px; }

/* ============================================================
   ARSITEKTUR
   ============================================================ */
.arch-grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 18px; align-items: stretch; }
.arch-node {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: border-color var(--transition), transform var(--transition);
}
.arch-node:hover { border-color: var(--accent); transform: translateY(-2px); }
.arch-node .node-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 10.5px;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.arch-node h3 { font-size: 17px; margin-bottom: 8px; }
.arch-node p { font-size: 14px; color: var(--muted); }
.arch-node.center { border-color: var(--border-strong); background: var(--surface-2); }
.arch-node.center h3 { color: var(--accent); }
.arch-feats { list-style: none; margin-top: 16px; display: grid; gap: 7px; }
.arch-feats li { font-size: 13px; font-family: var(--font-mono); color: var(--body); }
.arch-feats li::before { content: "▸ "; color: var(--accent); }

.arch-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.arch-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color var(--transition);
}
.arch-card:hover { border-color: var(--accent); }
.arch-card h4 { font-size: 15px; margin-bottom: 8px; }
.arch-card p { font-size: 13.5px; color: var(--muted); }

/* ============================================================
   AGENT CARDS
   ============================================================ */
.agents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.agent-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; display: flex;
  flex-direction: column; gap: 10px;
  transition: border-color var(--transition), transform var(--transition);
}
.agent-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.agent-card .agent-ic {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--badge-bg); display: flex; align-items: center;
  justify-content: center; font-size: 19px;
}
.agent-card h4 { font-size: 15.5px; }
.agent-card p { font-size: 13.5px; color: var(--muted); flex: 1; }
.agent-card .btn { align-self: flex-start; margin-top: 6px; padding: 7px 14px; font-size: 13px; }

/* ============================================================
   TABEL MODEL
   ============================================================ */
.model-toolbar { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.model-search {
  flex: 1; min-width: 240px;
  background: var(--surface); color: var(--body);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; font-family: var(--font-sans); font-size: 14px;
  transition: border-color var(--transition);
}
.model-search:focus { outline: none; border-color: var(--accent); }
.model-filter {
  background: var(--surface); color: var(--heading);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 14px; cursor: pointer;
}

.model-table-wrap {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
}
.model-table { width: 100%; border-collapse: collapse; }
.model-table thead th {
  text-align: left; font-family: var(--font-mono); font-size: 11px;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 13px 16px;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
  white-space: nowrap;
}
.model-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.model-table tbody tr:last-child td { border-bottom: none; }
.model-table tbody tr { transition: background var(--transition); }
.model-table tbody tr:hover { background: var(--surface-2); }
.model-id { font-family: var(--font-mono); font-size: 13px; color: var(--heading); word-break: break-all; }
.model-prov {
  display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700;
  color: var(--accent); background: var(--badge-bg);
  padding: 2px 8px; border-radius: 5px; letter-spacing: .03em; vertical-align: middle;
}
.model-price { font-family: var(--font-mono); font-size: 13px; color: var(--body); white-space: nowrap; }
.model-price .save { color: var(--accent); }
.model-status { color: var(--accent); font-size: 12.5px; font-weight: 700; white-space: nowrap; }

.model-empty { padding: 40px; text-align: center; color: var(--muted); font-size: 14px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] { border-color: var(--accent); background: var(--surface-2); }
.faq-item summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: 17px 20px; color: var(--heading); font-family: var(--font-sans);
  font-size: 15px; font-weight: 700; line-height: 1.45;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-q-wrap { display: flex; align-items: baseline; gap: 12px; }
.faq-num {
  font-family: var(--font-mono); font-size: 11px; font-weight: 800;
  color: var(--accent); background: var(--badge-bg);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: 6px; padding: 2px 8px; flex-shrink: 0;
}
.faq-chev {
  flex-shrink: 0; color: var(--muted);
  transition: transform 220ms cubic-bezier(.4, 0, .2, 1), color var(--transition);
}
.faq-item[open] .faq-chev { transform: rotate(180deg); color: var(--accent); }
.faq-a-wrap {
  overflow: hidden;
  animation: faqReveal 260ms cubic-bezier(.4, 0, .2, 1);
}
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.faq-a-wrap p {
  margin: 0; padding: 0 20px 18px 52px;
  color: var(--muted); font-size: 14.5px; line-height: 1.7;
}
@media (max-width: 560px) {
  .faq-a-wrap p { padding-left: 20px; }
  .faq-num { display: none; }
}

/* ============================================================
   CTA AKHIR + FOOTER
   ============================================================ */
.cta-band {
  max-width: var(--maxw); margin: 0 auto 92px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 6px); padding: 60px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 240px at 50% -20%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

footer { border-top: 1px solid var(--border); padding: 46px 0 30px; background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.foot-brand img { height: 22px; margin-bottom: 12px; }
.foot-brand p { color: var(--muted); font-size: 13.5px; max-width: 300px; }
.foot-col h5 {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.foot-col a { display: block; color: var(--body); font-size: 13.5px; padding: 4px 0; }
.foot-col a:hover { color: var(--accent); }
.foot-status {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}
.foot-status .ok { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.foot-status .ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ============================================================
   RESPONSIF
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-specs { grid-template-columns: repeat(2, 1fr); }
  .hero-specs > div:nth-child(2) { border-right: none; }
  .hero-specs > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .arch-grid { grid-template-columns: 1fr; }
  .arch-cards { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-section { padding: 72px 0 12px; }
}

@media (max-width: 560px) {
  .hero { padding: 76px 0 52px; }
  .nav-actions .btn { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .model-table-wrap { overflow-x: auto; }
  .model-table { min-width: 620px; }
}

/* ============================================================
   ANIMASI MASUK (ringan, tanpa JS library)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
/* ============================================================
   KOMPONEN PALING LAMA (pindah dari app.css agar landing.css
   mandiri — token warna tetap dari design system DataGo)
   ============================================================ */

/* ---- Skip link ---- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 18px; border-radius: 0 0 8px 0; z-index: 100;
  font-weight: 700; font-size: 14px;
}
.skip:focus { left: 0; }

/* ---- Brand teks + ikon D ---- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { flex-shrink: 0; }
.brand-text { font-family: var(--font-sans); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; line-height: 1; }
.bt-data { color: var(--heading); }
.bt-goid { color: var(--accent); }
[data-theme="light"] .bt-data { color: var(--heading); }

/* ---- Tombol link teks (Masuk) ---- */
.btn-link {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); padding: 9px 14px;
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 700;
  color: var(--body); text-decoration: none;
  transition: color var(--transition);
}
.btn-link:hover { color: var(--accent); }

/* ---- Size modifiers tombol ---- */
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-lg { padding: 12px 26px; font-size: 15.5px; border-radius: var(--radius); }

/* ---- Language toggle ---- */
.lang-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.lang-toggle a {
  padding: 6px 11px; font-size: 12px; font-weight: 800; letter-spacing: .04em;
  color: var(--muted); text-decoration: none;
  border-right: 1px solid var(--border); transition: all var(--transition);
}
.lang-toggle a:last-child { border-right: none; }
.lang-toggle a:hover { color: var(--heading); }
.lang-toggle a.active { background: var(--badge-bg); color: var(--accent); }

/* ---- Hamburger ---- */
.hamburger {
  display: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); width: 38px; height: 38px;
  align-items: center; justify-content: center; cursor: pointer; color: var(--body);
}
@media (max-width: 900px) { .hamburger { display: inline-flex; } }

/* ---- Ikon tema ---- */
#theme-toggle .ic-sun { display: none; }
[data-theme="light"] #theme-toggle .ic-sun { display: block; }
[data-theme="light"] #theme-toggle .ic-moon { display: none; }

/* ---- Drawer (mobile) ---- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(5, 8, 6, .6); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw);
  background: var(--bg); border-left: 1px solid var(--border-strong);
  z-index: 95; transform: translateX(100%);
  transition: transform 260ms cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.drawer-close {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  width: 36px; height: 36px; cursor: pointer; color: var(--body);
}
.drawer-nav { padding: 14px 20px 24px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.drawer-nav a {
  padding: 12px 10px; color: var(--body); font-weight: 700; font-size: 15.5px;
  text-decoration: none; border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.drawer-nav a:hover { background: var(--surface-2); color: var(--accent); }
.drawer-divider { height: 1px; background: var(--border); margin: 14px 0; }

/* ---- Section alternatif ---- */
.section-alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-cta { padding-bottom: 92px; }

/* ---- Flow blueprint / arsitektur ---- */
.flow-blueprint {
  display: grid; grid-template-columns: 1fr auto 1.2fr auto 1fr; gap: 0;
  align-items: stretch; align-items: center;
}
.flow-node {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  transition: border-color var(--transition);
}
.flow-node:hover { border-color: var(--accent); }
.flow-node.node-highlight {
  background: var(--surface-2); border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.node-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.node-header h4 { font-size: 15.5px; }
.node-step {
  background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--border); border-radius: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 800;
  padding: 3px 8px; letter-spacing: .05em;
}
.node-step.step-emerald { background: var(--badge-bg); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.node-pop {
  margin-left: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  color: var(--accent); background: var(--badge-bg);
  padding: 2px 8px; border-radius: 5px;
}
.node-desc { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.node-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ntag {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--body);
  border: 1px solid var(--border); border-radius: 5px; padding: 3px 9px;
}
.node-protocol {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
}
.proto-badge {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 800;
  color: var(--accent); background: var(--badge-bg);
  padding: 2px 7px; border-radius: 4px; letter-spacing: .08em;
}
.node-protocol code { font-size: 12px; color: var(--body); word-break: break-all; }
.node-features { list-style: none; display: grid; gap: 8px; }
.node-features li { font-size: 13px; color: var(--body); }
.chk { color: var(--accent); font-weight: 800; margin-right: 6px; }
.flow-connector {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0 14px; min-width: 96px;
}
.connector-line { width: 100%; height: 1px; background: var(--border-strong); position: relative; }
.connector-line::after {
  content: ""; position: absolute; right: 0; top: -3.5px;
  border-left: 7px solid var(--border-strong); border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.connector-badge {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}

/* ---- Arch cards ---- */
.arch-card { position: relative; }
.card-icon-box {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--badge-bg); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  margin-bottom: 14px;
}

/* ---- Agent grid & cards ---- */
.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.agent-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: border-color var(--transition), transform var(--transition);
  display: flex; flex-direction: column; gap: 12px;
  min-width: 0;
}
.agent-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.agent-card-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.agent-card-head h4 { font-size: 15.5px; }
.agent-num {
  font-family: var(--font-mono); font-size: 11px; font-weight: 800;
  color: var(--accent); background: var(--badge-bg);
  padding: 3px 8px; border-radius: 6px;
}
.agent-card p { font-size: 13.5px; color: var(--muted); flex: 1; }
.agent-code-box {
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 12px; line-height: 1.6; color: var(--body);
  overflow-wrap: break-word; word-break: break-word;
  overflow-x: auto; min-width: 0;
}

/* ---- Pricing matrix ---- */
.pricing-matrix-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.matrix-toolbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.matrix-search {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0 14px; color: var(--muted);
  transition: border-color var(--transition);
}
.matrix-search:focus-within { border-color: var(--accent); }
.matrix-search input {
  flex: 1; background: none; border: none; outline: none; color: var(--heading);
  font-family: var(--font-sans); font-size: 14px; padding: 10px 0;
}
.matrix-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-filter {
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: all var(--transition);
}
.btn-filter:hover { color: var(--heading); border-color: var(--border-strong); }
.btn-filter.active {
  background: var(--badge-bg); color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.table-responsive { overflow-x: auto; }
.matrix-table { min-width: 640px; }
.m-thead, .m-trow {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 0.8fr;
  align-items: center;
}
.m-thead {
  background: var(--surface-2); border-bottom: 1px solid var(--border);
  color: var(--muted); font-family: var(--font-mono); font-weight: 700;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
}
.m-thead > div { padding: 12px 20px; }
.m-trow { border-bottom: 1px solid var(--border); transition: background var(--transition); }
.m-trow:last-child { border-bottom: none; }
.m-trow:hover { background: var(--surface-2); }
.m-trow > div { padding: 14px 20px; }
.col-m-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.col-m-num { font-family: var(--font-mono); font-size: 13px; color: var(--body); }
.col-m-status { text-align: right; }
.model-title { font-family: var(--font-mono); font-size: 13px; color: var(--heading); word-break: break-all; }
.prov-tag {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  color: var(--accent); background: var(--badge-bg);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  padding: 2px 8px; border-radius: 5px; text-transform: uppercase; letter-spacing: .05em;
}
.cache-discount {
  color: var(--accent); background: var(--badge-bg);
  border-radius: 5px; padding: 2px 8px; font-family: var(--font-mono); font-size: 12px;
}
.dash-muted { color: var(--muted); }
.status-tag-active {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; color: var(--accent); white-space: nowrap;
}
.dot-green { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* ---- CTA ---- */
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding-top: 52px; }
.footer-wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand-col .brand-text { font-size: 21px; display: inline-flex; margin-bottom: 12px; }
.footer-tagline { color: var(--muted); font-size: 13.5px; max-width: 300px; margin: 0 0 16px; }
.footer-status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--badge-bg); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700;
}
.footer-links-col h5 {
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.footer-links-col a {
  display: block; color: var(--body); font-size: 13.5px; text-decoration: none;
  padding: 4px 0; transition: color var(--transition);
}
.footer-links-col a:hover { color: var(--accent); }
.footer-sub {
  border-top: 1px solid var(--border); padding: 20px 0; color: var(--muted);
  font-size: 12.5px;
}

/* ---- Responsif komponen lama ---- */
@media (max-width: 1024px) {
  .flow-blueprint { grid-template-columns: 1fr; gap: 14px; }
  .flow-connector { flex-direction: row; padding: 4px 0; min-width: 0; }
  .connector-line { width: 100%; }
}
@media (max-width: 900px) {
  .agent-grid { grid-template-columns: 1fr; }
  .footer-wrap { grid-template-columns: 1fr 1fr; gap: 30px; }
  .m-thead, .m-trow { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .col-m-status { display: none; }
}
@media (max-width: 560px) {
  .nav-actions .btn, .nav-actions .btn-link { display: none; }
  .footer-wrap { grid-template-columns: 1fr; }
}

/* ============================================================
   KATALOG: kolom context + badge tool calling + estimator
   ============================================================ */
.m-thead, .m-trow {
  grid-template-columns: 2.4fr 0.7fr 0.9fr 0.9fr 0.9fr 0.8fr;
}
.col-m-ctx { font-size: 12.5px; color: var(--body); }
.col-m-ctx.mono { font-weight: 600; }
.tool-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  color: var(--accent); background: var(--badge-bg);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 6px; padding: 2px 7px; letter-spacing: .03em; white-space: nowrap;
}
@media (max-width: 900px) {
  .m-thead, .m-trow { grid-template-columns: 2.2fr 0.6fr 0.9fr 0.9fr; }
  .col-m-ctx, .col-m-status { display: none; }
  .m-thead .col-m-ctx, .m-thead .col-m-status { display: block; }
}

/* ---- Kartu Estimator ---- */
.estimator-card {
  display: flex; align-items: center; gap: 18px;
  margin-top: 22px; padding: 22px 26px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius); position: relative; overflow: hidden;
}
.estimator-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(340px 160px at 8% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%);
}
.est-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: var(--badge-bg); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.est-body { position: relative; }
.est-kicker {
  font-family: var(--font-mono); font-size: 10px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.est-title { font-size: 17px; margin: 4px 0 6px; }
.est-line { font-size: 14.5px; color: var(--body); margin: 0; }
.est-badge {
  font-family: var(--font-mono); font-size: 11px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
}
@media (max-width: 560px) {
  .estimator-card { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
}

/* ============================================================
   TRUST SIGNALS
   ============================================================ */
.trust-section { padding: 40px 0; }
.trust-bar { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 26px; align-items: start; }
.trust-block { display: grid; gap: 12px; }
.trust-label {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.trust-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pay-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 7px 14px 7px 7px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 800; color: var(--heading);
  transition: border-color var(--transition);
}
.pay-chip:hover { border-color: var(--accent); }
.chip-logo {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--accent); color: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 900;
}
.chip-qris { background: var(--heading); color: var(--bg); }
.support-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 15px;
  font-size: 13px; font-weight: 800; color: var(--heading); text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.support-btn:hover { border-color: var(--accent); color: var(--accent); }
.status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 15px;
  font-size: 12.5px; font-weight: 700; color: var(--body);
}
.zero-chip {
  background: var(--badge-bg); color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 26%, transparent);
  font-family: var(--font-mono); font-size: 11.5px;
}
@media (max-width: 900px) {
  .trust-bar { grid-template-columns: 1fr; gap: 22px; }
  .trust-block { display: block; }
  .trust-label { display: block; margin-bottom: 12px; }
}

/* ---- Footer minimalis + chip status ---- */
.footer-privacy {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  color: var(--accent); background: var(--badge-bg);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 999px; padding: 6px 13px; margin-top: 4px;
  cursor: help;
}
.footer-sub { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot-status-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; color: var(--accent);
}
