:root {
  color-scheme: dark;
  --bg: #05070d;
  --neon: #22d3ee;
  --neon-2: #a855f7;
  --neon-3: #60a5fa;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --panel: rgba(15, 23, 42, 0.84);
  --panel-2: rgba(2, 6, 23, 0.65);
  --border: rgba(148, 163, 184, 0.14);
  --glow: 0 0 18px rgba(34, 211, 238, 0.28);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(1200px 700px at 14% 12%, rgba(168, 85, 247, 0.18), transparent 55%),
    radial-gradient(900px 540px at 78% 8%, rgba(34, 211, 238, 0.17), transparent 60%),
    radial-gradient(800px 520px at 60% 82%, rgba(96, 165, 250, 0.12), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.neon-bg {
  position: fixed;
  width: 460px;
  height: 460px;
  top: -140px;
  right: -120px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35), rgba(5, 7, 13, 0) 70%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(34, 211, 238, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(226, 232, 240, 0.03),
    rgba(226, 232, 240, 0.03) 1px,
    transparent 1px,
    transparent 6px
  );
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 6vw;
  position: relative;
  z-index: 2;
}

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

.brand-logo {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.55));
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 800;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-actions a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
}

.ghost {
  color: var(--muted);
  opacity: 0.9;
}

.ghost:hover {
  opacity: 1;
  color: #e6f6ff;
}

.primary,
.outline {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary {
  background: linear-gradient(120deg, var(--neon), #6366f1);
  color: #05070d;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(34, 211, 238, 0.16), 0 12px 30px rgba(99, 102, 241, 0.35);
}

.primary:focus-visible,
.outline:focus-visible,
.example:focus-visible,
.top-actions a:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.85);
  outline-offset: 3px;
}

.outline {
  border: 1px solid rgba(34, 211, 238, 0.6);
  color: var(--text);
  background: rgba(2, 6, 23, 0.25);
}

.outline:hover {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: var(--glow);
}

.hero {
  display: grid;
  gap: 40px;
  padding: 40px 6vw 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 3vw + 1rem, 3.6rem);
  margin-bottom: 18px;
}

.hero-content p {
  color: #cbd5f5;
  line-height: 1.6;
  max-width: 520px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.4);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}


.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #dbeafe;
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.6);
}

.hero-panel {
  background: var(--panel);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.8);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: radial-gradient(1200px 360px at 20% 10%, rgba(34, 211, 238, 0.16), transparent 55%),
    radial-gradient(1000px 420px at 80% 0%, rgba(168, 85, 247, 0.16), transparent 60%);
  pointer-events: none;
}

.panel-header {
  font-weight: 800;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--neon);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.7);
}


.chat {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.12);
  position: relative;
  z-index: 1;
}

.bubble {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.45;
  position: relative;
}

.bubble-user {
  justify-self: end;
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.16), rgba(99, 102, 241, 0.16));
  border: 1px solid rgba(34, 211, 238, 0.22);
}

.bubble-bot {
  justify-self: start;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.bubble-typed {
  min-height: 44px;
}

.negative {
  color: #f43f5e;
}

.positive {
  color: var(--neon);
}

.panel-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  margin: 16px 0 8px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.panel-bar-fill {
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, var(--neon), var(--neon-2));
}

.panel-footer {
  font-size: 0.85rem;
  color: #a5b4fc;
  position: relative;
  z-index: 1;
}

.mini-stats {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
  z-index: 1;
}

.mini {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  padding: 12px;
}

.mini span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.mini strong {
  font-size: 1.1rem;
}

.mini .neon {
  color: var(--neon);
}

.section {
  padding: 60px 6vw 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.section-lead {
  color: #cbd5f5;
  line-height: 1.6;
  max-width: 820px;
  margin-top: -12px;
  margin-bottom: 22px;
}

.feature-grid {
  display: grid;
  gap: 16px;
}

.feature-grid article {
  background: rgba(15, 23, 42, 0.72);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.65);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-grid article:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.26);
  box-shadow: 0 22px 70px rgba(2, 6, 23, 0.75), var(--glow);
}

.feature-grid h3 {
  color: var(--neon);
  margin-bottom: 8px;
}

.feature-grid p {
  color: #cbd5f5;
  line-height: 1.5;
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  background: rgba(15, 23, 42, 0.72);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.step-k {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: #dbeafe;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: #cbd5f5;
  line-height: 1.5;
}

.demo {
  padding-bottom: 40px;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.example {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.35);
  color: #e2e8f0;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 120ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.example:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: var(--glow);
}

.demo-panel {
  margin-top: 16px;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.demo-title {
  font-weight: 800;
  margin-bottom: 10px;
}

.demo-output {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  color: #cbd5f5;
  background: rgba(2, 6, 23, 0.35);
  border: 1px dashed rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 14px;
  min-height: 96px;
  white-space: pre-wrap;
  line-height: 1.55;
}

.privacy-grid {
  display: grid;
  gap: 16px;
}

.privacy-card {
  background: rgba(15, 23, 42, 0.72);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.privacy-card h3 {
  color: #e6f6ff;
  margin-bottom: 8px;
}

.privacy-card p {
  color: #cbd5f5;
  line-height: 1.5;
}

.cta {
  padding-bottom: 80px;
}

.cta-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.8);
}

.footer {
  padding: 30px 6vw 60px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .privacy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .top-actions a.ghost {
    display: none;
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .scanlines {
    display: none;
  }
}
