:root {
  --bg: #0a0f1f;
  --bg-2: #0e1430;
  --panel: #121a38;
  --panel-2: #172145;
  --line: #263159;
  --text: #eaf0ff;
  --muted: #99a6c9;
  --brand: #6aa6ff;
  --brand-2: #5ef0c6;
  --accent: #9b7bff;
  --warn: #ffd166;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 22px 64px rgba(2, 6, 23, 0.6);
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 82% -10%, rgba(106, 166, 255, 0.18), transparent 60%),
    radial-gradient(900px 520px at -5% 5%, rgba(94, 240, 198, 0.10), transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Sora", "Inter", sans-serif; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grad { background: linear-gradient(100deg, var(--brand) 5%, var(--brand-2) 55%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid transparent; border-radius: 999px;
  padding: .62rem 1.15rem; font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .65; cursor: default; }
.btn-primary { background: linear-gradient(100deg, var(--brand), var(--accent)); color: #08122b; box-shadow: 0 10px 30px rgba(106, 166, 255, .35); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 14px 40px rgba(106, 166, 255, .5); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--brand); }
.btn-lg { padding: .85rem 1.5rem; font-size: 1.02rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: rgba(10, 15, 31, .72); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 1.2rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-family: "Sora", sans-serif; font-size: 1.15rem; }
.brand-mark { width: 24px; height: 24px; border-radius: 8px; background: conic-gradient(from 140deg, var(--brand), var(--brand-2), var(--accent), var(--brand)); position: relative; box-shadow: 0 0 0 4px rgba(106,166,255,.14); }
.brand-mark::after { content: ""; position: absolute; inset: 7px; background: var(--bg); border-radius: 4px; }
.brand-accent { color: var(--brand-2); }
.nav-links { display: flex; gap: 1.4rem; margin-left: 1rem; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: .6rem; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* Sections */
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); font-weight: 700; margin-bottom: .6rem; }
.section-head { max-width: 700px; margin: 0 auto 2.4rem; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--muted); }
section { padding: 84px 0; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.12fr .88fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 48ch; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0 1.8rem; }
.hero-stats { list-style: none; display: flex; gap: 2rem; padding: 0; margin: 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Sora", sans-serif; font-size: 1.35rem; }
.hero-stats span { color: var(--muted); font-size: .85rem; }

.hero-card { position: relative; }
.hero-card-glow { position: absolute; inset: -12% -6%; background: radial-gradient(closest-side, rgba(106,166,255,.35), transparent); filter: blur(40px); z-index: 0; }
.mini { position: relative; z-index: 1; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.mini-head { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.mini-head .dot { width: 10px; height: 10px; border-radius: 50%; background: #2b3666; }
.mini-head .dot:nth-child(1){ background:#ff6b81;} .mini-head .dot:nth-child(2){ background:#ffd166;} .mini-head .dot:nth-child(3){ background:#5ef0c6;}
.mini-title { margin-left: auto; font-size: .82rem; color: var(--muted); }
.mini-prompt { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .95rem; }
.mini-steps { margin: 12px 0; display: grid; gap: 8px; }
.mini-step { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: #d6deff; }
.mini-step span { width: 22px; height: 22px; flex: none; border-radius: 7px; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: #08122b; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.mini-foot { color: var(--muted); font-size: .78rem; }

/* Solver */
.solver { background: linear-gradient(180deg, transparent, rgba(18,26,56,.5)); }
.solver-box { max-width: 860px; margin: 0 auto; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.type-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 12px; }
.type-chip { background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: .4rem .8rem; font-size: .85rem; cursor: pointer; font-family: inherit; }
.type-chip:hover { color: var(--text); border-color: var(--brand); }
.type-chip.active { background: linear-gradient(100deg, rgba(106,166,255,.18), rgba(155,123,255,.18)); border-color: var(--brand); color: var(--text); }
.solver-box textarea { width: 100%; resize: vertical; background: rgba(6,10,24,.6); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; font: inherit; }
.solver-box textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(106,166,255,.2); }
.solver-row { display: flex; align-items: center; gap: 1rem; margin-top: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; flex: 1; }
.chip { background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: .35rem .75rem; font-size: .82rem; cursor: pointer; font-family: inherit; }
.chip:hover { color: var(--text); border-color: var(--brand); }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(8,18,43,.4); border-top-color: #08122b; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.solver-output { max-width: 860px; margin: 22px auto 0; }
.sol { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.sol .sol-restate { font-size: 1.05rem; color: var(--text); border-left: 3px solid var(--brand); padding-left: 14px; margin-bottom: 18px; }
.sol h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-2); margin: 18px 0 10px; }
.sol .approach { color: #d6deff; }
.sol ol.steps-list { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.sol ol.steps-list li { counter-increment: s; position: relative; padding: 12px 14px 12px 48px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: var(--radius-sm); color: #e4eaff; }
.sol ol.steps-list li::before { content: counter(s); position: absolute; left: 12px; top: 12px; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-weight: 700; font-size: .82rem; color: #08122b; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.sol ul.pitfalls { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sol ul.pitfalls li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.sol ul.pitfalls li::before { content: "⚠"; position: absolute; left: 0; color: var(--warn); }
.sol .next { background: rgba(94,240,198,.08); border: 1px solid rgba(94,240,198,.3); border-radius: var(--radius-sm); padding: 14px 16px; color: #cdeee8; margin-top: 18px; }
.sol .next strong { color: #fff; }
.sol-foot { margin-top: 16px; color: var(--muted); font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.solver-loading { text-align: center; color: var(--muted); padding: 26px; }
.solver-error { background: rgba(255,107,129,.1); border: 1px solid rgba(255,107,129,.4); color: #ffd2d9; border-radius: var(--radius-sm); padding: 16px; }

/* How */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-num { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-family: "Sora", sans-serif; color: #08122b; background: linear-gradient(135deg, var(--brand), var(--brand-2)); margin-bottom: 12px; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; }

/* Examples */
.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ex-card { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .15s ease, border-color .2s ease; }
.ex-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.ex-emoji { font-size: 1.6rem; }
.ex-card h3 { font-size: 1.05rem; margin: .5rem 0 .3rem; }
.ex-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.price-card { position: relative; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.price-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.price-card .badge { position: absolute; top: -12px; left: 26px; background: linear-gradient(100deg, var(--brand), var(--accent)); color: #08122b; font-size: .72rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; }
.price-card h3 { font-size: 1.2rem; }
.price { display: flex; align-items: baseline; gap: .3rem; margin: .4rem 0 .2rem; }
.price .amount { font-family: "Sora", sans-serif; font-size: 2.4rem; }
.price .per { color: var(--muted); font-size: .9rem; }
.price-desc { color: var(--muted); font-size: .92rem; }
.price-card ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .55rem; }
.price-card li { padding-left: 1.5rem; position: relative; color: var(--text); font-size: .94rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-2); font-weight: 700; }
.price-card .btn { width: 100%; }

/* About */
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.about-copy p { color: var(--muted); }
.about-badges { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.about-badges span { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; font-size: .82rem; color: var(--text); }
.about-card { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.about-card h3 { font-size: 1.2rem; }
.about-card p { color: var(--muted); }
.contact-line { display: block; color: var(--brand); font-weight: 600; margin-bottom: .35rem; }
.subscribe { display: flex; gap: .5rem; margin-top: 1.2rem; flex-wrap: wrap; }
.subscribe input { flex: 1; min-width: 180px; background: rgba(6,10,24,.6); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: .65rem 1rem; font: inherit; }
.subscribe input:focus { outline: none; border-color: var(--brand); }
.subscribe-note { color: var(--brand-2); margin-top: .6rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 54px 0 26px; background: rgba(6,10,24,.5); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 30px; }
.footer-brand p { color: var(--muted); max-width: 30ch; margin-top: .6rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-cols h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .8rem; }
.footer-cols a { display: block; color: var(--text); font-size: .92rem; margin-bottom: .45rem; }
.footer-cols a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Legal */
.legal { max-width: 760px; margin: 0 auto; padding: 60px 0; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.2rem; margin-top: 1.8rem; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--brand); }
.back-link { color: var(--brand); display: inline-block; margin-bottom: 1.5rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .about-inner { grid-template-columns: 1fr; }
  .steps, .price-grid, .ex-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); padding: 16px 22px; border-bottom: 1px solid var(--line); }
  .nav.open .nav-cta { display: flex; position: absolute; top: 246px; left: 0; right: 0; padding: 0 22px 16px; background: var(--bg-2); }
}
@media (max-width: 560px) {
  .steps, .price-grid, .ex-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.2rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
