:root {
  --ink:         #0E1117;
  --ink-mid:     #141922;
  --surface:     #1C2230;
  --border:      rgba(155,168,232,0.10);
  --border2:     rgba(255,255,255,0.055);
  --peri:        #9BA8E8;
  --peri-dim:    rgba(155,168,232,0.11);
  --peri-dark:   #7A8DD4;
  --sand:        #E8DDD0;
  --text:        #F0EDE6;
  --text-mid:    rgba(210, 205, 198, 0.545);
  --text-low:    rgba(238, 235, 230, 0.377);
  --tier-ex:     #A8C4A0;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: 'Satoshi', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Subtle gradient backdrop */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 72% 0%, rgba(155,168,232,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 8% 100%, rgba(232,221,208,0.03) 0%, transparent 55%);
  pointer-events: none; z-index: 0;
}

/* Noise grain */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.4;
}

.page {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* ── HEADER ── */
header {
  padding: 20px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border2);
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.logo-mark {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.06em;
  line-height: 1;
  display: flex;
  align-items: baseline;
}
.logo-mark .l-soft { color: var(--text); font-style: normal; }
.logo-mark .l-mattr { color: var(--peri); font-style: italic; }
.logo-sub {
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--text-low);
  margin-top: 4px;
}


.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border2);
  border-radius: 100px;
}
.pill-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #8ddd76;
  animation: breathe 2.8s ease-in-out infinite;
}
@keyframes breathe {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.35; transform:scale(0.75); }
}
.pill-text {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-low);
}

/* ── MAIN ── */
main {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* equal left and right panels */
}

/* LEFT */
.left-panel {
  padding: 40px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border2);
  overflow: hidden;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  animation: fadeUp 0.6s ease 0.05s both;
}
.eyebrow-line {
  width: 24px; height: 1px;
  background: var(--peri);
  opacity: 0.45;
}
.eyebrow-text {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--peri);
  opacity: 0.65;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 70px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease 0.15s both;
}
.hero-headline em {
  font-style: italic;
  color: var(--peri);
}

.hero-sub {
  font-family: 'Satoshi', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.82;
  letter-spacing: 0.03em;
  color: var(--text-mid);
  max-width: 420px;
  animation: fadeUp 0.8s ease 0.28s both;
}

/* Brand carousel strip */
.brand-strip {
  margin-top: 54px;
  margin-left: -56px;
  margin-right: -56px;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-block: 8px;
  background: var(--surface);
  overflow: hidden;
  position: relative;
}
.brand-strip::before,
.brand-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  pointer-events: none;
  z-index: 2;
}
.brand-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--surface) 0%, transparent 100%);
}
.brand-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--surface) 0%, transparent 100%);
}

.brand-track {
  display: inline-block;
  white-space: nowrap;
  animation: brand-scroll 12s linear infinite;
}

.brand-logo {
  display: inline-block;
  vertical-align: middle;
  height: 18px;
  margin-right: 40px;
  filter: grayscale(1);
  opacity: 0.9;
}

@keyframes brand-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Countdown placeholder — hidden, ready to activate */
.countdown-placeholder {
  margin-top: 52px;
  height: 72px;
  display: none; /* flip to flex when launch date is set */
  align-items: center;
  gap: 4px;
}

/* Social proof */
.social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  animation: fadeUp 0.7s ease 0.42s both;
}
.avatars { display: flex; }
.av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.5);
  margin-left: -10px; /* overlap circles */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  flex-shrink: 0;
}
.avatars .av:first-child { margin-left: 0; }
.avatars .av:nth-child(1) { background: #293668;  color: rgba(245,243,238,0.9);  z-index: 1; }
.avatars .av:nth-child(2) { background: #234332;  color: rgba(245,243,238,0.9);  z-index: 2; }
.avatars .av:nth-child(3) { background: #3C345E;  color: rgba(245,243,238,0.9);  z-index: 3; }
.avatars .av:nth-child(4) { background: #4A3021;  color: rgba(245,243,238,0.85); z-index: 4; }
.sp-text {
  font-family: 'Satoshi', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-mid);
}
.sp-text strong { color: var(--text); font-weight: 400; }

/* Tags */
.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 20px;
  animation: fadeUp 0.7s ease 0.55s both;
}
.tag {
  padding: 5px 12px;
  border: 1px solid var(--border2);
  border-radius: 100px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
  transition: border-color 0.2s, color 0.2s;
}


/* RIGHT */
.right-panel {
  padding: 40px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Form card */
.form-wrap {
  background: var(--surface);
  border: 1px solid var(--border2);
  padding: 32px 40px;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.9s ease 0.3s both;
}
.form-wrap::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,168,232,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}
.form-desc {
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 20px;
}

.field { margin-bottom: 24px; }
.field-label {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-low);
  display: block;
  margin-bottom: 7px;
}
.field-input {
  width: 100%;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border2);
  padding: 13px 16px;
  color: var(--text);
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  border-radius: 2px;
}
.field-input:focus {
  border-color: rgba(155,168,232,0.32);
  background: rgba(155,168,232,0.03);
}
.field-input::placeholder { color: var(--text-low); }
.field-error {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #C4A080;
  margin-top: 8px;
  display: none;
}
.field-input.error { border-color: rgba(196,160,128,0.45); }

/* Interest selector */
.interest-label {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 15px;
  display: block;
}
.interest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 6px;
  margin-bottom: 26px;
}
.int-opt {
  padding: 11px 14px;
  border: 1px solid var(--border2);
  border-radius: 2px;
  font-family: 'Satoshi', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.int-opt:hover {
  border-color: rgba(155,168,232,0.22);
  color: rgba(155,168,232,0.8);
  background: var(--peri-dim);
}
.int-opt.active {
  border-color: var(--peri-dark);
  color: var(--peri);
  background: var(--peri-dim);
}

.submit-btn {
  width: 100%;
  padding: 15px 24px;
  background: var(--peri);
  color: var(--ink);
  border: none;
  font-family: 'Satoshi', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.12s;
}
.submit-btn:hover { background: var(--peri-dark); transform: translateY(-1px); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-arrow { transition: transform 0.2s; }
.submit-btn:hover .btn-arrow { transform: translateX(3px); }


.form-status {
  margin-top: 18px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-align: center;
  color: var(--text-low);
  line-height: 1.9;
}
.form-status.success { color: var(--tier-ex); letter-spacing: 0.10em; text-transform: uppercase; }
.form-status.error-msg { color: #C4A080; }

/* Minimal spacer below form */
.form-spacer {
  margin-top: 20px;
  padding: 20px 24px;
  border: 1px solid var(--border2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: fadeUp 0.9s ease 0.45s both;
}
.fs-line {
  width: 18px; height: 1px;
  background: var(--peri);
  opacity: 0.25;
  flex-shrink: 0;
}
.fs-text {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-low);
  line-height: 1.75;
}

/* ── FOOTER ── */
footer {
  padding: 20px 56px;
  border-top: 1px solid var(--border2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-low);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--peri); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── SUCCESS STATE ── */
.success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  /* Use dynamic viewport on mobile to reduce phantom scroll from 100vh vs visible area */
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background: var(--ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 28px;
  padding: 24px 20px;
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: fadeUp 0.5s ease both;
}
.success-overlay.show { display: flex; }

/* Lock page scroll when success overlay is open (JS toggles html/body.overlay-open) */
html.overlay-open,
body.overlay-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.so-back {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 36px);
  left: 56px;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
  text-decoration: none;
  transition: color 0.2s;
}
.so-back:hover { color: var(--peri); }
.so-back svg { flex-shrink: 0; }
.so-check {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(168,196,160,0.35);
  display: flex; align-items: center; justify-content: center;
}
.so-check svg { stroke: var(--tier-ex); }
.so-h { font-family: 'Playfair Display', serif; font-size: 42px; font-weight: 400; color: var(--text); letter-spacing: 0.01em; }
.so-h em { font-style: italic; color: var(--peri); }
.so-sub { font-family: 'Satoshi', sans-serif; font-size: 16px; font-weight: 400; color: var(--text-mid); text-align: center; line-height: 1.75; max-width: 360px; }
.so-mono { font-family: 'DM Mono', monospace; font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-low); }

/* Mobile sticky CTA — hidden on desktop */
.mobile-cta-bar {
  display: none;
}

/* ── MOBILE ── */
@media (max-width: 860px) {
  #waitlist { scroll-margin-top: 16px; }

  .mobile-cta-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 20px 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, var(--ink) 70%, rgba(14, 17, 23, 0.92));
    border-top: 1px solid var(--border2);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .mobile-cta-bar.is-hidden {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
  }

  .mobile-cta-btn {
    width: 100%;
    max-width: 400px;
    padding: 14px 24px;
    background: var(--peri);
    color: var(--ink);
    border: none;
    border-radius: 2px;
    font-family: 'Satoshi', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, transform 0.12s;
  }
  .mobile-cta-btn:active { transform: scale(0.99); }
  .mobile-cta-btn:hover { background: var(--peri-dark); }

  .page {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  header { padding: 20px 28px; }
  main { grid-template-columns: 1fr; }
  .left-panel { padding: 32px 28px 44px; border-right: none; border-bottom: 1px solid var(--border2); }
  .eyebrow { margin-bottom: 24px; }
  .brand-strip {
    margin-top: 28px;
    margin-bottom: 28px;
  }
  .tag-row { margin-top: 0; }
  .right-panel { padding: 48px 28px; }
  .hero-headline { font-size: 40px; }
  footer { padding: 16px 28px; flex-direction: column; gap: 12px; text-align: center; }
  .so-back {
    left: max(16px, env(safe-area-inset-left, 0px));
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    min-height: 44px;
    padding: 8px 12px 8px 4px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 480px) {
  .tag-row {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .tag {
    display: inline-flex;
    width: auto;
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 5px 8px;
    white-space: nowrap;
  }

  .success-overlay {
    gap: 16px;
    padding: 16px 16px;
    padding-top: calc(56px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .so-back {
    left: max(12px, env(safe-area-inset-left, 0px));
    top: calc(env(safe-area-inset-top, 0px) + 8px);
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  .so-h { font-size: clamp(36px, 9vw, 48px); text-align: center; line-height: 1.08; }
  .so-sub { font-size: 13px; max-width: min(320px, 100%); padding: 0 4px; }
  .so-mono {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-align: center;
    overflow-wrap: anywhere;
  }
}

