/* ===== Design tokens ===== */
:root {
  --bg: #0b0f1a;
  --bg-soft: #111726;
  --surface: #151c2e;
  --surface-2: #1b2438;
  --border: #232c43;
  --text: #e9edf6;
  --muted: #9aa6c0;
  --brand: #6d8bff;
  --brand-2: #a06bff;
  --brand-3: #46d6c8;
  --grad: linear-gradient(120deg, #6d8bff, #a06bff 55%, #46d6c8);
  --radius: 16px;
  --maxw: 1140px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; }

.section { padding: 96px 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(109, 139, 255, .12);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  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-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--grad);
  color: #0b0f1a;
  box-shadow: 0 10px 30px -10px rgba(109, 139, 255, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(160, 107, 255, .8); }

.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--brand); color: #fff; background: rgba(109, 139, 255, .08); }

.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: #fff; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 26, .6);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(11, 15, 26, .85);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--grad);
  box-shadow: 0 6px 18px -6px rgba(160, 107, 255, .8);
}

.nav { display: flex; gap: 30px; }
.nav a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav a:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 90px 0 80px; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute; inset: -200px 0 auto 0; height: 600px;
  background: radial-gradient(600px 300px at 20% 0%, rgba(109,139,255,.22), transparent 70%),
              radial-gradient(500px 300px at 85% 10%, rgba(160,107,255,.18), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(40px, 6vw, 66px); margin-bottom: 20px; }
.lead { font-size: 19px; color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* Mock window */
.hero-visual { position: relative; }
.mock-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-bar { display: flex; gap: 8px; padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f56; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #27c93f; }
.mock-body { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 20px; }
.mock-sidebar { display: flex; flex-direction: column; gap: 12px; }
.mock-line { height: 10px; border-radius: 6px; background: var(--surface-2); }
.mock-line.active { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.mock-main { display: flex; flex-direction: column; gap: 16px; }
.mock-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mock-bar-fill { height: 8px; border-radius: 6px; background: var(--surface); position: relative; overflow: hidden; }
.mock-bar-fill::after { content: ''; position: absolute; inset: 0; width: var(--pct); background: var(--grad); border-radius: 6px; }
.mock-tag { font-size: 12px; color: var(--brand-3); font-weight: 600; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-tile { height: 60px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }

.float-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}
.badge-1 { top: 18%; left: -34px; color: var(--brand-3); }
.badge-2 { bottom: 14%; right: -28px; color: var(--brand); animation-delay: 1.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== Logos ===== */
.logos { padding: 40px 0; border-block: 1px solid var(--border); }
.logos-label { text-align: center; color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 22px; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px; opacity: .75; }
.logos-row span { font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--muted); }

/* ===== Features ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(109,139,255,.5); box-shadow: var(--shadow); }
.feature-icon { font-size: 30px; margin-bottom: 14px; }
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 15px; }

/* ===== How it works ===== */
.how { background: var(--bg-soft); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 26px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--grad); color: #0b0f1a; font-weight: 800; font-size: 18px;
  margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ===== Stats ===== */
.stats { padding: 70px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { display: block; font-size: clamp(34px, 5vw, 52px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -.03em; }
.stat-label { color: var(--muted); font-size: 15px; }

/* ===== Pricing ===== */
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 44px; }
.bt-label { color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s; }
.bt-label.active { color: #fff; }
.bt-label em { color: var(--brand-3); font-style: normal; font-size: 13px; }
.switch { width: 52px; height: 28px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); position: relative; cursor: pointer; transition: background .2s; }
.switch.on { background: var(--grad); border-color: transparent; }
.knob { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s ease; }
.switch.on .knob { transform: translateX(24px); }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; }
.price-card.featured { border-color: var(--brand); box-shadow: 0 20px 60px -24px rgba(109,139,255,.6); transform: translateY(-8px); }
.popular { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #0b0f1a; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.price-card h3 { font-size: 20px; margin-bottom: 6px; }
.price-desc { color: var(--muted); font-size: 14px; margin-bottom: 20px; min-height: 40px; }
.price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 22px; }
.amount { font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.per { color: var(--muted); font-size: 15px; }
.price-feats { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.price-feats li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15px; }
.price-feats li::before { content: '✓'; position: absolute; left: 0; color: var(--brand-3); font-weight: 800; }

/* ===== FAQ ===== */
.faq-inner { max-width: 760px; }
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.acc-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.acc-icon { font-size: 22px; color: var(--brand); transition: transform .25s; flex-shrink: 0; }
.acc-item.open .acc-icon { transform: rotate(45deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-a p { padding: 0 22px 18px; color: var(--muted); }

/* ===== CTA ===== */
.cta { padding: 90px 0; }
.cta-inner {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px 32px;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px 200px at 50% -20%, rgba(160,107,255,.25), transparent 70%);
  pointer-events: none;
}
.cta-inner h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; position: relative; }
.cta-inner > p { color: var(--muted); font-size: 18px; margin-bottom: 28px; position: relative; }
.cta-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-form input {
  flex: 1; min-width: 240px; max-width: 320px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; color: var(--text); font-family: inherit; font-size: 15px;
}
.cta-form input:focus { outline: none; border-color: var(--brand); }
.cta-msg { margin-top: 16px; color: var(--brand-3); font-weight: 600; min-height: 20px; position: relative; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--muted); margin-top: 12px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-size: 15px; margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.socials { display: flex; gap: 14px; }
.socials a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 9px; transition: .2s; }
.socials a:hover { border-color: var(--brand); color: #fff; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .float-badge { display: none; }
  .feature-grid, .steps, .price-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 12px 24px;
  }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; }
}
