﻿/* RF4 Info landing */
:root {
  --bg: #070b10;
  --bg-elevated: #0e141c;
  --bg-card: #121a24;
  --bg-card-hover: #161f2c;
  --border: rgba(72, 92, 118, 0.35);
  --text: #eef3fa;
  --muted: #8fa3bc;
  --accent: #4da3ff;
  --accent-soft: rgba(77, 163, 255, 0.14);
  --accent-glow: rgba(77, 163, 255, 0.45);
  --green: #3ddc84;
  --discord: #5865f2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* Animated background orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orb-float 18s ease-in-out infinite;
}

.orb-1 {
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  top: -12%;
  left: -8%;
  background: #1a5a9e;
}

.orb-2 {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: 35%;
  right: -10%;
  background: #1e4d3a;
  animation-delay: -6s;
}

.orb-3 {
  width: min(360px, 60vw);
  height: min(360px, 60vw);
  bottom: -5%;
  left: 30%;
  background: #3a2a7a;
  animation-delay: -12s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -18px) scale(1.05); }
  66% { transform: translate(-16px, 12px) scale(0.96); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 11, 16, 0.82);
  border-bottom: 1px solid var(--border);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  z-index: 2;
}

.brand:hover { text-decoration: none; }

.brand-name {
  font-size: clamp(0.92rem, 2.5vw, 1.1rem);
  line-height: 1.25;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.brand-fallback {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: linear-gradient(135deg, #1a4d7a, #0d2840);
  border: 1px solid var(--border);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-discord {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #c8cdff !important;
}

.nav-discord:hover {
  background: rgba(88, 101, 242, 0.28);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  cursor: pointer;
  z-index: 2;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(77, 163, 255, 0.28);
  margin-bottom: 1.1rem;
  animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(77, 163, 255, 0); }
  50% { box-shadow: 0 0 0 6px rgba(77, 163, 255, 0.08); }
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4.5vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #5eb0ff 0%, #2d7fd4 100%);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 10px 32px var(--accent-glow);
}

.btn-secondary {
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
}

.btn-danger {
  color: #fff;
  background: linear-gradient(180deg, #ff6b6b 0%, #d93636 100%);
  border: 1px solid rgba(255, 107, 107, 0.45);
  box-shadow: 0 4px 18px rgba(255, 80, 80, 0.25);
}

.btn-danger:hover {
  background: linear-gradient(180deg, #ff8080 0%, #e04545 100%);
  box-shadow: 0 6px 22px rgba(255, 80, 80, 0.35);
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.btn-icon {
  font-size: 1.1rem;
}

.hero-metrics {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.hero-metrics li {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.hero-metrics-value {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.hero-metrics-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-meta strong { color: var(--text); }

/* Hero photo */
.hero-visual {
  position: relative;
}

.hero-photo {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0a1018;
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  font: inherit;
  color: inherit;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.hero-photo:hover {
  transform: translateY(-3px);
  border-color: rgba(100, 160, 255, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.hero-photo:focus-visible {
  outline: 2px solid rgba(100, 160, 255, 0.85);
  outline-offset: 3px;
}

.hero-photo-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(520px, 70vh);
  border-radius: calc(var(--radius) - 4px);
  object-fit: contain;
  object-position: center;
  transition: transform 0.45s ease;
}

.hero-photo:hover .hero-photo-img {
  transform: scale(1.015);
}

.hero-photo-hint {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.82);
  border: 1px solid rgba(100, 160, 255, 0.35);
  color: #e8f0ff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: heroHintPulse 2.8s ease-in-out infinite;
  pointer-events: none;
}

.hero-photo-hint-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

@keyframes heroHintPulse {
  0%, 100% {
    opacity: 0.88;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(4, 8, 14, 0.92);
  backdrop-filter: blur(12px);
  cursor: zoom-out;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 1680px);
  height: min(94vh, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transform: scale(0.94);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity 0.35s ease;
}

.lightbox.is-open .lightbox-panel {
  transform: scale(1);
  opacity: 1;
}

.lightbox-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: center;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: rgba(12, 18, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.lightbox-tool-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #e8f0ff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-tool-btn svg {
  width: 1rem;
  height: 1rem;
}

.lightbox-tool-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lightbox-tool-btn:active {
  transform: scale(0.94);
}

.lightbox-tool-reset {
  width: auto;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.lightbox-zoom-level {
  min-width: 3.25rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c8d8f0;
  font-variant-numeric: tabular-nums;
}

.lightbox-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  touch-action: none;
  cursor: zoom-in;
  user-select: none;
}

.lightbox-viewport.is-draggable {
  cursor: grab;
}

.lightbox-viewport.is-dragging {
  cursor: grabbing;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
}

.lightbox-hint {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(200, 216, 240, 0.72);
  line-height: 1.4;
}

.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(15, 22, 32, 0.9);
  color: #fff;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.lightbox-close svg {
  width: 1.15rem;
  height: 1.15rem;
}

.lightbox-close:hover {
  background: rgba(30, 42, 58, 0.95);
  transform: scale(1.06);
}

@media (max-width: 720px) {
  .lightbox {
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
  }

  .lightbox-panel {
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    gap: 0;
    padding:
      env(safe-area-inset-top, 0px)
      env(safe-area-inset-right, 0px)
      env(safe-area-inset-bottom, 0px)
      env(safe-area-inset-left, 0px);
  }

  .lightbox-toolbar {
    position: absolute;
    top: calc(0.55rem + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
  }

  .lightbox-viewport {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border-radius: 0;
    background: transparent;
  }

  .lightbox-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    border-radius: 0;
    box-shadow: none;
  }

  .lightbox-close {
    top: calc(0.45rem + env(safe-area-inset-top, 0px));
    right: calc(0.45rem + env(safe-area-inset-right, 0px));
  }

  .lightbox-hint {
    display: none;
  }

  .lightbox-tool-reset {
    display: none;
  }

  .hero-photo-hint {
    font-size: 0.76rem;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
  }
}

.section-pills {
  padding-top: 0;
  padding-bottom: 2rem;
}

.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.pill-list li {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.pill-list li:hover {
  color: var(--text);
  border-color: rgba(77, 163, 255, 0.4);
  transform: translateY(-2px);
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-desc {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.bento-card {
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 163, 255, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.bento-wide {
  grid-column: span 2;
}

.bento-icon {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}

.bento-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.bento-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Showcase gallery */
.showcase-gallery-wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(0.5rem, 2vw, 1.25rem);
}

.showcase-gallery {
  width: 100%;
  margin: 0 auto;
}

.showcase-gallery-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  gap: 1rem;
}

.showcase-gallery-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: min(820px, 72vh);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a1018;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

.showcase-open-hint {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 3;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.82);
  border: 1px solid rgba(100, 160, 255, 0.3);
  color: #e8f0ff;
  font-size: 0.78rem;
  font-weight: 600;
  pointer-events: none;
  backdrop-filter: blur(8px);
  opacity: 0.92;
  transition: opacity 0.25s ease;
}

.showcase-gallery-viewport:hover .showcase-open-hint {
  opacity: 1;
}

.showcase-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.showcase-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.showcase-slide.is-leaving {
  opacity: 0;
  transform: scale(0.98);
  z-index: 2;
}

.showcase-slide img {
  display: block;
  max-width: calc(100% - 0.6rem);
  max-height: calc(100% - 0.6rem);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
}

.showcase-gallery-nav {
  flex-shrink: 0;
  align-self: center;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(15, 22, 32, 0.85);
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
}

.showcase-gallery-nav svg {
  width: 1.25rem;
  height: 1.25rem;
}

.showcase-gallery-nav:hover {
  background: rgba(25, 36, 52, 0.95);
  border-color: rgba(100, 160, 255, 0.35);
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.showcase-gallery-nav:active {
  transform: scale(0.96);
}

.showcase-gallery-footer {
  margin-top: 1.25rem;
  text-align: center;
}

.showcase-gallery-caption {
  margin: 0 0 1.1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  min-height: 1.5em;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.showcase-gallery-caption.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

.showcase-gallery-thumbs {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.showcase-thumb {
  position: relative;
  flex: 0 0 auto;
  width: clamp(5.5rem, 22vw, 9.5rem);
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #0a1018;
  cursor: pointer;
  opacity: 0.55;
  transform: scale(0.94);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.showcase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #0a1018;
}

.showcase-thumb:hover {
  opacity: 0.85;
  transform: scale(0.98);
}

.showcase-thumb.is-active {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(100, 160, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(100, 160, 255, 0.2), 0 8px 20px rgba(0, 0, 0, 0.35);
}

.showcase-thumb:focus-visible {
  outline: 2px solid rgba(100, 160, 255, 0.8);
  outline-offset: 2px;
}

/* Changelog */
.changelog-list {
  list-style: none;
  margin: 0;
  padding: 1.25rem 1.5rem;
  display: grid;
  gap: 0.65rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.changelog-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.changelog-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.changelog-registered-title {
  margin-top: 0.75rem;
  padding-left: 0 !important;
  color: #f0b429 !important;
  font-weight: 600;
}

.changelog-registered-title::before {
  display: none;
}

.changelog-registered-item {
  color: var(--text) !important;
}

#changelogVersion::before {
  content: "В· ";
}

/* Download CTA */
.section-cta {
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.download-box {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, #0f1a28 0%, #122a40 50%, #0d2035 100%);
  box-shadow: var(--shadow);
}

.download-glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 120%;
  background: radial-gradient(circle, rgba(77, 163, 255, 0.25), transparent 65%);
  pointer-events: none;
  animation: glow-shift 8s ease-in-out infinite;
}

@keyframes glow-shift {
  0%, 100% { opacity: 0.6; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(-20px); }
}

.download-info {
  position: relative;
  z-index: 1;
  max-width: 32rem;
}

.download-box h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.download-box p {
  margin: 0 0 1rem;
  color: rgba(238, 243, 250, 0.78);
  font-size: 0.95rem;
}

.download-notes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.download-notes li {
  position: relative;
  padding-left: 1.35rem;
}

.download-notes li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.download-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  min-width: min(100%, 260px);
}

.download-version {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.download-count {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: grid;
  gap: 0.25rem;
  font-weight: 600;
}

.footer-muted {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .bento-wide {
    grid-column: span 2;
  }

  .showcase-gallery-viewport {
    aspect-ratio: 4 / 3;
    max-height: min(360px, 52vh);
  }

  .showcase-gallery-stage {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .showcase-gallery-nav {
    display: none;
  }

  .showcase-gallery-thumbs {
    gap: 0.5rem;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .showcase-thumb {
    width: clamp(4.75rem, 28vw, 6.5rem);
  }

  .showcase-open-hint {
    font-size: 0.72rem;
    bottom: 0.65rem;
    max-width: calc(100% - 1.5rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-photo-img {
    max-height: min(280px, 45vh);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1140px, 94vw);
  }

  .showcase-gallery-viewport {
    aspect-ratio: 3 / 4;
    max-height: min(420px, 58vh);
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 85vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--header-h) + 1rem) 1.25rem 1.5rem;
    background: rgba(10, 14, 20, 0.97);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav a {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 1rem;
  }

  .nav-discord {
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .bento,
  .bento-wide {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .download-box {
    flex-direction: column;
    align-items: stretch;
  }

  .download-actions {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Staging channel bar (only on /staging/) */
.staging-bar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(90deg, #3d2800 0%, #5c3d00 50%, #3d2800 100%);
  border-bottom: 1px solid rgba(255, 196, 77, 0.35);
  color: #ffe8b8;
  font-size: 0.9rem;
}

.staging-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.65rem 0;
}

.staging-bar-label {
  font-weight: 600;
}

.staging-bar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.staging-bar-link {
  color: #ffd27a;
  font-size: 0.85rem;
}

.staging-bar-link:hover {
  color: #fff;
}

.btn-staging-promote {
  appearance: none;
  border: 1px solid rgba(255, 196, 77, 0.55);
  background: rgba(255, 196, 77, 0.16);
  color: #fff8e8;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-staging-promote:hover:not(:disabled) {
  background: rgba(255, 196, 77, 0.28);
}

.btn-staging-promote:disabled {
  opacity: 0.6;
  cursor: wait;
}

.staging-bar-status {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.82rem;
}

.staging-bar-status.is-ok {
  color: #9dffb8;
}

.staging-bar-status.is-error {
  color: #ffb4b4;
}

body.is-staging-channel .site-header {
  top: 0;
}
