/* ---- Tokens ---- */
:root {
  --bg:      #111215;
  --surface: #17181c;
  --border:  rgba(255,255,255,0.08);
  --fg:      #ffffff;
  --muted:   #9699a4;
  --c1:      #00F0FF;
  --c2:      #7B5CFF;
  --c3:      #FF2BD6;
  --grad:    linear-gradient(90deg, #00F0FF, #7B5CFF, #FF2BD6);
  --r:       10px;
  color-scheme: dark;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* ---- Canvas background ---- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
}

/* ---- Page layout ---- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-left:  max(16px, env(safe-area-inset-left,  0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---- Nav ---- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.nav-brand {
  font-size: 17px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}
.nav-domain {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ---- Hero ---- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 60px 80px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: var(--border);
}

.hero-title {
  font-size: clamp(52px, 10vw, 96px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-wrap: balance;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--muted);
  font-weight: 400;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 52px;
}
.hero-sub strong {
  color: var(--fg);
  font-weight: 600;
}

/* ---- Countdown ---- */
.countdown {
  display: flex;
  gap: clamp(16px, 4vw, 36px);
  margin-bottom: 52px;
  flex-wrap: wrap;
  justify-content: center;
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
}
.cd-num {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cd-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cd-sep {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 300;
  color: var(--border);
  align-self: flex-start;
  padding-top: 6px;
  font-variant-numeric: tabular-nums;
}

/* ---- Email form ---- */
.waitlist {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.waitlist-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.waitlist-input {
  flex: 1;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 13px 16px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
}
.waitlist-input::placeholder { color: var(--muted); }
.waitlist-input:focus { border-color: var(--c1); }

.waitlist-btn {
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: var(--r);
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, filter 0.15s;
  letter-spacing: 0.02em;
}
.waitlist-btn:hover { filter: brightness(1.1); }
.waitlist-btn:active { opacity: 0.8; }

.waitlist-hint {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.success-msg {
  display: none;
  font-size: 14px;
  font-weight: 600;
  color: #34c759;
  background: rgba(52,199,89,0.1);
  border: 1px solid rgba(52,199,89,0.3);
  border-radius: var(--r);
  padding: 13px 20px;
  text-align: center;
  width: 100%;
}
.success-msg.visible { display: block; }

/* ---- Teaser ---- */
.teaser {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding-block: 0 80px;
  text-align: center;
}
.teaser-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding-block: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* ---- Gradient line divider ---- */
.grad-line {
  width: 60px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  margin: 0 auto 48px;
}
