:root {
  --bg: #06140f;
  --bg-deep: #04110c;
  --surface: #0a1c16;
  --panel: #12261c;
  --accent: #f5b731;
  --cream: #f4f1e8;
  --muted: #a8b8ad;
  --ink: #04110c;
  --border: #2a4332;
  --radius-btn: 16px;
  --radius-chip: 12px;
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: "DM Sans", system-ui, sans-serif;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3 { margin: 0; font-weight: 800; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-btn);
  padding: 16px 32px;
  border: 1.5px solid transparent;
  cursor: pointer;
  font: inherit;
}
.btn img { width: 20px; height: 20px; flex: 0 0 20px; }
.btn-stack { display: flex; flex-direction: column; gap: 1px; align-items: flex-start; line-height: 1.15; }
.btn-kicker { font-size: 11px; font-weight: 500; }
.btn-label { font-size: 16px; font-weight: 700; }
.btn-gold { background: var(--accent); color: var(--ink); }
.btn-gold .btn-kicker { opacity: 0.8; }
.btn-ghost { background: var(--surface); color: var(--cream); border-color: var(--border); }
.btn-ghost .btn-kicker { color: var(--muted); }
.btn-sm {
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-chip);
}
.btn-sm img { width: 16px; height: 16px; flex: 0 0 16px; }
.btn-sm .btn-label { font-size: 14px; }
.btn-xs {
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
}
.btn-xs img { width: 14px; height: 14px; flex: 0 0 14px; }

.hero {
  padding: 80px 0 120px;
}
.hero-stage {
  position: relative;
  height: 760px;
}
.glow {
  position: absolute;
  pointer-events: none;
}
.glow-ambient { left: -200px; top: -202px; width: 1100px; height: 1100px; }
.glow-1 { left: 0; top: -2px; width: 700px; height: 700px; }
.glow-2 { left: 100px; top: 98px; width: 500px; height: 500px; }
.glow-3 { left: 190px; top: 188px; width: 320px; height: 320px; }
.glow-4 { left: 260px; top: 258px; width: 180px; height: 180px; }
.hero-lamp {
  position: absolute;
  left: 70px;
  top: -80px;
  width: 560px;
  height: 700px;
}
.hero-lamp img { width: 560px; height: 700px; }
.hero-copy {
  position: absolute;
  left: 760px;
  top: 120px;
  width: 520px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.pill img { width: 8px; height: 8px; }
.hero h1 {
  font-size: 56px;
  letter-spacing: -1.68px;
  line-height: 1.1;
}
.lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 400;
}
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.section {
  padding: 100px 0;
}
.section-alt { background: var(--bg-deep); }
.section-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 64px;
}
.section-head h2 { font-size: 36px; }
.section-head p { font-size: 16px; color: var(--muted); max-width: 640px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step { display: flex; flex-direction: column; gap: 20px; }
.step-top { display: flex; justify-content: space-between; align-items: center; }
.step-num {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.3;
}
.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon img { width: 20px; height: 20px; }
.step h3 { font-size: 18px; font-weight: 700; }
.step p { font-size: 14px; line-height: 1.5; color: var(--muted); }

.preview {
  display: flex;
  gap: 80px;
  align-items: center;
  padding: 100px 0;
}
.phone {
  flex: 0 0 400px;
  width: 400px;
  height: 500px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 12px;
}
.phone-inner {
  background: var(--bg);
  border-radius: 32px;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.status {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px 0;
  font-size: 12px;
  font-weight: 700;
}
.phone-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.phone-body h3 { font-size: 18px; }
.light-card {
  background: var(--panel);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.light-card .status-line {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}
.mock-lamp {
  width: 80px;
  height: 80px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.mock-lamp img { width: 78px; height: 93px; }
.light-card .hint { font-size: 12px; color: var(--cream); text-align: center; }
.preview-copy { flex: 1; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.preview-copy h2 { font-size: 36px; }
.preview-copy .body { font-size: 16px; line-height: 1.6; color: var(--muted); }
.checks { display: flex; flex-direction: column; gap: 16px; }
.check { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.check img { width: 16px; height: 16px; flex: 0 0 16px; }

.banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 120px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.banner-glow {
  position: absolute;
  top: 100px;
  left: 50%;
  width: 800px;
  height: 500px;
  transform: translateX(-50%);
  pointer-events: none;
}
.banner-lamp { position: relative; width: 125px; height: 134px; overflow: hidden; }
.banner-lamp img { width: 125px; height: 146px; }
.banner h2 { font-size: 36px; }
.banner .sub { font-size: 16px; color: var(--muted); max-width: 560px; }

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}
.brand { width: 360px; display: flex; flex-direction: column; gap: 16px; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
}
.logo-mark {
  width: 28px;
  height: 28px;
  overflow: hidden;
  flex: 0 0 28px;
}
.logo-mark img { width: 28px; height: 30px; }
.logo-mark.lg { width: 32px; height: 32px; flex-basis: 32px; }
.logo-mark.lg img { width: 31px; height: 34px; }
.brand p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.legal-col { display: flex; flex-direction: column; gap: 16px; }
.legal-col .eyebrow { font-size: 12px; }
.legal-col a { font-size: 14px; color: var(--cream); }
.legal-col a.muted { color: var(--muted); }
.rule { border: 0; border-top: 1px solid var(--border); margin: 0 0 40px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.store-row { display: flex; gap: 12px; }

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.nav-actions { display: flex; gap: 16px; }
.nav .btn { padding: 10px 20px; border-radius: 12px; font-size: 14px; font-weight: 700; gap: 0; }
.nav .btn-ghost { font-weight: 600; border-width: 1px; }

.legal {
  padding: 80px 0 100px;
  max-width: 1120px;
  margin: 0 auto;
  width: min(1120px, calc(100% - 40px));
}
.legal-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.legal-head h1 { font-size: 48px; }
.legal-head .meta { font-size: 14px; color: var(--muted); }
.legal-head hr { border: 0; border-top: 1px solid var(--border); width: 100%; margin: 0; }
.legal article { display: flex; flex-direction: column; gap: 32px; }
.legal h2 { font-size: 20px; font-weight: 700; color: var(--accent); }
.legal p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.legal a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

.join-card {
  max-width: 520px;
  margin: 80px auto 120px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.join-card .lamp { width: 125px; height: 134px; overflow: hidden; }
.join-card .lamp img { width: 125px; height: 146px; margin: 0 auto; }
.join-card h1 { font-size: 32px; }
.join-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

@media (max-width: 1100px) {
  .hero-stage { height: auto; min-height: 0; display: flex; flex-direction: column; align-items: center; }
  .glow, .hero-lamp { position: relative; left: auto; top: auto; }
  .glow { display: none; }
  .hero-lamp { width: min(360px, 80vw); height: auto; }
  .hero-lamp img { width: 100%; height: auto; }
  .hero-copy { position: relative; left: auto; top: auto; width: 100%; padding: 24px 0 0; }
  .hero h1 { font-size: 40px; }
  .preview { flex-direction: column; }
  .phone { flex: none; }
}

@media (max-width: 800px) {
  .hero { padding: 40px 0 64px; }
  .section, .preview, .banner { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; }
  .legal-head h1, .hero h1, .section-head h2, .preview-copy h2, .banner h2 { font-size: 32px; }
  .footer-main, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .brand { width: 100%; }
  .phone, .phone { width: 100%; max-width: 400px; }
  .nav { flex-wrap: wrap; gap: 16px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
