/* ===== Tokens ===== */
:root {
  --bg: #0b1020;
  --bg-alt: #0f1630;
  --panel: #131b38;
  --panel-2: #1a2344;
  --border: rgba(255,255,255,0.08);
  --text: #e7ecf6;
  --muted: #9aa6c2;
  --brand: #4361ee;
  --brand-2: #6d8bff;
  --green: #4ade80;
  --red: #f87171;
  --amber: #fbbf24;
  --radius: 16px;
  --maxw: 1120px;
  --shadow: 0 20px 50px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
a { color: inherit; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  padding: 0.7rem 1.15rem; border-radius: 10px; border: 1px solid transparent;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 8px 24px rgba(67,97,238,0.35); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); }
.btn-lg { padding: 0.95rem 1.5rem; font-size: 1.02rem; border-radius: 12px; }
.btn-block { width: 100%; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,16,32,0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); font-weight: 800; }
.brand-name { font-size: 1.02rem; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; flex-direction: column; gap: 5px; justify-content: center; align-items: center; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 88px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 620px;
  background:
    radial-gradient(700px 340px at 20% 10%, rgba(67,97,238,0.28), transparent 60%),
    radial-gradient(600px 320px at 85% 0%, rgba(74,222,128,0.16), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.pill {
  display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--brand-2);
  background: rgba(67,97,238,0.12); border: 1px solid rgba(67,97,238,0.35);
  padding: 0.35rem 0.85rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; max-width: 15ch; margin: 0 auto 1rem; }
.grad { background: linear-gradient(90deg, var(--brand-2), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 60ch; margin: 0 auto 1.75rem; }
.hero-cta { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }
.hero-note { color: var(--muted); font-size: 0.85rem; margin-top: 0.9rem; }

/* Hero visual — P&L card */
.hero-visual { margin: 3rem auto 0; max-width: 460px; }
.pnl-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.25rem 1.35rem; text-align: left;
}
.pnl-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.9rem; }
.tick { font-weight: 700; letter-spacing: 0.02em; }
.badge { font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 999px; }
.badge-open { background: rgba(74,222,128,0.15); color: var(--green); }
.pnl-rows { display: grid; gap: 0.55rem; }
.pnl-row { display: flex; justify-content: space-between; font-size: 0.95rem; color: var(--muted); }
.pnl-row b { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.pos { color: var(--green); }
.neg { color: var(--red); }
.pnl-net { border-top: 1px solid var(--border); margin-top: 0.4rem; padding-top: 0.7rem; color: var(--text); font-weight: 700; }
.pnl-net b { font-size: 1.05rem; }

/* ===== Trust strip ===== */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 22px 24px; text-align: center; }
.strip-inner div { display: flex; flex-direction: column; }
.strip-inner b { color: var(--text); font-size: 1.05rem; }
.strip-inner span { color: var(--muted); font-size: 0.82rem; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem; font-weight: 700; color: var(--brand-2); }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin-top: 0.5rem; }
.section-head p { color: var(--muted); }

/* ===== Features ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.feature {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; transition: transform .15s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(109,139,255,0.5); }
.ficon { font-size: 1.6rem; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(67,97,238,0.12); margin-bottom: 0.9rem; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.4rem; position: relative; }
.step-n { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; font-weight: 800; color: #fff; background: linear-gradient(180deg, var(--brand-2), var(--brand)); margin-bottom: 0.9rem; }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--muted); margin: 0; }

/* ===== Pricing ===== */
.billing-toggle { display: inline-flex; gap: 4px; padding: 5px; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; margin: 0 auto 2.4rem; }
.section .billing-toggle { display: flex; width: max-content; margin-left: auto; margin-right: auto; }
.bt-option { border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 0.92rem; padding: 0.5rem 1.1rem; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; }
.bt-option.is-active { background: var(--brand); color: #fff; }
.save { font-size: 0.72rem; font-weight: 700; color: var(--green); }
.bt-option.is-active .save { color: #d9ffe8; }

.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 760px; margin: 0 auto; }
.price-card { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.9rem 1.7rem; display: flex; flex-direction: column; }
.price-card--featured { border-color: rgba(109,139,255,0.6); box-shadow: 0 0 0 1px rgba(109,139,255,0.25), var(--shadow); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 0.28rem 0.8rem; border-radius: 999px; }
.price-card h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.price-sub { color: var(--muted); font-size: 0.92rem; }
.price { display: flex; align-items: baseline; gap: 0.35rem; margin: 0.6rem 0 0.15rem; }
.amount { font-size: 2.7rem; font-weight: 800; letter-spacing: -0.03em; }
.per { color: var(--muted); font-weight: 600; }
.price-period { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.2rem; }
.price-feats { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.6rem; }
.price-feats li { position: relative; padding-left: 1.6rem; color: var(--text); font-size: 0.95rem; }
.price-feats li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.price-card .btn { margin-top: auto; }
.price-fineprint { color: var(--muted); font-size: 0.78rem; text-align: center; margin: 0.7rem 0 0; }
.pricing-footnote { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 1.8rem; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 0.75rem; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 0.2rem 1.2rem; }
.faq summary { cursor: pointer; font-weight: 600; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-2); font-size: 1.3rem; font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 1rem; }

/* ===== CTA ===== */
.cta { padding: 80px 0; background: radial-gradient(700px 300px at 50% 0%, rgba(67,97,238,0.25), transparent 60%); }
.cta-inner { text-align: center; }
.cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
.cta p { color: var(--muted); margin-bottom: 1.6rem; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 44px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.8rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; }
.footer-tag { color: var(--muted); max-width: 46ch; margin: 0; font-size: 0.92rem; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-legal { color: #6b768f; font-size: 0.78rem; margin: 0.4rem 0 0; }

/* ===== Reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0.5rem; padding: 1rem 24px 1.4rem; background: rgba(11,16,32,0.98);
    border-bottom: 1px solid var(--border); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 0.5rem 0; }
  .nav-links .btn { width: 100%; }
  .feature-grid, .steps, .pricing-grid, .strip-inner { grid-template-columns: 1fr; }
  .strip-inner { gap: 1.4rem; }
  .section { padding: 60px 0; }
  .hero { padding: 56px 0 30px; }
}
