* {
  box-sizing: border-box;
}

:root {
  --bg: #050913;
  --bg-2: #0c1320;
  --panel: rgba(14, 20, 34, 0.72);
  --panel-strong: rgba(10, 15, 28, 0.9);
  --line: rgba(125, 177, 255, 0.18);
  --text: #eef4ff;
  --muted: #9daecc;
  --blue: #69a7ff;
  --cyan: #4ff2ff;
  --green: #76ffb4;
  --gold: #ffcf5b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
  --radius: 26px;
  --radius-sm: 18px;
  --max: 1240px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56, 122, 255, 0.18), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(79, 242, 255, 0.10), transparent 20%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.orb-1 {
  width: 340px;
  height: 340px;
  background: rgba(68, 134, 255, 0.32);
  top: -60px;
  left: -60px;
}

.orb-2 {
  width: 280px;
  height: 280px;
  background: rgba(76, 255, 173, 0.16);
  right: -40px;
  top: 180px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(255,255,255,0.5), transparent 75%);
  pointer-events: none;
  opacity: 0.16;
  z-index: 0;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.glass {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  position: sticky;
  top: 14px;
  z-index: 10;
  border: 1px solid rgba(125, 177, 255, 0.16);
  border-radius: 22px;
  background: rgba(8, 12, 22, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

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

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 900;
  border-radius: 16px;
  color: #08111a;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 10px 24px rgba(80, 145, 255, 0.25);
}

.eyebrow, .section-label {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.brand h1,
.hero h2,
.section-heading h3,
.mod-head h4,
.spotlight h4,
.mod-page-title {
  margin: 0;
}

.nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  transition: color 0.18s ease;
}

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

.hero,
.section,
.footer {
  margin-top: 24px;
}

.hero-advanced {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: stretch;
  padding: 32px;
}

.hero h2 {
  margin-top: 12px;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 1.02;
  max-width: 11ch;
}

.hero-text,
.section-heading p,
.mod-summary,
.mod-meta,
.spotlight p,
.footer-note,
.mod-page-lead,
.feature-card p,
.info-list,
.install-list,
.faq-list p {
  color: var(--muted);
}

.hero-text {
  margin: 18px 0 0;
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 64ch;
}

.hero-actions,
.card-actions,
.download-cards,
.mod-page-actions,
.info-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions,
.mod-page-actions { margin-top: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid rgba(125, 177, 255, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  backdrop-filter: blur(6px);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.22);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(86, 144, 255, 0.35), rgba(76, 255, 173, 0.2));
}

.btn-secondary { background: rgba(255,255,255,0.04); }

.btn-small {
  min-height: 42px;
  font-size: 0.92rem;
  padding: 0 14px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.stat-card,
.mod-card,
.spotlight-main,
.spotlight-side,
.download-card,
.feature-card,
.gallery-card,
.info-panel,
.faq-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(125, 177, 255, 0.14);
  background: rgba(255,255,255,0.03);
  border-radius: 20px;
}

.stat-card { padding: 18px; }

.stat-card strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.series-logo-panel {
  position: relative;
  min-height: 270px;
  border-radius: 22px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 208, 91, 0.16), transparent 26%),
    radial-gradient(circle at bottom left, rgba(75, 255, 221, 0.14), transparent 28%),
    rgba(12, 18, 31, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
}

.series-logo {
  width: 100%;
  max-width: 360px;
  height: 210px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 16px 34px rgba(0,0,0,0.35));
}

.hero-ring {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  border: 1px solid rgba(105, 167, 255, 0.16);
  box-shadow: 0 0 90px rgba(105, 167, 255, 0.18) inset;
  animation: pulseRing 5s ease-in-out infinite;
}

@keyframes pulseRing {
  0%, 100% { transform: scale(0.96); opacity: 0.7; }
  50% { transform: scale(1.02); opacity: 1; }
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hero-mini-grid img {
  width: 100%;
  height: 88px;
  object-fit: contain;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-mini-grid img:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(0,0,0,0.22);
}

.section,
.footer {
  padding: 28px;
}

.section-heading p { max-width: 72ch; }

.mods-grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.pro-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mod-card {
  padding: 16px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.mod-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(158, 209, 255, 0.4);
  box-shadow: 0 22px 40px rgba(0,0,0,0.28);
}

.mod-card::before,
.download-card::before,
.spotlight-main::before,
.spotlight-side::before,
.feature-card::before,
.info-panel::before,
.faq-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.18;
  pointer-events: none;
}

.mod-card-pci::before { background: rgba(255, 205, 74, 0.55); }
.mod-card-jei::before { background: rgba(78, 210, 255, 0.55); }
.mod-card-cep::before { background: rgba(80, 255, 181, 0.5); }
.mod-card-lep::before { background: rgba(255, 163, 71, 0.5); }

.card-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 16px;
  background: rgba(0,0,0,0.25);
  padding: 10px;
}

.mod-img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  display: block;
  background: rgba(255,255,255,0.03);
  padding: 10px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.mod-card:hover .mod-img { transform: scale(1.04); }

.card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.2) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}

.mod-card:hover .card-shine { transform: translateX(120%); }

.mod-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.badge {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.badge-alpha {
  background: rgba(255, 191, 102, 0.14);
  color: #ffd6a8;
}

.badge-beta {
  background: rgba(98, 178, 255, 0.14);
  color: #c9e1ff;
}

.mod-summary {
  line-height: 1.72;
  min-height: 84px;
  font-size: 0.95rem;
}

.mod-tags,
.mod-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mod-tags { margin: 14px 0 10px; }

.mod-tags span,
.mod-meta span,
.info-pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.84rem;
}

.spotlight-grid,
.feature-grid,
.mod-info-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.spotlight-grid { grid-template-columns: 1.3fr 1fr 1fr; }

.spotlight-main,
.spotlight-side,
.feature-card,
.info-panel,
.faq-card { padding: 22px; }

.spotlight-main::before,
.spotlight-side::before,
.feature-card::before,
.info-panel::before,
.faq-card::before {
  background: rgba(86, 144, 255, 0.42);
}

.download-cards { margin-top: 24px; }

.download-card {
  flex: 1 1 240px;
  min-height: 120px;
  padding: 22px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: rgba(158, 209, 255, 0.4);
  box-shadow: 0 18px 28px rgba(0,0,0,0.24);
}

.download-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.download-card span { color: var(--muted); }

.footer { text-align: center; }

.footer p { margin: 0; }

.footer-note { margin-top: 8px !important; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* PRO MOD PAGES */
.mod-hero {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.mod-hero-logo-wrap {
  background:
    radial-gradient(circle at top right, rgba(255, 208, 91, 0.14), transparent 26%),
    radial-gradient(circle at bottom left, rgba(75, 255, 221, 0.12), transparent 28%),
    rgba(12, 18, 31, 0.78);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 22px;
  padding: 16px;
}

.mod-hero-logo {
  width: 100%;
  height: 240px;
  object-fit: contain;
  display: block;
}

.mod-page-title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.mod-page-lead {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 68ch;
  margin-top: 14px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card h4,
.info-panel h4,
.faq-card h4,
.gallery-card h4 {
  margin: 0 0 10px;
}

.mod-info-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.info-list,
.install-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.85;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.gallery-card {
  min-height: 180px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.04)),
    rgba(255,255,255,0.03);
}

.gallery-card strong {
  display: block;
  margin-bottom: 6px;
}

.faq-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.faq-list p {
  margin: 0;
  line-height: 1.75;
}

@media (max-width: 1024px) {
  .hero-advanced,
  .spotlight-grid,
  .mod-hero,
  .mod-info-grid,
  .feature-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .pro-grid {
    grid-template-columns: 1fr;
  }

  .hero h2 { max-width: none; }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(var(--max), calc(100% - 20px));
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-advanced,
  .section,
  .footer,
  .mod-hero {
    padding: 22px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-mini-grid {
    grid-template-columns: 1fr;
  }

  .series-logo { height: 170px; }
  .mod-hero-logo { height: 180px; }
}
.gallery-card {
  padding: 0;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}
.gallery-card {
  position: relative;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transition: 0.3s;
}

.gallery-card:hover::after {
  opacity: 1;
}
