:root {
  --navy-deep: #071F35;
  --navy: #0B2E4D;
  --blue: #1C5D99;
  --amber: #E8A33D;
  --paper: #FBFCFA;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  background: var(--navy-deep);
  color: var(--paper);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- background ---------- */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  animation: drift 40s linear infinite;
}
@keyframes drift { to { background-position: 32px 32px; } }

.glow {
  position: fixed; z-index: 0; pointer-events: none;
  width: 720px; height: 720px; left: 50%; top: -260px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232,163,61,.16), rgba(28,93,153,.14) 45%, transparent 70%);
  filter: blur(20px);
}

/* ---------- layout ---------- */
.page {
  position: relative; z-index: 1; flex: 1;
  width: 100%; max-width: 920px; margin: 0 auto;
  padding: 28px 22px 24px;
  display: flex; flex-direction: column;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em;
}
.brand-name span { color: var(--amber); }

.hero {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 0 20px;
}

.status {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; color: rgba(251,252,250,.8);
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05);
}
.status i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 0 rgba(232,163,61,.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(232,163,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,163,61,0); }
}

h1 {
  font-family: var(--font-display); font-weight: 600; margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: 1.04; letter-spacing: -.03em;
  max-width: 14ch;
}
h1 em {
  font-style: normal; color: var(--amber);
  background: linear-gradient(transparent 88%, rgba(232,163,61,.45) 88%);
}

.lead {
  max-width: 54ch; margin: 22px 0 0; font-size: 1.04rem; line-height: 1.65;
  color: rgba(251,252,250,.68);
}

/* ---------- countdown ---------- */
.countdown { display: flex; gap: 12px; margin-top: 36px; }
.unit {
  min-width: 82px; padding: 14px 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13);
  backdrop-filter: blur(6px);
}
.unit b {
  display: block; font-family: var(--font-mono); font-weight: 600; font-size: 2.1rem;
  line-height: 1; font-variant-numeric: tabular-nums; color: var(--paper);
}
.unit span { display: block; margin-top: 8px; font-size: 12px; color: rgba(251,252,250,.55); }
.live { margin: 36px 0 0; font-family: var(--font-display); font-size: 1.4rem; }
.live a { color: var(--amber); }

/* ---------- notify form ---------- */
.notify {
  display: flex; gap: 8px; width: 100%; max-width: 460px; margin-top: 34px;
  padding: 6px; border-radius: 12px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  transition: border-color .2s, box-shadow .2s;
}
.notify:focus-within { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(232,163,61,.15); }
.notify input[type="email"] {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  padding: 12px 12px; font: inherit; font-size: 15px; color: var(--paper);
}
.notify input::placeholder { color: rgba(251,252,250,.4); }
.notify button {
  border: 0; cursor: pointer; border-radius: 8px; padding: 0 20px;
  font: 600 14px var(--font-display); color: var(--navy-deep); background: var(--amber);
  transition: background .2s, transform .15s;
}
.notify button:hover { background: #fff; }
.notify button:active { transform: scale(.97); }
.notify button:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-msg { margin: 12px 0 0; min-height: 20px; font-size: 13px; color: rgba(251,252,250,.55); }
.form-msg.ok { color: #7fd8a4; }
.form-msg.err { color: #ff9b8f; }

/* ---------- chips ---------- */
.chips {
  list-style: none; padding: 0; margin: 26px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 620px;
}
.chips li {
  font-family: var(--font-mono); font-size: 12px; padding: 6px 12px; border-radius: 6px;
  color: rgba(251,252,250,.75); border: 1px dashed rgba(255,255,255,.22);
}

/* ---------- interactive ruler ---------- */
.ruler-wrap { position: relative; z-index: 1; width: 100%; height: 74px; margin-top: 10px; cursor: crosshair; }
.ruler {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(251,252,250,.9) 0 1px, transparent 1px 100px) bottom/100% 30px no-repeat,
    repeating-linear-gradient(90deg, rgba(251,252,250,.6) 0 1px, transparent 1px 50px) bottom/100% 20px no-repeat,
    repeating-linear-gradient(90deg, rgba(251,252,250,.38) 0 1px, transparent 1px 10px) bottom/100% 11px no-repeat,
    linear-gradient(rgba(232,163,61,.12), rgba(232,163,61,.03));
  border-top: 1px solid rgba(232,163,61,.55);
}
.ruler .num {
  position: absolute; top: 5px; font: 500 10px var(--font-mono);
  color: rgba(251,252,250,.6); transform: translateX(4px); user-select: none;
}
.marker {
  position: absolute; bottom: 0; top: 18px; width: 1px; left: 0; background: var(--amber);
  box-shadow: 0 0 12px rgba(232,163,61,.8); opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.readout {
  position: absolute; bottom: 52px; left: 0; display: flex; gap: 12px; align-items: baseline;
  padding: 6px 10px; border-radius: 6px; white-space: nowrap; pointer-events: none;
  background: var(--navy); border: 1px solid rgba(232,163,61,.5);
  font: 500 11px var(--font-mono); color: rgba(251,252,250,.75);
  opacity: 0; transition: opacity .2s;
}
.readout strong { color: var(--amber); font-weight: 600; }
.ruler-wrap.active .marker, .ruler-wrap.active .readout { opacity: 1; }

.ruler-hint { position: relative; z-index: 1; margin: 8px 0 0; text-align: center; font-size: 12px; color: rgba(251,252,250,.4); }
.foot { position: relative; z-index: 1; padding: 14px 22px 22px; text-align: center; font-size: 12px; color: rgba(251,252,250,.4); }

/* ---------- entrance animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  .countdown { gap: 8px; }
  .unit { min-width: 0; flex: 1; padding: 12px 4px 10px; }
  .unit b { font-size: 1.55rem; }
  .readout { gap: 8px; font-size: 10px; }
  .notify button { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
