:root {
  --bg: #0b1020;
  --bg-soft: #11172b;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: #b8c1d3;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #8fb3ff;
  --accent-strong: #dce7ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 16px;
  --max: 1180px;
  --header-h: 72px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, rgba(92, 126, 255, 0.22), transparent 30%), linear-gradient(180deg, #0a1020 0%, #09101b 100%);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.narrow { width: min(calc(100% - 32px), 820px); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(9, 16, 27, 0.7); border-bottom: 1px solid var(--line); }
.nav { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.brand { font-weight: 700; letter-spacing: 0.02em; }
.desktop-nav { display: flex; gap: 20px; color: var(--muted); }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
}
.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang-link.is-active {
  background: var(--accent-strong);
  color: #0b1020;
}
.menu-toggle { display: none; background: var(--panel); color: var(--text); border: 1px solid var(--panel-border); border-radius: 999px; padding: 10px 14px; cursor: pointer; }
.mobile-menu { display: grid; gap: 12px; padding: 0 0 18px; color: var(--muted); }
.mobile-menu[hidden] { display: none; }
.hero { padding: 80px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: center; }
.eyebrow, .section-label { color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 700; }
h1 { font-size: clamp(42px, 7vw, 78px); line-height: 1.02; margin: 10px 0 18px; max-width: 12ch; }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.08; margin: 10px 0 18px; }
h3 { font-size: 20px; line-height: 1.2; margin: 0 0 10px; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 62ch; }
.hero-actions, .cta-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--panel-border); transition: 180ms ease; cursor: pointer; }
.button.primary { background: var(--accent-strong); color: #0b1020; font-weight: 700; }
.button.secondary { background: var(--panel); color: var(--text); }
.hero-card, .card, .list-card, .cta-card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-card { padding: 20px; display: grid; gap: 12px; }
.stack-item { padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--accent-strong); font-weight: 600; }
.section { padding: 70px 0; }
.alt { background: rgba(255, 255, 255, 0.02); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-grid, .list-grid, .footer-grid { display: grid; gap: 18px; }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
.card, .list-card { padding: 22px; transition: 180ms ease; }
.card:hover, .list-card:hover { border-color: var(--accent); transform: translateY(-2px); }

/* Subtle entrance animations */
@media (prefers-reduced-motion: no-preference) {
  .section { opacity: 0; transform: translateY(16px); animation: fadeUp 0.6s ease forwards; }
  .section:nth-child(1) { animation-delay: 0.05s; }
  .section:nth-child(2) { animation-delay: 0.1s; }
  .section:nth-child(3) { animation-delay: 0.15s; }
  .section:nth-child(4) { animation-delay: 0.2s; }
  .section:nth-child(5) { animation-delay: 0.25s; }
  .section:nth-child(6) { animation-delay: 0.3s; }
  .section:nth-child(7) { animation-delay: 0.35s; }
  .section:nth-child(8) { animation-delay: 0.4s; }
  .section:nth-child(9) { animation-delay: 0.45s; }
  .section:nth-child(10) { animation-delay: 0.5s; }
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
}
.card p, .list-card p, .footer-text, .mobile-menu, .desktop-nav, p { color: var(--muted); }
.list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.principles { margin: 20px 0 0; padding-left: 20px; }
.cta-section { padding-bottom: 90px; }
.cta-card { justify-content: space-between; padding: 28px; }
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 40px; }
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-heading, .footer-brand { font-weight: 700; margin-bottom: 12px; }
.site-footer a { display: block; margin-bottom: 8px; color: var(--muted); }

/* Focus states */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Doc link style */
.doc-link { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: 14px; transition: 180ms ease; }
.doc-link:hover { color: var(--accent-strong); }
.meta-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}
.meta-note strong {
  color: var(--accent-strong);
}

/* Skip link */
.skip-link { position: absolute; top: -100%; left: 16px; background: var(--accent-strong); color: #0b1020; padding: 8px 16px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 12px; }

@media (max-width: 900px) {
  .hero-grid, .card-grid, .list-grid, .footer-grid { grid-template-columns: 1fr; }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-actions { gap: 10px; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 640px) {
  .hero { padding-top: 44px; }
  .section { padding: 56px 0; }
  .cta-card { align-items: flex-start; }
  .timeline-content { padding: 14px 16px; }
}

.timeline { margin-top: 32px; position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: -24px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.timeline-content { padding: 18px 22px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius-sm); }
.timeline-content h3 { font-size: 17px; margin-bottom: 6px; color: var(--accent-strong); }
.timeline-content p { font-size: 15px; }

.waitlist-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.waitlist-form input[type="email"] { min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--panel-border); background: var(--panel); color: var(--text); font-size: 15px; flex: 1; min-width: 200px; outline: none; transition: 180ms ease; font-family: inherit; }
.waitlist-form input[type="email"]:focus { border-color: var(--accent); }
.waitlist-form input[type="email"]::placeholder { color: var(--muted); }
.waitlist-message { margin-top: 12px; font-size: 14px; color: var(--accent); }
