/* ============================================================================
   Lumivara Bot — showcase site
   The palette is lifted straight out of the app's Theme/Dark.xaml so the page and
   the product look like the same thing.
   ========================================================================= */

:root {
  /* ── palette (mirrors Theme/Dark.xaml) ───────────────────────────────── */
  --bg:          #12161B;
  --panel:       #181E25;
  --panel-alt:   #1E262F;
  --border:      #2A343F;
  --text:        #E4ECF3;
  --muted:       #8FA3B5;
  --accent:      #5FD3A6;
  --accent-dim:  #2E7D63;
  --warn:        #E8B45A;

  /* ── derived ─────────────────────────────────────────────────────────── */
  --bg-raise:    #161B21;
  --hover:       #26313B;
  --accent-soft: rgba(95, 211, 166, 0.12);
  --accent-line: rgba(95, 211, 166, 0.28);
  /* gold is the logo's colour — used only for headings and warmth, never for
     interactive state (that stays green, matching the app's own UI). */
  --gold:        #F0BE72;
  --gold-line:   rgba(240, 190, 114, 0.30);
  --radius:      12px;
  --radius-sm:   8px;
  --wrap:        1180px;
  --shadow:      0 24px 60px -20px rgba(0, 0, 0, 0.75);
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, "SF Mono", Menlo, monospace;
  --sans: "Segoe UI", system-ui, -apple-system, "Inter", Roboto, Helvetica, Arial, sans-serif;
}

/* ── reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; }
p  { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

code {
  font-family: var(--mono);
  font-size: 0.875em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  white-space: nowrap;
}

b, strong { font-weight: 650; color: #F1F6FA; }
em { color: var(--text); font-style: italic; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--accent-dim); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent-dim); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}
.wrap.narrow { max-width: 860px; }

/* ============================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 22, 27, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(18, 22, 27, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--text); font-size: 17px; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-text b { color: var(--accent); }

.brand-mark {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--gold-line);
  box-shadow: 0 3px 12px -5px rgba(0, 0, 0, 0.85);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  color: var(--muted);
  font-size: 14.5px;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  transition: color 0.18s ease, background 0.18s ease;
}
.site-nav a:hover { color: var(--text); background: var(--hover); text-decoration: none; }
.site-nav a.active { color: var(--text); }
.site-nav a.active::after {
  content: ""; display: block; height: 2px; margin-top: 3px;
  border-radius: 2px; background: var(--accent);
}
.site-nav .nav-cta {
  margin-left: 8px;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  font-weight: 600;
}
.site-nav .nav-cta:hover { background: rgba(95, 211, 166, 0.2); color: var(--accent); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 38px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 17px; height: 1.6px;
  margin: 3.2px auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.8px) rotate(-45deg); }

/* ============================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 21px;
  font-size: 14.5px; font-weight: 600;
  color: var(--text);
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.14s ease;
}
.btn:hover { background: var(--hover); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; }

.btn-primary {
  color: #08231A;
  background: linear-gradient(180deg, #6FE0B4, var(--accent));
  border-color: #7FE8BE;
  box-shadow: 0 10px 26px -12px rgba(95, 211, 166, 0.8);
}
.btn-primary:hover { background: linear-gradient(180deg, #82E7C1, #6FE0B4); }

/* Discord is the only place the page borrows a third-party brand colour —
   the button should look like the thing it opens. */
.btn-discord {
  color: #FFFFFF;
  background: #5865F2;
  border-color: #6D78F5;
  box-shadow: 0 10px 26px -14px rgba(88, 101, 242, 0.9);
}
.btn-discord:hover { background: #4752C4; border-color: #5865F2; }
.btn-discord svg { width: 19px; height: 19px; }

/* ============================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px);
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
  opacity: 0.85;
}
.hero-glow {
  position: absolute;
  top: -22%; left: 50%;
  width: min(1100px, 130vw); height: 660px;
  transform: translateX(-50%);
  background:
    radial-gradient(46% 52% at 50% 50%, rgba(95, 211, 166, 0.16), transparent 68%),
    radial-gradient(38% 44% at 22% 34%, rgba(95, 211, 166, 0.08), transparent 70%);
  filter: blur(12px);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.35rem, 5.6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin-bottom: 22px;
}

/* ── the game logo, hero scale ─────────────────────────────────────────── */
.hero-logo {
  display: block;
  width: min(430px, 86%);
  height: auto;
  margin-bottom: 26px;
  border-radius: 14px;
  border: 1px solid var(--gold-line);
  box-shadow:
    0 0 70px -18px rgba(240, 190, 114, 0.42),
    0 22px 50px -28px rgba(0, 0, 0, 0.95);
}
.grad {
  background: linear-gradient(96deg, var(--accent) 8%, #A8F0D6 52%, var(--accent-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: #C3D2DE;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  max-width: 56ch;
}
.lede b { color: #EAF3F9; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 22px;
}
.hero-facts li {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}
.hero-facts li::before {
  content: ""; display: inline-block;
  width: 8px; height: 4px; margin-right: 7px;
  border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg) translateY(-1px);
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 30px;
}

/* ── screenshot frame ──────────────────────────────────────────────────── */
.hero-shot { margin: 0; }
.frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.frame-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  background: var(--panel-alt);
  border-bottom: 1px solid var(--border);
}
.frame-bar .tl {
  width: 10px; height: 10px; border-radius: 50%;
  background: #333F4B;
}
.frame-bar .tl:first-child { background: #4A3B36; }
.frame-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.frame-pill {
  margin-left: auto;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 2px 10px;
}

.shot-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  line-height: 0;
}
.shot-button.plain { border-radius: var(--radius); overflow: hidden; }
.shot-button img { width: 100%; height: auto; }
.shot-zoom {
  position: absolute;
  right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 600;
  line-height: 1;
  color: var(--text);
  background: rgba(24, 30, 37, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 13px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.shot-zoom svg { width: 15px; height: 15px; }
.shot-button:hover .shot-zoom,
.shot-button:focus-visible .shot-zoom { opacity: 1; transform: translateY(0); }

.hero-shot figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  padding-left: 2px;
  border-left: 2px solid var(--accent-line);
  padding-left: 12px;
}

/* ============================================================================
   Trust strip
   ========================================================================= */
.strip {
  border-block: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-raise), var(--bg));
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-block: 30px;
}
.strip p { font-size: 14.5px; color: var(--muted); }
.strip-quote {
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  color: #C3D2DE !important;
  font-style: italic;
}

/* ============================================================================
   Sections
   ========================================================================= */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-alt {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(95, 211, 166, 0.045), transparent 60%),
    var(--bg-raise);
  border-block: 1px solid var(--border);
}

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  margin-bottom: 14px;
}
.section-lede { color: var(--muted); font-size: 1.02rem; }

/* ============================================================================
   Showcase
   ========================================================================= */
.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
}
.showcase-main {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 10px;
  box-shadow: var(--shadow);
}
.showcase-notes { display: grid; gap: 14px; }
.note {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent-line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.note:hover { border-left-color: var(--accent); transform: translateX(3px); }
.note h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1rem; margin-bottom: 8px;
}
.note-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 5px;
  padding: 1px 6px;
}
.note p { font-size: 14.3px; color: var(--muted); }

/* ============================================================================
   Feature cards
   ========================================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.card::after {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.9);
}
.card:hover::after { opacity: 1; }
.card-wide { grid-column: span 3; }

.card-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 16px;
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.card-icon svg { width: 21px; height: 21px; }
.card h3 { font-size: 1.13rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.6px; }
.card p + p { margin-top: 10px; }

.ticks {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.ticks-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ticks li {
  position: relative;
  padding-left: 24px;
  font-size: 13.7px;
  color: var(--muted);
}
.ticks li::before {
  content: "";
  position: absolute; left: 4px; top: 0.55em;
  width: 9px; height: 5px;
  border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}
.ticks-3 li { padding-left: 22px; }

/* ============================================================================
   Farming loop
   ========================================================================= */
.loop {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  counter-reset: step;
}
.loop li {
  display: flex;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.loop li:hover { background: var(--panel-alt); border-color: #33404D; }
.loop-num {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.loop h3 { font-size: 0.99rem; margin-bottom: 5px; }
.loop p { font-size: 13.9px; color: var(--muted); }

.counters {
  margin-top: 40px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}
.counters > h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.counter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.counter-grid h4 {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 7px;
}
.counter-grid p { font-size: 13.9px; color: var(--muted); }

/* ============================================================================
   Limits
   ========================================================================= */
.limits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.limit {
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 2px solid var(--warn);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
}
.limit h3 {
  font-size: 1rem;
  margin-bottom: 9px;
  color: #F3E3C6;
}
.limit p { font-size: 14px; color: var(--muted); }

/* ============================================================================
   Get started
   ========================================================================= */
.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
}
.start-steps { min-width: 0; }
.steps { display: grid; gap: 24px; counter-reset: n; }
.steps li { position: relative; padding-left: 46px; }
.steps li::before {
  counter-increment: n;
  content: counter(n);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.steps h3 { font-size: 1.08rem; margin-bottom: 10px; }
.steps p { font-size: 14.4px; color: var(--muted); }

.hint { font-size: 13.4px; color: var(--muted); margin-top: 10px; }
.hint + .hint { margin-top: 12px; }

.start-side { display: grid; gap: 16px; }
.side-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.side-card h3 { font-size: 1rem; margin-bottom: 12px; }
.side-card.warn { border-left: 2px solid var(--warn); }

.warn-list { display: grid; gap: 11px; }
.warn-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.9px;
  color: var(--muted);
}
.warn-list li::before {
  content: "!";
  position: absolute; left: 2px; top: 0;
  font-family: var(--mono); font-weight: 700;
  color: var(--warn);
}

/* ============================================================================
   FAQ
   ========================================================================= */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq details[open] { border-color: var(--accent-line); background: var(--panel-alt); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 30px 17px 0;
  font-size: 15.2px;
  font-weight: 600;
  position: relative;
  transition: color 0.18s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: "";
  position: absolute; right: 4px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.24s ease, border-color 0.24s ease;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
  border-color: var(--accent);
}
.faq details p {
  font-size: 14.4px;
  color: var(--muted);
  padding: 0 0 19px;
  max-width: 74ch;
}

/* ============================================================================
   CTA + footer
   ========================================================================= */
.cta {
  padding: clamp(48px, 6vw, 80px) 0;
  background:
    radial-gradient(90% 140% at 12% 0%, rgba(95, 211, 166, 0.13), transparent 62%),
    var(--bg-raise);
  border-top: 1px solid var(--border);
}
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px;
  justify-content: space-between;
}
.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.cta p { color: var(--muted); font-size: 1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* decorative repeat of the logo, faded into the panel edge */
.cta-logo {
  width: clamp(190px, 26vw, 320px);
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--gold-line);
  opacity: 0.85;
  box-shadow: 0 0 50px -20px rgba(240, 190, 114, 0.4);
}

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: clamp(38px, 5vw, 56px) 0 34px;
}
.footer-inner { display: grid; gap: 26px; }
.footer-brand { display: flex; align-items: flex-start; gap: 13px; }
.footer-title { font-weight: 650; color: var(--text); }
.footer-sub { font-size: 13.6px; color: var(--muted); max-width: 52ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { font-size: 13.8px; color: var(--muted); }
.footer-nav a:hover { color: var(--accent); }
.footer-discord { display: inline-flex; align-items: center; gap: 7px; }
.footer-discord svg { width: 16px; height: 16px; color: #7289DA; }
.footer-discord:hover { color: #9AA8F8; }
.footer-note {
  font-size: 12.9px;
  color: #6F8497;
  max-width: 78ch;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.footer-note b { color: var(--muted); }

/* ============================================================================
   Lightbox
   ========================================================================= */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(8, 11, 14, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade 0.2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { margin: 0; max-width: min(1500px, 100%); }
.lb-figure img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lb-figure figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13.6px;
}
.lb-close {
  position: absolute; top: 20px; right: 20px;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  color: var(--text);
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s ease;
}
.lb-close:hover { background: var(--hover); }
.lb-close svg { width: 19px; height: 19px; }

/* ============================================================================
   Reveal on scroll
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }

/* stagger inside grids */
.cards .reveal:nth-child(2), .limits .reveal:nth-child(2), .loop .reveal:nth-child(2) { transition-delay: 0.05s; }
.cards .reveal:nth-child(3), .limits .reveal:nth-child(3), .loop .reveal:nth-child(3) { transition-delay: 0.1s; }
.cards .reveal:nth-child(4), .limits .reveal:nth-child(4), .loop .reveal:nth-child(4) { transition-delay: 0.15s; }
.cards .reveal:nth-child(5), .limits .reveal:nth-child(5), .loop .reveal:nth-child(5) { transition-delay: 0.2s; }
.cards .reveal:nth-child(6), .limits .reveal:nth-child(6), .loop .reveal:nth-child(6) { transition-delay: 0.25s; }
.loop .reveal:nth-child(7) { transition-delay: 0.05s; }
.loop .reveal:nth-child(8) { transition-delay: 0.1s; }
.loop .reveal:nth-child(9) { transition-delay: 0.15s; }
.loop .reveal:nth-child(10) { transition-delay: 0.2s; }

/* ============================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-wide { grid-column: span 2; }
  .limits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counter-grid { gap: 20px; }
  .ticks-3 { grid-template-columns: 1fr; gap: 7px; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-shot { order: 2; }
  .lede, .section-head { max-width: none; }
  .showcase-grid,
  .start-grid { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr; gap: 20px; }
  .counter-grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 76px; }
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px clamp(18px, 4vw, 40px) 18px;
    background: rgba(18, 22, 27, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.9);

    /* collapsed */
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows 0.26s ease, opacity 0.2s ease, visibility 0.2s;
  }
  .site-nav > * { overflow: hidden; }
  .site-nav.open {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
  }
  .site-nav a { padding: 12px 14px; font-size: 15px; }
  .site-nav a.active::after { display: none; }
  .site-nav a.active { background: var(--panel-alt); }
  .site-nav .nav-cta { margin-left: 0; margin-top: 6px; text-align: center; justify-content: center; }
  .site-header { position: sticky; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .hero-logo { width: min(330px, 94%); margin-bottom: 20px; border-radius: 12px; }
  .cards { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .limits { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .shot-zoom { opacity: 1; transform: none; font-size: 11.5px; padding: 6px 11px; }
  .faq details { padding: 4px 18px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions .btn { flex: 1 1 100%; justify-content: center; }
  .cta-logo { width: min(260px, 70%); align-self: center; }
}

/* ============================================================================
   Motion / print
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-canvas { display: none; }
  .btn:hover, .card:hover, .note:hover { transform: none; }
}

@media print {
  .site-header, .hero-canvas, .hero-glow, .lightbox, .shot-zoom, .cta { display: none !important; }
  body { background: #fff; color: #000; }
  .section-alt, .strip, .cta { background: none; }
}
