:root {
  --paper: #f7f5f1;
  --paper-2: #efece4;
  --ink: #121212;
  --ink-soft: #56534c;
  --ink-faint: #67645c;
  --sig: #123e2c;
  --sig-ink: #ffffff;
  --line: rgba(18, 18, 18, 0.14);
  --glass: rgba(255, 255, 255, 0.5);
  --glass-line: rgba(255, 255, 255, 0.7);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.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;
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 34px) clamp(22px, 5vw, 64px);
}

.wordmark {
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: 0.16em;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--ink);
}

.meta-right {
  font-size: clamp(11px, 1.1vw, 12px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Stage — centered composition */
.stage {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(14px, 3vh, 36px) clamp(22px, 5vw, 40px) clamp(16px, 3vh, 30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Faint dial ring, centered behind the top — dissolves from the middle down */
.dial-bg {
  position: absolute;
  top: clamp(-70px, -6vh, -10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(660px, 108vw);
  height: auto;
  color: var(--ink);
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 18%, rgba(0, 0, 0, 0.55) 46%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 18%, rgba(0, 0, 0, 0.55) 46%, transparent 70%);
  animation: dial-in 1.2s ease 0.1s both;
}

.dial-bg line {
  stroke: currentColor;
}

.dial-bg .ctor {
  stroke-width: 0.5;
}

.dial-bg .dash {
  stroke-dasharray: 2 6;
}

.dial-bg .hand {
  stroke-width: 1.6;
  stroke-linecap: round;
}

.kicker,
.headline,
.lede,
.panel,
.countdown-live {
  position: relative;
  z-index: 1;
}

/* Frosted glass action card */
.panel {
  width: 100%;
  max-width: 560px;
  margin: clamp(16px, 2.6vh, 30px) auto 0;
  padding: clamp(12px, 2vw, 18px) clamp(18px, 3vw, 28px) clamp(10px, 1.8vw, 16px);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  backdrop-filter: blur(22px) saturate(1.1);
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.panel-rule {
  height: 1px;
  background: var(--line);
  margin: clamp(10px, 1.6vh, 14px) 0;
}

.kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 clamp(14px, 2vh, 20px);
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sig);
}

.kicker-rule {
  width: clamp(24px, 4vw, 44px);
  height: 1.5px;
  background: var(--sig);
}

.headline {
  margin: 0;
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -0.015em;
  line-height: 1;
  font-size: clamp(38px, 6vw, 76px);
}

.headline em {
  font-style: normal;
  color: var(--sig);
  white-space: nowrap;
}

.lede {
  margin: clamp(14px, 2vh, 20px) auto 0;
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.5vw, 18px);
}

/* Signup — centered underline */
.signup {
  margin: 0;
  width: 100%;
}

.field {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1.5px solid var(--ink);
  padding: 0 2px 10px;
}

.field input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 6px 0;
  font: inherit;
  color: var(--ink);
  outline: none;
}

.field input[type="email"]::placeholder {
  color: var(--ink-faint);
}

.field button {
  flex: none;
  border: 0;
  background: transparent;
  padding: 6px 2px;
  font: inherit;
  font-weight: 700;
  color: var(--sig);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.12s ease;
}

.field button:hover {
  opacity: 0.7;
}

.field button:disabled {
  opacity: 0.45;
  cursor: default;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-msg {
  margin: 14px 2px 0;
  min-height: 1.2em;
  font-size: 14px;
  color: var(--ink-soft);
}

.form-msg.is-ok {
  color: var(--sig);
  font-weight: 600;
}

.form-msg.is-err {
  color: #9a2a2a;
}

/* Ticker — single instrument bar */
.ticker {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.ticker .unit {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: clamp(8px, 1.4vw, 14px) 6px;
}

.ticker .divider {
  width: 1px;
  background: var(--line);
}

.ticker .value {
  font-weight: 900;
  font-stretch: 120%;
  font-size: clamp(28px, 5vw, 50px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.ticker .label {
  font-size: clamp(10px, 1.05vw, 12px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.countdown-live {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--sig);
}

.countdown-live:empty {
  display: none;
}

/* Entrance — subtle modern reveal */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dial-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.1;
  }
}

.kicker {
  animation: rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
.headline {
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.13s both;
}
.lede {
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--sig);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(14px, 2.4vw, 22px);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-faint);
}

.footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer a:hover {
  color: var(--ink);
}

.footer .dot {
  color: var(--line);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
