/* Lamplighter: night street, warm ink, one flame. */

:root {
  --ground: #0C1220;
  --surface: #111A2D;
  --surface-2: #172238;
  --ink: #ECE4D2;
  --ink-2: #C4BCAA;
  --muted: #938F86;
  --line: rgba(236, 228, 210, .09);
  --line-2: rgba(236, 228, 210, .15);
  --line-3: rgba(236, 228, 210, .26);

  /* The one accent. Flame means lit: the live state, or the main action. Nothing else is amber. */
  --flame: #F6B14A;
  --flame-hi: #FFC266;
  --flame-ink: #1A1206;

  /* States, for meaning only. */
  --out: #FF8B7B;

  --f-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.55 var(--f-text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--flame); color: var(--flame-ink); border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
.kicker { display: flex; align-items: center; gap: 10px; font: 500 12px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
h1 { font: 400 clamp(48px, 6.2vw, 96px)/.94 var(--f-display); letter-spacing: -.02em; text-wrap: balance; }
h1 em { font-style: italic; color: var(--flame); }
h2 { font: 400 clamp(36px, 4.2vw, 58px)/1 var(--f-display); letter-spacing: -.015em; text-wrap: balance; }
h3 { font: 600 19px/1.25 var(--f-text); letter-spacing: -.005em; }

/* Small parts */
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.chip--demo { border-style: dashed; border-color: var(--line-3); }
.chip--live { color: var(--flame); border-color: rgba(246, 177, 74, .45); }
.soon { font: 500 10px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font: 600 15px/1 var(--f-text); text-decoration: none; white-space: nowrap; cursor: pointer; background: none; transition: transform .1s var(--ease), background-color .2s, border-color .2s, color .2s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn--fill { background: var(--flame); color: var(--flame-ink); }
.btn--fill:hover { background: var(--flame-hi); }
.btn--ghost, .btn--line { border-color: var(--line-3); color: var(--ink); }
.btn--ghost:hover, .btn--line:hover { border-color: var(--ink-2); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
a.btn:not([href]) { cursor: default; }
a.btn:not([href]):hover { border-color: var(--line-3); }

/* Intro: once a visit, about a second, click to skip. Hides itself even if the script never runs. */
.intro { display: none; }
.intro-on .intro { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: var(--ground); color: var(--ink); cursor: pointer; animation: intro-safety .01s 2.8s forwards; }
.intro-out .intro { opacity: 0; transition: opacity .38s var(--ease); pointer-events: none; }
.intro__mark { width: 72px; height: 72px; }
.intro__flame { fill: var(--flame); transform-box: fill-box; transform-origin: 50% 100%; animation: ignite .9s var(--ease) both; }
.intro__meta { display: flex; gap: 14px; align-items: baseline; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.intro__n { color: var(--ink); font-variant-numeric: tabular-nums; }
@keyframes ignite { 0% { opacity: 0; transform: scale(.3); } 55% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }
@keyframes intro-safety { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* Preview notice */
.notice { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px var(--gutter); background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.4; color: var(--ink-2); text-align: center; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; gap: 18px; padding: 0 var(--gutter); border-bottom: 1px solid transparent; transition: background-color .25s, border-color .25s; }
.top.is-solid, .top.is-open { background: rgba(12, 18, 32, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; flex: none; }
.brand__mark { width: 30px; height: 30px; }
.brand__word { height: 13px; width: auto; }
.flame { fill: var(--flame); }
.ca-chip { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 12px/1 var(--f-mono); color: var(--ink-2); text-decoration: none; flex: none; transition: border-color .2s; }
.ca-chip:hover { border-color: var(--line-3); }
.ca-chip__k { color: var(--muted); letter-spacing: .08em; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .2s, background-color .2s; }
.nav a[href]:hover { color: var(--ink); background: var(--line); }
.nav a:not([href]) { color: var(--muted); cursor: default; }
.nav__buy { display: none; }
.top__buy { flex: none; }
.top__buy .soon { margin-left: -2px; }
.menu { display: none; align-items: center; gap: 10px; height: 38px; padding: 0 14px; margin-left: auto; border: 1px solid var(--line-3); border-radius: 999px; background: none; font-size: 14px; font-weight: 500; cursor: pointer; }
.menu__bars { position: relative; width: 14px; height: 1.5px; background: currentColor; }
.menu__bars::before, .menu__bars::after { content: ""; position: absolute; left: 0; width: 14px; height: 1.5px; background: currentColor; }
.menu__bars::before { top: -4.5px; }
.menu__bars::after { top: 4.5px; }

/* Hero */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: max(680px, 100svh); margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + 40px); overflow: hidden; }
.street { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, var(--ground) 3%, rgba(12, 18, 32, .84) 30%, rgba(12, 18, 32, 0) 62%); }
.hero__copy { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, clamp(360px, 32vw, 440px)); gap: 40px 64px; align-items: end; padding-bottom: clamp(40px, 7vh, 72px); }
.hero__text { display: grid; gap: 22px; justify-items: start; }
.lede { max-width: 34em; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.lede strong { color: var(--ink); font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* Lamps (scene.js draws them) */
.lamp__iron { fill: #1A2338; }
.lamp__glass { fill: #111A2C; stroke: #2A3654; stroke-width: 3; transition: fill .45s var(--ease), stroke .45s var(--ease); }
.lamp__flame { fill: #2E2A24; transform-box: fill-box; transform-origin: 50% 100%; transform: scale(.55); transition: fill .3s, transform .45s var(--ease); }
.lamp__halo, .lamp__pool { opacity: 0; transition: opacity .6s var(--ease); }
.lamp__halo { transform-box: fill-box; transform-origin: 50% 50%; }
.lamp.is-lit .lamp__glass { fill: rgba(246, 177, 74, .32); stroke: #6B5530; }
.lamp.is-lit .lamp__flame { fill: #FFD48A; transform: scale(1); }
.lamp.is-lit .lamp__halo, .lamp.is-lit .lamp__pool { opacity: 1; }
.lamp.is-pulse .lamp__halo { animation: pulse 1.2s var(--ease); }
@keyframes pulse { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.14); } }

/* Launch card (hero) */
.launch { align-self: end; background: rgba(17, 26, 45, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.launch__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.launch__title { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.launch__note { padding: 14px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Fact rows: label left, value right */
.facts > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font: 500 11px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { min-width: 0; font: 400 13px/1.3 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.facts--tight > div { padding: 10px 0; }
.facts--tight > div:last-child { border-bottom: 1px solid var(--line); }

/* Sections */
.what, .buy, .contract, .risks { padding: clamp(72px, 10vw, 120px) 0; }
.buy, .contract, .risks { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 16px; max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head > p:not(.kicker) { font-size: 17px; color: var(--ink-2); max-width: 36em; }

/* What it is */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 24px; min-height: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .25s; }
.card:hover { border-color: var(--line-3); }
.card__top { display: flex; align-items: center; gap: 10px; margin-bottom: auto; padding-bottom: 18px; }
.card__icon { width: 22px; height: 22px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card__k { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card h3 { font: 400 30px/1.05 var(--f-display); letter-spacing: -.01em; }
.card p { font-size: 15px; color: var(--ink-2); }

/* How to buy */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 40px; }
.step { display: grid; align-content: start; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line-3); }
.step__n { font: 400 54px/1 var(--f-display); color: var(--ink-2); }
.step h3 { font: 400 30px/1.05 var(--f-display); letter-spacing: -.01em; }
.step p { font-size: 15px; color: var(--ink-2); }
.buy__note { max-width: 46em; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }

/* Contract */
.contract__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.contract__text { display: grid; gap: 18px; max-width: 540px; }
.contract__text > p:not(.kicker) { font-size: 17px; color: var(--ink-2); }
.ca-box { display: grid; gap: 16px; padding: 24px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); }
.ca-box__k { font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ca-box__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ca-box__v { font: 500 20px/1.3 var(--f-mono); color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.ca-box__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ca-box__links a { font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.ca-box__links a[href] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; }
.ca-box__links a[href]:hover { text-decoration-color: var(--ink); }

/* Risks */
.risk-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.risk-list li { display: grid; gap: 8px; padding: 22px 0; border-top: 1px solid var(--line-2); }
.risk-list h3 { font: 400 26px/1.1 var(--f-display); letter-spacing: -.01em; }
.risk-list p { font-size: 15px; color: var(--ink-2); max-width: 32em; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 28px; }
.foot__grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.foot__brand { display: grid; gap: 14px; max-width: 300px; color: var(--ink); }
.foot__mark { width: 40px; height: 40px; }
.foot__brand p { font-size: 15px; color: var(--ink-2); }
.foot__links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; }
.foot__links a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.foot__links a[href]:hover { color: var(--ink); }
.foot__links a:not([href]) { color: var(--muted); }
.foot__base { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.foot__base p { font-size: 13px; color: var(--muted); }
.motion { flex: none; height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: none; font: 500 12px/1 var(--f-mono); letter-spacing: .06em; color: var(--ink-2); cursor: pointer; }
.motion:hover { border-color: var(--line-3); color: var(--ink); }

/* Section enter: only once the script is ready to reveal, so nothing hides without it. */
.reveal-ready [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(14px); }
.reveal-ready [data-reveal] { transition: opacity .45s var(--ease), transform .45s var(--ease); }

/* Motion off: every frame complete and still. */
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { transition: none !important; animation: none !important; }
html[data-motion="off"] [data-reveal] { opacity: 1 !important; transform: none !important; }

/* Tablet */
@media (max-width: 1080px) {
  .menu { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 10px var(--gutter) 18px; background: rgba(12, 18, 32, .97); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 12px; font-size: 16px; border-radius: 10px; }
  .nav__buy { display: block; }
  .top__buy { display: none; }
  .ca-chip { margin-left: auto; }
  .menu { margin-left: 0; }
}

@media (max-width: 900px) {
  /* The hero grows with its content here, so the street is pinned to the top and fades into the ground. */
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 34svh); }
  .street { bottom: auto; height: calc(var(--header-h) + 56svh); }
  .hero__scrim { background: linear-gradient(to bottom, rgba(12, 18, 32, 0) calc(var(--header-h) + 24svh), var(--ground) calc(var(--header-h) + 52svh)); }
  .hero__copy { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 0; }
  .card__top { margin-bottom: 0; padding-bottom: 6px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contract__row { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .risk-list { grid-template-columns: minmax(0, 1fr); }
}

/* Phone */
@media (max-width: 560px) {
  :root { --header-h: 58px; }
  h1 { font-size: clamp(44px, 12.4vw, 56px); }
  .notice { justify-content: flex-start; text-align: left; font-size: 12.5px; }
  .ca-chip { display: none; }
  .menu { margin-left: auto; }
  .brand__word { height: 12px; }
  .hero { padding-top: calc(var(--header-h) + 30svh); }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }
  .facts > div { padding: 12px 16px; }
  .facts--tight > div { padding: 10px 0; }
  .ca-box { padding: 20px; }
  .ca-box__v { font-size: 17px; }
  .card h3, .step h3 { font-size: 28px; }
  .foot__grid { flex-direction: column; }
  .foot__base { flex-direction: column; align-items: flex-start; }
}
