:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --border: #E5E5E5;
  --border-strong: #D4D4D4;
  --text: #0A0A0A;
  --text-2: #525252;
  --text-3: #A3A3A3;
  --accent: #1E3A8A;
  --accent-2: #1E40AF;
  --success: #15803D;
  --error: #B91C1C;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --shadow-1: 0 1px 2px rgba(10,10,10,.04), 0 1px 1px rgba(10,10,10,.03);
  --shadow-2: 0 4px 14px rgba(10,10,10,.06), 0 1px 2px rgba(10,10,10,.04);
  --shadow-hover: 0 8px 28px rgba(10,10,10,.08), 0 2px 4px rgba(10,10,10,.04);
  --max: 1120px;
  --max-prose: 680px;
  --pad: clamp(20px, 4vw, 32px);
}

@supports (font-variation-settings: normal) {
  :root { --font: 'Inter var', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
}
:root { --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== Header ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark { width: 26px; height: 26px; }
.brand-name {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
}
.lang-switch button {
  appearance: none;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-2);
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] {
  background: var(--text);
  color: #fff;
}

/* ===== Hero ===== */
main { display: block; }

.hero {
  max-width: var(--max-prose);
  margin: clamp(40px, 8vw, 80px) auto clamp(56px, 10vw, 96px);
  padding: 0 var(--pad);
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(30, 58, 138, 0.07);
  border: 1px solid rgba(30, 58, 138, 0.18);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.92); }
}

h1 {
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 18px;
  color: var(--text);
  text-wrap: balance;
}

.lead {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 36px;
  text-wrap: pretty;
}

/* ===== Form ===== */
.waitlist { margin: 0 auto; max-width: 480px; }
.input-row {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  transition: border-color .15s, box-shadow .15s;
}
.input-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.12), var(--shadow-2);
}

.input-row input {
  flex: 1;
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  padding: 11px 14px;
  outline: none;
  min-width: 0;
}
.input-row input::placeholder { color: var(--text-3); }

.input-row button {
  appearance: none;
  border: 0;
  background: var(--text);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 0 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.input-row button:hover { background: #1a1a1a; }
.input-row button:active { transform: translateY(1px); }
.input-row button[disabled] { opacity: 0.55; cursor: progress; }

.form-help {
  font-size: 13px;
  color: var(--text-3);
  margin: 14px 0 0;
}

.form-feedback {
  margin-top: 14px;
  font-size: 14px;
  min-height: 20px;
}
.form-feedback[data-state="ok"] { color: var(--success); }
.form-feedback[data-state="err"] { color: var(--error); }

/* ===== Trust row ===== */
.trust-row {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--text-3);
}
.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-row svg { width: 14px; height: 14px; color: var(--text-2); }

/* ===== How it works ===== */
.how {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(56px, 10vw, 96px);
}
.how h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-align: center;
  margin: 0 0 48px;
  color: var(--text);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 740px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
  transition: border-color .15s, transform .2s, box-shadow .2s;
}
.steps li:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.step-n {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(30, 58, 138, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.steps h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--text);
}
.steps p {
  font-size: 14.5px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.55;
}

/* ===== Why ===== */
.why {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(56px, 10vw, 96px);
  text-align: center;
}
.why h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: var(--text);
  text-wrap: balance;
}
.why p {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--text-2);
  margin: 0;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ===== CTA Final ===== */
.cta-final {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(64px, 11vw, 120px);
}
.cta-card {
  background: var(--text);
  color: #fff;
  border-radius: 20px;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 240px; height: 240px;
  background: radial-gradient(circle at center, rgba(30, 64, 175, 0.45), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.cta-card h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  position: relative;
}
.cta-card p {
  font-size: clamp(15px, 1.8vw, 17px);
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 24px;
  position: relative;
}
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  padding: 11px 22px;
  border-radius: 8px;
  position: relative;
  transition: transform .12s, background .12s;
}
.cta-link:hover { background: #F5F5F5; transform: translateY(-1px); }

/* ===== Footer ===== */
.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--pad);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 6px 0;
}
.foot-row a {
  color: var(--text-2);
  text-decoration: none;
}
.foot-row a:hover { color: var(--text); }
.foot-meta { font-size: 13px; }
.foot-copy { font-variant-numeric: tabular-nums; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
