:root {
  --panel: rgba(8, 16, 30, 0.58);
  --panel-strong: rgba(8, 16, 30, 0.74);
  --panel-soft: rgba(10, 20, 40, 0.40);

  --text: #f5f8ff;
  --muted: #c7d3eb;

  --blue: #3b84ff;
  --blue-soft: #77beff;
  --purple: #8057ff;
  --green: #20bf67;
  --orange: #ff8c3d;

  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 16px;
  --radius-sm: 14px;

  --shadow-md: 0 18px 38px rgba(0,0,0,0.22);

  --max: 1320px;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html,
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(4, 9, 19, 0.32), rgba(7, 16, 29, 0.42), rgba(9, 20, 38, 0.52)),
    url('/assets/hero-background.png') center 48% / cover fixed no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 84%, rgba(72, 171, 255, 0.08), transparent 16%),
    radial-gradient(circle at 92% 80%, rgba(255, 136, 61, 0.08), transparent 14%);
}

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

.container {
  width: min(calc(100% - 24px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(3, 8, 17, 0.42);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(147, 193, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10), 0 1px 0 rgba(255,255,255,0.02) inset;
}

.topbar-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.85rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  flex: 0 0 44px;
  filter: drop-shadow(0 4px 10px rgba(255, 90, 0, 0.18));
}

.footer-logo-img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  filter: drop-shadow(0 3px 8px rgba(255, 90, 0, 0.14));
}

.brand-mark {
  display: none !important;
}

/* NAVIGATION STYLE CAPSULE */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  color: #e4ebff;
  white-space: nowrap;
  position: relative;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
  border: 1px solid transparent;
}

.nav a::after {
  display: none !important;
  content: none !important;
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(174, 208, 255, 0.10);
}

.nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(174, 208, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 8px 18px rgba(0,0,0,0.12);
}

.top-actions,
.page-actions,
.card-actions,
.footer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.top-btn,
.hero-btn,
.small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10, 21, 40, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  white-space: nowrap;
}

.top-btn.discord,
.hero-btn.green {
  background: linear-gradient(135deg, rgba(92,104,255,0.90), rgba(126,87,255,0.90));
}

.hero-btn.blue {
  background: linear-gradient(135deg, rgba(48,120,255,0.92), rgba(79,150,255,0.92));
}

.hero-btn.purple {
  background: linear-gradient(135deg, rgba(111,62,255,0.92), rgba(139,87,255,0.92));
}

.hero-btn.green {
  background: linear-gradient(135deg, rgba(28,152,78,0.92), rgba(33,191,103,0.92));
}

.small-btn {
  min-height: 40px;
  padding: 0 14px;
}

.small-btn.primary {
  background: linear-gradient(135deg, rgba(48,120,255,0.92), rgba(79,150,255,0.92));
  border-color: transparent;
}

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

.top-btn:hover,
.hero-btn:hover,
.small-btn:hover,
.card:hover,
.link-card:hover,
.info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(174, 208, 255, 0.24);
  box-shadow: var(--shadow-md);
}

.page-hero {
  margin-top: 10px;
}

.page-hero-inner {
  padding: 42px 34px 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
  align-items: center;
}

.page-kicker {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #dce8ff;
  text-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

.page-title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.95;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 10px 30px rgba(0,0,0,0.24);
}

.page-text {
  margin: 0;
  max-width: 820px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0,0,0,0.14);
}

.section {
  margin-top: 18px;
}

.section-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--panel);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.14);
}

.section-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 28%),
    radial-gradient(circle at 12% 30%, rgba(88, 183, 255, 0.08), transparent 18%),
    radial-gradient(circle at 88% 36%, rgba(255, 140, 61, 0.05), transparent 16%);
}

.section-inner {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.55;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 16px;
}

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

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

.card,
.link-card,
.info-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--panel-soft);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.18);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.link-card {
  cursor: pointer;
}

.card::before,
.link-card::before,
.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mods-card::before { background: radial-gradient(circle at top left, rgba(77,170,255,0.18), transparent 38%); }
.modpacks-card::before { background: radial-gradient(circle at top left, rgba(126,87,255,0.18), transparent 38%); }
.other-card::before { background: radial-gradient(circle at top left, rgba(255,140,61,0.16), transparent 38%); }

.csar-card::before { background: radial-gradient(circle at top left, rgba(77,170,255,0.18), transparent 38%); }
.aca-card::before { background: radial-gradient(circle at top left, rgba(126,87,255,0.18), transparent 38%); }

.public-card.github::before { background: radial-gradient(circle at top left, rgba(77,170,255,0.16), transparent 38%); }
.public-card.curseforge::before { background: radial-gradient(circle at top left, rgba(255,140,61,0.16), transparent 38%); }
.public-card.modrinth::before { background: radial-gradient(circle at top left, rgba(32,191,103,0.16), transparent 38%); }

.info-card::before { background: radial-gradient(circle at top left, rgba(77,170,255,0.12), transparent 40%); }

.card-top,
.info-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.card-icon,
.info-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  font-size: 1.4rem;
}

.card h3,
.link-card h3,
.info-card h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1;
  text-transform: uppercase;
}

.card p,
.link-card p,
.info-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.card-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e7efff;
  font-size: 0.88rem;
  font-weight: 800;
}

.status-pill.public {
  background: rgba(32, 191, 103, 0.12);
  border-color: rgba(32, 191, 103, 0.25);
  color: #bff2d2;
}

.status-pill.coming {
  background: rgba(255, 140, 61, 0.12);
  border-color: rgba(255, 140, 61, 0.25);
  color: #ffd7bc;
}

.notice-box {
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  padding: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  padding: 18px 0 34px;
}

.footer-box {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--panel-strong);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

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

.footer-brand h3 {
  margin: 0;
  font-size: 1.6rem;
  text-transform: uppercase;
}

.footer-brand p,
.footer-center p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer-center {
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.footer-nav a {
  font-weight: 800;
  color: #e3ebff;
  font-size: 0.95rem;
}

@media (max-width: 1180px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-box {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-center,
  .footer-actions {
    text-align: left;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 0;
  }

  .nav {
    width: 100%;
    order: 3;
    gap: 12px;
  }

  .top-actions {
    width: 100%;
    justify-content: center;
  }

  .page-hero-inner {
    padding: 34px 20px 24px;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 16px), var(--max));
  }

  .top-btn,
  .hero-btn,
  .small-btn {
    width: 100%;
  }

  .top-actions,
  .page-actions,
  .card-actions,
  .footer-actions {
    flex-direction: column;
  }

  .brand {
    font-size: 1.55rem;
  }

  .brand-logo-img {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .footer-logo-img {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .section-inner {
    padding: 18px;
  }

  .footer-box {
    padding: 16px;
  }
}