:root {
  --bg: #f3f6f5;
  --bg-deep: #e6eeeb;
  --ink: #12181a;
  --muted: #5a6b72;
  --teal: #0d9488;
  --teal-deep: #0b6e66;
  --teal-mist: #d5f3ee;
  --mint: #12b981;
  --cta: #ff2950;
  --cta-deep: #d91b42;
  --cta-mist: #ffe3e9;
  --surface: #ffffff;
  --line: rgba(18, 24, 26, 0.1);
  --font: 'DM Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 85% 20%, rgba(13, 148, 136, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 10%, rgba(255, 41, 80, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(16, 185, 129, 0.1), transparent 55%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* —— Nav —— */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seal {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
}

.seal-sm {
  width: 22px;
  height: 22px;
}

.brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(18, 24, 26, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch:hover {
  background: var(--teal-mist);
  color: var(--teal-deep);
}

.nav-cta {
  font-weight: 700;
  font-size: 14px;
  color: var(--cta);
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--cta-mist);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: #ffd0da;
  transform: translateY(-1px);
}

/* —— Hero —— */
.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100vh - 84px);
  padding: 24px 28px 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  overflow: visible;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.hero-device {
  position: relative;
  z-index: 1;
  justify-self: end;
  padding: 20px 0;
}

.phone {
  position: relative;
  width: min(286px, 72vw);
  transform: rotate(-3deg);
  animation: float 7s ease-in-out infinite;
}

.phone-glow {
  position: absolute;
  inset: 8% -8% -6%;
  border-radius: 48px;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(13, 148, 136, 0.35),
    rgba(255, 41, 80, 0.12) 55%,
    transparent 72%
  );
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}

.phone-bezel {
  position: relative;
  z-index: 1;
  border-radius: 38px;
  padding: 9px;
  background:
    linear-gradient(155deg, #2a4f4a 0%, #0d3d38 42%, #062824 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 1px 0 rgba(94, 234, 212, 0.22),
    0 28px 56px rgba(6, 40, 36, 0.35);
}

.phone-island {
  width: 88px;
  height: 20px;
  margin: 6px auto 8px;
  border-radius: 14px;
  background: #050a0b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-screen {
  background:
    radial-gradient(ellipse 90% 50% at 80% -10%, rgba(13, 148, 136, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(255, 41, 80, 0.14), transparent 50%),
    linear-gradient(180deg, #12312d 0%, #0a1614 100%);
  border-radius: 30px;
  padding: 14px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 470px;
  color: #ecf8f5;
}

.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.balance {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(94, 234, 212, 0.18);
}

.balance-seal {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}

.balance-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7db5ad;
}

.balance-value {
  display: block;
  margin-top: 1px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.level {
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #5eead4;
  background: rgba(13, 148, 136, 0.22);
  border: 1px solid rgba(94, 234, 212, 0.28);
}

.streak {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255, 41, 80, 0.16);
  border: 1px solid rgba(255, 41, 80, 0.35);
  color: #ff8da3;
  font-size: 12px;
  font-weight: 700;
}

.streak-flame {
  width: 10px;
  height: 12px;
  background: var(--cta);
  border-radius: 50% 50% 45% 45% / 55% 55% 40% 40%;
  clip-path: polygon(50% 0%, 85% 45%, 70% 100%, 30% 100%, 15% 45%);
  animation: pulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 41, 80, 0.55);
}

.xp {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.xp-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7db5ad;
}

.xp-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.xp-fill {
  display: block;
  width: 80%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #2dd4bf 70%, #5eead4);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.55);
  animation: xp-load 1.4s ease-out both;
}

.mission {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(94, 234, 212, 0.14);
}

.mission-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mission-kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5eead4;
}

.reward-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #ecfdf5;
  background: linear-gradient(135deg, #059669, #0d9488);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.k-seal {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  vertical-align: middle;
}

.question {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #f4fffc;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 2px;
}

.choices span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 20, 18, 0.55);
  font-size: 13px;
  font-weight: 600;
  color: #d7ebe6;
}

.choices i {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #5eead4;
  background: rgba(13, 148, 136, 0.22);
  border: 1px solid rgba(94, 234, 212, 0.25);
}

.choices .picked {
  border-color: rgba(45, 212, 191, 0.65);
  background: rgba(13, 148, 136, 0.28);
  color: #ecfdf5;
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.2), 0 8px 20px rgba(13, 148, 136, 0.2);
}

.choices .picked i {
  color: #062824;
  background: #5eead4;
  border-color: transparent;
}

.ok {
  margin-left: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #12b981;
  box-shadow: 0 0 10px rgba(18, 185, 129, 0.55);
  position: relative;
}

.ok::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 5px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}

.week {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: auto;
  padding: 8px 4px 2px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
}

.day {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #6b9089;
  background: transparent;
}

.day.on {
  background: rgba(13, 148, 136, 0.35);
  color: #5eead4;
}

.day.now {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 41, 80, 0.45);
  animation: day-pulse 2s ease-in-out infinite;
}

.brand-line {
  display: block;
  font-size: clamp(56px, 9.5vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 700;
  color: var(--ink);
}

.lede {
  margin: 22px 0 0;
  max-width: 16ch;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.3;
  font-weight: 500;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 14px;
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 14px 32px rgba(255, 41, 80, 0.26);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--cta-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  color: var(--teal-deep);
  transition: color 0.2s ease;
}

.btn-ghost:hover {
  color: var(--cta);
}

/* —— How —— */
.how {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 28px 100px;
}

.how h2 {
  margin: 0 0 40px;
  max-width: 12ch;
  font-size: clamp(30px, 4.5vw, 42px);
  letter-spacing: -0.035em;
  font-weight: 700;
  line-height: 1.1;
}

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

.steps li {
  padding-top: 16px;
  border-top: 2px solid var(--teal);
}

.step-n {
  display: block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--cta);
  margin-bottom: 14px;
}

.steps h3 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
  max-width: 28ch;
}

/* —— Waitlist —— */
.wait {
  position: relative;
  padding: 0;
  background:
    linear-gradient(120deg, #0b6e66 0%, #0d9488 48%, #134e4a 100%);
  overflow: hidden;
}

.wait::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 41, 80, 0.22), transparent 68%);
  pointer-events: none;
}

.wait-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 28px;
  color: #fff;
}

.wait-inner h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.035em;
  font-weight: 700;
}

.wait-inner > p {
  margin: 12px 0 28px;
  opacity: 0.9;
  font-size: 17px;
  max-width: 36ch;
}

.form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 520px;
}

.form input {
  flex: 1 1 220px;
  min-height: 54px;
  border: none;
  border-radius: 14px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}

.form input:focus {
  outline: 3px solid rgba(255, 41, 80, 0.45);
  outline-offset: 2px;
}

.form button {
  min-height: 54px;
  padding: 0 24px;
  border: none;
  border-radius: 14px;
  background: var(--cta);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.form button:hover {
  background: var(--cta-deep);
  transform: translateY(-1px);
}

.form-note {
  margin: 16px 0 0;
  font-weight: 700;
  font-size: 14px;
}

.form-note.is-error {
  color: #ffe3e9;
  font-weight: 600;
}

.form button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

/* —— Footer —— */
.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 40px 24px 48px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-badge img {
  display: block;
  height: 50px;
  width: auto;
}

a:focus-visible,
button:focus-visible,
.lang-switch:focus-visible,
.nav-cta:focus-visible,
.btn-primary:focus-visible,
.btn-ghost:focus-visible {
  outline: 3px solid rgba(255, 41, 80, 0.45);
  outline-offset: 2px;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  text-align: center;
}

.legal a {
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.legal a:hover {
  color: var(--teal-deep);
}

.foot-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.foot-brand .dot {
  opacity: 0.5;
}

/* —— Motion —— */
.animate-in {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 {
  animation-delay: 0.12s;
}
.delay-2 {
  animation-delay: 0.24s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: rotate(-3deg) translateY(0);
  }
  50% {
    transform: rotate(-3deg) translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

@keyframes xp-load {
  from {
    width: 0;
  }
  to {
    width: 80%;
  }
}

@keyframes day-pulse {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 41, 80, 0.35);
  }
  50% {
    box-shadow: 0 0 18px rgba(255, 41, 80, 0.6);
  }
}

@media (max-width: 960px) {
  .nav {
    padding: 16px 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 12px 20px 56px;
    gap: 28px;
    justify-items: center;
  }

  .hero-copy {
    max-width: none;
    width: 100%;
    order: 1;
    text-align: center;
  }

  .hero-copy .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-device {
    order: 2;
    justify-self: center;
  }

  .phone {
    width: min(250px, 74vw);
  }

  .phone-screen {
    min-height: 0;
    gap: 10px;
    padding: 12px 10px 12px;
  }

  .mission {
    padding: 10px;
  }

  .question {
    font-size: 14px;
  }

  .choices span {
    padding: 9px 10px;
    font-size: 12px;
  }

  .brand-line {
    font-size: clamp(44px, 12vw, 64px);
  }

  .lede {
    max-width: none;
    font-size: clamp(18px, 4.5vw, 22px);
  }

  .cta-row {
    margin-top: 24px;
    justify-content: center;
  }

  .btn-primary,
  .btn-ghost {
    min-height: 48px;
  }

  .how {
    padding: 8px 20px 72px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .steps p {
    max-width: none;
  }

  .wait-inner {
    padding: 48px 20px;
  }

  .form {
    max-width: none;
  }

  .form input,
  .form button {
    width: 100%;
    flex: 1 1 100%;
  }

  .store-badge img {
    height: 44px;
  }

  .legal {
    gap: 10px 18px;
  }

  .legal a {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 16px;
  }

  .nav-cta {
    padding: 8px 12px;
    font-size: 13px;
  }
}

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

  .animate-in {
    opacity: 1;
    transform: none;
  }

  .phone {
    transform: rotate(-3deg);
  }
}
