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

:root {
  --bg:          #09080f;
  --surface:     #0f0d1a;
  --border:      #1c1a2c;
  --border2:     #272438;
  --text:        #e4e0ee;
  --muted:       #6a677e;
  --accent:      #9170ee;
  --blue:        #5b96f5;
  --green:       #34d399;
  --red:         #f87171;
  --code-bg:     #070610;
  --text-active: #f0ecfa;
}

body.light {
  --bg:          #f8f7ff;
  --surface:     #ffffff;
  --border:      #e8e4f5;
  --border2:     #d2ccec;
  --text:        #13111f;
  --muted:       #5e5a7a;
  --accent:      #5e3ec8;
  --blue:        #1e52b8;
  --green:       #05724f;
  --red:         #c41e1e;
  --code-bg:     #f0edff;
  --text-active: #0b091a;
}

body.light h1, body.light .section-h2, body.light .step h3,
body.light .model-card h3, body.light .bench-card h3,
body.light .bench-feat h4, body.light .pricing-price,
body.light .result-x, body.light .footer-cta h2,
body.light .proof-num { color: var(--text-active); }

body.light h1 em {
  background: linear-gradient(135deg, #5030b8 0%, #1e52b8 55%, #05724f 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

body.light .bg-grid {
  background-image:
    linear-gradient(rgba(80,50,180,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80,50,180,.03) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at 50% 0%, black 10%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 10%, transparent 60%);
}
body.light .bg-glow { background: radial-gradient(ellipse at 50% -10%, rgba(110,80,220,.04) 0%, transparent 60%); }
body.light .bg-glow-secondary { display: none; }
body.light nav { background: rgba(255,255,255,0.95); border-bottom: 1px solid rgba(0,0,0,.06); box-shadow: 0 1px 12px rgba(0,0,0,.05); }
body.light .logo { color: #0b091a; }
body.light .step { background: #ffffff; border-color: #e8e4f5; box-shadow: 0 1px 12px rgba(70,50,150,.06), 0 0 0 1px rgba(70,50,150,.04); }
body.light .step:hover { box-shadow: 0 4px 20px rgba(70,50,150,.1), 0 0 0 1px rgba(70,50,150,.08); }
body.light .result-card { background: #ffffff; border-color: #e8e4f5; box-shadow: 0 1px 12px rgba(70,50,150,.06); }
body.light .model-card { background: #ffffff; border-color: #e8e4f5; box-shadow: 0 1px 12px rgba(70,50,150,.06); }
body.light .bench-card { background: #ffffff; border-color: #e8e4f5; box-shadow: 0 1px 16px rgba(70,50,150,.07); }
body.light .pricing-card { background: #ffffff; border-color: #e0daf2; box-shadow: 0 2px 16px rgba(70,50,150,.06); }
body.light .pricing-card.featured { background: #ffffff; border-color: rgba(94,62,200,.3); box-shadow: 0 4px 28px rgba(94,62,200,.12), 0 0 0 1px rgba(94,62,200,.15); }
body.light .pricing-badge { background: var(--accent); }
body.light pre { color: #251e4a; }
body.light .code-block { background: #f0edff; border-color: #ddd9f0; }
body.light .code-block.winner { border-color: rgba(5,114,79,.25); }
body.light .code-header { border-bottom-color: #ddd9f0; }
body.light .dot { background: #ccc8e4; }
body.light .code-kw { color: #5e3ec8; }
body.light .code-fn { color: #1e52b8; }
body.light .code-st { color: #05724f; }
body.light .code-cm { color: #7a7598; }
body.light .code-nu { color: #c41e1e; }
body.light .term { background: #1a1830; box-shadow: 0 24px 64px rgba(80,60,160,.15); }
body.light .matrix-tabs { border-color: #ddd9f0; }
body.light .matrix-tab { border-right-color: #ddd9f0; background: #faf9ff; color: var(--muted); }
body.light .matrix-tab.active { background: #ffffff; color: var(--text-active); box-shadow: inset 0 -2px 0 var(--accent); }
body.light .matrix-panel { background: #ffffff; border: 1px solid #ddd9f0; border-top: none; }
body.light .result-bar { background: rgba(5,114,79,.04); border-color: rgba(5,114,79,.18); }
body.light .result-bar-num { color: var(--green); }
body.light .proof { border-color: #e8e4f5; background: #ffffff; box-shadow: 0 1px 12px rgba(70,50,150,.05); }
body.light .proof-item { border-right-color: #e8e4f5; }
body.light .install-cmd { background: #f0edff; border-color: #ddd9f0; }
body.light .install-copy { border-left-color: #ddd9f0; }
body.light .bench-stats { border-color: #ddd9f0; background: #faf9ff; }
body.light .bench-stat { border-right-color: #ddd9f0; }
body.light .bench-feat-icon { background: rgba(94,62,200,.07); border-color: rgba(94,62,200,.15); }
body.light .footer-cta { border-top-color: #e8e4f5; }
body.light footer { border-top-color: #e8e4f5; }
body.light .section-tag { background: rgba(94,62,200,.08); border-color: rgba(94,62,200,.2); color: var(--accent); }
body.light .bench-feat h4 { color: var(--text-active); }
body.light .product-card { background: #ffffff; border-color: #e8e4f5; box-shadow: 0 2px 20px rgba(70,50,150,.07); }
body.light .product-card.featured { border-color: rgba(94,62,200,.3); box-shadow: 0 4px 28px rgba(94,62,200,.1); }

.theme-toggle {
  background: transparent; border: 1px solid var(--border2);
  border-radius: 100px; padding: 5px 12px; color: var(--muted);
  font-size: 12px; cursor: pointer; transition: color .15s, border-color .15s;
  font-family: inherit;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }

html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(175,120,220,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(175,120,220,.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, black 20%, transparent 75%);
}
.bg-glow {
  position: fixed; top: -20%; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 700px; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(175,100,230,.08) 0%, rgba(120,80,200,.04) 50%, transparent 72%);
}
.bg-glow-secondary {
  position: fixed; bottom: 10%; right: -10%;
  width: 600px; height: 500px; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(200,100,180,.05) 0%, transparent 70%);
  filter: blur(20px);
}
nav, main, footer { position: relative; z-index: 1; }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px; height: 60px;
  background: rgba(7,7,13,0.82); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.logo { font-size: 17px; font-weight: 700; letter-spacing: 1.5px; color: #fff; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-link { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .15s; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-cta {
  background: var(--accent); color: #fff; padding: 7px 18px;
  border-radius: 7px; font-size: 13px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer; transition: opacity .15s;
}
.nav-cta:hover { opacity: .85; }

.hero {
  padding: 160px 56px 80px; max-width: 860px;
  margin: 0 auto; text-align: center;
}
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 28px;
}
h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800; letter-spacing: -2.5px; line-height: 1.02;
  margin-bottom: 28px; color: #fff;
}
h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #a09dff 0%, #4f8ef7 55%, #34d399 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 17px; color: var(--muted); max-width: 500px;
  margin: 0 auto 52px; line-height: 1.7;
}

.section { max-width: 900px; margin: 0 auto; padding: 100px 56px; }
.section-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
.section-h2 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 20px; color: #fff;
}
.section-sub { color: var(--muted); font-size: 16px; max-width: 480px; line-height: 1.65; }

.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 56px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: rgba(255,255,255,.02); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 24px;
  transition: box-shadow .2s;
}
.step:hover { box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.step-num {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(124,109,240,.12); border: 1px solid rgba(124,109,240,.2);
  color: var(--accent); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.step p  { font-size: 13px; color: var(--muted); line-height: 1.65; }
.step code {
  font-family: 'SF Mono','Fira Code',monospace; font-size: 11.5px;
  color: var(--accent); background: rgba(124,109,240,.1);
  border-radius: 4px; padding: 1px 5px;
}

.term {
  background: #0a0912; border: 1px solid rgba(124,109,240,.2);
  border-radius: 12px; overflow: hidden; font-family: 'SF Mono','Fira Code',monospace;
  font-size: 12px; box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.term-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.term-dot { width: 9px; height: 9px; border-radius: 50%; }
.term-title { margin-left: 8px; font-size: 11px; color: rgba(255,255,255,.3); letter-spacing: .5px; }
.term-body { padding: 20px 20px 24px; line-height: 2; }
.t-dim    { color: #3a3858; }
.t-muted  { color: #6a677e; }
.t-white  { color: #c8c5e0; }
.t-accent { color: #9170ee; }
.t-green  { color: #34d399; }
.t-yellow { color: #fbbf24; }
.t-red    { color: #f87171; }
.t-blue   { color: #5b96f5; }
.t-bold   { font-weight: 700; }

.install-cmd {
  background: var(--code-bg); border: 1px solid var(--border2);
  border-radius: 8px; padding: 12px 20px;
  font-family: 'SF Mono','Fira Code',monospace; font-size: 13px;
  color: var(--accent); letter-spacing: .3px; white-space: nowrap;
}
.install-copy {
  background: transparent; border: 1px solid var(--border2); color: var(--muted);
  border-radius: 8px; padding: 11px 16px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: color .15s, border-color .15s; white-space: nowrap;
}
.install-copy:hover { color: var(--text); border-color: var(--accent); }

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 56px; align-items: start;
}
@media (max-width: 800px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  background: rgba(255,255,255,.02); border: 1px solid var(--border);
  border-radius: 14px; padding: 32px 28px; position: relative;
}
.pricing-card.featured { border-color: rgba(124,109,240,.45); background: rgba(124,109,240,.06); }
.pricing-badge {
  position: absolute; top: -11px; left: 28px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; border-radius: 100px; padding: 3px 12px;
}
.pricing-tier { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.pricing-price { font-size: 40px; font-weight: 800; letter-spacing: -2px; color: #fff; line-height: 1; margin-bottom: 6px; }
.pricing-price span { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pricing-desc { font-size: 13px; color: var(--muted); margin-bottom: 28px; line-height: 1.55; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.pricing-features li { font-size: 13px; color: var(--text); display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.pricing-features li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.pricing-features li.muted { color: var(--muted); }
.pricing-features li.muted::before { content: "–"; color: var(--border2); }
.pricing-btn {
  display: block; text-align: center; width: 100%;
  padding: 12px; border-radius: 8px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: opacity .15s; cursor: pointer;
  border: none; font-family: inherit;
}
.pricing-btn.primary { background: var(--accent); color: #fff; }
.pricing-btn.primary:hover { opacity: .85; }
.pricing-btn.outline { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.pricing-btn.outline:hover { border-color: var(--accent); color: var(--accent); }

.footer-cta {
  text-align: center; padding: 100px 56px;
  border-top: 1px solid var(--border);
}
.footer-cta h2 {
  font-size: clamp(28px, 4vw, 52px); font-weight: 800;
  letter-spacing: -1.5px; margin-bottom: 18px; color: #fff;
}
.footer-cta p { color: var(--muted); font-size: 16px; margin-bottom: 44px; }

.waitlist { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.waitlist input {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  color: var(--text); border-radius: 8px;
  padding: 12px 18px; font-size: 14px; width: 270px;
  outline: none; transition: border-color .2s;
}
.waitlist input:focus { border-color: var(--accent); }
.waitlist input::placeholder { color: var(--muted); }
.waitlist button {
  background: var(--accent); color: #fff; border: none; border-radius: 8px;
  padding: 12px 22px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: opacity .15s; white-space: nowrap;
}
.waitlist button:hover { opacity: .88; }
.waitlist-note { font-size: 12px; color: var(--muted); margin-top: 12px; }
.success-msg { display: none; color: var(--green); font-size: 14px; font-weight: 600; }

footer {
  text-align: center; padding: 28px 56px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

.divider { border: none; border-top: 1px solid var(--border); }

.faq-list { margin-top: 52px; display: flex; flex-direction: column; gap: 6px; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: rgba(255,255,255,.02);
  border: none; cursor: pointer; padding: 22px 28px;
  font-size: 15px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; transition: background .15s; font-family: inherit;
}
.faq-q:hover { background: rgba(255,255,255,.04); }
.faq-icon {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--border2); color: var(--muted); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, border-color .2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--accent); color: var(--accent); }
.faq-a { display: none; padding: 20px 28px 22px; font-size: 14px; color: var(--muted); line-height: 1.75; border-top: 1px solid var(--border); }
.faq-item.open .faq-a { display: block; }

.code-block {
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.code-block.winner { border-color: rgba(52,211,153,.2); }
.code-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.code-header.slow { color: var(--red); }
.code-header.fast { color: var(--green); }
.code-dots { display: flex; gap: 5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border2); }
pre {
  padding: 20px; font-size: 12.5px;
  font-family: 'SF Mono','Fira Code','Cascadia Code',monospace;
  line-height: 1.75; overflow-x: auto; color: #b0b0cc;
}
.kw  { color: #a09dff; }
.fn  { color: #4f8ef7; }
.cm  { color: #3a3a5a; font-style: italic; }
.num { color: #f9a26c; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
  background: rgba(255,255,255,.03); border: 1px solid var(--border2);
  color: var(--muted); border-radius: 100px; padding: 5px 13px; font-size: 12px;
}

/* Product cards for home page */
.product-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 64px; }
@media (max-width: 700px) { .product-cards { grid-template-columns: 1fr; } }
.product-card {
  background: rgba(255,255,255,.02); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px 32px;
  transition: box-shadow .2s, border-color .2s;
  text-decoration: none; color: inherit; display: block;
}
.product-card:hover { border-color: var(--accent); box-shadow: 0 4px 28px rgba(124,109,240,.12); }
.product-card.featured { border-color: rgba(124,109,240,.35); background: rgba(124,109,240,.04); }
.product-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.product-label.free { color: var(--green); }
.product-card h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: #fff; margin-bottom: 12px; }
.product-card p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 28px; }
.product-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.product-features li { font-size: 13px; color: var(--text); display: flex; gap: 10px; }
.product-features li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }
.product-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--accent);
}
.product-cta.green { color: var(--green); }
