:root {
  --blue: #1635cd;
  --blue-deep: #0f2499;
  --blue-ink: #08124a;
  --white: #ffffff;
  --paper: #f0f1f6;
  --ink: #0a0e1a;
  --muted: #4d5568;
  --line: #d4d8e4;
  --line-strong: #1635cd;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 0.35rem;
  --frame: min(640px, calc(100% - 2.5rem));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 3px color-mix(in srgb, var(--blue) 40%, white);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--blue);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
input {
  font: 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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  outline: none;
  box-shadow: var(--focus);
}

/* —— Hero —— */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 4rem 1.25rem 3.5rem;
  background: var(--blue);
  color: var(--white);
}

.hero-frame {
  width: min(860px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid color-mix(in srgb, var(--white) 28%, transparent);
  border-radius: var(--radius);
  animation: rise 0.85s var(--ease) both;
}

.hero-logo {
  width: min(72vw, 640px);
}

.hero-tagline {
  margin: 0;
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.6rem;
  color: color-mix(in srgb, var(--white) 78%, transparent);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease;
  cursor: pointer;
}

.scroll-cue svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: bob 1.8s var(--ease) infinite;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: var(--white);
}

.scroll-cue:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius);
}

/* —— Story: stacked centered containers —— */
.story {
  --panel-bg: var(--white);
  --panel-border: transparent;
  --panel-shadow: 0 10px 28px color-mix(in srgb, var(--blue) 12%, transparent);
  --notify-bg: var(--blue);
  --notify-border: var(--blue);
  --notify-ink: var(--white);
  --notify-muted: color-mix(in srgb, var(--white) 78%, var(--blue));
  --notify-input-bg: var(--white);
  --notify-btn-bg: var(--white);
  --notify-btn-ink: var(--blue);
  --story-bg: color-mix(in srgb, var(--blue) 5%, white);

  background: var(--story-bg);
  color: var(--ink);
  padding: 4.5rem 1.25rem;
}

.story-stack {
  width: min(920px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.panel {
  width: 100%;
  max-width: var(--frame);
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--panel-bg);
  border: 1.5px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--panel-shadow);
  text-align: center;
}

.panel-pitch {
  max-width: min(640px, 100%);
}

.panel-logo {
  width: min(38vw, 168px);
  margin: 0 auto 1.5rem;
}

.panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.6vw, 2.05rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 40ch;
  margin-inline: auto;
}

.flow {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.panel-flow {
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-height: 100%;
  border-top: 3px solid var(--line-strong);
}

.flow-verb {
  margin: 0 !important;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue) !important;
  max-width: none !important;
}

.flow-copy {
  margin: 0 !important;
  font-size: 0.95rem !important;
  line-height: 1.45;
  max-width: 22ch !important;
}

.panel-notify {
  max-width: min(640px, 100%);
  background: var(--notify-bg);
  border-color: var(--notify-border);
  color: var(--notify-ink);
  box-shadow: var(--panel-shadow);
}

.panel-notify h2 {
  margin-bottom: 0.5rem;
  color: var(--notify-ink);
}

.panel-notify > p {
  margin-bottom: 1.35rem;
  color: var(--notify-muted);
}

.panel-notify .form-note {
  color: var(--notify-muted) !important;
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
}

.waitlist-form input {
  flex: 1 1 12rem;
  min-height: 48px;
  max-width: 20rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  border-radius: var(--radius);
  background: var(--notify-input-bg);
  color: var(--ink);
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 220ms ease;
}

.waitlist-form input::placeholder {
  color: color-mix(in srgb, var(--muted) 70%, white);
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--focus);
}

.waitlist-form button {
  min-height: 48px;
  min-width: 44px;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--notify-btn-bg);
  color: var(--notify-btn-ink);
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 140ms ease;
}

.waitlist-form button:hover {
  background: color-mix(in srgb, var(--white) 92%, var(--blue));
}

.waitlist-form button:active {
  transform: scale(0.97);
}

.waitlist-form button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.form-note {
  margin: 1rem 0 0 !important;
  font-weight: 600;
}

.site-footer {
  background: color-mix(in srgb, var(--blue) 5%, white);
  padding: 0 1.25rem 2.5rem;
}

.footer-frame {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 1rem 0 0;
  border-top: 1.5px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-frame p {
  margin: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-frame,
  .scroll-cue svg,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .flow {
    grid-template-columns: 1fr;
    max-width: var(--frame);
  }

  .panel-flow {
    border-top: 0;
    border-left: 3px solid var(--line-strong);
  }

  .waitlist-form input {
    max-width: none;
    text-align: left;
  }

  .waitlist-form button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-logo {
    width: min(86vw, 400px);
  }

  .hero-frame {
    gap: 1.5rem;
  }
}
