:root {
  --bg: #0b1020;
  --bg-alt: #10162c;
  --panel: #151d38;
  --panel-2: #1b2547;
  --border: #26304f;
  --text: #e7ecf7;
  --muted: #97a3c0;
  --brand: #5b8cff;
  --brand-2: #8a6bff;
  --good: #37d399;
  --warn: #f4b740;
  --bad: #ff6b7a;
  --radius: 14px;
  --maxw: 1120px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(139, 149, 200, 0.14);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--brand); margin-right: 4px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}
.btn-primary:hover { color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--text); }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 60px;
  background:
    radial-gradient(1000px 500px at 70% -10%, rgba(91, 140, 255, 0.16), transparent 60%),
    radial-gradient(800px 400px at 10% 0%, rgba(138, 107, 255, 0.12), transparent 55%);
  text-align: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 14px;
}
.hero h1 em { color: var(--brand); font-style: normal; }
.lede {
  max-width: 720px;
  margin: 0 auto 8px;
  font-size: 1.15rem;
  color: var(--muted);
}
.lede strong { color: var(--text); font-weight: 600; }
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 30px 0 14px;
  flex-wrap: wrap;
}
.hero-note { color: var(--muted); font-size: 0.9rem; margin: 0 0 44px; }

/* ---------- Hero panel (mock dashboard) ---------- */
.hero-panel {
  max-width: 860px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 10px 0;
  text-align: left;
  overflow: hidden;
}
.panel-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 2fr;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.panel-row span:nth-child(n+2) { text-align: right; }
.panel-row span:last-child { text-align: right; color: var(--muted); }
.panel-head {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.panel-head span:last-child { color: var(--muted); }
.good { color: var(--good); font-weight: 600; }
.warn { color: var(--warn); font-weight: 600; }
.bad { color: var(--bad); font-weight: 600; }
.panel-tip {
  background: var(--panel-2);
  margin: 0 -10px;
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--text);
  border-top: 1px solid var(--border);
}
.panel-tip strong { color: var(--brand); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { text-align: center; }
.section-lede {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
}
.section-lede em { color: var(--text); font-style: italic; }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.feature-ico { font-size: 1.6rem; margin-bottom: 10px; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0 40px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.96rem; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-inner h2 { margin-bottom: 8px; }
.cta-inner p { color: var(--muted); margin: 0 0 24px; font-size: 1.1rem; }

/* ---------- Pricing ---------- */
.pricing-hero {
  padding: 72px 0 20px;
  text-align: center;
  background: radial-gradient(900px 400px at 50% -10%, rgba(91, 140, 255, 0.14), transparent 60%);
}
.pricing-hero .lede { margin-bottom: 26px; }
.billing-toggle {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.bt-opt {
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 18px;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bt-opt.active { background: var(--panel-2); color: var(--text); }
.save-badge {
  background: rgba(55, 211, 153, 0.16);
  color: var(--good);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.pricing-section { padding-top: 44px; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}
.price-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
}
.price-card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow);
}
.badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.price-sub { color: var(--muted); font-size: 0.92rem; margin: 0 0 18px; min-height: 40px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.price .per { color: var(--muted); font-weight: 600; }
.price-annual-note { color: var(--good); font-size: 0.84rem; margin: 4px 0 18px; min-height: 20px; visibility: hidden; }
.price-annual-note.show { visibility: visible; }
.price-feats { list-style: none; padding: 0; margin: 22px 0 0; }
.price-feats li {
  padding: 8px 0 8px 26px;
  position: relative;
  color: var(--muted);
  font-size: 0.94rem;
  border-top: 1px solid var(--border);
}
.price-feats li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 700;
}
.price-feats li strong { color: var(--text); }
.price-card .btn { margin-top: 6px; }
.price-footnote { text-align: center; color: var(--muted); margin-top: 34px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq h2 { margin-bottom: 32px; }
.faq-item { margin-bottom: 24px; }
.faq-item h3 { font-size: 1.08rem; margin-bottom: 4px; }
.faq-item p { color: var(--muted); margin: 0; }

/* ---------- Login ---------- */
.login-body { display: flex; flex-direction: column; min-height: 100vh; }
.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background: radial-gradient(700px 400px at 50% 0%, rgba(91, 140, 255, 0.12), transparent 60%);
}
.login-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 34px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow);
}
.login-mark { font-size: 2rem; color: var(--brand); margin-bottom: 6px; }
.login-card h1 { font-size: 1.6rem; margin-bottom: 10px; }
.login-soon-badge {
  display: inline-block;
  background: rgba(91, 140, 255, 0.16);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.login-copy { color: var(--muted); font-size: 0.96rem; margin: 0 0 26px; }
.login-form { text-align: left; }
.login-form label { display: block; margin-bottom: 14px; }
.login-form label span { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.login-form input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
}
.login-form .btn { margin-top: 8px; }
.login-alt { margin: 22px 0 0; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 40px 0 24px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-tag { color: var(--muted); font-size: 0.92rem; margin: 8px 0 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.94rem; }
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .feature-grid, .steps, .price-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { width: 100%; }
  .panel-row { grid-template-columns: 1.3fr 0.8fr 0.9fr; }
  .panel-row span:last-child { display: none; }
  .panel-head span:last-child { display: none; }
}
