:root {
  --bg: #090a09;
  --ink: #f1f2f0;
  --soft: #a6aaa7;
  --muted: #686c69;
  --line: rgba(241, 242, 240, 0.14);
  --surface: rgba(241, 242, 240, 0.035);
  --google-blue: #4285f4;
  --google-red: #ea4335;
  --google-yellow: #fbbc05;
  --google-green: #34a853;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

#tunnel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.46;
  will-change: contents;
  pointer-events: none;
}

main {
  position: relative;
  width: min(100% - 40px, 520px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  text-align: center;
}

header {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.32em;
  text-decoration: none;
}

.brand-mark {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--soft);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.hero { padding: 44px 0 0; }

.eyebrow,
.section-label {
  margin: 0;
  color: rgba(241, 242, 240, 0.68);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 20px 0 0;
  font-size: clamp(42px, 10vw, 58px);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.98;
  text-shadow: 0 2px 28px var(--bg);
}

.tagline {
  max-width: 430px;
  margin: 20px auto 0;
  color: rgba(241, 242, 240, 0.82);
  font-size: 16px;
  line-height: 1.5;
}

.countdown-wrap { margin-top: 48px; }

.countdown {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 9, 0.64);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.unit {
  --accent: var(--ink);
  position: relative;
  padding: 17px 3px 14px;
  border-right: 1px solid var(--line);
}
.unit:nth-child(1) { --accent: var(--google-blue); }
.unit:nth-child(2) { --accent: var(--google-red); }
.unit:nth-child(3) { --accent: var(--google-yellow); }
.unit:nth-child(4) { --accent: var(--google-green); }
.unit::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 24px;
  height: 2px;
  background: var(--accent);
  content: "";
  opacity: 0.78;
  transform: translateX(-50%);
}
.unit:last-child { border-right: 0; }

.value {
  display: block;
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 1;
}

.label {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.access {
  position: relative;
  margin-top: 36px;
  padding: 25px 24px 0;
  border: 0;
  background: linear-gradient(180deg, rgba(9, 10, 9, 0.82), rgba(9, 10, 9, 0.62));
}

.capacity > p { margin: 0; font-size: 38px; font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.capacity > p span { color: var(--muted); font-size: 15px; letter-spacing: 0; }
.capacity > span { display: block; margin-top: 8px; color: var(--soft); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }

.scarcity { width: min(100%, 330px); margin: 20px auto 27px; }
.gauge { height: 1px; background: rgba(241, 242, 240, 0.12); overflow: hidden; }
.gauge-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
  transition: width 600ms ease;
}
.scarcity p { margin: 9px 0 0; color: var(--soft); font-size: 9px; }

h2 { margin: 0 0 18px; font-size: 22px; font-weight: 600; letter-spacing: -0.035em; }

form { display: grid; gap: 4px; }

input {
  width: 100%;
  padding: 13px 4px 11px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: 14px var(--sans);
  text-align: left;
}

input::placeholder { color: #555956; }
input:focus { border-color: rgba(241, 242, 240, 0.72); }

button { border-radius: 0; font-family: var(--sans); cursor: pointer; }

#submit,
#reveal-signup {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

#submit:hover,
#reveal-signup:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
#submit:disabled { cursor: default; opacity: 0.5; }

#reveal-signup { width: 100%; margin-top: 0; }

button:focus-visible,
a:focus-visible,
input:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.status { min-height: 15px; margin: 9px 0 0; color: var(--muted); font-size: 10px; }
.status[data-state="error"] { color: #d69589; }
.privacy { margin: 2px 0 0; color: var(--muted); font-size: 9px; }

.result-label { margin: 0; color: var(--muted); font-size: 8px; font-weight: 650; letter-spacing: 0.2em; text-transform: uppercase; }
.result-note { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.rank { margin: 11px 0 16px; font-size: 56px; font-weight: 400; letter-spacing: -0.055em; line-height: 1; }
.result-hint { margin: 0 0 20px; color: var(--soft); font-size: 11px; line-height: 1.55; }
.result-hint strong { color: var(--ink); font-weight: 500; }

.share-link { display: flex; gap: 8px; margin-bottom: 8px; }
.share-link input { min-width: 0; padding: 10px; font-size: 10px; text-align: left; }
.share-link button { padding: 0 14px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font-size: 9px; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share { padding: 10px; border: 1px solid var(--line); color: var(--soft); font-size: 9px; letter-spacing: 0.08em; text-decoration: none; text-transform: uppercase; }
.referral-count { margin: 15px 0 0; color: var(--muted); font-size: 9px; }

.leaderboard { margin-top: 28px; }
.leaderboard ol { margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.leaderboard li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; text-align: left; }
.leaderboard li strong { color: var(--soft); font-weight: 500; }

footer {
  margin-top: auto;
  padding: 38px 0 28px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-badge { display: block; margin-bottom: 7px; color: #d69589; }
[hidden] { display: none !important; }

@media (max-width: 560px) {
  main { width: min(100% - 28px, 480px); }
  header { height: 58px; }
  .brand { font-size: 10px; }
  .brand-mark { width: 24px; height: 24px; font-size: 10px; }
  .hero { padding-top: 18px; }
  .eyebrow { font-size: 7px; }
  h1 { margin-top: 13px; font-size: clamp(37px, 10.8vw, 44px); line-height: 0.96; }
  .tagline { margin-top: 13px; font-size: 13px; line-height: 1.4; }
  .countdown-wrap { margin-top: 22px; }
  .countdown { margin-top: 9px; }
  .unit { padding: 12px 3px 10px; }
  .value { font-size: 24px; }
  .label { margin-top: 5px; font-size: 6px; }
  .access { margin-top: 18px; padding: 18px 20px 0; }
  .capacity > p { font-size: 32px; }
  .capacity > span { margin-top: 5px; font-size: 7px; }
  .scarcity { margin: 14px auto 18px; }
  .scarcity p { margin-top: 6px; font-size: 8px; }
  h2 { margin-bottom: 12px; font-size: 19px; }
  form { gap: 6px; }
  input { padding: 10px 12px; font-size: 13px; }
  #submit { margin-top: 10px; padding: 11px; font-size: 9px; }
  .status { min-height: 12px; margin-top: 4px; font-size: 9px; }
  .privacy { margin-top: 0; font-size: 8px; }
  footer { padding: 18px 0 14px; font-size: 7px; }
}

@media (max-width: 560px) and (max-height: 720px) {
  header { height: 48px; }
  .hero { padding-top: 10px; }
  h1 { margin-top: 10px; font-size: 35px; }
  .tagline { margin-top: 9px; font-size: 12px; }
  .countdown-wrap { margin-top: 14px; }
  .access { margin-top: 12px; padding-top: 14px; }
  .scarcity { margin: 12px 0 14px; }
  h2 { margin-bottom: 9px; }
  footer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gauge-fill { transition: none; }
}
