:root {
  --bg: #040817;
  --bg-2: #0a1228;
  --card: rgba(11, 19, 43, 0.78);
  --card-soft: rgba(255, 255, 255, 0.045);
  --line: rgba(163, 189, 255, 0.14);
  --line-strong: rgba(163, 189, 255, 0.22);
  --text: #eff4ff;
  --muted: #a8b5d5;
  --primary: #3376ff;
  --primary-2: #9a63ff;
  --success: #62d8aa;
  --danger: #ff9eaa;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --radius: 26px;
  --radius-sm: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(61, 112, 255, 0.20), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(154, 99, 255, 0.17), transparent 24%),
    linear-gradient(180deg, #030611 0%, #050917 36%, #060a16 100%);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow { max-width: 820px; }
.narrow-screen { max-width: 760px; }

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 34%, transparent 84%);
}
.ambient {
  position: fixed;
  width: 360px;
  height: 360px;
  z-index: 0;
  filter: blur(90px);
  pointer-events: none;
  opacity: .34;
}
.ambient-a { top: 10%; left: -70px; background: #2669ff; }
.ambient-b { bottom: 12%; right: -90px; background: #8f5cff; }

main, footer { position: relative; z-index: 1; }
.section { padding: 74px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(4, 9, 21, 0.64);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}
.brand img { width: 42px; height: 42px; }
nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 500;
}
nav a:hover, .footer-links a:hover { color: #fff; }

h1, h2, h3 { margin: 0 0 14px; }
h1 {
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
h3 { font-size: 24px; }
.page-title { font-size: clamp(38px, 5vw, 66px); }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #8eaefc;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
}
.lead, .section-sub, .info-card p, .feature-copy p, .mini-card p, .demo-note, .pricing p, .legal-card p, .rich-text li, .contact-copy p, .screen-copy p {
  color: var(--muted);
  line-height: 1.72;
}
.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, #88b8ff 48%, #be7eff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.center { text-align: center; }
.center-actions { justify-content: center; }
.section-head { margin: 0 auto 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #497eff 42%, var(--primary-2));
  box-shadow: 0 18px 46px rgba(76, 102, 255, 0.34);
}
.btn-secondary, .btn-ghost {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(255,255,255,.03);
}
.full { width: 100%; }

.glass, .glass-soft {
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.glass {
  background: linear-gradient(180deg, rgba(11, 19, 43, 0.88), rgba(9, 14, 30, 0.8));
  border-radius: var(--radius);
}
.glass-soft {
  background: var(--card-soft);
  border-radius: 20px;
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 40px;
  align-items: center;
  padding: 74px 0 50px;
}
.hero-actions, .hero-badges, .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}
.hero-badges span, .chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04);
  color: #e4ecff;
  font-size: 14px;
}
.hero-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
}
.hero-stats div { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.025); }
.hero-stats strong { display: block; margin-bottom: 6px; }
.hero-stats small { color: var(--muted); }
.visual-card { padding: 14px; }
.visual-card img { width: 100%; border-radius: 22px; }
.hero-shot { max-width: 560px; margin: 0 auto; }

.card-grid {
  display: grid;
  gap: 18px;
}
.three-up { grid-template-columns: repeat(3, 1fr); }
.four-up { grid-template-columns: repeat(4, 1fr); }
.single-gap { gap: 12px; }
.info-card, .pricing, .simulator-card, .legal-card, .contact-form { padding: 24px; }
.info-card h3, .mini-card strong { margin-bottom: 10px; display: block; }
.mini-card { padding: 18px; }

.feature-stack { display: grid; gap: 22px; }
.feature-row {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: 28px;
  align-items: center;
  padding: 24px;
}
.feature-row.reverse { grid-template-columns: .92fr 1fr; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-media { order: 1; }
.feature-media img { width: 100%; max-width: 420px; margin: 0 auto; border-radius: 20px; }

.use-cases { padding-top: 38px; }
.demo-shell {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 18px;
  padding: 22px;
}
.demo-controls { padding: 22px; }
label { display: block; color: #d8e4ff; font-weight: 600; }
input, select, textarea {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04);
  color: #fff;
  outline: none;
}
textarea { min-height: 140px; resize: vertical; }
.conversation { padding: 22px; }
.conversation-top, .demo-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.conversation-top { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.status-live { color: var(--success); font-weight: 800; letter-spacing: .08em; }
.demo-bubble {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(173,205,255,.14);
}
.demo-bubble small { display: block; margin-bottom: 8px; color: #9bc0ff; text-transform: uppercase; letter-spacing: .08em; }
.demo-bubble strong { font-size: 20px; line-height: 1.36; }
.bubble-out { background: linear-gradient(180deg, rgba(44,99,255,.22), rgba(19,39,100,.34)); }
.bubble-in { background: linear-gradient(180deg, rgba(143,92,255,.22), rgba(32,20,85,.34)); }
.demo-footer-row { margin-top: 18px; flex-wrap: wrap; }

.cta {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: center;
  padding: 24px;
}
.waitlist-form small, #checkoutMsg, #contactSuccess { display: block; min-height: 22px; color: var(--success); }
.error { color: var(--danger) !important; }

.app-hero-block { padding-bottom: 12px; }
.preview-layout {
  display: grid;
  grid-template-columns: .96fr 1.04fr;
  gap: 20px;
  padding: 24px;
}
.preview-sidebar { display: flex; flex-direction: column; gap: 18px; }
.screen-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.screen-tab {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  color: #eef4ff;
  padding: 12px 14px;
  font-weight: 600;
  cursor: pointer;
}
.screen-tab.active {
  background: linear-gradient(135deg, rgba(51,118,255,.28), rgba(154,99,255,.24));
  border-color: rgba(169,198,255,.34);
}
.screen-copy { padding: 20px; }
.preview-stage { display: flex; align-items: center; justify-content: center; }
.screen-shot { max-width: 520px; margin: 0 auto; }
.simulator-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.pricing-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pricing.featured { border-color: rgba(154,99,255,.42); transform: translateY(-8px); }
.plan-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(83,125,255,.16);
  color: #9fc3ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pricing ul { padding-left: 18px; color: #d7e6ff; line-height: 1.8; }

.contact-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 20px;
  padding: 24px;
}
.contact-copy { padding: 8px 6px 8px 8px; }
.contact-form { display: grid; align-content: start; }

.legal { padding-top: 86px; }
.rich-text h2 { margin-top: 28px; font-size: 22px; }
.rich-text h2:first-child { margin-top: 0; }
.rich-text p { margin: 0 0 12px; }
.rich-text a { color: #a9c4ff; text-decoration: underline; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-word; }

.site-footer { margin-top: 28px; border-top: 1px solid var(--line); }
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 44px;
  color: var(--muted);
}
.footer-logo { width: 34px; height: 34px; margin-bottom: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 1080px) {
  .hero,
  .three-up,
  .four-up,
  .feature-row,
  .feature-row.reverse,
  .demo-shell,
  .cta,
  .preview-layout,
  .simulator-grid,
  .pricing-wrap,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-media { order: initial; }
  .pricing.featured { transform: none; }
}
@media (max-width: 780px) {
  nav { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
  .screen-tabs { grid-template-columns: 1fr; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding-top: 52px; }
  .brand img { width: 38px; height: 38px; }
  h1 { font-size: 54px; }
}