/* ===================================================
  LaymenStage Website — styles.css
  Dark theme with soft surfaces, Inter typography,
  and the same purple→blue brand gradient.
  =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Reset & Base --------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: dark;

  --bg:          #0b0f1a;
  --bg-2:        #121826;
  --bg-3:        #1a2234;
  --panel:       #151c2c;
  --surface-4:   #1c2538;

  --text:        #f2f5fc;
  --muted:       #a8b3c7;
  --muted-2:     #7d8aa3;

  --line:        rgba(242, 245, 252, .08);
  --line-2:      rgba(242, 245, 252, .14);

  --accent:      #8eb6ff;
  --accent-h:    #a8c8ff;
  --accent-2:    #4adeb0;

  --brand-a:     #7B2CBF;
  --brand-b:     #2D7DFF;

  --danger:      #f07178;
  --live:        #ff4d6d;

  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-pill: 999px;

  --shadow:      0 12px 32px rgba(0, 0, 0, .35);
  --shadow-lg:   0 24px 60px rgba(0, 0, 0, .45);

  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --grad: linear-gradient(135deg, var(--brand-a) 0%, var(--brand-b) 100%);
  --grad-text: linear-gradient(135deg, #c084fc 0%, #60a5fa 55%, #7dd3fc 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(123,44,191,.20) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 90% 10%, rgba(45,125,255,.12) 0%, transparent 55%),
    linear-gradient(180deg, #0d1220 0%, #0b0f1a 45%, #090d16 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-h); }

img { max-width: 100%; display: block; }

/* --- Utility -------------------------------------- */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }

/* --- NAV ------------------------------------------ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(11, 15, 26, .82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease, background .2s ease;
}

.nav.is-scrolled {
  background: rgba(11, 15, 26, .94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.nav__inner {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  column-gap: 20px;
  height: 64px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Brand — wordmark only (no app icon) */
.nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.nav__brand:hover { color: var(--text); }

.nav__wordmark {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.03em;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
}

.nav__wordmark-ver {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.nav__new {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fda4af;
  background: rgba(255, 77, 109, .16);
  border: 1px solid rgba(255, 77, 109, .32);
  line-height: 1;
  flex-shrink: 0;
}

/* Center links */
.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.nav__links > li {
  flex-shrink: 0;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, background .15s;
}

.nav__links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}

.nav__links a:focus-visible {
  outline: 2px solid rgba(91, 141, 239, .55);
  outline-offset: 2px;
}

.nav__link-lite {
  color: var(--muted-2) !important;
}

.nav__link-bg {
  color: var(--accent) !important;
  font-weight: 600;
}
.nav__link-bg:hover {
  color: var(--accent-h) !important;
  background: rgba(142, 182, 255, .1) !important;
}

/* Right CTAs */
.nav__cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.nav__bmc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fde68a;
  background: rgba(251, 191, 36, .14);
  border: 1px solid rgba(245, 158, 11, .32);
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.nav__bmc:hover {
  color: #fef3c7;
  background: rgba(251, 191, 36, .22);
  border-color: rgba(245, 158, 11, .45);
}
.nav__bmc-icon { font-size: 14px; line-height: 1; }

.nav__download {
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(45, 125, 255, .22);
}

.nav__mobile-actions {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 9px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
  transform-origin: center;
}
.hamburger.open {
  background: rgba(123, 44, 191, .25);
  border-color: rgba(168, 85, 247, .4);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- BUTTONS -------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  cursor: pointer;
  border: none;
  transition: filter .15s, transform .12s, box-shadow .15s;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn:active { transform: translateY(0); filter: brightness(.96); }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(123,44,191,.35);
}
.btn--primary:hover { box-shadow: 0 6px 28px rgba(123,44,191,.5); color: #fff; }

.btn--secondary {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  border: 1px solid var(--line-2);
}
.btn--secondary:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--text);
  border-color: rgba(142, 182, 255, .35);
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { color: var(--text); border-color: rgba(91,141,239,.25); }

.btn--lg { font-size: 16px; padding: 14px 32px; }
.btn--sm { font-size: 13px; padding: 7px 16px; }

.btn--bmc {
  background: #FFDD00;
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(255,221,0,.25);
}
.btn--bmc:hover {
  background: #ffe629;
  color: #000;
  box-shadow: 0 6px 22px rgba(255,221,0,.4);
  filter: none;
}

/* Download button variants */
.btn--win  { gap: 10px; }
.btn--mac  { gap: 10px; }
.btn--lin  { gap: 10px; }

/* --- HERO ----------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(123,44,191,.22) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 60%, rgba(45,125,255,.14) 0%, transparent 60%);
}

.hero__glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,44,191,.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(91,141,239,.12);
  border: 1px solid rgba(91,141,239,.25);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  margin-bottom: 24px;
}

.hero__badge--new {
  color: #e9d5ff;
  background: linear-gradient(135deg, rgba(123,44,191,.22) 0%, rgba(45,125,255,.18) 100%);
  border-color: rgba(168, 85, 247, .4);
}

.hero__title {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}

.hero__sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--muted);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 16px;
}

.hero__meta {
  font-size: 13px;
  color: var(--muted-2);
}
.hero__meta a { color: var(--muted); }
.hero__meta a:hover { color: var(--text); }

.hero__slideshow {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  max-width: 1000px;
  width: 100%;
  /* subtle lift off the hero floor */
  filter: drop-shadow(0 32px 64px rgba(0,0,0,.55));
}

/* The .slideshow already has all its own styles; just override the margin */
.hero__slideshow .slideshow {
  margin-top: 0;
}

.screenshot-placeholder {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted-2);
  font-size: 14px;
  background: var(--bg-2);
}
.screenshot-placeholder img {
  width: 56px;
  height: 56px;
  opacity: .3;
  border-radius: var(--radius-md);
}
.screenshot-placeholder p { max-width: 260px; text-align: center; line-height: 1.5; }

/* When a real screenshot is dropped in */
.screenshot-img {
  width: 100%;
  display: block;
  border-radius: 0;
}

/* --- STATS STRIP ---------------------------------- */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats__inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.stat {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }

.stat__value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* --- FEATURES ------------------------------------- */
.features__header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature-card:hover {
  border-color: rgba(142, 182, 255, .35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.feature-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.feature-card__head .feature-card__icon {
  margin-bottom: 0;
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  background: rgba(91,141,239,.12);
  border: 1px solid rgba(91,141,239,.2);
  flex-shrink: 0;
}

.feature-card--new {
  border-color: rgba(123, 44, 191, .22);
  box-shadow: 0 0 0 1px rgba(123, 44, 191, .06);
}

.feature-card--new:hover {
  border-color: rgba(123, 44, 191, .4);
}

.feature-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* feature card color variants */
.feature-card--purple .feature-card__icon { background: rgba(123,44,191,.15); border-color: rgba(123,44,191,.3); }
.feature-card--blue .feature-card__icon   { background: rgba(45,125,255,.12); border-color: rgba(45,125,255,.25); }
.feature-card--green .feature-card__icon  { background: rgba(62,207,154,.12); border-color: rgba(62,207,154,.25); }
.feature-card--red .feature-card__icon    { background: rgba(255,77,109,.12); border-color: rgba(255,77,109,.25); }
.feature-card--teal .feature-card__icon   { background: rgba(66,180,224,.12); border-color: rgba(66,180,224,.25); }
.feature-card--amber .feature-card__icon  { background: rgba(232,148,74,.12); border-color: rgba(232,148,74,.25); }

/* --- WHAT'S NEW (LaymenStage 2) -------------------- */
.whats-new {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(123,44,191,.14) 0%, transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
}

.whats-new__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.whats-new-card {
  position: relative;
  background: var(--panel);
  border: 1px solid rgba(123, 44, 191, .16);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  overflow: hidden;
}

.whats-new-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  opacity: .85;
}

.whats-new-card:hover {
  border-color: rgba(123, 44, 191, .35);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(123, 44, 191, .12);
}

.whats-new-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.whats-new-card__icon {
  font-size: 22px;
  line-height: 1;
}

.whats-new-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.whats-new-card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* --- HOW IT WORKS --------------------------------- */
.how {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 64px;
  position: relative;
}

.how__steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91,141,239,.3), transparent);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(123,44,191,.35);
  flex-shrink: 0;
}

.step__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* --- VIDEO TUTORIAL ------------------------------- */
.tutorial {
  text-align: center;
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 48px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--panel);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed__link {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

.video-embed__link a {
  font-weight: 500;
}

/* --- SCREENSHOTS ---------------------------------- */
/* screenshot-card styles removed — replaced by slideshow */

/* --- DOWNLOAD ------------------------------------- */
.download {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(123,44,191,.18) 0%, transparent 70%);
}

.download__content {
  position: relative;
  z-index: 1;
}

.download__os-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 48px 0 24px;
}

.dl-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  text-decoration: none;
  color: var(--text);
}
.dl-card:hover {
  border-color: rgba(142, 182, 255, .4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.dl-card--disabled {
  opacity: .62;
  cursor: not-allowed;
  pointer-events: none;
}

.dl-card__icon { font-size: 36px; line-height: 1; }
.dl-card__os   { font-size: 16px; font-weight: 700; }
.dl-card__ext  { font-size: 12px; color: var(--muted); font-weight: 500; }

.dl-card--primary {
  border-color: rgba(91,141,239,.3);
  background: linear-gradient(135deg, rgba(123,44,191,.08) 0%, rgba(45,125,255,.07) 100%);
}

/* --- SAMPLE DATA ---------------------------------- */
/* --- SAMPLE DATA ---------------------------------- */
.sdata {
  width: 100%;
  max-width: 560px;
  margin: 40px auto 0;
  background: var(--panel);
  border: 1px solid rgba(62,207,154,.20);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.sdata__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sdata__icon { font-size: 30px; line-height: 1; flex-shrink: 0; }

.sdata__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.sdata__sub {
  font-size: 12px;
  color: var(--muted);
}

.sdata__steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sdata__step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  text-align: left;
}

.sdata__step strong { color: var(--text); }

.sdata__step code {
  font-family: 'Consolas', 'Fira Code', monospace;
  font-size: 12px;
  background: var(--bg-3);
  color: var(--accent-2);
  padding: 1px 6px;
  border-radius: 3px;
}

.sdata__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: rgba(62,207,154,.15);
  border: 1px solid rgba(62,207,154,.28);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

.sdata__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: rgba(62,207,154,.12);
  border: 1px solid rgba(62,207,154,.3);
  border-radius: var(--radius-md);
  color: var(--accent-2);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .12s;
}
.sdata__btn:hover {
  background: rgba(62,207,154,.2);
  border-color: rgba(62,207,154,.5);
  color: var(--accent-2);
  transform: translateY(-1px);
}

.sdata--bg {
  border-color: rgba(142, 182, 255, .22);
  margin-top: 20px;
}

.sdata__blurb {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.sdata__btn--bg {
  background: rgba(142, 182, 255, .12);
  border-color: rgba(142, 182, 255, .3);
  color: var(--accent);
}

.sdata__btn--bg:hover {
  background: rgba(142, 182, 255, .2);
  border-color: rgba(142, 182, 255, .5);
  color: var(--accent-h);
}

/* --- BMC SECTION ---------------------------------- */
.bmc-section {
  margin: 48px auto 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.bmc-section__text {
  font-size: 15px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
  max-width: 480px;
}

.download__note {
  font-size: 13px;
  color: var(--muted-2);
  margin-top: 8px;
}
.download__note a { color: var(--muted); }

.download__license {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
}

/* --- DL CARD WRAP (macOS trouble link) ------------ */
.dl-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dl-trouble {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-2);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.dl-trouble:hover {
  color: #febc2e;
  background: rgba(254,188,46,.08);
}

/* --- macOS TROUBLE MODAL -------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
/* .open class kept as fallback; JS now uses style.display directly */
.modal-overlay.open { display: flex; }

.modal {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  padding: 36px 32px 32px;
  max-width: 540px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn .2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

.modal__close {
  position: absolute;
  top: 14px; right: 16px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 22px;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: background .15s;
}
.modal__close:hover { background: rgba(91,141,239,.10); }

.modal__icon {
  font-size: 36px;
  margin-bottom: 12px;
  line-height: 1;
}

.modal__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}

.modal__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.modal__desc strong { color: var(--text); }

.modal__option-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.modal__code {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  overflow: hidden;
}

.modal__code-scroll {
  padding: 14px 16px 10px;
}

.modal__code code {
  display: block;
  font-family: 'Consolas', 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  color: var(--accent-h);
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.8;
}

.modal__code-footer {
  display: flex;
  justify-content: flex-end;
  padding: 6px 10px;
  border-top: 1px solid var(--line);
}

.modal__copy {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font);
  font-weight: 600;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  transition: background .15s, color .15s;
}
.modal__copy:hover {
  background: rgba(91,141,239,.10);
  color: var(--accent);
}

.modal__tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(254,188,46,.07);
  border: 1px solid rgba(254,188,46,.2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 4px;
}
.modal__tip strong { color: var(--text); }
.modal__tip-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* --- FOOTER --------------------------------------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 12px;
}

.footer__brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer__tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer__col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 14px;
  color: var(--muted);
  transition: color .15s;
}
.footer__links a:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  font-size: 13px;
  color: var(--muted-2);
}

.footer__copy a { color: var(--muted); }
.footer__copy a:hover { color: var(--text); }

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  font-size: 13px;
  color: var(--muted-2);
}
.footer__legal a:hover { color: var(--muted); }

/* --- KEYBOARD SHORTCUT CHIP ----------------------- */
.kbd {
  display: inline-block;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12px;
  font-family: var(--font);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
}

/* --- CHIP / BADGE --------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.chip--green {
  background: rgba(62,207,154,.15);
  color: var(--accent-2);
  border: 1px solid rgba(62,207,154,.25);
}
.chip--blue {
  background: rgba(91,141,239,.12);
  color: var(--accent);
  border: 1px solid rgba(91,141,239,.22);
}
.chip--new {
  background: linear-gradient(135deg, rgba(255,77,109,.18) 0%, rgba(123,44,191,.2) 100%);
  color: #fecdd3;
  border: 1px solid rgba(255, 77, 109, .35);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.chip--inline {
  vertical-align: middle;
  margin: 0 2px;
}

/* --- SLIDESHOW ------------------------------------ */
.slideshow {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(123,44,191,.08);
  margin-top: 48px;
  outline: none;
}

/* Chrome bar */
.slideshow__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  user-select: none;
}

.slideshow__dot-mac {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.slideshow__dot-mac:nth-child(1) { background: #ff5f57; }
.slideshow__dot-mac:nth-child(2) { background: #febc2e; }
.slideshow__dot-mac:nth-child(3) { background: #28c840; }

.slideshow__label {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity .2s;
}

.slideshow__counter {
  font-size: 12px;
  color: var(--muted-2);
  font-weight: 500;
  flex-shrink: 0;
}

/* Track */
.slideshow__track {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0e18;
  overflow: hidden;
}

/* Individual slides */
.ss-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
}
.ss-slide--active {
  opacity: 1;
  pointer-events: auto;
}

.ss-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Prev / Next arrows */
.ss-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* push down below the chrome bar (≈ 45px) */
  margin-top: 22px;
  z-index: 10;
  background: rgba(15, 20, 34, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s, background .15s, transform .15s;
}
.ss-arrow--prev { left: 14px; }
.ss-arrow--next { right: 14px; }

.slideshow:hover .ss-arrow,
.slideshow:focus .ss-arrow { opacity: 1; }

.ss-arrow:hover {
  background: rgba(91,141,239,.3);
  border-color: rgba(91,141,239,.5);
  transform: translateY(-50%) scale(1.08);
  margin-top: 22px; /* keep consistent */
}

/* Dot indicators */
.ss-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 0 10px;
  background: var(--bg-3);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.ss-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(242, 245, 252, .22);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s, width .25s;
}
.ss-dot--active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
  transform: none;
}
.ss-dot:hover:not(.ss-dot--active) {
  background: rgba(242, 245, 252, .4);
  transform: scale(1.2);
}

/* Progress bar */
.ss-progress {
  height: 3px;
  background: rgba(242, 245, 252, .1);
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 5;
}
.ss-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 0 2px 2px 0;
}

/* Lightbox (shared with old gallery) */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15,23,42,.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.lightbox.open { display: flex; }

.lb-stage {
  max-width: min(90vw, 1200px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lb-stage img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.lb-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 4px;
  gap: 16px;
}
.lb-caption span { font-size: 14px; color: #e2e8f0; }
.lb-caption span:last-child { font-size: 13px; color: #94a3b8; white-space: nowrap; }

.lb-close {
  position: fixed;
  top: 18px; right: 22px;
  background: rgba(15, 20, 34, .88);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  z-index: 1000;
}
.lb-close:hover { background: rgba(91,141,239,.22); }

.lb-nav {
  background: rgba(15, 20, 34, .88);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 36px;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s, transform .15s;
  line-height: 1;
}
.lb-nav:hover { background: rgba(91,141,239,.22); transform: scale(1.08); }

@media (max-width: 640px) {
  .ss-arrow { display: none; }
  .lb-nav   { width: 40px; height: 40px; font-size: 26px; }
}

/* --- SCROLL FADE IN ------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE ----------------------------------- */
@media (max-width: 1100px) {
  .nav__links a { padding: 0 8px; font-size: 12.5px; }
  .nav__bmc-label { display: none; }
  .nav__bmc { padding: 0; width: 34px; justify-content: center; }
  .nav__inner { column-gap: 12px; }
}

@media (max-width: 960px) {
  .nav__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
  }
  .nav__links {
    display: none;
    position: fixed;
    top: 64px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 12px;
    background: rgba(15, 20, 34, .98);
    border: 1px solid var(--line-2);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
  }
  .nav__links.open { display: flex; }
  .nav__links a {
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    border-radius: 12px;
    justify-content: flex-start;
  }
  .nav__link-lite {
    margin-top: 4px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 12px 12px !important;
    padding-top: 12px !important;
    height: auto !important;
    min-height: 44px;
  }
  .nav__link-bg {
    font-weight: 600;
  }
  .nav__mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .nav__mobile-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .nav__cta { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .screenshots__grid { grid-template-columns: 1fr; }
  .how__steps::before { display: none; }
}

@media (max-width: 680px) {
  .nav__wordmark { font-size: 15px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .stats__inner { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .download__os-grid { flex-direction: column; align-items: center; }
}

/* ── Gallery Lightbox ─────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15,23,42,.82);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(88vw, 1200px);
  max-height: 90vh;
}
.lb-stage img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(16,24,40,.30);
  transition: opacity .15s ease;
}

.lb-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 14px;
  padding: 0 4px;
  color: rgba(255,255,255,.82);
  font-size: .875rem;
  gap: 12px;
}
#lbCounter {
  font-size: .8rem;
  color: rgba(255,255,255,.58);
  white-space: nowrap;
}

.lb-nav {
  background: rgba(15, 20, 34, .88);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 2.4rem;
  line-height: 1;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
  margin: 0 16px;
  user-select: none;
}
.lb-nav:hover { background: rgba(91,141,239,.22); transform: scale(1.08); }

.lb-close {
  position: fixed;
  top: 18px; right: 20px;
  background: rgba(15, 20, 34, .88);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 1001;
}
.lb-close:hover { background: rgba(91,141,239,.22); }

.screenshot-card__img { cursor: zoom-in; overflow: hidden; }
.screenshot-card__img img { transition: transform .3s ease; }
.screenshot-card__img:hover img { transform: scale(1.05); }

/* ── Lite page ───────────────────────────────────────── */
.nav__wordmark-ver--lite {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--accent-2);
  background-clip: unset;
  color: var(--accent-2);
}

.nav__link-full {
  color: var(--muted-2) !important;
}

@media (max-width: 960px) {
  .nav__link-full {
    margin-top: 4px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 12px 12px !important;
    padding-top: 12px !important;
    height: auto !important;
    min-height: 44px;
  }
}

/* legacy class kept if any markup still references it */
.nav__lite-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  margin-left: 4px;
  border-radius: var(--radius-pill);
  background: rgba(62, 207, 154, .12);
  color: var(--accent-2);
  vertical-align: middle;
}

.hero--lite {
  min-height: auto;
  padding: 120px 24px 80px;
}

.hero__content--centered {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero__content--centered .hero__sub {
  margin-left: auto;
  margin-right: auto;
}

.hero__content--centered .hero__actions {
  justify-content: center;
}

.hero__badge--lite {
  background: rgba(62, 207, 154, .12);
  border-color: rgba(62, 207, 154, .25);
  color: var(--accent-2);
}

.compare {
  background: var(--bg-2);
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare-table th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
}

.compare-table th:not(:first-child),
.compare-table td:not(:first-child) {
  text-align: center;
  width: 100px;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover td {
  background: rgba(91,141,239,.04);
}

.compare-yes {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 16px;
}

.compare-no,
.compare-muted {
  color: var(--muted-2);
  font-weight: 600;
}

.compare-footnote {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.lite-full-cta {
  text-align: center;
  margin: 40px 0 0;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(91,141,239,.04);
}

.lite-full-cta p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 15px;
}

.download__os-grid--single {
  justify-content: center;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* --- SYSTEM REQUIREMENTS -------------------------- */
.sysreq {
  width: 100%;
  max-width: 720px;
  margin: 32px auto 0;
  background: var(--panel);
  border: 1px solid rgba(91,141,239,.18);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: left;
}

.sysreq--lite {
  border-color: rgba(62,207,154,.22);
}

.sysreq__top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.sysreq__icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.sysreq__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.sysreq__sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.sysreq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin: 0;
}

.sysreq__item {
  margin: 0;
}

.sysreq__item dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 4px;
}

.sysreq__item dd {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .sysreq__grid {
    grid-template-columns: 1fr;
  }
}

/* --- WORSHIP BACKGROUNDS GALLERY ------------------ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav__link-active {
  color: var(--text) !important;
  font-weight: 600;
}

.gallery-hero {
  position: relative;
  padding: 120px 0 36px;
  overflow: hidden;
}

.gallery-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 10% 20%, rgba(123, 44, 191, .18) 0%, transparent 60%),
    radial-gradient(ellipse 45% 45% at 95% 0%, rgba(45, 125, 255, .14) 0%, transparent 55%);
  pointer-events: none;
}

.gallery-hero__inner {
  position: relative;
  max-width: 760px;
  z-index: 1;
}

.gallery-hero .section-label {
  margin-bottom: 14px;
}

.gallery-hero__title {
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.18;
  margin: 0 0 16px;
  color: var(--text);
}

.gallery-hero__sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 0 28px;
}

.gallery-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  max-width: 640px;
}

.gallery-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(10, 14, 24, .55);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  width: fit-content;
  max-width: 100%;
}

.gallery-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 9px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}

.gallery-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

.gallery-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, .28);
}

.gallery-tab.is-active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(96, 165, 250, .22) 0%, rgba(123, 44, 191, .2) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .06) inset,
    0 4px 14px rgba(0, 0, 0, .18);
}

.gallery-tab__icon {
  font-size: 14px;
  line-height: 1;
}

.gallery-tab__count {
  min-width: 1.4em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.gallery-tab.is-active .gallery-tab__count {
  background: rgba(255, 255, 255, .14);
  color: var(--text);
}

.gallery-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.gallery-search {
  position: relative;
  flex: 1 1 280px;
  max-width: 440px;
  min-width: 0;
}

.gallery-search__icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
  z-index: 1;
}

.gallery-search__input {
  width: 100%;
  height: 48px;
  padding: 0 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.gallery-search__input::-webkit-search-cancel-button {
  display: none;
}

.gallery-search__input::placeholder {
  color: var(--muted-2);
  opacity: 1;
}

.gallery-search__input:focus {
  border-color: rgba(142, 182, 255, .55);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, .16);
}

.gallery-search__clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.gallery-search__clear:hover {
  background: rgba(255, 255, 255, .18);
}

.gallery-toolbar__meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .01em;
  flex-shrink: 0;
}

.gallery-section {
  padding-top: 20px;
  padding-bottom: 80px;
}

.gallery-status {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(96, 165, 250, .1);
  border: 1px solid rgba(96, 165, 250, .22);
  color: #c7dbff;
  font-size: 14px;
  line-height: 1.5;
}

.gallery-status--error {
  background: rgba(248, 113, 113, .1);
  border-color: rgba(248, 113, 113, .28);
  color: #fecaca;
}

.gallery-status:empty {
  display: none;
}

.gallery-panel {
  min-height: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

.gallery-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  border-color: rgba(142, 182, 255, .22);
  box-shadow: var(--shadow-lg);
}

.gallery-card__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  background: #0a0e18;
  cursor: zoom-in;
  overflow: hidden;
  flex-shrink: 0;
}

.gallery-card--video .gallery-card__thumb {
  cursor: pointer;
}

.gallery-card__thumb img,
.gallery-card__poster,
.gallery-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease, opacity .25s ease;
  display: block;
  pointer-events: none;
}

.gallery-card__poster-wrap {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.gallery-card__poster-ph {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(45, 125, 255, .18) 0%, rgba(123, 44, 191, .2) 48%, rgba(10, 14, 24, .95) 100%),
    repeating-linear-gradient(
      -12deg,
      rgba(255, 255, 255, .03) 0 10px,
      transparent 10px 20px
    );
  animation: gallery-poster-pulse 1.6s ease-in-out infinite;
}

.gallery-card__thumb.has-poster .gallery-card__poster-ph,
.gallery-card__poster-wrap.has-poster .gallery-card__poster-ph {
  opacity: 0;
  animation: none;
}

.gallery-card__poster {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.gallery-card__poster.is-loaded {
  opacity: 1;
}

.gallery-card__thumb.thumb-failed .gallery-card__poster-ph {
  animation: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(96, 165, 250, .16) 0%, transparent 55%),
    #0a0e18;
}

@keyframes gallery-poster-pulse {
  0%, 100% { opacity: .85; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.08); }
}

.gallery-card:hover .gallery-card__thumb img,
.gallery-card:hover .gallery-card__poster,
.gallery-card:hover .gallery-card__video {
  transform: scale(1.04);
}

.gallery-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.gallery-card__play svg {
  width: 48px;
  height: 48px;
  padding: 13px 12px 13px 14px;
  border-radius: 50%;
  background: rgba(8, 12, 22, .62);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .18s ease, background .18s ease;
}

.gallery-card--video:hover .gallery-card__play svg {
  transform: scale(1.06);
  background: rgba(96, 165, 250, .42);
}

.gallery-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
  background: linear-gradient(180deg, var(--panel) 0%, var(--surface-4) 100%);
}

.gallery-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.gallery-card__meta {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.4;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-card__downloads {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.gallery-card__actions {
  margin-top: auto;
  padding-top: 8px;
}

.gallery-card__actions .btn {
  width: 100%;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.gallery-empty {
  text-align: center;
  padding: 64px 28px;
  background: rgba(21, 28, 44, .7);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-xl);
}

.gallery-empty__icon {
  font-size: 40px;
  margin-bottom: 14px;
  line-height: 1;
}

.gallery-empty__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.3;
}

.gallery-empty__text {
  max-width: 460px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.gallery-empty__text strong {
  color: var(--text);
  font-weight: 700;
}

/* Soft, end-of-content AdSense slot — not sticky, not in-grid */
.gallery-ad {
  margin: 36px auto 8px;
  max-width: 728px;
  text-align: center;
}

.gallery-ad__label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
  opacity: .85;
}

.gallery-ad__frame {
  min-height: 90px;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line);
  background: rgba(10, 14, 24, .35);
  overflow: hidden;
}

.gallery-ad__frame .adsbygoogle {
  display: block;
  margin: 0 auto;
}

/* Gallery lightbox — scoped so it does not fight screenshot lightbox */
.page-gallery .lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-gallery .lightbox[hidden] {
  display: none !important;
}

.page-gallery .lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 14, .86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-gallery .lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-gallery .lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-gallery .lightbox__close:hover {
  background: rgba(0, 0, 0, .8);
}

.page-gallery .lightbox__img,
.page-gallery .lightbox__video {
  width: 100%;
  max-height: min(68vh, 620px);
  object-fit: contain;
  background: #06090f;
  display: block;
  flex-shrink: 0;
}

.page-gallery .lightbox__video {
  max-height: min(68vh, 620px);
  outline: none;
}

.page-gallery .lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  min-width: 0;
}

.page-gallery .lightbox__info {
  min-width: 0;
  flex: 1 1 auto;
  padding-right: 8px;
}

.page-gallery .lightbox__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-gallery .lightbox__file {
  font-size: 12px;
  color: var(--muted-2);
  margin: 4px 0 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-gallery .lightbox__download,
.page-gallery .lightbox__bar .btn {
  flex: 0 0 auto;
  gap: 6px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .gallery-hero {
    padding-top: 104px;
    padding-bottom: 28px;
  }

  .gallery-hero__title {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
  }

  .gallery-toolbar {
    max-width: none;
  }

  .gallery-tabs {
    width: 100%;
  }

  .gallery-tab {
    flex: 1 1 auto;
    justify-content: center;
    padding: 10px 12px;
  }

  .gallery-toolbar__row {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-search {
    max-width: none;
  }

  .gallery-toolbar__meta {
    text-align: left;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-gallery .lightbox {
    padding: 12px;
  }

  .page-gallery .lightbox__dialog {
    max-height: calc(100vh - 24px);
  }

  .page-gallery .lightbox__img,
  .page-gallery .lightbox__video {
    max-height: min(52vh, 420px);
  }

  .page-gallery .lightbox__bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .page-gallery .lightbox__info {
    padding-right: 0;
  }

  .page-gallery .lightbox__download,
  .page-gallery .lightbox__bar .btn {
    width: 100%;
    justify-content: center;
  }

  .page-gallery .lightbox__title {
    font-size: 15px;
  }
}
