:root {
  --bg: #f9fbf8;
  --ink: #18221a;
  --muted: #4b6150;
  --primary: #2d5a36;
  --on-primary: #ffffff;
  --surface: #ffffff;
  --outline: #d4e3d6;
  --error: #ba1a1a;
  --radius: 20px;
  --shadow: 0 28px 80px rgba(24, 34, 26, 0.18);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--bg);
}

#mesh {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.topbar, main, footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(24, 34, 26, 0.12);
}

.coming {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}

.stores {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.85fr);
  gap: 48px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 28px 48px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lede {
  margin: 0 0 28px;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.waitlist {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 460px;
}

.waitlist input {
  height: 52px;
  border: 1px solid var(--outline);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 0 16px;
  font: inherit;
  color: var(--ink);
}

.waitlist input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.waitlist button {
  height: 52px;
  border: 0;
  border-radius: 14px;
  padding: 0 20px;
  background: var(--primary);
  color: var(--on-primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.waitlist button:hover { filter: brightness(1.08); }
.waitlist button:disabled { opacity: 0.7; cursor: default; }

.hint, .form-msg {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

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

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

.phone-wrap {
  display: flex;
  justify-content: center;
}

/* Samsung Galaxy S23 Ultra — 1080×2316 ~ 20:9, punch-hole, titanium chassis */
.s23 {
  position: relative;
  width: min(320px, 78vw);
  filter: drop-shadow(0 36px 50px rgba(18, 24, 20, 0.28));
}

.s23-bezel {
  background: linear-gradient(145deg, #4a4a4c 0%, #1c1c1e 42%, #2f2f32 100%);
  border-radius: 42px;
  padding: 9px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45);
}

.s23-screen {
  position: relative;
  aspect-ratio: 1080 / 2316;
  border-radius: 34px;
  overflow: hidden;
  background: #111712;
}

.s23-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.punch {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3a4a62 0 28%, #0b0d10 32% 100%);
  box-shadow: 0 0 0 2px #111;
  z-index: 2;
}

.s23 .btn {
  position: absolute;
  background: #1a1a1c;
  border-radius: 3px;
}

.volume-up {
  left: -3px;
  top: 118px;
  width: 3px;
  height: 42px;
}

.volume-down {
  left: -3px;
  top: 168px;
  width: 3px;
  height: 42px;
}

.power {
  right: -3px;
  top: 154px;
  width: 3px;
  height: 58px;
}

.play {
  max-width: 1180px;
  margin: 0 auto 72px;
  padding: 0 28px;
  text-align: center;
}

.play-copy h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.play-copy p {
  margin: 0 auto 20px;
  max-width: 36rem;
  color: var(--muted);
}

.wheel-stage {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  touch-action: none;
}

#wheel {
  width: 100%;
  height: auto;
  display: block;
  cursor: grab;
  user-select: none;
}

#wheel:active { cursor: grabbing; }

.broken {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  pointer-events: none;
}

.broken[hidden] { display: none; }

.broken p {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--error);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.broken button {
  pointer-events: auto;
  justify-self: center;
  border: 0;
  border-radius: 14px;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--on-primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mute {
  margin-top: 16px;
  border: 1px solid var(--outline);
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  color: var(--muted);
  font-size: 13px;
}

footer img { border-radius: 8px; }

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lede, .waitlist { margin-inline: auto; }

  .waitlist {
    grid-template-columns: 1fr;
  }

  .phone-wrap { order: -1; }

  .s23 { width: min(260px, 68vw); }
}

@media (prefers-reduced-motion: reduce) {
  #mesh { display: none; }
  body { background: var(--bg); }
}
