:root {
  --bg: #0a0a0a;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.46);
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.07);
  --lime: #c6ff6e;
  --on-lime: #0a1a00;
  --mood: #c6ff6e;
  --bar: 64px;
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--bg);
  scroll-padding-top: calc(var(--bar) + 12px);
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(198, 255, 110, 0.18);
  overflow-x: clip;
}

@media (pointer: fine) {
  html { overscroll-behavior: none; }
}

img { display: block; max-width: 100%; height: auto; }

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

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

h1 { font-size: clamp(2rem, 5.4vw, 3.5rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.02em; }

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 80;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 600;
  transform: translateY(-120%);
}

.skip:focus {
  transform: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--bar);
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
  min-width: 0;
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: none;
}

.nav {
  display: none;
  gap: 4px;
  margin-left: auto;
  min-width: 0;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover { color: var(--ink); background: var(--glass); }

.topbar .btn { margin-left: auto; }
.topbar .nav + .btn { margin-left: 0; }

@media (min-width: 720px) {
  .nav { display: flex; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-lime {
  background: var(--lime);
  color: var(--on-lime);
  border-color: transparent;
}

.btn-lime:hover { filter: brightness(1.06); }

.btn-ghost {
  background: var(--glass);
  color: var(--ink);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

main {
  padding-bottom: calc(48px + env(safe-area-inset-bottom));
}

.hero {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 20px 8px;
  display: grid;
  gap: 28px;
}

.aura {
  position: absolute;
  left: -20%;
  right: -20%;
  top: -80px;
  height: 420px;
  pointer-events: none;
  background: radial-gradient(50% 50% at 70% 40%, rgba(198, 255, 110, 0.28), transparent 70%);
}

.hero-copy, .stage { position: relative; z-index: 1; }

.kicker {
  margin: 0 0 12px;
  color: var(--faint);
  font-size: 14px;
}

.lede {
  margin: 16px 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stage {
  position: relative;
  min-height: 480px;
  display: flex;
  justify-content: center;
  padding-top: 108px;
}

.puzo {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 176px;
  height: 176px;
  max-width: none;
  object-fit: contain;
  transform: translateX(-52%);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
  z-index: 2;
  pointer-events: none;
  animation: puzo-breathe 2.8s ease-in-out infinite;
}

@keyframes puzo-breathe {
  0%, 100% { transform: translateX(-52%) scale(1); }
  50% { transform: translateX(-52%) scale(1.03, 1.02); }
}

.phone {
  position: relative;
  width: 280px;
  flex: none;
  border-radius: 40px;
  border: 8px solid #111;
  background: #0d0d0d;
  box-shadow: 0 0 0 1px #2a2a2a, 0 30px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  z-index: 1;
}

.island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 86px;
  height: 24px;
  border-radius: 16px;
  background: #000;
  transform: translateX(-50%);
  z-index: 3;
}

.status {
  display: flex;
  justify-content: space-between;
  padding: 12px 22px 0;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.phone-body { padding: 100px 16px 88px; }

.ph-date {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.ph-title {
  margin: 2px 0 12px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.week {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 11px;
  color: var(--faint);
}

.week span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.week .on {
  background: #fff;
  color: #000;
  font-weight: 700;
}

.week .fut { opacity: 0.55; }

.glass-card {
  border-radius: 22px;
  padding: 14px;
  background: rgba(22, 22, 22, 0.9);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.gc-k { margin: 0; font-size: 11px; color: var(--faint); }
.gc-t { margin: 4px 0 0; font-size: 18px; font-weight: 700; }
.gc-m { margin: 2px 0 12px; font-size: 12px; color: var(--muted); }

.gc-btn {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--lime);
  color: var(--on-lime);
  font-size: 13px;
  font-weight: 700;
}

.dock {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  height: 58px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
  font-size: 10px;
  color: var(--faint);
  background: rgba(30, 30, 30, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.dock-on { color: #fff; }

.plus {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--on-lime);
  font-size: 22px;
  font-weight: 500;
  display: grid;
  place-items: center;
  line-height: 1;
}

.loop, .also, .faq, .cta {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 20px 0;
  scroll-margin-top: calc(var(--bar) + 16px);
}

.steps, .also ul, .faq-list, .cta p {
  max-width: 40rem;
}

.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 4px 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  grid-row: 1 / span 2;
  font-size: 1.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--lime);
  line-height: 1.1;
}

.steps h3 { grid-column: 2; }
.steps p {
  grid-column: 2;
  margin: 6px 0 0;
  color: var(--muted);
  min-width: 0;
  overflow-wrap: break-word;
}

.also ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.also li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  min-width: 0;
}

.also strong { font-size: 1.05rem; }
.also span { color: var(--muted); overflow-wrap: break-word; }

.faq-list { margin-top: 20px; }

details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  flex: none;
  color: var(--lime);
  font-weight: 500;
  font-size: 1.2rem;
}

details[open] summary::after { content: "–"; }

details p {
  margin: 0 0 16px;
  color: var(--muted);
}

.cta {
  margin-top: 56px;
  padding-bottom: 8px;
}

.cta p {
  margin: 10px 0 20px;
  color: var(--muted);
}

.footer {
  max-width: 1080px;
  margin: 40px auto 0;
  padding: 24px 20px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

.footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer a:hover { color: var(--ink); }

@media (max-width: 959px) {
  .stage {
    min-height: 0;
    padding: 96px 0 8px;
  }

  .phone { width: 260px; }

  .puzo {
    width: 156px;
    height: 156px;
    top: 16px;
  }

  .phone-body { padding-top: 86px; }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    padding-top: 56px;
    min-height: 560px;
  }

  .aura {
    left: 30%;
    height: 520px;
  }

  .stage { min-height: 520px; padding-top: 110px; }

  .puzo {
    width: 220px;
    height: 220px;
  }
}

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