:root {
  --brand: #1b22a8;
  --brand-600: #171d90;
  --brand-700: #131879;
  --brand-50: #f4f4fb;
  --brand-100: #e4e4f5;
  --brand-200: #c8caea;
  --brand-400: #696dc6;
  --ink: #0c0f4a;
  --text: #2a2d5c;
  --muted: #5d618f;
  --line: #e6e7f3;
  --bg: #ffffff;
  --accent: #f5a524;
  --ok: #0f9d6b;
  --error: #c62828;
  --radius: 14px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Inter Tight', var(--font);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.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;
}

/* ── Backdrop ─────────────────────────────────────────────────────────────── */

.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.glow-a {
  width: 56vmax; height: 56vmax; right: -20vmax; top: -26vmax;
  background: radial-gradient(circle, rgba(27, 34, 168, 0.14), transparent 65%);
}
.glow-b {
  width: 40vmax; height: 40vmax; left: -16vmax; bottom: -22vmax;
  background: radial-gradient(circle, rgba(105, 109, 198, 0.12), transparent 65%);
}

.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(27, 34, 168, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 34, 168, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 15%, transparent 72%);
}

/* The logo, big and solid in a pale brand tint. */
.arch {
  position: absolute;
  right: -5vw; bottom: -10vh;
  width: min(58vw, 680px);
  fill: var(--brand-50);
  stroke: var(--brand-100);
  stroke-width: 0.6;
}

/* ── Header / footer ──────────────────────────────────────────────────────── */

.top, .hero, .foot { position: relative; z-index: 1; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
  padding: 24px 0;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; fill: var(--brand); }
.brand-name { font: 700 20px/1 var(--display); letter-spacing: -0.02em; color: var(--brand); }
.brand-name span { font-weight: 600; color: var(--brand); opacity: 0.72; }

.top-link {
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--brand);
  padding: 8px 14px; border: 1px solid var(--brand-200); border-radius: 999px;
  background: var(--bg);
  transition: border-color .2s, background .2s;
}
.top-link:hover { border-color: var(--brand); background: var(--brand-50); }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
  padding: 28px 0 32px;
  font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--line);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--brand); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  flex: 1;
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
  padding: clamp(40px, 9vh, 112px) 0 clamp(48px, 8vh, 96px);
  display: flex; flex-direction: column; align-items: flex-start;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 28px;
  padding: 7px 14px 7px 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: var(--brand);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 999px;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

h1 {
  margin: 0;
  max-width: 13ch;
  font: 700 clamp(40px, 7.4vw, 84px)/1.02 var(--display);
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--brand); }

.lede {
  max-width: 56ch;
  margin: 24px 0 0;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--muted);
  text-wrap: pretty;
}

/* ── Sign-up ──────────────────────────────────────────────────────────────── */

.signup { width: 100%; max-width: 620px; margin-top: 40px; }

.form {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr) auto;
  gap: 6px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--brand-200);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 1px 2px rgba(12, 15, 74, 0.06), 0 18px 40px -20px rgba(27, 34, 168, 0.35);
  transition: border-color .2s, box-shadow .2s;
}
.form:focus-within {
  border-color: var(--brand);
  box-shadow: 0 1px 2px rgba(12, 15, 74, 0.06), 0 18px 40px -20px rgba(27, 34, 168, 0.35), 0 0 0 4px rgba(27, 34, 168, 0.12);
}
.form[hidden], .form-note[hidden] { display: none; }

.field { display: block; min-width: 0; }
.field input {
  width: 100%; height: 52px;
  padding: 0 16px;
  font: 500 16px var(--font);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  outline: none;
}
.field input::placeholder { color: #9a9dc0; }
.field input:focus { background: var(--brand-50); }
.field-name { border-right: 1px solid var(--line); }
.form.invalid .field-email input { background: #fdecec; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 22px;
  font: 600 15px var(--font);
  color: #ffffff;
  background: var(--brand);
  border: 0; border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s, background .2s, opacity .2s;
}
.button:hover { background: var(--brand-700); }
.button:active { transform: translateY(1px); }
.button:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; }
.button[disabled] { opacity: .7; cursor: progress; }
.button-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.button:hover .button-icon { transform: translateX(3px); }

.form-note { margin: 14px 4px 0; font-size: 13px; color: var(--muted); }
.form-note.error { color: var(--error); }

.done {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  background: #ecfaf4;
  border: 1px solid #b7ebd5;
  border-radius: calc(var(--radius) + 6px);
  animation: rise .4s ease-out;
}
.done[hidden] { display: none; }
.done-icon {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ok);
}
.done-icon svg { width: 22px; height: 22px; fill: none; stroke: #ffffff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.done-title { margin: 0; font: 700 18px/1.3 var(--display); color: var(--ink); }
.done-text { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Features ─────────────────────────────────────────────────────────────── */

.features {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  width: 100%;
  margin: clamp(56px, 10vh, 104px) 0 0; padding: 0;
}
.features li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(12, 15, 74, 0.04);
  backdrop-filter: blur(6px);
  transition: border-color .2s, box-shadow .2s;
}
.features li:hover { border-color: var(--brand-200); box-shadow: 0 10px 24px -14px rgba(27, 34, 168, 0.35); }
.features svg {
  flex: none; width: 36px; height: 36px; padding: 7px; margin-top: -2px;
  border-radius: 10px; background: var(--brand-50);
  fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.features strong { display: block; font: 600 15px/1.35 var(--display); color: var(--ink); }
.features span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ── Small screens ────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .top { padding: 18px 0; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 18px; }
  .top-link { padding: 7px 12px; font-size: 13px; }
  .eyebrow { margin-bottom: 20px; }
  .form { grid-template-columns: 1fr; }
  .field-name { border-right: 0; border-bottom: 1px solid var(--line); }
  .button { width: 100%; }
  .features { grid-template-columns: 1fr; gap: 10px; }
  .arch { width: 120vw; right: -40vw; bottom: -4vh; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse::after, .done { animation: none; }
  .button, .button-icon, .form, .features li { transition: none; }
}
