:root {
  --bg: #08090b;
  --bg-alt: #0c0e11;
  --surface: #101319;
  --surface-2: #151922;
  --border: #22262f;
  --border-soft: #1a1e26;
  --text: #eef1f6;
  --text-dim: #a4acba;
  --text-faint: #626a7a;
  --accent: #5eead4;
  --accent-2: #34d399;
  --accent-amber: #fbbf24;
  --accent-soft: rgba(94, 234, 212, 0.12);
  --danger-soft: rgba(251, 113, 133, 0.5);
  --radius: 16px;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
  --max: 1180px;
  --ease: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--font-mono); background: var(--surface-2); padding: .1em .4em; border-radius: 5px; font-size: .9em; color: var(--accent); }
kbd { font-family: var(--font-mono); background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; padding: .15em .5em; border-radius: 6px; font-size: .82em; color: var(--text-dim); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }
.container--narrow { max-width: 760px; }

/* texture layers */
.grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scanline {
  position: fixed; inset: 0; z-index: 998; pointer-events: none; opacity: .025;
  background: repeating-linear-gradient(0deg, #fff 0px, transparent 1px, transparent 3px);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8,9,11,0);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(8,9,11,.78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border-soft);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; }
.brand-glyph {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #04140f; font-family: var(--font-mono); font-weight: 800; font-size: 15px;
  box-shadow: 0 0 24px rgba(94,234,212,.35);
}
.brand-text { font-size: 17px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 14.5px; color: var(--text-dim); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* burger (hidden on desktop) */
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; padding: 0; align-items: center;
}
.nav-burger span { width: 17px; height: 2px; background: var(--text-dim); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: flex; flex-direction: column; gap: 2px;
  max-height: 0; overflow: hidden; opacity: 0;
  background: rgba(8,9,11,.98); backdrop-filter: blur(14px);
  border-top: 1px solid transparent;
  transition: max-height .35s var(--ease), opacity .25s var(--ease), border-color .25s;
}
.nav-mobile.open { max-height: 420px; opacity: 1; border-top-color: var(--border-soft); }
.nav-mobile a {
  padding: 16px 28px; font-size: 15.5px; font-weight: 500; color: var(--text-dim);
  border-bottom: 1px solid var(--border-soft);
}
.nav-mobile a:active { background: var(--surface); }
.nav-mobile-cta { margin: 16px 28px; justify-content: center; border-bottom: none !important; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 11px; font-weight: 600; font-size: 15px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s;
  white-space: nowrap; cursor: pointer; border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #04140f;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 24px -8px rgba(94,234,212,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 14px 32px -8px rgba(94,234,212,.7); }
.btn-ghost {
  background: rgba(255,255,255,.02); border-color: var(--border); color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: #34394a; transform: translateY(-2px); }
.btn-nav { padding: 9px 18px; font-size: 14px; }
.btn-xl { padding: 17px 34px; font-size: 16.5px; border-radius: 13px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; padding-top: 90px;
  overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; opacity: .9; }
.hero-fade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 38%, transparent 0%, rgba(8,9,11,.25) 60%, var(--bg) 100%);
}
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; padding-bottom: 40px; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-dim); font-weight: 500;
  margin-bottom: 26px;
  animation: fadeUp .7s var(--ease) both;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2s ease-in-out infinite; }

.hero-title {
  font-size: clamp(38px, 6.4vw, 74px); font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.06; max-width: 920px;
  animation: fadeUp .8s .05s var(--ease) both;
}
.grad-text {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-amber) 55%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: sheen 6s linear infinite;
}
.hero-sub {
  margin-top: 22px; max-width: 620px; font-size: clamp(16px, 1.6vw, 18.5px);
  color: var(--text-dim); line-height: 1.65;
  animation: fadeUp .8s .12s var(--ease) both;
}
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; animation: fadeUp .8s .18s var(--ease) both; }

.hero-stats {
  margin-top: 56px; display: flex; align-items: center; gap: 22px;
  padding: 18px 30px; border-radius: 16px;
  background: rgba(16,19,25,.6); border: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  animation: fadeUp .8s .26s var(--ease) both;
  flex-wrap: wrap; justify-content: center;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 92px; }
.stat-num { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--text-faint); }
.stat-sep { width: 1px; height: 30px; background: var(--border); }

.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-cue span {
  display: block; width: 22px; height: 36px; border: 2px solid var(--border); border-radius: 12px; position: relative;
}
.scroll-cue span::before {
  content: ''; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--accent); border-radius: 2px; animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes sheen { to { background-position: 200% center; } }
@keyframes scrollDot { 0% { opacity: 0; top: 7px; } 30% { opacity: 1; } 100% { opacity: 0; top: 20px; } }

/* ---------- STRIP ---------- */
.strip {
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt); padding: 20px 0; overflow: hidden; position: relative; z-index: 2;
}
.strip-track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.strip-item {
  font-family: var(--font-mono); font-size: 13.5px; color: var(--text-faint);
  white-space: nowrap; letter-spacing: .01em;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.section { padding: 128px 0; position: relative; z-index: 2; }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 700px; margin-bottom: 60px; }
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  color: var(--accent); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow--light { color: #04140f; opacity: .7; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.section-sub { margin-top: 16px; color: var(--text-dim); font-size: 16.5px; line-height: 1.65; }

/* reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ---------- COMPARE ---------- */
.compare {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch;
}
.compare-col {
  border-radius: var(--radius); border: 1px solid var(--border); padding: 26px 28px;
  background: var(--surface);
}
.compare-col--jarvis { border-color: rgba(94,234,212,.35); background: linear-gradient(180deg, rgba(94,234,212,.06), transparent 60%), var(--surface); box-shadow: 0 0 0 1px rgba(94,234,212,.08), 0 20px 50px -25px rgba(94,234,212,.25); }
.compare-badge {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 18px; padding: 4px 10px; border-radius: 6px; display: inline-block;
}
.compare-col--jarvis .compare-badge { background: var(--accent-soft); color: var(--accent); }
.compare-col--other .compare-badge { background: rgba(255,255,255,.05); color: var(--text-faint); }
.compare-row { display: flex; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--border-soft); gap: 16px; }
.compare-row:first-of-type { border-top: none; }
.compare-label { color: var(--text-faint); font-size: 14.5px; }
.compare-val { font-family: var(--font-mono); font-size: 14.5px; font-weight: 600; color: var(--text-dim); text-align: right; }
.compare-val--good { color: var(--accent); }
.compare-vs {
  align-self: center; font-family: var(--font-mono); font-size: 13px; color: var(--text-faint);
  width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; display: grid; place-items: center;
}
.compare-footnote { margin-top: 22px; color: var(--text-faint); font-size: 14px; line-height: 1.7; max-width: 780px; }

/* ---------- FEATURES ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: #2c3140; box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); }
.feature-card--lg { grid-column: span 2; grid-row: span 1; }
.feature-card--wide { grid-column: span 3; }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent); border: 1px solid var(--border); margin-bottom: 18px;
}
.feature-icon--accent { color: var(--accent-amber); }
.feature-card h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.feature-card p { color: var(--text-dim); font-size: 14.8px; line-height: 1.65; }
.feature-code {
  margin-top: 18px; font-family: var(--font-mono); font-size: 13px; background: var(--bg);
  border: 1px solid var(--border-soft); border-radius: 8px; padding: 12px 14px; color: var(--text-dim);
}
.feature-code .c1 { color: var(--accent-amber); }
.feature-code .c2 { color: var(--text-faint); }
.feature-tags { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.feature-tags span {
  font-family: var(--font-mono); font-size: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(251,191,36,.1); color: var(--accent-amber); border: 1px solid rgba(251,191,36,.25);
}

/* ---------- STEPS ---------- */
.steps { display: flex; align-items: flex-start; gap: 0; }
.step { flex: 1; }
.step-num {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 700;
  width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 20px; background: var(--surface);
}
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 14.8px; line-height: 1.65; max-width: 300px; }
.step-line { flex: 0 0 60px; height: 1px; background: linear-gradient(90deg, var(--border), var(--border) 50%, transparent 50%); background-size: 10px 1px; margin-top: 20px; }

/* ---------- DEEP CUTS ---------- */
.deepcuts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.deepcut { background: var(--surface); padding: 30px 32px; }
.deepcut h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.deepcut p { color: var(--text-dim); font-size: 14.3px; line-height: 1.7; }

/* ---------- DOWNLOAD ---------- */
.download {
  position: relative; padding: 140px 0; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, #06110d 50%, var(--bg) 100%);
}
#download-canvas { position: absolute; inset: 0; z-index: 0; opacity: .55; }
.download-inner { display: flex; flex-direction: column; align-items: center; }
.download-title { font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; letter-spacing: -.02em; max-width: 720px; margin-top: 8px; }
.download-sub { color: var(--text-dim); font-size: 17px; margin-top: 18px; max-width: 480px; }
.download .btn-xl { margin-top: 38px; }
.download-meta { margin-top: 14px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }
.download-hint-mobile { display: none; margin-top: 22px; font-size: 13.5px; color: var(--text-faint); max-width: 320px; }
.download-alt { margin-top: 40px; display: flex; gap: 12px; color: var(--text-faint); font-size: 14px; }
.download-alt a { color: var(--text-dim); transition: color .2s; }
.download-alt a:hover { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 15.5px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-family: var(--font-mono); font-size: 20px; color: var(--text-faint); transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item p { color: var(--text-dim); font-size: 14.8px; line-height: 1.65; padding-bottom: 18px; }

/* ---------- FOOTER ---------- */
.footer { padding: 60px 0 40px; border-top: 1px solid var(--border-soft); position: relative; z-index: 2; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.footer-tag { color: var(--text-faint); font-size: 13.5px; }
.footer-links { display: flex; gap: 20px; margin: 14px 0; }
.footer-links a { color: var(--text-dim); font-size: 13.5px; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--text-faint); font-size: 12.5px; margin-top: 10px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav-links, .btn-nav { display: none; }
  .nav-burger { display: flex; }
  .compare { grid-template-columns: 1fr; }
  .compare-vs { justify-self: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card--lg, .feature-card--wide { grid-column: span 1; }
  .steps { flex-direction: column; gap: 34px; }
  .step-line { display: none; }
  .deepcuts { grid-template-columns: 1fr; }
  .section { padding: 88px 0; }
  .hero-stats { gap: 14px; padding: 16px; }
  .stat { min-width: 76px; }
  .download-hint-mobile { display: block; }
}

/* ---------- PHONE ---------- */
@media (max-width: 560px) {
  .nav-inner { padding: 14px 18px; }
  .container { padding: 0 20px; }
  .hero { padding-top: 78px; }
  .hero-title { font-size: clamp(32px, 9vw, 44px); letter-spacing: -0.02em; }
  .hero-sub { font-size: 15.5px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); display: grid; gap: 16px 10px; width: 100%; }
  .stat-sep { display: none; }
  .stat { min-width: 0; }
  .pill { font-size: 12px; padding: 6px 12px; text-align: center; }
  .strip-item { font-size: 12.5px; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: clamp(25px, 7.5vw, 32px); }
  .compare-col { padding: 20px; }
  .compare-row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 0; }
  .compare-val { text-align: left; }
  .feature-card { padding: 22px; }
  .deepcut { padding: 24px; }
  .download { padding: 96px 0; }
  .download-title { font-size: clamp(24px, 8vw, 32px); }
  .btn-xl { width: 100%; justify-content: center; padding: 16px 20px; }
  .download-alt { flex-wrap: wrap; justify-content: center; }
  .faq-item { padding: 4px 16px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
