/* Lights Out — fake-door landing. Mobile-first, dark night theme. */
:root {
  --bg: #0a0e1a;
  --bg-2: #111634;
  --ink: #eef1fb;
  --muted: #9aa3c7;
  --accent: #7c8cff;
  --accent-2: #b98cff;
  --good: #6ee7b7;
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.09);
  --radius: 20px;
  --maxw: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, #1b2350 0%, rgba(27, 35, 80, 0) 60%),
    linear-gradient(180deg, var(--bg) 0%, #070a14 100%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

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

/* ---- Hero ---- */
.hero { padding: 64px 0 36px; text-align: center; }
.kicker {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem;
  color: var(--accent-2); margin: 0 0 14px; font-weight: 600;
}
.hero h1 {
  font-size: clamp(1.9rem, 6.4vw, 3rem); line-height: 1.1; margin: 0 0 18px;
  font-weight: 800; letter-spacing: -0.02em;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.sub {
  color: var(--muted); font-size: clamp(1rem, 3.4vw, 1.18rem);
  max-width: 30rem; margin: 0 auto 26px;
}
.sub strong { color: var(--ink); }

/* ---- Buttons ---- */
.btn {
  display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  border-radius: 999px; padding: 15px 26px; text-decoration: none; text-align: center;
  transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  color: #0a0e1a; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 10px 30px rgba(124, 140, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 38px rgba(124, 140, 255, 0.5); }
.btn-ghost {
  color: var(--ink); background: transparent; border: 1px solid var(--line);
  font-weight: 600; font-size: 0.95rem;
}

/* ---- Mechanism ---- */
.mechanism {
  display: grid; gap: 34px; align-items: center;
  padding: 34px 0; border-top: 1px solid var(--line); margin-top: 8px;
}
.mech-copy h2 {
  font-size: clamp(1.5rem, 5vw, 2.1rem); margin: 0 0 14px; letter-spacing: -0.02em;
}
.mech-copy p { color: var(--muted); margin: 0 0 22px; }
.mech-copy p em, .mech-copy p strong { color: var(--ink); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li {
  display: flex; align-items: center; gap: 12px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 15px; font-size: 0.98rem;
}
.steps li .n {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.82rem; font-weight: 700;
  color: #0a0e1a; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.mech-copy .mech-extra { margin: 18px 0 0; font-size: 0.9rem; }

/* ---- Phone mockup ---- */
.phone {
  justify-self: center; width: 260px; max-width: 78vw;
  aspect-ratio: 9 / 19; background: #05070f;
  border-radius: 40px; border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 6px #0b0f1e;
  padding: 14px; position: relative;
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 42%; height: 22px; background: #05070f; border-radius: 0 0 14px 14px; z-index: 2;
}
.screen {
  height: 100%; border-radius: 28px; padding: 30px 16px 16px;
  background: radial-gradient(120% 80% at 50% 0%, #1a2144 0%, #0a0e1c 70%);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  overflow: hidden;
}
.screen-time { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.02em; }
.screen-time span { font-size: 0.7rem; color: var(--muted); margin-left: 4px; vertical-align: super; }
.screen-greet { color: var(--muted); margin: 2px 0 14px; font-size: 0.9rem; }
.shutdown {
  position: relative; width: 118px; height: 118px; border-radius: 50%; border: 0;
  cursor: default; color: #fff; font-weight: 800; font-size: 1rem; line-height: 1.05;
  background: radial-gradient(circle at 50% 35%, #8a97ff 0%, #5b47d6 60%, #3a2f9e 100%);
  box-shadow: 0 0 0 8px rgba(124, 140, 255, 0.12), 0 14px 30px rgba(91, 71, 214, 0.5);
  display: grid; place-items: center; margin: 4px 0 16px;
}
.shutdown-ring {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(124, 140, 255, 0.45); animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.28); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .shutdown-ring { animation: none; } }
.seal-card {
  width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; margin-top: auto;
}
.seal-title { margin: 0 0 6px; font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.seal-title strong { color: var(--good); }
.seal-lock { margin-right: 4px; }
.seal-sub { margin: 0; font-size: 0.78rem; color: var(--muted); }

/* ---- Reserve / fake door ---- */
.reserve {
  text-align: center; padding: 46px 0 40px; border-top: 1px solid var(--line); margin-top: 20px;
}
.reserve h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); margin: 0 0 14px; letter-spacing: -0.02em; }
.reserve-sub { color: var(--muted); max-width: 30rem; margin: 0 auto 26px; }
#reserve-btn { font-size: 1.05rem; padding: 17px 34px; }

.reserve-form { max-width: 30rem; margin: 8px auto 0; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.reserve-form input[type="email"] {
  flex: 1 1 220px; min-width: 0; font: inherit; color: var(--ink);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  border-radius: 999px; padding: 15px 20px;
}
.reserve-form input::placeholder { color: #6b74a0; }
.reserve-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-note { color: var(--muted); font-size: 0.8rem; margin: 14px 0 0; }
.form-error { color: #ff9aa8; font-size: 0.85rem; margin: 10px 0 0; }

.reserve-done { max-width: 26rem; margin: 0 auto; }
.done-check {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.4rem; color: #0a0e1a; font-weight: 800;
  background: var(--good);
}
.done-title { font-size: 1.3rem; font-weight: 800; margin: 0 0 8px; }
.done-sub { color: var(--muted); margin: 0; }

/* ---- Footer ---- */
.site-footer {
  text-align: center; color: var(--muted); font-size: 0.82rem;
  padding: 30px 20px 40px; border-top: 1px solid var(--line); margin-top: 20px;
}
.site-footer nav { margin-top: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer span { margin: 0 8px; }

/* ---- Legal pages ---- */
.legal { max-width: 640px; margin: 0 auto; padding: 56px 20px 60px; }
.legal a.back { color: var(--accent); text-decoration: none; font-size: 0.9rem; }
.legal h1 { font-size: 1.8rem; margin: 18px 0 6px; letter-spacing: -0.02em; }
.legal .updated { color: var(--muted); font-size: 0.82rem; margin: 0 0 26px; }
.legal h2 { font-size: 1.1rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--ink); }
.legal a { color: var(--accent); }

/* ---- Wider screens: mechanism side-by-side ---- */
@media (min-width: 720px) {
  .mechanism { grid-template-columns: 1fr auto; gap: 48px; padding: 52px 0; }
  .mech-copy { text-align: left; }
  .hero { padding: 90px 0 44px; }
}
