*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0e14;
  --bg-surface: #111820;
  --bg-surface-2: #1a2230;
  --border: #1e2a38;
  --border-strong: #2a3a4e;
  --text: #e4e8ee;
  --text-muted: #8896a8;
  --text-dim: #5a6a7e;
  --blue: #58A1E2;
  --green: #8EC265;
  --gold: #EDB55D;
  --purple: #6F63AD;
  --teal: #63B084;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
sup.r { font-size: 0.55em; vertical-align: super; margin-left: 1px; font-weight: 500; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* --- NAV --- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 600; font-size: 18px; }
.logo svg { height: 24px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 16px; border-radius: 8px; background: var(--gold); color: #1a1206 !important;
  font-weight: 600; font-size: 14px;
}
.nav-cta:hover { filter: brightness(1.08); }

/* --- SECTIONS --- */
section { padding: 96px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
h2 {
  font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12;
  margin-bottom: 18px; max-width: 760px;
}
.lede { font-size: 18px; color: var(--text-muted); max-width: 640px; line-height: 1.7; }
.gradient {
  background: linear-gradient(135deg, var(--blue), var(--gold), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* --- HERO --- */
.hero { text-align: center; padding: 104px 0 96px; position: relative; }
.hero::before {
  content: ''; position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: min(900px, 100vw); height: 600px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(237, 181, 93, 0.07) 0%, transparent 70%);
}
.hero-mark { display: flex; justify-content: center; margin-bottom: 28px; }
.hero-mark svg { height: 56px; width: auto; }
.hero-mark rect { animation: pulse 2.4s ease-in-out infinite; transform-origin: center bottom; }
.hero-mark rect:nth-child(2) { animation-delay: 0.3s; }
.hero-mark rect:nth-child(3) { animation-delay: 0.15s; }
.hero-mark rect:nth-child(4) { animation-delay: 0.45s; }
.hero-mark rect:nth-child(5) { animation-delay: 0.6s; }
@keyframes pulse { 0%, 100% { transform: scaleY(1); opacity: 1; } 50% { transform: scaleY(0.7); opacity: 0.6; } }
/* Animated nav logo (home page only: .logo-live) */
.logo-live rect { animation: pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
.logo-live rect:nth-child(2) { animation-delay: 0.3s; }
.logo-live rect:nth-child(3) { animation-delay: 0.15s; }
.logo-live rect:nth-child(4) { animation-delay: 0.45s; }
.logo-live rect:nth-child(5) { animation-delay: 0.6s; }
@media (prefers-reduced-motion: reduce) { .hero-mark rect, .logo-live rect { animation: none; } }

.hero-tagline { font-size: clamp(18px, 2.5vw, 22px); margin-bottom: 20px; }
.hero-tagline .brand { font-family: var(--mono); font-weight: 600; color: var(--gold); }
.hero-tagline .motto { font-family: var(--serif); color: var(--text-muted); font-style: italic; }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em;
  max-width: 860px; margin: 0 auto 26px;
}
.hero .lede { margin: 0 auto 36px; font-size: 18px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.pill {
  font-family: var(--mono); font-size: 12px; color: var(--text-muted);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 5px 12px; background: var(--bg-surface);
}
.pill b { color: var(--green); font-weight: 500; }

/* --- BETA FORM --- */
.beta-form { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.beta-form input[type="email"] {
  width: 300px; max-width: 100%; padding: 13px 18px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--bg-surface); color: var(--text);
  font-family: var(--sans); font-size: 15px; outline: none;
}
.beta-form input[type="email"]:focus { border-color: var(--gold); }
.beta-form button {
  padding: 13px 24px; border-radius: 10px; border: none; background: var(--gold); color: #1a1206;
  font-family: var(--sans); font-size: 15px; font-weight: 600; cursor: pointer;
}
.beta-form button:hover { filter: brightness(1.08); }
.beta-form button:disabled { opacity: 0.6; cursor: default; }
.beta-label { display: block; width: 100%; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 2px; }
.beta-error {
  display: none; margin: 12px auto 0; max-width: 460px; padding: 10px 16px; border-radius: 10px; font-size: 14px;
  background: rgba(226, 88, 88, 0.1); border: 1px solid rgba(226, 88, 88, 0.3); color: #f0a0a0;
}
.beta-error a { text-decoration: underline; }
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 8px;
  background: var(--gold); color: #1a1206; font-weight: 600; font-size: 14px;
}
.skip:focus { top: 12px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.beta-note { margin-top: 12px; font-size: 13px; color: var(--text-dim); }
.beta-success {
  display: none; margin: 0 auto; max-width: 420px; padding: 12px 20px; border-radius: 10px;
  background: rgba(142, 194, 101, 0.1); border: 1px solid rgba(142, 194, 101, 0.25); color: var(--green); font-size: 14px;
}

/* --- CODE --- */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; margin-top: 48px; }
.code {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  font-family: var(--mono); font-size: 13px; line-height: 1.7; min-width: 0;
}
.code-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--border);
  color: var(--text-dim); font-size: 12px;
}
.code-head i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); display: inline-block; }
.code pre { padding: 18px 20px; overflow-x: auto; color: #c9d3df; }
.k { color: #c792ea; } .d { color: var(--gold); } .t { color: var(--blue); } .s { color: var(--green); }
.c { color: var(--text-dim); font-style: italic; } .p { color: var(--teal); }

.gets { list-style: none; display: grid; gap: 14px; }
.gets li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); font-size: 15px; }
.gets li b { color: var(--text); font-weight: 600; }
.gets li::before {
  content: ''; flex: 0 0 8px; height: 8px; margin-top: 8px; border-radius: 2px; background: var(--gold);
}
.gets li:nth-child(2)::before { background: var(--blue); }
.gets li:nth-child(3)::before { background: var(--green); }
.gets li:nth-child(4)::before { background: var(--purple); }
.gets li:nth-child(5)::before { background: var(--teal); }

/* --- WHAT YOU GET --- */
.yield { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }

/* --- FAQ --- */
.faq { margin-top: 40px; border-top: 1px solid var(--border); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 16px; font-family: var(--mono); font-size: 22px; color: var(--gold);
}
.faq details[open] summary::after { content: '−'; }
.faq summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.faq details p { padding: 0 0 22px; color: var(--text-muted); font-size: 15px; line-height: 1.75; max-width: 760px; }

/* --- CARDS --- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.card {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px;
}
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.card code, p code, li code {
  font-family: var(--mono); font-size: 0.86em; color: var(--gold);
  background: var(--bg-surface-2); padding: 1px 6px; border-radius: 4px;
}
.card .tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 12px;
}

/* --- AGENT BAND --- */
.agent-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.stat { border-top: 2px solid var(--gold); padding-top: 16px; }
.stat:nth-child(2) { border-color: var(--blue); }
.stat:nth-child(3) { border-color: var(--green); }
.stat:nth-child(4) { border-color: var(--purple); }
.stat .num { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.stat p { font-size: 14px; color: var(--text-muted); }

/* --- TERMINAL --- */
.term .code pre .pr { color: var(--gold); user-select: none; }

/* --- HARNESS --- */
.harness { background: linear-gradient(180deg, rgba(111, 99, 173, 0.07), transparent 70%); }
.soon {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--purple); border: 1px solid rgba(111, 99, 173, 0.5); background: rgba(111, 99, 173, 0.12);
  border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: middle; filter: brightness(1.4);
}
.flow { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.flow span {
  font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 6px;
  background: var(--bg-surface-2); color: var(--text-muted); border: 1px solid var(--border);
}
.harness .grid { grid-template-columns: 1.2fr 1fr 1fr; }
.card.feature { border-color: rgba(111, 99, 173, 0.45); }

/* --- CTA --- */
.cta { text-align: center; }
.cta h2 { margin-left: auto; margin-right: auto; }
.cta .lede { margin: 0 auto 32px; }

/* --- FOOTER --- */
footer { border-top: 1px solid var(--border); padding: 48px 0 40px; font-size: 14px; color: var(--text-dim); }
.foot { display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: start; }
.foot-brand p { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--text-muted); }
.foot-slingr { text-align: right; line-height: 1.6; color: var(--text-muted); padding-top: 2px; }
.foot-slingr p + p { margin-top: 4px; }
.foot-slingr a, .foot-legal a { color: var(--text); }
.foot-slingr a:hover { color: var(--gold); }
.foot-legal {
  grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 20px;
  font-size: 12px; line-height: 1.7; color: var(--text-dim); max-width: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .grid, .harness .grid { grid-template-columns: 1fr 1fr; }
  .agent-points { grid-template-columns: 1fr 1fr; }
  .yield { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .foot-slingr { text-align: left; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .grid, .harness .grid, .agent-points { grid-template-columns: 1fr; }
  .code { font-size: 12px; }
  .beta-form input[type="email"], .beta-form button { width: 100%; }
}
