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

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

#stars { z-index: 0; opacity: 0.5; }
#tunnel { z-index: 2; opacity: 0.88; }

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

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

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

.brand-logo { width: 72px; height: 72px; display: block; object-fit: contain; }

.hero { padding: 62px 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 {
  position: relative;
  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);
}

.countdown::before {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(241, 242, 240, 0.42);
  content: "";
  opacity: 1;
}

.unit {
  position: relative;
  padding: 17px 3px 14px;
  border-right: 1px solid var(--line);
}
.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 strong { display: inline-block; }
.capacity > p strong.is-new { animation: latest-signup 700ms cubic-bezier(0.2, 0.8, 0.2, 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: var(--soft);
  transition: width 600ms ease;
}

@keyframes latest-signup {
  0% { opacity: 0.2; transform: translateY(7px) scale(0.88); }
  52% { color: #64c77b; transform: translateY(0) scale(1.14); }
  100% { color: inherit; opacity: 1; transform: scale(1); }
}
.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; }

.signup-overlay {
  position: fixed;
  z-index: 22;
  inset: 0;
  width: 100%;
  min-height: 100dvh;
  padding: 28px;
  place-items: center;
  overflow: auto;
  background: transparent;
}

body.signup-open::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: #000;
  content: "";
}

.signup-dialog {
  position: relative;
  z-index: 22;
  width: min(100%, 340px);
  display: grid;
  justify-items: center;
  gap: 10px;
}

.signup-brand {
  margin: 0 0 20px;
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.34em;
}

.signup-logo {
  width: 68px;
  height: 68px;
  margin-bottom: -8px;
  display: block;
  object-fit: contain;
}

.close-signup {
  position: fixed;
  z-index: 21;
  top: 22px;
  right: 24px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 21px;
  font-weight: 300;
  line-height: 1;
}

.signup-overlay input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 15px;
  text-align: left;
}

.signup-overlay input::placeholder { color: #666; }
.signup-overlay input:focus { border-color: #fff; outline: 2px solid rgba(255, 255, 255, 0.28); outline-offset: 3px; }

.signup-overlay #submit {
  width: min(100%, 220px);
  margin-top: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 10px;
}

.signup-overlay #submit:hover { background: #dfe1df; color: #000; }
.signup-overlay .status { color: rgba(255, 255, 255, 0.62); }
.signup-overlay .status[data-state="error"] { color: #ff948b; }

body.signup-open #stars,
body.signup-open #tunnel { z-index: 21; }

input {
  position: relative;
  z-index: 3;
  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 {
  position: relative;
  z-index: 3;
  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;
  box-shadow: 0 12px 38px rgba(241, 242, 240, 0.1);
}

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

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: 98px; }
  .brand { font-size: 10px; }
  .brand-logo { width: 62px; height: 62px; }
  .hero { padding-top: 38px; }
  .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; }
  footer { padding: 18px 0 14px; font-size: 7px; }
}

@media (max-width: 560px) and (max-height: 720px) {
  header { height: 82px; }
  .brand-logo { width: 54px; height: 54px; }
  .hero { padding-top: 24px; }
  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; }
  .capacity > p strong.is-new { animation: none; }
}
