:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: rgba(13, 18, 29, 0.78);
  --panel-strong: rgba(17, 24, 39, 0.94);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(125, 211, 252, 0.38);
  --text: #eef4ff;
  --muted: #9aa8bb;
  --soft: #64748b;
  --cyan: #20d7ff;
  --blue: #3478ff;
  --violet: #8b5cff;
  --green: #83f29b;
  --yellow: #facc15;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(32, 215, 255, 0.16), transparent 35%),
    radial-gradient(circle at 86% 16%, rgba(139, 92, 255, 0.20), transparent 35%),
    linear-gradient(180deg, #05070d 0%, #090d16 42%, #05070d 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 72%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.page-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.28;
  pointer-events: none;
  z-index: -1;
}

.page-glow-a { top: 10%; left: -220px; background: var(--cyan); }
.page-glow-b { right: -220px; top: 36%; background: var(--violet); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(var(--max), calc(100% - 36px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 50px rgba(0,0,0,0.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand img {
  width: 30px;
  height: 30px;
}

.brand.small img { width: 24px; height: 24px; }

.nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover { color: var(--text); }

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

.lang-toggle,
.button {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.lang-toggle:hover,
.button:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.button-primary {
  border: 0;
  background: linear-gradient(135deg, var(--cyan), var(--blue) 48%, var(--violet));
  box-shadow: 0 16px 50px rgba(52, 120, 255, 0.28);
}

.button-secondary {
  background: rgba(125, 211, 252, 0.10);
  border-color: rgba(125, 211, 252, 0.24);
}

.button-ghost { padding: 9px 13px; color: var(--muted); }

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 90px);
  padding: 76px 0 92px;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 12px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 24px var(--green);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin: 18px 0 22px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

h2 {
  margin: 10px 0 16px;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

h3 {
  font-size: 24px;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.hero-lead,
.section-heading p,
.split-copy p,
.info-card p,
.mode-card p,
.final-cta p,
.site-footer p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 17px;
}

.hero-lead { max-width: 650px; font-size: 20px; }

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

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

.hero-proof span,
.pill-row span {
  color: #c7d2fe;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 13px;
}

.screenshot-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.88));
  box-shadow: var(--shadow);
}

.screenshot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), inset 0 0 80px rgba(32,215,255,0.06);
}

.screenshot-card-large {
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}

.screenshot-card img {
  width: 100%;
  height: auto;
}

.window-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  background: rgba(2, 6, 23, 0.62);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(148,163,184,0.35);
}

.window-bar strong {
  margin-left: 8px;
  font-size: 13px;
  color: #dbeafe;
}

.mock-screenshot {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 14px;
  min-height: 420px;
  padding: 18px;
}

.badge {
  display: inline-flex;
  border: 1px solid rgba(131,242,155,.45);
  color: var(--green);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 13px;
}

.flow-card,
.inspector-card,
.mock-code {
  margin-top: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  padding: 16px;
}

.flow-card.success { border-left: 5px solid var(--green); }
.flow-card span, .flow-card small { display: block; color: var(--muted); margin-top: 6px; }
.inspector-card button { margin-right: 8px; }
pre { color: #bae6fd; white-space: pre-wrap; }

.intro-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

.centered { text-align: center; max-width: 820px; margin: 0 auto 42px; }

.mode-section,
.split-section,
.cards-section,
.architecture,
.final-cta {
  padding: 96px 0;
}

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

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

.mode-card,
.info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--panel);
  box-shadow: 0 18px 70px rgba(0,0,0,.28);
}

.mode-card-highlight { border-color: rgba(125,211,252,.32); }
.mode-icon { font-size: 34px; color: var(--cyan); margin-bottom: 16px; }
.mode-card img { margin-top: 22px; border-radius: 18px; border: 1px solid var(--border); }

.split-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
  align-items: center;
}

.split-section.reverse { grid-template-columns: 1.15fr .85fr; }
.split-section.reverse .split-copy { order: 2; }

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.feature-list div {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
}

.feature-list strong { color: #e0f2fe; }
.feature-list span { color: var(--muted); line-height: 1.5; }
.feature-list.compact { grid-template-columns: 1fr; }

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.stacked-shots {
  display: grid;
  gap: 18px;
}

.info-card h3 { color: #e0f2fe; }
.info-card { min-height: 220px; }

.architecture-diagram {
  max-width: 980px;
  margin: 34px auto 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
}

.arch-node {
  text-align: center;
  border: 1px solid rgba(125,211,252,.24);
  background: rgba(15, 23, 42, .78);
  border-radius: 20px;
  padding: 20px;
  font-weight: 800;
}

.arch-node span { color: var(--muted); font-weight: 500; font-size: 13px; }
.arch-node.primary {
  width: min(420px, 100%);
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(32,215,255,.18), rgba(139,92,255,.18));
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.final-cta {
  text-align: center;
  max-width: 880px;
}

.centered-actions { justify-content: center; }

.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 50px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
}

@media (max-width: 980px) {
  .nav { display: none; }
  .hero,
  .intro-grid,
  .split-section,
  .split-section.reverse,
  .mode-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .split-section.reverse .split-copy { order: 0; }
  .arch-grid { grid-template-columns: 1fr; }
  .screenshot-card-large { transform: none; }
  h1 { font-size: clamp(44px, 15vw, 72px); }
}

@media (max-width: 640px) {
  .site-header { width: calc(100% - 20px); }
  .button-ghost { display: none; }
  .section-shell { width: calc(100% - 24px); }
  .hero { padding-top: 48px; }
  .site-footer { flex-direction: column; }
}
