/* ─────────────────────────────────────────────────────────────────────
   LIFX VISUALIZER — Landing page
   ─────────────────────────────────────────────────────────────────────
*/

/* ── Stage: full-bleed photo with scrim ───────────────────────────── */
.stage {
  position: relative;
  min-height: 100svh;
  background-color: var(--surface-void);
  background-image: url('/static/img/landing-hero-sm.webp');
  background-size: cover;
  background-position: center;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.stage::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--polychrome-spectrum);
  opacity: 0.85;
  z-index: 5;
}
.stage::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(ellipse 70% 90% at 22% 70%,
      rgba(9,9,6,0.85), rgba(9,9,6,0.30) 55%, transparent 80%),
    linear-gradient(180deg,
      rgba(9,9,6,0.65) 0%, rgba(9,9,6,0) 22%, rgba(9,9,6,0) 60%,
      rgba(9,9,6,0.92) 100%);
}
@media (min-width: 768px) {
  .stage { background-image: url('/static/img/landing-hero.webp'); }
}
@media (min-width: 900px) {
  .stage::after {
    background:
      radial-gradient(ellipse 65% 100% at 18% 60%,
        rgba(9,9,6,0.85), rgba(9,9,6,0.25) 55%, transparent 80%),
      linear-gradient(180deg,
        rgba(9,9,6,0.55) 0%, rgba(9,9,6,0) 18%, rgba(9,9,6,0) 70%,
        rgba(9,9,6,0.85) 100%);
  }
}

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: relative; z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 5vw, 64px);
  padding-top: max(14px, env(safe-area-inset-top));
  background: rgba(9,9,6,0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-divider { color: var(--ink-30); }
.brand-product {
  font-size: 11px; font-weight: 500; line-height: 1;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--highlight);
}
.nav-meta {
  font-size: 10px; font-weight: 500; line-height: 1;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-50); font-variant-numeric: tabular-nums;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  padding:
    clamp(20px, 6vw, 48px)
    max(clamp(20px, 6vw, 48px), env(safe-area-inset-right))
    max(clamp(28px, 7vw, 56px), env(safe-area-inset-bottom))
    max(clamp(20px, 6vw, 48px), env(safe-area-inset-left));
  gap: clamp(28px, 5vw, 48px);
}
@media (min-width: 1000px) {
  .hero { align-items: center; padding: clamp(40px, 6vw, 96px); }
}

.hero-col {
  display: flex; flex-direction: column;
  gap: clamp(16px, 3vw, 24px);
  max-width: 720px;
  min-width: 0;
}

.live-chip {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  border-radius: 9999px;
  background: rgba(9,9,6,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--hairline-strong);
  font-size: 10px; font-weight: 500; line-height: 1;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-70);
}
.live-chip .dot {
  width: 6px; height: 6px; border-radius: 9999px;
  background: var(--voltage);
  box-shadow: 0 0 12px var(--voltage);
  animation: pulse 2.4s var(--ease-lifx) infinite;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 10vw, 120px);
  line-height: 0.90;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink-100);
  text-shadow: 0 4px 36px rgba(0,0,0,0.55);
}
.hero h1 .voltage { color: var(--voltage); }

.hero-lead {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.5;
  color: rgba(251, 254, 243, 0.85);
  max-inline-size: 46ch;
}

/* ── Address pill ────────────────────────────────────────────── */
.address-wrap {
  position: relative;
  max-width: 600px;
  width: 100%;
  min-width: 0;
}
.address {
  display: flex; align-items: center; gap: 8px;
  padding: 8px;
  border-radius: 9999px;
  background: rgba(9,9,6,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline-strong);
  box-shadow:
    0 0 0 4px rgba(226,255,144,0.10),
    0 20px 60px -20px rgba(0,0,0,0.60);
  transition: box-shadow var(--dur-fast) var(--ease-lifx);
}
.address:focus-within {
  box-shadow:
    0 0 0 6px rgba(226,255,144,0.18),
    0 0 32px rgba(226,255,144,0.20),
    0 20px 60px -20px rgba(0,0,0,0.60);
}
.address .pin {
  color: var(--highlight);
  display: flex;
  padding: 0 4px 0 12px;
  flex-shrink: 0;
}
.address input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink-100);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1;
  padding: 14px 4px;
}
.address input::placeholder { color: var(--ink-50); }
.address .clear {
  width: 32px; height: 32px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.06);
  border: 0;
  color: var(--ink-70);
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.address .visualize-inline { display: none; }
@media (min-width: 560px) {
  .address .visualize-inline { display: inline-flex; }
  .address .clear { margin-right: 4px; }
}

/* CTA row — mobile only: Visualize (flex:1) + camera icon */
.cta-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  max-width: 600px;
  align-items: center;
}
.cta-row .visualize-mobile { flex: 1; }
@media (min-width: 560px) {
  .cta-row { display: none; }
}

/* Desktop ghost pill — only shown on >=560px */
.upload-desktop { display: none; }
@media (min-width: 560px) { .upload-desktop { display: inline-flex; } }

.secondary-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
}

/* ── Suggestion list (floats over upload, doesn't push it) ─────── */
/* Landing-scoped override of the generic dropdown in style.css */
.address-wrap #addressDropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 6;
  padding: 6px;
  border-radius: 16px;
  background: rgba(9,9,6,0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.65);
}
.address-wrap #addressDropdown > * {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink-70);
  border-bottom: 0;
  transition: background var(--dur-fast) var(--ease-lifx);
}
.address-wrap #addressDropdown > *:hover { background: rgba(226,255,144,0.08); }
.address-wrap #addressDropdown > * .pin { color: var(--ink-50); display: flex; flex-shrink: 0; }
.address-wrap #addressDropdown > * .addr-main { color: var(--ink-100); font-weight: 500; }
.address-wrap #addressDropdown > * .addr-sec { color: var(--ink-70); }

/* ── Status message ──────────────────────────────────────────── */
.status-msg {
  font: 500 11px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--highlight);
  min-height: 1rem;
  margin: 0;
}

/* ── Footer hairline (desktop only) ──────────────────────────── */
.footer-meta {
  display: none;
  position: absolute;
  left: clamp(20px, 5vw, 64px); right: clamp(20px, 5vw, 64px);
  bottom: 18px; z-index: 3;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  justify-content: space-between;
  font-size: 10px; font-weight: 500; line-height: 1;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-50);
}
@media (min-width: 1000px) { .footer-meta { display: flex; } }
