/* ======================================================================
   ZeroHollow — design tokens
   ====================================================================== */
:root {
  --bg: #070710;
  --bg-2: #0a0a16;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #ececf4;
  --text-dim: #9b9bb4;
  --text-mute: #6c6c86;

  --brand: #6366f1;
  --brand-2: #8b5cf6;
  --cyan: #06b6d4;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #6366f1 52%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(6, 182, 212, 0.16));

  --c-com: #6b7390;
  --c-cmd: #5eead4;
  --c-str: #a3e88a;
  --c-kw: #c4b5fd;
  --c-num: #fca5a5;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --container: 1140px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --ring: 0 0 0 1px var(--border);
}

/* ======================================================================
   Reset & base
   ====================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 50% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(40% 40% at 85% 10%, rgba(6, 182, 212, 0.12), transparent 60%),
    var(--bg);
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

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

.visually-hidden,
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link:focus {
  left: 16px; top: 16px;
  width: auto; height: auto;
  padding: 10px 16px; margin: 0; clip: auto;
  background: var(--brand); color: #fff;
  border-radius: var(--radius-sm); z-index: 100;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ======================================================================
   Buttons
   ====================================================================== */
.btn {
  --pad-y: 11px; --pad-x: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600; font-size: 0.94rem;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn--sm { --pad-y: 8px; --pad-x: 15px; font-size: 0.88rem; }
.btn--lg { --pad-y: 14px; --pad-x: 26px; font-size: 1rem; }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #7c7ff5, #6366f1 55%, #22b8d8);
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(99, 102, 241, 0.85); }

.btn--ghost {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.link-muted { color: var(--text-dim); font-size: 0.92rem; font-weight: 500; transition: color 0.2s ease; }
.link-muted:hover { color: var(--text); }

/* ======================================================================
   Navigation
   ====================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 8, 18, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; }
.brand__mark { filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.45)); }
.brand__word { font-size: 1.06rem; }

.nav__links { display: flex; gap: 26px; margin-left: 8px; }
.nav__links a { color: var(--text-dim); font-size: 0.94rem; font-weight: 500; transition: color 0.2s ease; }
.nav__links a:hover { color: var(--text); }

.nav__cta { display: flex; align-items: center; gap: 16px; margin-left: auto; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 24px 22px;
  background: rgba(8, 8, 18, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.nav__mobile a { padding: 12px 4px; color: var(--text-dim); font-weight: 500; border-bottom: 1px solid var(--border); }
.nav__mobile a:last-child { border: 0; margin-top: 10px; }
.nav__mobile .btn { justify-content: center; }

/* ======================================================================
   Hero
   ====================================================================== */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.hero__glow {
  position: absolute; top: -240px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 720px;
  background: radial-gradient(circle at 50% 40%, rgba(124, 92, 246, 0.4), transparent 62%);
  filter: blur(50px); z-index: -1; pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.86rem; font-weight: 500; color: var(--text-dim);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.eyebrow:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2); }
.eyebrow__arrow { transition: transform 0.2s ease; }
.eyebrow:hover .eyebrow__arrow { transform: translateX(3px); }

.hero__title { margin-top: 28px; font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; }
.hero__sub { margin-top: 22px; max-width: 620px; font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--text-dim); }
.hero__actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero__note { margin-top: 16px; font-size: 0.85rem; color: var(--text-mute); }

.hero__panel { margin-top: 56px; width: 100%; max-width: 760px; }

/* Terminal / code cards */
.terminal, .codecard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 18, 30, 0.92), rgba(10, 10, 20, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}
.terminal__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--red { background: #ff5f57; }
.dot--amber { background: #febc2e; }
.dot--green { background: #28c840; }
.terminal__title { margin-left: 8px; font-family: var(--mono); font-size: 0.78rem; color: var(--text-mute); }

.terminal__body, .codecard__pre {
  margin: 0; padding: 20px 22px;
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.7;
  color: #d7d7e6; overflow-x: auto;
}
.terminal__body code, .codecard__pre code { font-family: inherit; }

.c-com { color: var(--c-com); }
.c-cmd { color: var(--c-cmd); }
.c-str { color: var(--c-str); }
.c-kw  { color: var(--c-kw); }
.c-num { color: var(--c-num); }

/* ======================================================================
   Trust strip
   ====================================================================== */
.trust { padding: 28px 0 8px; }
.trust__label { text-align: center; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); }
.trust__logos {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(24px, 5vw, 56px);
}
.logo-word {
  font-weight: 700; font-size: 1.18rem; letter-spacing: -0.01em;
  color: #c7c7d8; opacity: 0.5;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.logo-word:hover { opacity: 0.9; transform: translateY(-2px); }

/* ======================================================================
   Sections
   ====================================================================== */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section__head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.kicker {
  display: inline-block;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; color: var(--brand-2);
  margin-bottom: 14px;
}
.section__title { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.03em; }
.section__lead { margin-top: 16px; font-size: clamp(1rem, 1.8vw, 1.12rem); color: var(--text-dim); }

.grid { display: grid; gap: 20px; }
.grid--features { grid-template-columns: repeat(4, 1fr); }
.grid--models { grid-template-columns: repeat(3, 1fr); }
.grid--trust { grid-template-columns: repeat(4, 1fr); }

/* Feature cards */
.card {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% -20%, rgba(99, 102, 241, 0.12), transparent 70%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.card:hover::after { opacity: 1; }
.card__icon {
  width: 44px; height: 44px; margin-bottom: 18px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  color: #c4b5fd;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--text-dim); }

/* ======================================================================
   Stats
   ====================================================================== */
.stats {
  padding: 8px 0;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 28px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}
.stat { text-align: center; }
.stat__num {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { margin-top: 8px; font-size: 0.88rem; color: var(--text-dim); }

/* ======================================================================
   Models
   ====================================================================== */
.model {
  padding: 28px 26px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.model:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.model__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.model__head h3 { font-size: 1.35rem; }
.model p { font-size: 0.93rem; color: var(--text-dim); min-height: 66px; }
.tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: 999px;
  color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border);
}
.tag--new { color: #d6ccff; background: rgba(124, 92, 246, 0.16); border-color: rgba(124, 92, 246, 0.4); }

.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 0; }
.spec div { padding-top: 14px; border-top: 1px solid var(--border); }
.spec dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mute); }
.spec dd { margin: 4px 0 0; font-size: 0.9rem; font-weight: 600; }

/* ======================================================================
   Developers split
   ====================================================================== */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.split__copy .section__title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.split__copy .kicker, .split__copy .section__title, .split__copy .section__lead { text-align: left; }
.checklist { margin: 24px 0 0; display: grid; gap: 13px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text-dim); font-size: 0.96rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--grad-soft); border: 1px solid rgba(124, 92, 246, 0.4);
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: 8px;
  width: 7px; height: 4px;
  border-left: 2px solid #c4b5fd; border-bottom: 2px solid #c4b5fd;
  transform: rotate(-45deg);
}
.split__actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.codecard__tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.codecard__tab {
  padding: 9px 16px; border: 0; border-radius: 9px 9px 0 0;
  background: transparent; color: var(--text-mute);
  font-size: 0.85rem; font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}
.codecard__tab:hover { color: var(--text-dim); }
.codecard__tab.is-active { color: var(--text); background: rgba(255, 255, 255, 0.05); }

/* ======================================================================
   Trust badges
   ====================================================================== */
.badge {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px 22px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.badge:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.badge strong { font-size: 1.05rem; }
.badge span { font-size: 0.85rem; color: var(--text-dim); }

/* ======================================================================
   CTA
   ====================================================================== */
.cta { padding: clamp(56px, 8vw, 110px) 0; }
.cta__inner {
  position: relative;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) 28px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.1), rgba(255, 255, 255, 0.015));
  overflow: hidden;
}
.cta__glow {
  position: absolute; inset: -1px; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 80% at 50% 0%, rgba(124, 92, 246, 0.3), transparent 60%);
}
.cta__inner > * { position: relative; z-index: 1; }
.cta__inner h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; }
.cta__inner > p { margin: 16px auto 0; max-width: 540px; color: var(--text-dim); }
.cta__form { margin: 30px auto 0; display: flex; gap: 10px; max-width: 480px; flex-wrap: wrap; justify-content: center; }
.cta__form input {
  flex: 1 1 240px;
  padding: 14px 18px;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(0, 0, 0, 0.3); color: var(--text);
  font-size: 0.96rem;
}
.cta__form input::placeholder { color: var(--text-mute); }
.cta__form input:focus { border-color: var(--brand); background: rgba(0, 0, 0, 0.45); }
.cta__hint { margin-top: 16px; font-size: 0.84rem; color: var(--text-mute); }

/* ======================================================================
   Footer
   ====================================================================== */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; margin-top: 20px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2.6fr; gap: 48px; }
.footer__tag { margin-top: 16px; color: var(--text-dim); font-size: 0.92rem; max-width: 260px; }
.footer__social { margin-top: 20px; display: flex; gap: 10px; }
.footer__social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--text-dim); background: var(--surface);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer__social a:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }

.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer__col h4 { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 14px; font-weight: 600; }
.footer__col a { display: block; padding: 6px 0; color: var(--text-dim); font-size: 0.92rem; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 52px; padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-mute);
}
.footer__status { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ======================================================================
   Reveal on scroll
   ====================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width: 980px) {
  .grid--features { grid-template-columns: repeat(2, 1fr); }
  .grid--trust { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .grid--models { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .model p { min-height: 0; }
}
@media (max-width: 520px) {
  .grid--features, .grid--trust { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
