:root {
  --bg: #081226;
  --ink: #eef1f6;
  --ink-soft: #b9c2d3;
  --ink-muted: #9aa6bc;
  --ink-faint: #7f8ba3;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.08);
  --amber: #f5a524;
  --amber-hot: #ffb840;
  --amber-soft: #ffc35c;
  --danger: #ffb4a0;
  --ok: #9bddc9;
  --panel: rgba(255, 255, 255, 0.04);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}
body {
  color: var(--ink);
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-soft); }
input::placeholder { color: var(--ink-faint); }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 5vw, 64px);
  position: relative;
  z-index: 2;
}

.brand { display: inline-flex; align-items: center; }
.logo {
  display: block;
  width: min(220px, 58vw);
  height: auto;
}

.date {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  white-space: nowrap;
}

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  position: relative;
  z-index: 1;
}

.copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4vw, 44px);
  padding: clamp(24px, 4vw, 48px) clamp(20px, 5vw, 64px) clamp(40px, 5vw, 72px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
}

h1 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(44px, 6.2vw, 92px);
  line-height: 0.88;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
h1 .accent {
  font-style: italic;
  color: var(--amber);
}

.lede {
  margin: 0;
  max-width: 36ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 560px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.unit {
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.unit + .unit {
  padding-left: clamp(12px, 2vw, 24px);
  border-left: 1px solid var(--line);
}
.unit .value {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.unit .value.secs { color: var(--amber); }
.unit .label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.capture {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.capture h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
}
input[type="email"]:focus {
  border-color: var(--amber);
  background: rgba(255, 255, 255, 0.07);
}
button[type="submit"] {
  flex: 0 0 auto;
  height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--amber);
  color: var(--bg);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease;
}
button[type="submit"]:hover { background: var(--amber-hot); }
button[type="submit"]:disabled { opacity: 0.65; cursor: wait; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  cursor: pointer;
}
.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--amber);
  cursor: pointer;
}

.form-status {
  min-height: 1.25rem;
  margin: 0;
  font-size: 14px;
}
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }

.visual {
  position: relative;
  min-height: clamp(360px, 58vh, 900px);
  overflow: hidden;
}
.visual-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 60% 55%, rgba(245, 165, 36, 0.10), rgba(8, 18, 38, 0) 70%);
  pointer-events: none;
}
#glyph-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 20px clamp(20px, 5vw, 64px) 28px;
  font-size: 13px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line-soft);
  position: relative;
  z-index: 2;
}

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

@media (min-width: 901px) {
  h1 .line1 { white-space: nowrap; }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .visual {
    order: 2;
    min-height: 420px;
  }
  .copy {
    order: 1;
    padding-bottom: 28px;
  }
  h1 {
    font-size: clamp(40px, 11vw, 64px);
  }
}

@media (max-width: 420px) {
  .top {
    padding: 18px 16px 8px;
  }
  .copy {
    padding: 16px 16px 28px;
    gap: 22px;
  }
  .date { font-size: 11px; }
  .unit .value {
    font-size: clamp(28px, 9vw, 36px);
  }
  button[type="submit"] {
    width: 100%;
    justify-content: center;
  }
  .visual {
    min-height: 340px;
  }
  .foot {
    padding: 16px 16px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  button[type="submit"] { transition: none; }
}
