@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

:root {
  --bg-ground: #f4f6f6;
  --bg-white: #ffffff;
  --bg-soft: #f8fafa;
  --bg-dark: #090a0b;
  --bg-dark-2: #111315;
  --bg-dark-card: #16191c;
  --ink: #0b0e0e;
  --ink-soft: #364140;
  --ink-muted: #586664;
  --ink-on-dark: #f8fafc;
  --ink-on-dark-soft: #bdc7c5;
  --line: #dfe5e4;
  --line-dark: rgba(255, 255, 255, 0.12);
  --teal: #0d7a6f;
  --teal-hover: #0a5e56;
  --teal-forest: #0f6a56;
  --teal-bright: #14b8a6;
  --teal-soft: #ecfdf5;
  --teal-border: #a7f3d0;
  --font-display: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 2px 10px rgba(10, 12, 13, 0.05);
  --shadow-md: 0 12px 32px rgba(10, 12, 13, 0.08);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.28);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-ground);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
}
.section--dark code, .hero--atmos code {
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  border-color: rgba(255, 255, 255, 0.14);
}

:focus-visible {
  outline: 3px solid var(--teal-bright);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #0a0c0d;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 2000;
}
.skip-link:focus { left: 12px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Preloader (Index Once-Per-Session) */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #090a0b;
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.preloader__bar {
  width: 170px;
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ffffff, var(--teal-bright));
  transform-origin: left;
  animation: preloadFill 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes preloadFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Unified Transparent-to-Frosted Navbar (Option A+C: Luminous over Hero -> Frosted Light on Scroll) */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav--over-dark {
  background: linear-gradient(180deg, rgba(9, 10, 11, 0.78) 0%, rgba(9, 10, 11, 0.22) 100%);
  color: var(--ink-on-dark);
}
.nav--over-dark:not(.is-scrolled) .nav__logo {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 5px 14px 5px 8px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.nav.is-scrolled, .nav--solid {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ink);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(9, 10, 11, 0.06);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  min-height: 44px;
}
.nav__logo-accent { color: var(--teal-bright); }
.nav.is-scrolled .nav__logo-accent, .nav--solid .nav__logo-accent { color: var(--teal); }
.nav__logo small { font-weight: 600; opacity: 0.72; font-size: 0.85em; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link, .nav__drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  min-height: 44px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav--over-dark:not(.is-scrolled) .nav__link:hover,
.nav--over-dark:not(.is-scrolled) .nav__drop-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.nav.is-scrolled .nav__link:hover,
.nav.is-scrolled .nav__drop-btn:hover,
.nav--solid .nav__link:hover,
.nav--solid .nav__drop-btn:hover {
  background: var(--bg-ground);
  color: var(--ink);
}
.nav__link.is-active::after,
.nav__drop-btn.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 2px;
  background: var(--teal-bright);
  border-radius: 2px;
}
.nav.is-scrolled .nav__link.is-active::after,
.nav--solid .nav__link.is-active::after,
.nav.is-scrolled .nav__drop-btn.is-active::after,
.nav--solid .nav__drop-btn.is-active::after {
  background: var(--teal);
}

/* Dropdown Mega Menu (Zero hover gap — ::before bridge keeps mouse inside dropdown) */
.nav__dropdown { position: relative; }
.nav__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 320px;
  background: var(--bg-white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 4px;
}
.nav__menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav__dropdown.is-open .nav__menu { display: flex; }
.nav__menu-item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}
.nav__menu-item:hover { background: var(--bg-ground); }
.nav__menu-item strong { display: block; font-size: 14px; color: var(--ink); }
.nav__menu-item span { display: block; font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__burger {
  display: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 0 12px;
}

.mobile-drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-white);
  color: var(--ink);
  padding: 20px 24px;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
  overflow-y: auto;
}
.mobile-drawer.is-open { display: flex; }
.mobile-drawer a {
  padding: 12px 14px;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid var(--line);
}

/* Buttons (High-Contrast Black / White + <=5% Teal Accent) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.18s ease, border-color 0.18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(13, 122, 111, 0.24);
}
.btn--primary:hover { background: var(--teal-hover); }
.btn--bright {
  background: #ffffff;
  color: #0c211f;
  box-shadow: 0 6px 18px rgba(12, 33, 31, 0.22);
}
.btn--bright:hover { background: #ecfdf5; }
.nav.is-scrolled .btn--bright, .nav--solid .btn--bright {
  background: var(--teal);
  color: #ffffff;
}
.nav.is-scrolled .btn--bright:hover, .nav--solid .btn--bright:hover {
  background: var(--teal-hover);
}
.btn--teal {
  background: var(--teal);
  color: #ffffff;
}
.btn--teal:hover { background: var(--teal-hover); }
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--outline:hover { background: var(--bg-ground); border-color: #0a0c0d; }
.btn--outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.14); border-color: #ffffff; }
.btn--sm { min-height: 44px; padding: 8px 15px; font-size: 13.5px; }
.btn--full { width: 100%; }

/* Typography & Sections */
.section { padding: 84px 0; }
.section--tight { padding: 52px 0; }
.section--soft { background: var(--bg-ground); }
.section--dark { background: var(--bg-dark); color: var(--ink-on-dark); }
.section--dark-band {
  background: var(--bg-dark-2);
  color: var(--ink-on-dark);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.section--dark .eyebrow, .hero--atmos .eyebrow { color: #9ca3af; }

.h-xl {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 18px 0;
}
.h-lg {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 14px 0;
}
.h-md {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 8px 0;
}
.lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0;
}
.section--dark .lead, .hero--atmos .lead { color: var(--ink-on-dark-soft); }
.hl-mint {
  color: var(--teal-bright);
  background: linear-gradient(95deg, #ecfdf5 0%, #6ee7b7 45%, #14b8a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hl-teal { color: var(--teal); }
.num { font-variant-numeric: tabular-nums; }
.section-head { max-width: 720px; margin-bottom: 40px; }

/* High-Contrast Obsidian Black Hero + Subtle <=5% Mint Teal Glow */
.hero--atmos {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 84px;
  background:
    radial-gradient(760px 420px at 14% 12%, rgba(13, 122, 111, 0.18), transparent 62%),
    linear-gradient(160deg, #070809 0%, #0f1214 54%, #090a0b 100%);
  color: var(--ink-on-dark);
  overflow: hidden;
}
.hero--atmos::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero--sub { padding: calc(var(--nav-h) + 56px) 0 64px; }
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e5e7eb;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--ink-on-dark-soft);
}
.hero__checks span { display: inline-flex; align-items: center; gap: 6px; }

/* ROI Calculator Card (Crisp Monochrome + Single Teal Savings Highlight) */
.calc-card {
  background: var(--bg-white);
  color: var(--ink);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.calc-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.calc-card__title { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 0; }
.calc-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #0a0c0d;
  background: var(--bg-ground);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.calc-row { margin-bottom: 16px; }
.calc-row__top {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.calc-row__top strong { color: var(--ink); }
.calc-range {
  width: 100%;
  accent-color: #0a0c0d;
  min-height: 28px;
  cursor: pointer;
}
.calc-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.calc-mode-btn {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.calc-mode-btn.is-active {
  background: #0a0c0d;
  border-color: #0a0c0d;
  color: #ffffff;
}
.calc-result {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}
.calc-result__lbl { font-size: 12.5px; font-weight: 700; color: var(--ink-muted); }
.calc-result__val {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--teal);
  line-height: 1.15;
  margin: 4px 0;
}
.calc-result__sub { font-size: 13px; color: var(--ink-soft); }
.calc-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12.5px;
}
.calc-compare__box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
}
.calc-compare__box span { display: block; color: var(--ink-muted); font-size: 11.5px; }
.calc-compare__box strong { font-size: 14px; color: var(--ink); }

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card--spotlight:hover {
  transform: translateY(-3px);
  border-color: #0a0c0d;
  box-shadow: var(--shadow-md);
}
.card--featured { border: 2px solid #0a0c0d; }
.card--dark {
  background: var(--bg-dark-card);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--ink-on-dark);
}
.card--dark p { color: var(--ink-on-dark-soft); }

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
}
.card--dark .step-num { color: var(--teal-bright); }

/* Quick Fact Dark Strip (Overlapping Pillar Pages) */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-dark-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: -36px;
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow-lg);
}
.fact-strip__cell { padding: 20px 22px; border-right: 1px solid var(--line-dark); }
.fact-strip__cell:last-child { border-right: none; }
.fact-strip__val { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: #ffffff; }
.fact-strip__lbl { font-size: 13px; color: var(--ink-on-dark-soft); margin-top: 2px; }

/* Metrics Strip */
.metrics-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.metrics-bar__val { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: #ffffff; }
.metrics-bar__lbl { font-size: 14px; color: var(--ink-on-dark-soft); margin-top: 4px; }

/* Console Preview & Lightbox */
.tabs-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab-pill {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-white);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.tab-pill.is-active { background: #0a0c0d; border-color: #0a0c0d; color: #ffffff; }
.preview-frame {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 14px;
  box-shadow: var(--shadow-md);
}
.preview-frame__img-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-ground);
  cursor: zoom-in;
}
.preview-frame__img-btn img { width: 100%; height: auto; }
.preview-frame__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 6px 4px;
}
.preview-frame__bar strong { display: block; font-size: 15.5px; color: var(--ink); }
.preview-frame__bar span { font-size: 13.5px; color: var(--ink-muted); }

/* Code Panel (Integrations Page) */
.code-panel {
  background: #0d0f11;
  color: #e5e7eb;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.code-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
}
.code-panel__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.code-tab {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--ink-on-dark-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.code-tab.is-active { background: #ffffff; border-color: #ffffff; color: #090a0b; }
.code-panel pre {
  margin: 0;
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  color: #e5e7eb;
}

/* Pricing & Tables */
.price-val { font-family: var(--font-display); font-size: 40px; font-weight: 800; margin: 10px 0 6px; line-height: 1.05; }
.price-val span { font-size: 15px; font-weight: 500; color: var(--ink-muted); }
.price-list { margin: 16px 0 22px; padding-left: 18px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.85; }
.table-wrap { background: var(--bg-white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg-ground); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-muted); }
tr:last-child td { border-bottom: none; }
tr.row-hl td { background: var(--teal-soft); }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #090a0b 0%, #14181b 100%);
  color: var(--ink-on-dark);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  border: 1px solid var(--line-dark);
}
.cta-banner p { color: var(--ink-on-dark-soft); margin: 0; max-width: 58ch; }

/* Fullscreen Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(9, 10, 11, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox__inner { max-width: 1120px; width: 100%; display: flex; flex-direction: column; gap: 14px; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; color: #ffffff; }
.lightbox__img { width: 100%; max-height: 76vh; object-fit: contain; border-radius: 12px; border: 1px solid var(--line-dark); background: #0d0f11; }
.lightbox__controls { display: flex; gap: 10px; }

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--ink-on-dark-soft);
  padding: 64px 0 36px;
  border-top: 1px solid var(--line-dark);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dark);
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0 0 12px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer a:hover { color: #ffffff; }
.footer__legal { padding-top: 24px; font-size: 13px; line-height: 1.7; color: #9ca3af; }
.main-legal { padding-top: 120px; }
.main-404 { min-height: 100vh; display: flex; align-items: center; }

@media (max-width: 980px) {
  .hero__grid, .grid-2, .grid-3, .grid-4, .metrics-bar, .fact-strip, .footer__grid { grid-template-columns: 1fr; }
  .fact-strip__cell { border-right: none; border-bottom: 1px solid var(--line-dark); }
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .preloader { display: none !important; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
