/* ═══════════════════════════════════════════════════════════
   GOMAD LANDING — DESIGN SYSTEM v2
   Bento Grid · Minimalism Modern · Glassmorphism Accent
   ═══════════════════════════════════════════════════════════ */

/* ==================== DESIGN TOKENS ==================== */
:root {
  --bg: #f7f7f8;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f1f3;
  --ink: #101012;
  --ink-soft: #5c5c66;
  --ink-faint: #9a9aa4;
  --line: rgba(16, 16, 18, 0.08);
  --line-strong: rgba(16, 16, 18, 0.14);
  --accent: #c1121f;
  --accent-soft: rgba(193, 18, 31, 0.08);
  --accent-grad: linear-gradient(135deg, #e11d2e 0%, #a60f19 100%);
  --ok: #16a34a;
  --warn: #d97706;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-xs: 0 1px 2px rgba(16,16,18,.05);
  --shadow-sm: 0 4px 16px rgba(16,16,18,.06);
  --shadow-md: 0 12px 40px rgba(16,16,18,.09);
  --shadow-lg: 0 24px 70px rgba(16,16,18,.14);
  --glass-bg: rgba(255,255,255,.72);
  --glass-border: rgba(255,255,255,.6);
  --font: 'Geist Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  --nav-h: 68px;
}

[data-theme="dark"] {
  --bg: #0b0b0d;
  --bg-soft: #111114;
  --surface: #151518;
  --surface-2: #1c1c20;
  --ink: #f5f5f7;
  --ink-soft: #a2a2ac;
  --ink-faint: #6c6c76;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.16);
  --accent-soft: rgba(193,18,31,.16);
  --shadow-xs: 0 1px 2px rgba(0,0,0,.3);
  --shadow-sm: 0 4px 16px rgba(0,0,0,.35);
  --shadow-md: 0 12px 40px rgba(0,0,0,.45);
  --shadow-lg: 0 24px 70px rgba(0,0,0,.55);
  --glass-bg: rgba(20,20,24,.72);
  --glass-border: rgba(255,255,255,.12);
}

/* ==================== BASE ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--accent); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

/* ==================== TYPOGRAPHY ==================== */
.display { font-size: clamp(2.6rem, 6.4vw, 4.9rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 750; }
.h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.mono { font-family: var(--mono); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); font-weight: 400; }

/* Eyebrow / label chip */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--accent); }

/* ==================== LAYOUT ==================== */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 9vw, 110px); position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before, .section-head.center .eyebrow::after { content:''; width:26px; height:1px; background: var(--accent); }
.section-head .lead { margin-top: 14px; }
.section-head .h2 { margin-top: 14px; }
.stack { display: grid; gap: 14px; }

/* ==================== BENTO GRID ==================== */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.b-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, border-color .3s ease;
}
.b-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
/* Sel dark/accent kini ADAPTIF — ikut tema (light = surface terang, dark = surface gelap),
   sama seperti sel grid lainnya. Aksen lewat tag/ikon, bukan background sel. */
.b-cell.dark, .b-cell.accent {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.b-cell.soft { background: var(--accent-soft); border-color: rgba(193,18,31,.18); }
.b-cell.glass { background: var(--glass-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--glass-border); }
.b-cell.tint { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.b-cell.flat { box-shadow: none; }

/* Bento spans */
.c-3 { grid-column: span 3; } .c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; }
.c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; }
.c-9 { grid-column: span 9; } .c-12 { grid-column: span 12; }
.r-2 { grid-row: span 2; }

@media (max-width: 900px) {
  .c-3,.c-4,.c-5,.c-6,.c-7,.c-8,.c-9 { grid-column: span 6; }
}
@media (max-width: 640px) {
  .c-3,.c-4,.c-5,.c-6,.c-7,.c-8,.c-9 { grid-column: span 12; }
}

/* Bento content helpers */
.b-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.3rem;
  background: var(--surface-2); border: 1px solid var(--line);
  margin-bottom: 16px;
}
.b-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.b-desc { font-size: .92rem; color: var(--ink-soft); }
.b-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .06em;
  padding: 5px 10px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.b-metric { font-size: clamp(1.8rem,3vw,2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }

/* ==================== GLASSMORPHISM (accent) ==================== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.glass-chip {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  padding: 8px 16px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 600;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 650; font-size: .95rem; line-height: 1;
  padding: 14px 24px; border-radius: 14px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, background .3s ease, border-color .3s ease;
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 8px 24px rgba(193,18,31,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(193,18,31,.42); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
[data-theme="dark"] .btn-dark { background: #fff; color: #111; }
.btn-dark:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 16px; font-size: .85rem; border-radius: 11px; }
.btn-lg { padding: 17px 30px; font-size: 1.02rem; border-radius: 16px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ==================== NAVBAR (floating glass) ==================== */
.nav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(1160px, calc(100% - 32px)); z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 20px;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 30px rgba(16,16,18,.08);
  transition: box-shadow .3s ease, background .3s ease;
}
.nav.scrolled { box-shadow: 0 12px 40px rgba(16,16,18,.14); }
.nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.02em; font-size: 1.15rem; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 9px 15px; border-radius: 999px; font-size: .9rem; font-weight: 560;
  color: var(--ink-soft); transition: color .2s ease, background .25s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.active { color: var(--ink); background: var(--surface-2); font-weight: 650; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink); border: 1px solid transparent;
  transition: transform .2s ease, background .25s ease;
}
.icon-btn:hover { transform: scale(1.06); }
.nav-burger { display: none; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .nav .btn-primary { display: none; }
}

/* Mobile drawer */
.m-drawer { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.m-drawer .overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .3s ease; }
.m-drawer .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw);
  background: var(--surface); padding: 26px;
  transform: translateX(100%); transition: transform .38s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; gap: 6px;
  border-left: 1px solid var(--line);
}
.m-drawer.open { pointer-events: auto; }
.m-drawer.open .overlay { opacity: 1; }
.m-drawer.open .panel { transform: translateX(0); }
.m-drawer a { padding: 14px 12px; border-radius: 14px; font-weight: 600; font-size: 1.02rem; color: var(--ink-soft); }
.m-drawer a:hover, .m-drawer a.active { background: var(--surface-2); color: var(--ink); }

/* ==================== HERO ==================== */
.hero { position: relative; padding-top: calc(var(--nav-h) + 64px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.hero-bg .orb-1 { width: 520px; height: 520px; background: rgba(193,18,31,.35); top: -160px; left: -120px; }
.hero-bg .orb-2 { width: 460px; height: 460px; background: rgba(193,18,31,.14); bottom: -180px; right: -100px; }
.hero-bg .grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
  opacity: .5;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px,5vw,64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-mock { order: -1; } }

/* Mockup frame */
.mock-frame { position: relative; }
.mock-img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden; background: var(--surface);
}
.mock-img img { width: 100%; height: auto; }
.mock-float {
  position: absolute; padding: 14px 18px; border-radius: 18px;
  background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-md);
  font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: 10px;
  animation: floaty 6s ease-in-out infinite;
}
.mock-float .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.mock-float.f1 { top: -18px; right: -14px; }
.mock-float.f2 { bottom: -16px; left: -20px; animation-delay: -3s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent); mask-image: linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.mq-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: .92rem; white-space: nowrap;
}

/* ==================== REVEAL ANIMATIONS ==================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-scale { transform: scale(.94); }
.reveal-blur { filter: blur(8px); }
.reveal.in { filter: none; }
[data-reveal-stagger] > .reveal { transition-delay: calc(var(--d,0)*1ms); }

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent-grad); z-index: 100; border-radius: 0 99px 99px 0; }

/* ==================== STATS / COUNTER ==================== */
.stat-num { font-size: clamp(2rem,3.6vw,3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat-label { font-size: .86rem; color: var(--ink-soft); margin-top: 6px; }

/* ==================== FOOTER ==================== */
.footer { border-top: 1px solid var(--line); padding-block: 56px 32px; margin-top: clamp(40px,6vw,80px); background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h5 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); margin-bottom: 14px; font-weight: 700; }
.footer a { display: block; color: var(--ink-soft); font-size: .92rem; padding: 5px 0; transition: color .2s ease; }
.footer a:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .84rem; color: var(--ink-faint); }

/* ==================== FEATURE PILLS / LISTS ==================== */
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.check::before { content: '●'; color: var(--accent); font-weight: 800; margin-top: -1px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; }

/* ==================== DOCUMENTATION ==================== */
.doc-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .doc-wrap { grid-template-columns: 1fr; } }
.doc-side { position: sticky; top: calc(var(--nav-h) + 30px); }
@media (max-width: 900px) { .doc-side { position: static; } }
.doc-nav { display: grid; gap: 2px; }
.doc-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  font-size: .9rem; font-weight: 560; color: var(--ink-soft);
  transition: background .2s ease, color .2s ease;
}
.doc-nav a:hover { background: var(--surface-2); color: var(--ink); }
.doc-nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.doc-section { scroll-margin-top: calc(var(--nav-h) + 30px); margin-bottom: 56px; }
.doc-section > h2 { font-size: 1.6rem; font-weight: 750; letter-spacing: -.02em; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.doc-section > p { color: var(--ink-soft); margin-bottom: 20px; }
.step {
  display: flex; gap: 16px; padding: 18px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px;
}
.step .num {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px;
  background: var(--accent-grad); color: #fff; font-weight: 800;
  display: grid; place-items: center;
}
.step h4 { font-weight: 700; font-size: .98rem; margin-bottom: 6px; }
.step p, .step li { color: var(--ink-soft); font-size: .9rem; }
.step ul { margin-top: 8px; display: grid; gap: 6px; padding-left: 2px; list-style: none; }
.step ul li { position: relative; padding-left: 18px; }
.step ul li::before { content: '›'; position: absolute; left: 2px; color: var(--accent); font-weight: 800; }
.callout {
  display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius-md);
  margin: 18px 0; font-size: .92rem;
}
.callout.info { background: var(--accent-soft); border: 1px solid rgba(193,18,31,.2); }
.callout.ok { background: rgba(22,163,74,.1); border: 1px solid rgba(22,163,74,.25); }
.callout.warn { background: rgba(217,119,6,.1); border: 1px solid rgba(217,119,6,.25); }
.code-chip {
  font-family: var(--mono); font-size: .8rem; background: var(--surface-2);
  border: 1px solid var(--line); padding: 2px 8px; border-radius: 7px; white-space: nowrap;
}
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: .92rem; }
.kv dt { color: var(--ink-faint); font-weight: 600; }
.kv dd { color: var(--ink-soft); }

/* ==================== MISC ==================== */
.divider { height: 1px; background: var(--line); border: none; margin-block: 32px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.rating { color: #f59e0b; letter-spacing: 2px; font-size: .85rem; }
.hide { display: none !important; }
