:root {
  --bg: #101312;
  --ink: #101312;
  --accent: #c9ff35;
  --text: #f4f6f4;
  --secondary: #c5c9c4;
  --tertiary: #9aa199;
  --danger: #ff8a7a;
  --font: Inter, "Noto Sans", "Liberation Sans", sans-serif;
  --lean: -7deg;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.05rem/1.45 var(--font);
}

img { max-width: 100%; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: var(--accent);
  padding: 8px 12px;
  z-index: 5;
}

.skip:focus { top: 12px; }

.wrap { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }

.kicker {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 28px 0 56px;
  background: var(--accent);
  color: var(--ink);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1.08fr);
  gap: 12px 20px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.wordmark {
  display: block;
  width: min(100%, 540px);
  aspect-ratio: 680 / 210;
  background: var(--ink);
  -webkit-mask: url("assets/brand/wordmark.svg") center / contain no-repeat;
  mask: url("assets/brand/wordmark.svg") center / contain no-repeat;
}

.enter {
  animation: rise 1.05s cubic-bezier(0.16, 0.84, 0.2, 1) both;
}

.enter-2 { animation-delay: 0.14s; }
.enter-3 { animation-delay: 0.28s; }
.enter-4 { animation-delay: 0.46s; }

h1 {
  margin: 14px 0 20px;
  font-size: clamp(2.8rem, 4.6vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--accent);
  font: 600 1.05rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

a.button:hover { transform: translateY(-3px); }

a.button:active { transform: translateY(-1px); }

button.button:disabled {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(16, 19, 18, 0.72);
  cursor: not-allowed;
  transform: none;
}

.button[hidden] { display: none; }

.stage {
  position: relative;
  z-index: 1;
  min-height: min(70svh, 640px);
  display: grid;
  align-items: center;
  justify-items: end;
  perspective: 1400px;
}

.outlines {
  position: absolute;
  width: min(118%, 560px);
  left: -18%;
  top: 10%;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
  shape-rendering: geometricPrecision;
  animation: drift 14s ease-in-out 1.4s infinite alternate;
}

.draw path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.draw path:nth-child(2) { animation-delay: 0.12s; }
.draw path:nth-child(3) { animation-delay: 0.24s; }
.draw path:nth-child(4) { animation-delay: 0.36s; }

.phone-float {
  position: relative;
  z-index: 1;
  margin-right: 2%;
  transform: translate3d(0, var(--shift, 0px), 0);
}

.phone-tilt {
  --rx: 0deg;
  --ry: 0deg;
  transform: rotate(var(--lean)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.18s ease-out;
}

.device {
  position: relative;
  container-type: inline-size;
  width: min(28vw, 250px, 30svh);
  animation: float 3.4s ease-in-out infinite alternate;
}

.device-step {
  width: min(100%, 200px);
  animation: none;
}

.device-body {
  position: relative;
  z-index: 1;
  padding: 2.2cqi;
  border-radius: 13.5cqi;
  background: #171918;
  box-shadow: inset 0 0 0 1px #8e938f;
}

.device-screen {
  position: relative;
  aspect-ratio: 1206 / 2622;
  overflow: hidden;
  border-radius: calc(13.5cqi - 2.2cqi);
  background: #101312;
}

.device-screen picture,
.device-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.device-screen.is-pending {
  display: grid;
  place-items: center;
  background: #171a19;
}

.device-screen.is-pending p {
  margin: 0;
  max-width: 11ch;
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.island {
  position: absolute;
  z-index: 1;
  top: 1.26%;
  left: 50%;
  width: 31.34%;
  height: 4.23%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.key {
  position: absolute;
  z-index: 0;
  left: -2px;
  width: 3px;
  border-radius: 2px 0 0 2px;
  background: #3e4240;
}

.mute { top: 13.5%; height: 5.2%; }
.up { top: 22%; height: 8.2%; }
.down { top: 32.2%; height: 8.2%; }

.side {
  left: auto;
  right: -2px;
  top: 25%;
  height: 12.5%;
  border-radius: 0 2px 2px 0;
}

.marquee {
  overflow: hidden;
  background: var(--bg);
  color: var(--accent);
  padding: 16px 0 14px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee span {
  padding: 0 28px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.how { padding: 64px 0 88px; }

h2 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.steps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
  align-items: start;
}

.step h3 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.step p {
  margin: 0 0 14px;
  max-width: 26ch;
  color: var(--secondary);
  font-size: 1.02rem;
}


.js .reveal {
  opacity: 0;
  transform: translateY(72px);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s ease, transform 0.9s cubic-bezier(0.16, 0.84, 0.2, 1);
}

.js .step.reveal:nth-child(1) { transition-delay: 0.05s; }
.js .step.reveal:nth-child(2) { transition-delay: 0.22s; }
.js .step.reveal:nth-child(3) { transition-delay: 0.4s; }

.js .step.is-active .device-step {
  animation: step-lift 2.8s ease-in-out infinite alternate;
}

.close {
  background: var(--accent);
  color: var(--ink);
  padding: 80px 0 88px;
  overflow: clip;
}

.close-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1fr);
  gap: 36px 64px;
  align-items: center;
}

.card-stage {
  display: grid;
  place-items: center;
  min-height: 260px;
}

.mark-card {
  width: min(100%, 400px);
  background: var(--ink);
  border-radius: 32px;
  padding: 42px 38px 34px;
  transform: rotate(8deg);
  animation: card-float 4.2s ease-in-out infinite alternate;
}

.wordmark-on-dark {
  width: 100%;
  background: var(--accent);
  animation: none;
}

.waitlist h2 { max-width: 8ch; }

.wait-note {
  margin: 14px 0 18px;
  max-width: 28ch;
  font-size: 1.15rem;
}

form { margin-top: 8px; }

.signup-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin-top: 16px;
}

.signup-row .field {
  flex: 1 1 220px;
  min-width: min(100%, 220px);
  margin: 0;
}

.signup-row .button { margin: 0; }

.field { margin-top: 16px; }

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input[type="email"] {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: var(--text);
  font: 400 1.05rem/1.3 var(--font);
}

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  margin: 16px 0 18px;
  font-weight: 500;
}

.consent input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.banner,
.result.is-shown {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--accent);
  font-weight: 600;
  line-height: 1.4;
}

.banner[hidden] { display: none; }

.result { margin: 14px 0 0; }

.result.is-error { color: var(--danger); }

.fine {
  margin: 12px 0 0;
  max-width: 36ch;
  font-size: 0.95rem;
}

.footer { padding: 28px 0 36px; }

.wordmark-footer {
  width: 92px;
  background: var(--accent);
  animation: none;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.how :focus-visible,
.footer :focus-visible { outline-color: var(--accent); }

@keyframes rise {
  from { opacity: 0; transform: translateY(48px); }
  to { opacity: 1; transform: none; }
}

@keyframes draw { to { stroke-dashoffset: 0; } }

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(16px, -12px, 0); }
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-28px); }
}

@keyframes marquee { to { transform: translateX(-50%); } }

@keyframes card-float {
  from { transform: rotate(11deg) translateY(0); }
  to { transform: rotate(3deg) translateY(-24px); }
}

@keyframes step-lift {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

@media (max-width: 860px) {
  .wrap { width: min(1180px, calc(100% - 36px)); }

  .hero {
    min-height: 0;
    align-items: start;
    padding: 22px 0 108px;
  }

  .hero-layout,
  .close-grid,
  .steps { grid-template-columns: 1fr; }

  .wordmark { width: 100%; }

  h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); margin: 10px 0 16px; }

  .stage {
    min-height: 0;
    margin-top: 22px;
    justify-items: center;
  }

  .outlines {
    width: min(92%, 340px);
    left: 6%;
    top: 12%;
  }

  .phone-float { margin: 0 0 8px; }

  .device { width: min(58vw, 220px); }

  .device-step { width: min(62vw, 210px); }

  .signup-row {
    flex-direction: column;
    align-items: stretch;
  }

  .signup-row .button { align-self: flex-start; }

  .steps { gap: 36px; margin-top: 28px; }

  .how { padding: 48px 0 64px; }

  .close { padding: 56px 0 64px; }

  .card-stage { min-height: 0; padding: 4px 0 8px; }

  .mark-card { width: min(100%, 320px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .enter,
  .device,
  .mark-card,
  .outlines,
  .draw path,
  .marquee-track,
  .phone-tilt,
  .js .step.is-active .device-step { animation: none; }

  .enter { opacity: 1; transform: none; }

  .draw path { stroke-dashoffset: 0; }

  .phone-tilt { transform: rotate(var(--lean)); transition: none; }

  .device { transform: none; }

  .mark-card { transform: rotate(8deg); }

  .button { transition: none; }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
