/* =====================================================================
   Chasing 100 — waitlist site
   Inter (display + body) + Caveat (accent for the founder note signature).
   Warm paper background, deep ink, single brand-blue accent used sparingly.
===================================================================== */

:root {
  --paper: #FAF7F2;
  --paper-deep: #F2EDE4;
  --ink: #0F1419;
  --ink-muted: #5A5F66;
  --ink-subtle: #8A8E94;
  --rule: #E2DCD2;
  --rule-strong: #D8D1C4;

  --accent: #0096FF;
  --accent-deep: #0057A8;
  --accent-bright: #2FB4FF;
  --accent-soft: rgba(0, 150, 255, 0.08);

  --error: #B33A3A;

  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --font-accent: "Caveat", "Bradley Hand", cursive;

  --gutter: clamp(20px, 6vw, 64px);
  --section-pad: clamp(40px, 6vw, 72px);
  --max-width: 1080px;
  --max-narrow: 720px;

  --nav-h: 64px;

  --ease-out-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out-strong: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img { display: block; max-width: 100%; }

::selection { background: var(--ink); color: var(--paper); }

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

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.dot {
  display: inline-block;
  margin: 0 0.4em;
  color: var(--accent);
  transform: translateY(-0.05em);
}

/* ---- Paper grain overlay (fixed, behind content) ------------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: multiply;
  animation: grain-in 1200ms var(--ease-out-soft) 100ms forwards;
}
.grain svg { width: 100%; height: 100%; opacity: 0.06; }
@keyframes grain-in { to { opacity: 1; } }

main { position: relative; z-index: 1; }

/* =====================================================================
   NAV — sticky, minimal, with persistent CTA
===================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(250, 247, 242, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}

.nav-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 2px 8px -3px rgba(0, 87, 168, 0.4);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  transition: background 200ms var(--ease-out-soft), transform 200ms var(--ease-out-soft);
}
.nav-cta:hover {
  background: linear-gradient(110deg, var(--accent-deep), var(--accent), var(--accent-bright));
}
.nav-cta:active { transform: translateY(1px); }

/* =====================================================================
   HERO — centered single column, ghost "100" behind
===================================================================== */

.hero {
  position: relative;
  padding: clamp(72px, 12vh, 140px) var(--gutter) clamp(80px, 12vh, 140px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.hero-mesh {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 110vw;
  height: 90vw;
  max-width: 1200px;
  max-height: 900px;
  background: radial-gradient(ellipse at center, var(--accent-bright) 0%, transparent 55%);
  filter: blur(80px);
  opacity: 0;
  animation: mesh-in 1600ms var(--ease-out-soft) 200ms forwards;
  z-index: -1;
  pointer-events: none;
}
@keyframes mesh-in { to { opacity: 0.16; } }

.hero-ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(360px, 60vw, 760px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  background: linear-gradient(120deg, var(--accent-deep) 0%, var(--accent) 50%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ghost-in 1800ms var(--ease-out-soft) 400ms forwards;
}
@keyframes ghost-in { to { opacity: 0.05; } }

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 32px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 18px 40px -16px rgba(0, 87, 168, 0.4),
    0 4px 10px -4px rgba(15, 20, 25, 0.12);
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 9vw, 100px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 0 0 20px;
  color: var(--ink);
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.3;
  margin: 0 0 24px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0 0 40px;
  max-width: 540px;
}

/* =====================================================================
   FORM
===================================================================== */

.form { width: 100%; max-width: 480px; margin: 0 auto; }

.form-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  transition: border-color 200ms var(--ease-out-soft), box-shadow 200ms var(--ease-out-soft);
}
.form-row:focus-within {
  border-color: var(--accent);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 0 0 3px var(--accent-soft);
}

.form-row input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  letter-spacing: -0.005em;
}
.form-row input::placeholder { color: var(--ink-subtle); }

.form-row button {
  flex: 0 0 auto;
  padding: 0 22px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(110deg, var(--accent-deep) 0%, var(--accent) 50%, var(--accent-bright) 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-position 600ms var(--ease-out-strong), opacity 200ms var(--ease-out-soft);
  box-shadow: 0 6px 20px -10px rgba(0, 87, 168, 0.55);
}
.form-row button:hover { background-position: 100% 50%; }
.form-row button:active { background-position: 100% 50%; opacity: 0.92; }
.form-row button:disabled { cursor: progress; opacity: 0.7; }

.form-meta {
  margin: 14px 4px 0;
  font-size: 13px;
  color: var(--ink-subtle);
  line-height: 1.5;
}

.form-message {
  margin: 14px 4px 0;
  font-size: 14px;
  line-height: 1.5;
  min-height: 0;
  transition: color 200ms;
}
.form-message[data-state="error"] { color: var(--error); }
.form-message[data-state="success"] {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
}

.form[data-state="success"] .form-row,
.form[data-state="success"] .form-meta { display: none; }
.form[data-state="success"] .form-message::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--ink);
  margin: 0 auto 14px;
}

/* =====================================================================
   SECTION HEADERS — kicker + heading pattern, used across sections
===================================================================== */

.section-kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 18px;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 56px;
  max-width: 720px;
}

/* =====================================================================
   HOW IT WORKS — grid of cards
===================================================================== */

.how {
  padding: var(--section-pad) var(--gutter);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 32px 28px 28px;
  transition: border-color 240ms var(--ease-out-soft), background-color 240ms var(--ease-out-soft), transform 240ms var(--ease-out-soft);
}
.card:hover {
  border-color: var(--rule-strong);
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
}

.card-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-subtle);
  margin: 0 0 24px;
  font-variant-numeric: tabular-nums;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  margin-bottom: 20px;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 10px;
}

.card-body {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}

/* =====================================================================
   FOUNDER NOTE — narrow centered column
===================================================================== */

.note {
  padding: clamp(24px, 4vw, 48px) var(--gutter) var(--section-pad);
}
.note .section-inner {
  max-width: var(--max-narrow);
  position: relative;
  background: #FFFEFA;
  border: 1px solid #EAE3D5;
  border-radius: 2px;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 56px) clamp(36px, 5vw, 56px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 1px 2px rgba(15, 20, 25, 0.04),
    0 18px 36px -22px rgba(15, 20, 25, 0.22),
    0 36px 72px -32px rgba(15, 20, 25, 0.18);
  transform: rotate(-1.6deg);
  transform-origin: center;
}
/* Tape strip at the top to anchor the paper */
.note .section-inner::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 88px;
  height: 22px;
  background: linear-gradient(135deg, rgba(0, 150, 255, 0.18), rgba(0, 150, 255, 0.10));
  border: 1px solid rgba(0, 87, 168, 0.18);
  box-shadow: 0 1px 2px rgba(15, 20, 25, 0.06);
  pointer-events: none;
}

.note-body {
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: 0;
}

.note-closing {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.35;
  margin: 16px 0;
  color: var(--accent-deep);
}

.note-signoff {
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 38px);
  margin: 0;
  color: var(--ink);
}

/* =====================================================================
   ASPIRATIONS — italic-feel flowing list
===================================================================== */

.aspirations {
  padding: var(--section-pad) var(--gutter);
}

.aspirations .section-heading,
.how .section-heading,
.faq .section-heading { margin-bottom: 28px; }

.aspiration-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.aspiration-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 28px 28px 32px;
  transition: border-color 240ms var(--ease-out-soft), background-color 240ms var(--ease-out-soft), transform 240ms var(--ease-out-soft);
}
.aspiration-card:hover {
  border-color: var(--rule-strong);
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
}

.aspiration-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  flex-shrink: 0;
}

.aspiration-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* =====================================================================
   FAQ
===================================================================== */

.faq {
  padding: var(--section-pad) var(--gutter);
}

.qa {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.qa-item {
  padding: 24px 0;
}

.qa-q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 8px;
}

.qa-a {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* =====================================================================
   CLOSING CTA
===================================================================== */

.closing {
  padding: var(--section-pad) var(--gutter);
}
.closing .section-inner {
  max-width: var(--max-narrow);
  text-align: center;
}

.closing-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 36px;
}

.form--closing { margin: 0 auto; }

/* =====================================================================
   FOOTER — minimal
===================================================================== */

.footer {
  padding: 40px var(--gutter) 56px;
  text-align: center;
}

.footer-line {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: -0.005em;
}
.footer-line .dot { color: var(--ink-subtle); margin: 0 0.6em; }
.footer-line a {
  color: var(--ink-muted);
  position: relative;
  padding-bottom: 1px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color 200ms var(--ease-out-soft);
}
.footer-line a:hover { color: var(--ink); }

/* =====================================================================
   DIALOG — sign-up modal (first name + interest checkboxes)
===================================================================== */

.dialog {
  border: 0;
  padding: 0;
  background: transparent;
  margin: auto;
  color: var(--ink);
  width: min(460px, calc(100vw - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-width: calc(100vw - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
}
.dialog::backdrop {
  background: rgba(15, 20, 25, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.dialog[open] { animation: dialog-in 240ms var(--ease-out-strong); }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dialog-card {
  position: relative;
  width: 100%;
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #FFFEFA;
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: clamp(20px, 4vw, 32px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 30px 60px -20px rgba(15, 20, 25, 0.35),
    0 12px 24px -12px rgba(15, 20, 25, 0.2);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms var(--ease-out-soft), color 200ms var(--ease-out-soft);
}
.dialog-close:hover { background: rgba(0, 0, 0, 0.05); color: var(--ink); }

.dialog-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 6px;
  padding-right: 32px;
}

.dialog-subtitle {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0 0 18px;
}

.dialog-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.dialog-field > label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.dialog-field input[type="text"] {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 200ms var(--ease-out-soft), box-shadow 200ms var(--ease-out-soft);
}
.dialog-field input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.dialog-field input[type="text"]::placeholder { color: var(--ink-subtle); }

.dialog-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 10px;
}
.dialog-fieldset legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--ink);
  padding: 0;
  margin-bottom: 4px;
}
.dialog-hint {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin: 0 0 10px;
}

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-bottom: 6px;
  transition: border-color 200ms var(--ease-out-soft), background-color 200ms var(--ease-out-soft);
  user-select: none;
}
.check:hover { border-color: var(--rule-strong); background: rgba(0, 0, 0, 0.02); }
.check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.check:has(input[name="betaTester"]) {
  align-items: flex-start;
}
.check:has(input[name="betaTester"]) input[type="checkbox"] {
  margin-top: 2px;
}
.check:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dialog-message {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  min-height: 0;
  color: var(--ink-muted);
}
.dialog-message[data-state="error"] { color: var(--error); }

.dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

/* Success state — hide the form, show a centered confirmation */
.dialog-card[data-state="success"] .dialog-title,
.dialog-card[data-state="success"] .dialog-subtitle,
.dialog-card[data-state="success"] .dialog-field,
.dialog-card[data-state="success"] .dialog-fieldset,
.dialog-card[data-state="success"] .dialog-actions {
  display: none;
}
.dialog-card[data-state="success"] .dialog-message[data-state="success"] {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: var(--ink);
  padding: 24px 8px 16px;
  margin: 0;
}
.dialog-card[data-state="success"] .dialog-message[data-state="success"]::before {
  content: "";
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%230057A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/28px no-repeat;
}

@media (max-width: 540px) {
  .dialog-title { font-size: 20px; }
  .dialog-subtitle { margin-bottom: 20px; }
  .dialog-field { margin-bottom: 16px; }
  .check { padding: 10px 12px; margin-bottom: 6px; }
  .dialog-fieldset { margin-bottom: 8px; }
  .dialog-actions { margin-top: 16px; }
}

.btn-secondary {
  flex: 0 0 auto;
  padding: 0 22px;
  height: 44px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out-soft);
}
.btn-secondary:hover { background: rgba(0, 0, 0, 0.04); }
.btn-secondary:disabled { cursor: not-allowed; opacity: 0.6; }

.btn-primary {
  flex: 1;
  padding: 0 22px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(110deg, var(--accent-deep) 0%, var(--accent) 50%, var(--accent-bright) 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-position 600ms var(--ease-out-strong), opacity 200ms var(--ease-out-soft);
  box-shadow: 0 6px 20px -10px rgba(0, 87, 168, 0.55);
}
.btn-primary:hover { background-position: 100% 50%; }
.btn-primary:disabled { cursor: progress; opacity: 0.7; }

/* =====================================================================
   MOTION — staggered hero reveal + scroll-driven for later sections
===================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal-in 700ms var(--ease-out-strong) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}
@keyframes reveal-in {
  to { opacity: 1; transform: translateY(0); }
}

@supports (animation-timeline: view()) {
  .how, .note, .aspirations, .faq, .closing {
    animation: section-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}
@keyframes section-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .grain { opacity: 1; }
  .hero-mesh { opacity: 0.16; }
  .hero-ghost { opacity: 0.05; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   BREAKPOINTS
===================================================================== */

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card { padding: 36px 32px 32px; }
}

@media (min-width: 960px) {
  :root { --section-pad: clamp(56px, 7vw, 88px); }
  .card-title { font-size: 20px; }
}

@media (max-width: 540px) {
  .form-row {
    flex-direction: column;
    border-radius: 18px;
    padding: 8px;
  }
  .form-row input { height: 48px; padding: 0 14px; }
  .form-row button { width: 100%; height: 48px; }

  .nav { padding: 0 16px; }
  .nav-mark span { display: none; }

  .hero-ghost { font-size: 90vw; }
}
