/* ── Palette ───────────────────────────────────────────────── */
:root {
  /* Brand Blues */
  --color-blue-50: rgb(240, 246, 255);
  --color-blue-100: rgb(193, 232, 253);
  --color-blue-300: rgb(129, 168, 231);
  --color-blue-500: rgb(14, 96, 226);
  --color-blue-700: rgb(29, 78, 216);
  --color-blue-900: rgb(1, 27, 68);

  /* Neutrals */
  --color-white: rgb(255, 255, 255);
  --color-gray-200: rgb(221, 221, 221);
  --color-gray-500: rgb(106, 106, 106);
  --color-gray-600: rgb(97, 97, 97);
  --color-gray-800: rgb(71, 71, 71);
  --color-black: rgb(0, 0, 0);

  /* Overlays */
  --color-transparent: rgba(0, 0, 0, 0);
  --color-blue-overlay: rgba(14, 96, 226, 0.05);

  /* ── Semantic aliases (used throughout) ── */
  --ink:    var(--color-blue-900);
  --night:  var(--color-blue-900);
  --paper:  var(--color-white);
  --accent: var(--color-blue-500);
  --accent-dark: var(--color-blue-700);
  --muted:  var(--color-gray-500);
  --bg:     var(--color-blue-50);
  --border: var(--color-gray-200);

  --shadow: 0 18px 50px rgba(1, 27, 68, 0.12);
  --radius-lg: 22px;
  --radius-md: 14px;
}

/* ── Reset ─────────────────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  overscroll-behavior: none;
  background: var(--color-blue-900);
}

/* ── Body & background ─────────────────────────────────────── */
body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% 0%, var(--color-blue-100) 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 10%, var(--color-blue-50) 0%, transparent 58%),
    var(--color-blue-50);
  line-height: 1.5;
  overflow-x: clip;
  overscroll-behavior: none;
}

/* ── Page decorative blobs ─────────────────────────────────── */
.page {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(0px);
  z-index: 0;
  opacity: 0.25;
}

.page::before {
  top: -260px;
  left: -220px;
  background: radial-gradient(circle at 30% 30%, var(--color-blue-300), transparent 70%);
}

.page::after {
  bottom: -260px;
  right: -240px;
  background: radial-gradient(circle at 60% 40%, var(--color-blue-100), transparent 70%);
}

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Header ────────────────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.4px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--color-blue-900);
  color: var(--color-white);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  letter-spacing: 1px;
}

nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

nav a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}

nav a:hover {
  color: var(--ink);
}

/* ── Buttons ───────────────────────────────────────────────── */
.cta-button,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
}

.cta-button {
  background: var(--color-blue-500);
  color: var(--color-white);
  box-shadow: 0 14px 30px rgba(14, 96, 226, 0.25);
}

.cta-secondary {
  background: var(--color-white);
  color: var(--ink);
  border-color: var(--color-gray-200);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: center;
  padding: 60px 0 90px;
  min-height: calc(100vh - 90px);
}

.hero-copy {
  grid-column: span 6;
}

.hero-title {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.hero-title span {
  color: var(--color-blue-500);
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--muted);
}

.meta-strip span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-blue-50);
  border: 1px solid var(--color-blue-100);
}

/* ── Hero visual ───────────────────────────────────────────── */
.hero-visual {
  grid-column: span 6;
  position: relative;
}

.board {
  background: var(--color-blue-900);
  color: var(--color-blue-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.board::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  transform: skewX(-20deg);
  animation: board-sweep 7s infinite;
  pointer-events: none;
}

@keyframes board-sweep {
  0% { left: -100%; }
  20%, 100% { left: 200%; }
}

.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--color-blue-300);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-blue-300);
  box-shadow: 0 0 0 6px rgba(129, 168, 231, 0.2);
  animation: pulse 1.8s infinite;
}

.board-row {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.2fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

@keyframes row-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.is-visible .board-row {
  animation: row-enter 0.5s ease backwards;
}
.is-visible .board-row:nth-child(2) { animation-delay: 0.3s; }
.is-visible .board-row:nth-child(3) { animation-delay: 0.45s; }
.is-visible .board-row:nth-child(4) { animation-delay: 0.6s; }

.board-row:last-child {
  border-bottom: none;
}

.board-row strong {
  color: var(--color-white);
  font-weight: 600;
}

/* ── Slot Machine Animation ────────────────────────────────── */
.slot-wrapper {
  display: inline-block;
  height: 1.5em;
  overflow: hidden;
  vertical-align: middle;
}
.slot-reel {
  display: flex;
  flex-direction: column;
  animation: slot-machine 8s infinite cubic-bezier(0.85, 0, 0.15, 1);
}
.slot-reel > span {
  height: 1.5em;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.slot-reel.delay-1 { animation-delay: 1.5s; animation-duration: 9s; }
.slot-reel.delay-2 { animation-delay: 3s; animation-duration: 10s; }
.slot-reel.delay-3 { animation-delay: 0.5s; animation-duration: 7s; }

@keyframes slot-machine {
  0%, 35% { transform: translateY(0); }
  45%, 85% { transform: translateY(-1.5em); }
  95%, 100% { transform: translateY(-3.0em); }
}

/* ── Chat bubbles ──────────────────────────────────────────── */
.chat-stack {
  display: grid;
  gap: 10px;
  margin-top: -40px;
  margin-left: 40px;
  position: relative;
}

.chat-bubble {
  background: var(--color-white);
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid var(--color-gray-200);
  box-shadow: 0 8px 20px rgba(1, 27, 68, 0.08);
  font-size: 13px;
}

.chat-bubble strong {
  color: var(--color-blue-500);
}

/* ── Community Avatar Stack ──────────────────────────────────── */
.community-card {
  position: absolute;
  right: -20px;
  top: 20px;
  background: var(--color-white);
  border-radius: 16px;
  border: 1px solid var(--color-gray-200);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  animation: float-card 6s ease-in-out infinite;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  margin-left: -10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.avatar:first-child {
  margin-left: 0;
}

.community-text {
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}

.community-text strong {
  color: var(--color-blue-900);
  font-size: 13px;
}

/* ── Sections ──────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}

.section:last-of-type {
  padding-bottom: 0;
}

.section-title {
  font-size: 30px;
  margin-bottom: 12px;
  letter-spacing: -0.6px;
}

.section-sub {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 32px;
}

/* ── Steps / route cards ───────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--color-gray-200);
  box-shadow: 0 10px 26px rgba(1, 27, 68, 0.06);
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-blue-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.step-text {
  color: var(--muted);
  font-size: 14px;
}

/* ── Split layout ──────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: center;
}

.split-text {
  grid-column: span 6;
}

.split-cards {
  grid-column: span 6;
  display: grid;
  gap: 14px;
}

.signal-card {
  background: var(--color-blue-900);
  color: var(--color-white);
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  animation: led-breathe 4s infinite ease-in-out;
  cursor: default;
}

.signal-card:nth-child(2) {
  animation-delay: 2s;
}

.signal-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-blue-300);
  animation-play-state: paused;
}

@keyframes led-breathe {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(1, 27, 68, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 35px rgba(14, 96, 226, 0.6), inset 0 0 15px rgba(14, 96, 226, 0.2);
    border-color: var(--color-blue-300);
    transform: scale(1.02);
  }
}

.signal-card strong {
  font-size: 18px;
  font-family: "Space Grotesk", sans-serif;
  color: var(--color-blue-100);
}

/* ── Stats ─────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.stat {
  background: var(--color-white);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--color-gray-200);
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-blue-500);
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
}

/* ── CTA panel ─────────────────────────────────────────────── */
.cta-panel {
  background: linear-gradient(120deg, var(--color-blue-900) 0%, var(--color-blue-700) 50%, var(--color-blue-900) 100%);
  color: var(--color-white);
  padding: 48px;
  border-radius: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-panel h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.cta-panel p {
  color: var(--color-blue-100);
  max-width: 520px;
}

/* ── Waitlist form ─────────────────────────────────────────── */
.waitlist-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(200px, 1.2fr) minmax(200px, 1.2fr) auto;
  gap: 12px;
  align-items: end;
  min-width: min(520px, 100%);
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-blue-100);
  font-family: "IBM Plex Mono", monospace;
}

.form-field input {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  padding: 12px 14px;
  font-size: 14px;
  font-family: "Space Grotesk", sans-serif;
}

.form-field input::placeholder {
  color: var(--color-blue-300);
}

.form-field input:focus {
  outline: none;
  border-color: var(--color-blue-300);
  box-shadow: 0 0 0 3px rgba(14, 96, 226, 0.3);
}

.form-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--color-blue-300);
}

.form-status {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-white);
}

.form-status.is-success {
  color: var(--color-blue-100);
}

.form-status.is-error {
  color: rgb(252, 165, 165);
}

/* ── FAQ accordion ─────────────────────────────────────────── */
.faq {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--color-white);
  border-radius: 16px;
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-blue-900);
  text-align: left;
  transition: background 0.15s ease;
}


.faq-trigger:focus-visible {
  outline: 2px solid var(--color-blue-500);
  outline-offset: -2px;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-blue-50);
  border: 1px solid var(--color-gray-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  color: var(--color-blue-500);
  line-height: 1;
  transition: transform 0.3s ease, background 0.2s ease;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: var(--color-blue-500);
  color: var(--color-white);
  border-color: var(--color-blue-500);
}

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-body > p {
  overflow: hidden;
  padding: 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  min-height: 0;
  transition: padding-bottom 0.3s ease;
}

.faq-item.is-open .faq-body {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-body > p {
  padding-bottom: 20px;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--color-blue-900);
  color: var(--color-blue-100);
  margin-top: 80px;
}

.footer-top {
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
}

/* Brand column */
.footer-brand p {
  font-size: 14px;
  color: var(--color-blue-300);
  line-height: 1.65;
  margin-top: 14px;
  max-width: 280px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-white);
  letter-spacing: -0.4px;
}

.footer-logo .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--color-blue-500);
  color: var(--color-white);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 1px;
}

/* Social buttons */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-blue-100);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.social-btn:hover {
  background: var(--color-blue-500);
  border-color: var(--color-blue-500);
  color: var(--color-white);
}

/* Link columns */
.footer-col-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-blue-300);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 14px;
  color: var(--color-blue-100);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.footer-link:hover {
  opacity: 1;
  color: var(--color-white);
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  font-size: 13px;
  color: var(--color-blue-300);
}

.footer-copy {
  font-family: "IBM Plex Mono", monospace;
}

.footer-tagline {
  font-style: italic;
  opacity: 0.7;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Scroll reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Animations ────────────────────────────────────────────── */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  60% {
    transform: scale(1.2);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy,
  .hero-visual {
    grid-column: auto;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split-text,
  .split-cards {
    grid-column: auto;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .map-card {
    position: static;
    margin-top: 16px;
    width: 100%;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  .chat-stack {
    margin-left: 0;
  }
  .cta-panel {
    padding: 32px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .live-dot,
  .js .reveal {
    animation: none;
    transition: none;
  }
}
