/* ==========================================================================
   Aegis Router — Landing Page & Dedicated Waitlist Form Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts & Variables
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
}

/* --------------------------------------------------------------------------
   Reset & Document Defaults
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Fixed Full-Bleed Background Video
   -------------------------------------------------------------------------- */
.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

/* Page Wrapper */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* --------------------------------------------------------------------------
   1) HERO VIEWPORT (First Screen - Exactly 100vh)
   -------------------------------------------------------------------------- */
.hero-viewport {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1440px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
  margin: 0 auto;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  width: 100%;
  max-width: 720px;
  flex-shrink: 0;
  z-index: 10;
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo-btn {
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--nav-shadow);
  display: grid;
  place-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo-btn:hover {
  transform: scale(1.04);
}

.logo-img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
}

.nav-pill {
  flex: 1;
  max-width: 430px;
  height: clamp(44px, 5.2vw, 48px);
  background: #ffffff;
  border-radius: 999px;
  padding: 4px 8px;
  box-shadow: var(--nav-shadow);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--nav-text);
  text-decoration: none;
  padding: 8px clamp(8px, 1.2vw, 14px);
  opacity: 0.5;
  position: relative;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.75;
}

.nav-link.active {
  opacity: 1;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 3px;
  height: 3px;
  background: #000000;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: -5px 0 0 #000000, 5px 0 0 #000000;
}

.console-pill {
  height: clamp(44px, 5.2vw, 48px);
  background: var(--pill-dark);
  color: var(--sign-in-text);
  border-radius: 999px;
  padding: 0 clamp(18px, 2.2vw, 24px);
  box-shadow: var(--nav-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.console-pill:hover {
  background: #323234;
  color: #ffffff;
  transform: translateY(-1px);
}

.burger-btn {
  display: none;
}

/* Mobile Sheet & Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 98;
  animation: overlayIn 0.28s ease forwards;
}

.mobile-sheet {
  position: fixed;
  top: 80px;
  left: 16px;
  right: 16px;
  max-width: 420px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 28px;
  padding: 22px 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  z-index: 99;
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-link {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: #2e2e2e;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  animation: linkIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.08s + var(--i, 0) * 0.05s);
  transition: background 0.15s ease, opacity 0.15s ease;
}

.mobile-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

.mobile-link.active {
  color: #000000;
  font-weight: 600;
}

.mobile-link.active::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 3px;
  height: 3px;
  background: #000000;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: -5px 0 0 #000000, 5px 0 0 #000000;
}

.mobile-console-btn {
  display: block;
  width: 100%;
  background: #111111;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  padding: 13px;
  border-radius: 999px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(10px);
  animation: linkIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.08s + var(--i, 4) * 0.05s);
  transition: background 0.2s ease;
}

.mobile-console-btn:hover {
  background: #28282a;
}

/* Hero Center */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 900px;
  flex: 1;
  z-index: 5;
  min-width: 0;
}

/* Trust Row */
.trust-row {
  display: inline-flex;
  align-items: center;
  --trust-size: clamp(36px, 4.5vw, 42px);
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.avatar-ring {
  width: var(--trust-size);
  height: var(--trust-size);
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  font-size: calc(var(--trust-size) * 0.34);
}

.avatar-ring.a1 { z-index: 1; }
.avatar-ring.a2 { margin-left: calc(var(--trust-size) * -0.42); z-index: 2; }
.avatar-ring.a3 { margin-left: calc(var(--trust-size) * -0.42); z-index: 4; }

.trust-row:hover .avatar-ring.a1 { transform: translateY(-2px); }
.trust-row:hover .avatar-ring.a2 { transform: translateY(-4px); }
.trust-row:hover .avatar-ring.a3 { transform: translateY(-2px); }

.trust-pill {
  height: var(--trust-size);
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  margin-left: calc(var(--trust-size) * -0.42);
  padding-left: calc(var(--trust-size) * 0.58);
  padding-right: clamp(14px, 1.8vw, 20px);
  color: var(--trust-text);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 13.5px);
  white-space: nowrap;
  z-index: 3;
}

/* Headline */
.headline {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: clamp(12px, 1.8vh, 18px);
  max-width: 100%;
}

.hl-line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hl-line-1 { animation-delay: 0.12s; }
.hl-line-2 { animation-delay: 0.3s; }

/* Subhead */
.subhead {
  max-width: min(500px, 92%);
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  color: #d0d0d0;
  opacity: 0.8;
  line-height: 1.55;
  font-weight: 400;
  margin-bottom: clamp(18px, 2.8vh, 28px);
}

/* CTA Actions */
.cta-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease;
}

.cta-btn.primary {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 22px rgba(255, 255, 255, 0.32),
    0 0 44px rgba(255, 255, 255, 0.12);
}

.cta-btn.primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 28px rgba(255, 255, 255, 0.48),
    0 0 56px rgba(255, 255, 255, 0.22);
}

.cta-btn.secondary {
  background: var(--pill-dark);
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--nav-shadow);
}

.cta-btn.secondary:hover {
  transform: translateY(-2px);
  background: #38383b;
  color: #ffffff;
}

/* Stats Footer */
.stats-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 920px;
  gap: clamp(14px, 2vw, 24px);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-top: clamp(8px, 1.5vh, 16px);
  z-index: 5;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 14px);
}

.stat-glyph {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: clamp(22px, 3vw, 33px);
  flex-shrink: 0;
  line-height: 1;
}

.stat-body {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.stat-num {
  font-family: var(--font-sans);
  color: #ffffff;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.stat-suffix {
  font-size: 0.82em;
  font-weight: 500;
  margin-left: 2px;
}

.stat-lbl {
  color: var(--muted);
  font-size: clamp(11px, 1.2vw, 12.5px);
  font-weight: 400;
  margin-top: 2px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   2) WAITLIST PAGE SECTION (Below Hero)
   -------------------------------------------------------------------------- */
.waitlist-page-section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(60px, 10vh, 100px) clamp(16px, 4vw, 32px);
}

.waitlist-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

/* Section Header */
.waitlist-header {
  text-align: center;
  margin-bottom: clamp(24px, 4vh, 36px);
}

.waitlist-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(40, 40, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 500;
  color: #d4d4d8;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.waitlist-pulse {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseBeacon 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseBeacon {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px #10b981;
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
    box-shadow: 0 0 2px #10b981;
  }
}

.waitlist-title {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: clamp(28px, 4.8vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85), 0 4px 40px rgba(0, 0, 0, 0.95);
}

.waitlist-desc {
  font-size: clamp(14px, 1.5vw, 16px);
  color: #d4d4d8;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}

/* Waitlist Card */
.waitlist-card {
  width: 100%;
  background: rgba(18, 18, 20, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  padding: clamp(24px, 3.8vw, 42px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  margin-bottom: 0;
  position: relative;
  transition: border-color 0.3s ease;
}

/* Hide success box unless active */
.waitlist-card-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: successIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.waitlist-card-success.active {
  display: flex;
}

/* Card Top Ticker */
.waitlist-card-ticker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  color: #a1a1aa;
  flex-wrap: wrap;
  gap: 10px;
}

.live-counter-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
}

.live-dot.green {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.live-num {
  color: #ffffff;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

.live-num.bump {
  transform: scale(1.25);
  color: #34d399;
}

.batch-eta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c4c2c3;
}

/* Actual Waitlist Form */
.actual-waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}

.form-label {
  font-size: 12px;
  font-weight: 500;
  color: #a1a1aa;
  letter-spacing: 0.01em;
}

.field-input-box {
  display: flex;
  align-items: center;
  background: rgba(36, 36, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0 14px;
  height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
}

.field-input-box:focus-within {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(44, 44, 48, 0.85);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
}

.field-input-box.error {
  animation: shake 0.4s ease-in-out;
  border-color: #ef4444;
}

.field-icon {
  font-size: 14px;
  color: #71717a;
  margin-right: 10px;
  flex-shrink: 0;
}

.form-input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14px;
}

.form-input::placeholder {
  color: #52525b;
}

.select-box {
  cursor: pointer;
  position: relative;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.form-select option {
  background: #18181b;
  color: #ffffff;
  padding: 8px;
}

.select-chevron {
  font-size: 10px;
  color: #71717a;
  pointer-events: none;
  position: absolute;
  right: 14px;
}

/* Submit Action */
.form-action {
  margin-top: 8px;
}

.submit-waitlist-btn {
  width: 100%;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 20px rgba(255, 255, 255, 0.28);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.submit-waitlist-btn:hover {
  transform: translateY(-2px);
  background: #f4f4f5;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 28px rgba(255, 255, 255, 0.44);
}

.submit-waitlist-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-arrow {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.submit-waitlist-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.form-privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #71717a;
  margin-top: 4px;
}

/* Success Confirmation Box */
.waitlist-card-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: successIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.waitlist-card-success.active {
  display: flex;
}

.success-check-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.25);
}

.success-title {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.success-desc {
  font-size: 14px;
  color: #a1a1aa;
  max-width: 440px;
  line-height: 1.55;
  margin-bottom: 24px;
}

.success-desc strong {
  color: #ffffff;
}

.queue-spot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(30, 30, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 18px 28px;
  width: 100%;
  max-width: 380px;
  margin-bottom: 24px;
}

.spot-label {
  font-size: 11.5px;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.spot-number {
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 8px;
}

.spot-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #34d399;
  font-weight: 500;
}

.referral-box {
  width: 100%;
  max-width: 460px;
}

.referral-prompt {
  font-size: 12.5px;
  color: #a1a1aa;
  margin-bottom: 10px;
}

.referral-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(36, 36, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 4px 6px 4px 14px;
}

.ref-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 12.5px;
  font-family: monospace;
}

.copy-ref-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.copy-ref-btn:hover {
  background: #f4f4f5;
  transform: scale(1.02);
}

/* Feature Perks Grid */
.waitlist-perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.perk-card {
  background: rgba(22, 22, 25, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.perk-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
}

.perk-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 15px;
  margin-bottom: 14px;
}

.perk-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.perk-desc {
  font-size: 12px;
  color: #a1a1aa;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Shared Entrance Animations
   -------------------------------------------------------------------------- */
.anim:not(.headline):not(.cta-wrap) {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

.cta-wrap.anim {
  opacity: 0;
  animation: revealPulse 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0.4s);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
    filter: blur(6px);
  }
  60% {
    transform: translateY(-2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

@keyframes headlineFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes linkIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes successIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Tablet & Mobile (<= 720px) */
@media (max-width: 720px) {
  .header {
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
  }

  .logo-btn {
    width: 48px;
    height: 48px;
  }

  .nav-pill,
  .console-pill {
    display: none !important;
  }

  .burger-btn {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #28282a;
    border: none;
    cursor: pointer;
    gap: 4px;
    box-shadow: var(--nav-shadow);
    transition: background 0.25s ease;
    flex-shrink: 0;
  }

  .burger-bar {
    display: block;
    width: 18px;
    height: 1.5px;
    background: #ffffff;
    border-radius: 1px;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      background-color 0.28s ease,
      opacity 0.2s ease;
  }

  .burger-btn.open {
    background: #ffffff;
  }

  .burger-btn.open .burger-bar:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
    background-color: #000000;
  }

  .burger-btn.open .burger-bar:nth-child(2) {
    opacity: 0;
  }

  .burger-btn.open .burger-bar:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
    background-color: #000000;
  }

  .headline {
    font-size: clamp(22px, 5.8vw, 42px);
    letter-spacing: -0.08em;
    line-height: 1.05;
  }

  .stats-footer {
    grid-template-columns: repeat(2, 1fr);
    max-width: 440px;
    gap: 16px 24px;
  }

  /* Waitlist Form on Tablet/Mobile */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .waitlist-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .waitlist-perks-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Small Mobile (<= 420px) */
@media (max-width: 420px) {
  .trust-row {
    --trust-size: 34px;
  }

  .trust-pill {
    font-size: 12px;
    padding-right: 14px;
  }

  .headline {
    font-size: clamp(16px, 5vw, 22px);
    letter-spacing: -0.09em;
    line-height: 1.04;
  }

  .subhead {
    font-size: 13.5px;
    margin-bottom: 14px;
  }

  .stats-footer {
    gap: 12px 16px;
  }

  .cta-wrap {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    gap: 8px;
  }

  .cta-btn {
    width: 100%;
  }

  .queue-spot-card {
    padding: 16px 18px;
  }

  .spot-number {
    font-size: 30px;
  }
}

/* Short screens (height <= 700px) */
@media (max-height: 700px) {
  .hero-viewport {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .trust-row {
    margin-bottom: 8px;
  }

  .headline {
    margin-bottom: 6px;
    font-size: clamp(22px, 4.8vw, 48px);
  }

  .subhead {
    margin-bottom: 10px;
  }

  .stats-footer {
    padding-top: 4px;
  }
}

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

  .anim,
  .hl-line,
  .cta-wrap.anim {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .headline {
    color: #ffffff !important;
  }
}
