/* ─── Base tokens ─────────────────────────────────────────────── */
:root {
  --font-display: "Syne", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 72px;
  --icon-size: 112px;
  --section-gap: clamp(80px, 12vw, 140px);
  --content-max: 1200px;
  --radius: 16px;
  --radius-lg: 24px;

  /* Linux Studio (default) */
  --bg: #070b14;
  --bg-elevated: #0d1424;
  --surface: rgba(18, 28, 48, 0.72);
  --surface-solid: #121c30;
  --border: rgba(232, 160, 48, 0.14);
  --border-strong: rgba(232, 160, 48, 0.35);
  --text: #eef1f8;
  --text-muted: #8b96ad;
  --accent: #e8a030;
  --accent-soft: rgba(232, 160, 48, 0.15);
  --accent-glow: rgba(232, 160, 48, 0.45);
  --accent-2: #ffd48a;
  --hero-gradient: radial-gradient(ellipse 80% 60% at 70% -10%, rgba(232, 160, 48, 0.18) 0%, transparent 55%),
                   radial-gradient(ellipse 60% 50% at 10% 80%, rgba(42, 90, 180, 0.22) 0%, transparent 50%),
                   linear-gradient(180deg, #0a1020 0%, var(--bg) 100%);
  --orb-1: rgba(232, 160, 48, 0.35);
  --orb-2: rgba(60, 120, 220, 0.25);
  --orb-3: rgba(180, 100, 40, 0.15);
  --particle: rgba(232, 160, 48, 0.55);
  --btn-primary-bg: linear-gradient(135deg, #e8a030 0%, #c48428 100%);
  --btn-primary-text: #0a0e18;
  --icon-ring: rgba(232, 160, 48, 0.6);
  --icon-glow: rgba(232, 160, 48, 0.35);
  --feature-icon-bg: rgba(232, 160, 48, 0.1);
  --video-border: rgba(232, 160, 48, 0.2);
  --selection: rgba(232, 160, 48, 0.35);
}

[data-product="binaryknife"] {
  --bg: #060608;
  --bg-elevated: #0c0c10;
  --surface: rgba(16, 14, 20, 0.78);
  --surface-solid: #100e14;
  --border: rgba(220, 50, 70, 0.16);
  --border-strong: rgba(220, 50, 70, 0.4);
  --text: #f0ece8;
  --text-muted: #9a9098;
  --accent: #dc3246;
  --accent-soft: rgba(220, 50, 70, 0.14);
  --accent-glow: rgba(220, 50, 70, 0.5);
  --accent-2: #ff6b7a;
  --hero-gradient: radial-gradient(ellipse 75% 55% at 65% -5%, rgba(220, 50, 70, 0.2) 0%, transparent 55%),
                   radial-gradient(ellipse 55% 45% at 5% 90%, rgba(0, 200, 210, 0.12) 0%, transparent 50%),
                   linear-gradient(180deg, #08080c 0%, var(--bg) 100%);
  --orb-1: rgba(220, 50, 70, 0.4);
  --orb-2: rgba(0, 210, 220, 0.18);
  --orb-3: rgba(140, 20, 40, 0.2);
  --particle: rgba(220, 50, 70, 0.5);
  --btn-primary-bg: linear-gradient(135deg, #dc3246 0%, #a01830 100%);
  --btn-primary-text: #fff;
  --icon-ring: rgba(220, 50, 70, 0.65);
  --icon-glow: rgba(220, 50, 70, 0.4);
  --feature-icon-bg: rgba(220, 50, 70, 0.1);
  --video-border: rgba(220, 50, 70, 0.22);
  --selection: rgba(220, 50, 70, 0.35);
}

/* ─── Reset & base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.9s var(--ease-out-expo), color 0.6s ease;
}
::selection { background: var(--selection); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ─── Ambient background ─────────────────────────────────────── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  transition: background 1.2s var(--ease-out-expo), transform 8s ease-in-out;
  animation: orb-drift 20s ease-in-out infinite alternate;
}
.ambient__orb--1 {
  width: 55vw; height: 55vw; max-width: 700px; max-height: 700px;
  top: -15%; right: -10%;
  background: var(--orb-1);
}
.ambient__orb--2 {
  width: 40vw; height: 40vw; max-width: 500px; max-height: 500px;
  bottom: 10%; left: -12%;
  background: var(--orb-2);
  animation-delay: -7s;
}
.ambient__orb--3 {
  width: 30vw; height: 30vw; max-width: 400px; max-height: 400px;
  top: 40%; left: 30%;
  background: var(--orb-3);
  animation-delay: -14s;
}
@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, 5%) scale(1.08); }
}
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ─── Navigation ──────────────────────────────────────────────── */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 40px);
  height: var(--nav-h);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__mark {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.nav__divider {
  width: 1px;
  height: 20px;
  background: var(--border-strong);
}
.nav__product {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.6s ease;
}
.nav__links {
  display: flex;
  gap: 32px;
}
.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s ease;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease-out-expo);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

/* ─── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--hero-gradient);
  transition: background 1s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}
.hero__layout {
  flex: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px) 60px;
  width: 100%;
}
.hero__content {
  animation: fade-up 1s var(--ease-out-expo) 0.15s both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 16px;
  margin: 0 0 18px;
  backdrop-filter: blur(8px);
  transition: background 0.6s ease, border-color 0.6s ease, color 0.6s ease;
}
.hero__badge[hidden] { display: none; }
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  transition: color 0.6s ease;
}
.hero__title {
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.hero__title-main {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background 0.8s ease;
}
.hero__version {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  vertical-align: middle;
  transition: color 0.6s ease, border-color 0.6s ease;
}
.hero__version[hidden] { display: none; }
.hero__platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 20px;
}
.hero__platforms[hidden] { display: none; }
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  backdrop-filter: blur(10px);
  transition: border-color 0.5s ease, background 0.5s ease, transform 0.3s var(--ease-spring);
}
.platform-badge:hover { transform: translateY(-1px); }
.platform-badge--linux { border-color: rgba(240, 180, 50, 0.35); }
.platform-badge--windows { border-color: rgba(0, 120, 215, 0.35); }
.platform-badge--linux .os-icon--linux { color: #f0b432; }
.platform-badge--windows .os-icon--windows { color: #0078d7; }
.os-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.hero__title-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color 0.6s ease;
}
.hero__desc {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 0 36px;
  line-height: 1.75;
  transition: color 0.6s ease;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, background 0.6s ease;
}
.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat__value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.6s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.stat__value .os-icon { width: 16px; height: 16px; }
.stat__value .os-icon--linux { color: #f0b432; }
.stat__value .os-icon--windows { color: #0078d7; }
.stat__label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: bounce 2.5s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ─── Product switcher icons ──────────────────────────────────── */
.product-switcher {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 20px;
  animation: fade-up 1s var(--ease-out-expo) 0.3s both;
}
.product-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-lg);
  transition: transform 0.45s var(--ease-spring), opacity 0.4s ease;
  opacity: 0.55;
}
.product-icon:hover {
  opacity: 0.85;
  transform: scale(1.04);
}
.product-icon.is-active {
  opacity: 1;
  transform: scale(1.06);
}
.product-icon__ring {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.product-icon.is-active .product-icon__ring {
  border-color: var(--icon-ring);
  box-shadow: 0 0 40px var(--icon-glow), inset 0 0 30px var(--accent-soft);
  animation: ring-pulse 3s ease-in-out infinite;
}
@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 40px var(--icon-glow), inset 0 0 30px var(--accent-soft); }
  50%      { box-shadow: 0 0 60px var(--icon-glow), inset 0 0 40px var(--accent-soft); }
}
.product-icon__glow {
  position: absolute;
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 50%;
  background: var(--accent-glow);
  filter: blur(30px);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.product-icon.is-active .product-icon__glow { opacity: 0.5; }
.product-icon img {
  position: relative;
  z-index: 1;
  width: var(--icon-size);
  height: var(--icon-size);
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
  transition: transform 0.5s var(--ease-spring), filter 0.5s ease;
}
.product-icon.is-active img {
  animation: icon-float 4s ease-in-out infinite;
}
@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.product-icon__label {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.4s ease;
}
.product-icon.is-active .product-icon__label { color: var(--accent); }
.product-icon__version {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}
.product-icon__os {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.product-icon__os .os-icon {
  width: 14px;
  height: 14px;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}
.product-icon__os .os-icon--linux { color: #f0b432; }
.product-icon__os .os-icon--windows { color: #0078d7; }
.product-icon.is-active .product-icon__os .os-icon { opacity: 1; }
.product-icon--linuxstudio .product-icon__os { display: none; }

/* ─── Sections ────────────────────────────────────────────────── */
main {
  position: relative;
  z-index: 2;
}
.section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--section-gap) clamp(20px, 4vw, 40px);
}
.section__header {
  margin-bottom: 48px;
}
.section__index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 520px;
}

/* ─── Features grid ───────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.5s ease, transform 0.4s var(--ease-spring), box-shadow 0.4s ease, background 0.6s ease;
  animation: fade-up 0.6s var(--ease-out-expo) both;
}
.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}
.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--feature-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
  transition: background 0.6s ease, color 0.6s ease;
}
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.feature-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* ─── Gallery ─────────────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.gallery__empty, .videos__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}
.gallery__empty-icon {
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 16px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  aspect-ratio: 16 / 10;
  background: var(--surface-solid);
  transition: border-color 0.4s ease, transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
  animation: fade-up 0.5s var(--ease-out-expo) both;
}
.gallery__item:hover {
  border-color: var(--border-strong);
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery__item:hover::after { opacity: 1; }

/* ─── Videos ──────────────────────────────────────────────────── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--video-border);
  background: var(--surface-solid);
  transition: border-color 0.5s ease, transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
  animation: fade-up 0.5s var(--ease-out-expo) both;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  border-color: var(--border-strong);
}
.video-card__embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}
.video-card__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-card__title {
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Footer ──────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  margin-top: var(--section-gap);
  transition: border-color 0.6s ease;
}
.footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.footer__logo {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.footer__tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 8px 0 0;
}
.footer__products {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.footer__link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.25s ease;
}
.footer__link:hover { color: var(--accent); }
.footer__copy {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.6;
  margin: 16px 0 0;
  text-align: center;
}

/* ─── Lightbox ────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 24px; right: 28px;
  font-size: 2.4rem;
  color: #fff;
  opacity: 0.7;
  line-height: 1;
  transition: opacity 0.2s ease;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  opacity: 0.6;
  padding: 16px;
  transition: opacity 0.2s ease;
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ─── Theme transition flash ──────────────────────────────────── */
body.is-switching .hero__content,
body.is-switching .features-grid,
body.is-switching .gallery,
body.is-switching .videos-grid {
  animation: theme-flash 0.5s var(--ease-out-expo);
}
@keyframes theme-flash {
  0%   { opacity: 0.4; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__layout {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 20px;
  }
  .product-switcher {
    flex-direction: row;
    justify-content: center;
    order: -1;
    padding-top: 0;
  }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .nav__links { display: none; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__products { align-items: center; }
}
@media (max-width: 480px) {
  :root { --icon-size: 80px; }
  .product-icon { padding: 12px; }
}
