:root {
  --bg: #0b1020;
  --bg-soft: #121a33;
  --card: #16203c;
  --line: #24325c;
  --text: #e8ecff;
  --muted: #9aa6c9;
  --brand: #5b8cff;
  --brand-2: #7c5cff;
  --accent: #37e0a6;
  --radius: 16px;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

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

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 720px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.logo span { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; transition: color .15s; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: 12px; border: 0; cursor: pointer;
  transition: transform .12s, box-shadow .2s, opacity .2s;
  box-shadow: 0 8px 24px rgba(91, 140, 255, 0.35);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(91, 140, 255, 0.45); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-ghost {
  background: transparent; border: 1px solid var(--line); box-shadow: none; color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand); box-shadow: none; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 84px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 520px;
  background: radial-gradient(600px 300px at 50% 0%, rgba(124, 92, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.pill {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(55, 224, 166, 0.1); border: 1px solid rgba(55, 224, 166, 0.25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -0.03em; }
.lead { color: var(--muted); font-size: 1.15rem; margin: 20px auto 0; max-width: 640px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.micro { color: var(--muted); font-size: 0.85rem; margin-top: 16px; }
.center { text-align: center; }

/* Sections */
.section { padding: 72px 0; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; text-align: center; }
.section-sub { color: var(--muted); text-align: center; margin: 12px auto 40px; max-width: 560px; }

.problem { padding: 56px 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem h2 { text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 36px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .15s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: #2f3f70; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }

.feature .icon { font-size: 1.6rem; margin-bottom: 12px; }

/* Steps */
.step { text-align: center; padding: 20px; }
.step span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; font-weight: 700;
  background: rgba(91, 140, 255, 0.15); color: var(--brand);
  border: 1px solid rgba(91, 140, 255, 0.35); margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* Demos */
.demos { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; transition: transform .15s, border-color .2s;
}
.demo-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.tag {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); font-weight: 700;
}
.demo-card h3 { font-size: 1.3rem; margin: 10px 0 8px; }
.demo-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.demo-card .link { color: var(--brand); font-weight: 600; }

/* Pricing */
.price { position: relative; }
.price.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.price .amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; }
.price .amount span { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.price-sub { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 18px; }
.price ul { list-style: none; margin: 0 0 22px; }
.price li { padding: 8px 0 8px 26px; position: relative; color: var(--muted); font-size: 0.95rem; border-top: 1px solid var(--line); }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.badge {
  position: absolute; top: -12px; right: 20px; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: #0b1020;
  background: var(--accent); padding: 4px 12px; border-radius: 999px;
}

/* Contact */
.contact { background: var(--bg-soft); border-top: 1px solid var(--line); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form textarea {
  width: 100%; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 13px 15px; color: var(--text); font: inherit;
  transition: border-color .15s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); }
.form input::placeholder, .form textarea::placeholder { color: #6b789e; }
.form textarea { resize: vertical; }
#formNote { min-height: 1.2em; }
#formNote.ok { color: var(--accent); }
#formNote.err { color: #ff6b6b; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .form .row { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .section { padding: 56px 0; }
}
