/* ============================================
   BLUE RIDGE STATE ROLEPLAY — Main Stylesheet
   Colors from logo: Navy, Gold, White, Red
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Source+Serif+4:ital,wght@0,300;0,400;1,300&family=Barlow:wght@400;500;600;700&display=swap');

:root {
  /* Core palette — pulled from logo */
  --navy:        #0d1b2e;
  --navy-mid:    #152440;
  --navy-soft:   #1c3157;
  --gold:        #d4900a;
  --gold-light:  #f0b429;
  --gold-pale:   #ffd97d;
  --red:         #c0272d;
  --red-dark:    #8f1a1e;
  --white:       #f5f0e8;
  --muted:       #9aafcc;

  /* Surfaces */
  --bg:          #070d16;
  --bg-soft:     #0d1825;
  --panel:       #111e30;
  --panel-2:     #162638;

  /* UI */
  --line:        rgba(212,144,10,0.15);
  --line-soft:   rgba(255,255,255,0.06);
  --shadow:      0 20px 60px rgba(0,0,0,0.5);
  --max:         1180px;

  /* Typography */
  --font-display: 'Oswald', sans-serif;
  --font-serif:   'Source Serif 4', Georgia, serif;
  --font-body:    'Barlow', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  line-height: 1.65;
  font-size: 1rem;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0;
}
p { margin: 0; }
em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-light);
}

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

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 13, 22, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(212, 144, 10, 0.12);
  transition: all 0.35s ease;
}
.site-header.scrolled {
  background: rgba(7, 13, 22, 0.94);
  border-bottom-color: rgba(212, 144, 10, 0.28);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.nav-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: min-height 0.3s ease;
}
.site-header.scrolled .nav-wrap { min-height: 68px; }

.site-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.site-brand-logo {
  height: 72px;
  width: auto;
  display: block;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(212,144,10,0.2));
}
.site-brand-logo:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 0 14px rgba(212,144,10,0.5));
}
.site-header.scrolled .site-brand-logo { height: 56px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

/* Nav links */
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  position: relative;
}
.site-nav a {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.25s ease;
}
.site-nav a:hover {
  color: var(--white);
  background: rgba(212, 144, 10, 0.08);
}
.site-nav a.active {
  color: var(--gold-light);
}

.nav-underline {
  position: absolute;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 0 10px rgba(212, 144, 10, 0.6);
}

/* Social icons */
.nav-socials { display: flex; align-items: center; gap: 10px; }
.nav-socials .social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  transition: all 0.25s ease;
  color: var(--muted);
}
.nav-socials .social svg { width: 18px; height: 18px; }
.nav-socials .social:hover { transform: translateY(-2px) scale(1.05); }
.social.discord:hover { background: #5865F2; border-color: #5865F2; color: #fff; box-shadow: 0 0 14px rgba(88,101,242,0.5); }
.social.youtube:hover { background: #FF0000; border-color: #FF0000; color: #fff; box-shadow: 0 0 14px rgba(255,0,0,0.5); }
.social.tiktok:hover { background: #000; border-color: #69C9D0; color: #69C9D0; box-shadow: 0 0 14px rgba(105,201,208,0.4); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  background: var(--bg);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 65% 40%, rgba(212,144,10,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(13,27,46,0.9) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 90%, rgba(192,39,45,0.08) 0%, transparent 45%),
    linear-gradient(160deg, var(--navy) 0%, var(--bg) 60%);
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}

.hero-split {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  flex: 0 0 52%;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,144,10,0.12);
  border: 1px solid rgba(212,144,10,0.25);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.6s ease;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--line);
}

/* Hero logo side */
.hero-logo-wrap {
  flex: 0 0 44%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-logo-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(212,144,10,0.18) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite;
}
.hero-logo-img {
  width: min(420px, 100%);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 40px rgba(212,144,10,0.25)) drop-shadow(0 0 80px rgba(13,27,46,0.8));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* Scroll hint */
.hero-scroll-hint {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ===== FEATURE BAND ===== */
.feature-band {
  position: relative;
  z-index: 3;
  margin-top: -30px;
  padding: 0 0 60px;
}
.feature-band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mini-feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.mini-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.mini-feature:hover::before { opacity: 1; }
.mini-feature:hover {
  transform: translateY(-5px);
  background: var(--panel-2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,144,10,0.2);
}
.mini-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.mini-feature h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 8px;
}
.mini-feature p { color: var(--muted); font-size: 0.92rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.22s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(160deg, var(--gold), var(--gold-dark, #b07a08));
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(212,144,10,0.28);
}
.btn-primary:hover {
  background: linear-gradient(160deg, var(--gold-light), var(--gold));
  box-shadow: 0 12px 32px rgba(212,144,10,0.42);
}
.btn-secondary {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: var(--white);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(212,144,10,0.3);
}
.btn-discord {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.4);
  color: #a5abf5;
}
.btn-discord:hover {
  background: rgba(88, 101, 242, 0.3);
  box-shadow: 0 8px 24px rgba(88,101,242,0.25);
  color: #fff;
}

/* ===== SECTIONS ===== */
.section { padding: 84px 0; }
.section-dark {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-heading { max-width: 720px; margin-bottom: 40px; }
.section-heading h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 12px;
}
.section-heading p { color: var(--muted); font-size: 1.05rem; }

/* ===== SPLIT SECTION ===== */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.split-text p { color: var(--muted); line-height: 1.7; }

.split-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
}
.about-card:hover {
  transform: translateY(-4px);
  background: var(--panel-2);
  border-color: rgba(212,144,10,0.25);
}
.about-card-icon { font-size: 1.6rem; margin-bottom: 10px; }
.about-card h4 {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 6px;
}
.about-card p { color: var(--muted); font-size: 0.85rem; }

/* ===== QUOTE BOX ===== */
.quote-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  position: relative;
}
.quote-mark {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 0.8;
  color: var(--gold);
  opacity: 0.4;
  margin-bottom: 12px;
}
.quote-box p {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 16px;
}
.quote-author {
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===== CONTENT CARDS ===== */
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.content-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.content-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.content-card:hover::after { transform: scaleX(1); }
.content-card:hover {
  transform: translateY(-6px);
  background: var(--panel-2);
  box-shadow: var(--shadow);
}
.content-card h3 {
  font-size: 1.25rem;
  color: var(--white);
  margin: 0 0 10px;
}
.content-card p {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 20px;
}
.card-tag {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.text-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: color 0.2s;
}
.text-link:hover { color: var(--white); }

/* ===== CTA ===== */
.cta-section { padding-top: 40px; padding-bottom: 80px; }
.cta-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, rgba(212,144,10,0.1), rgba(13,27,46,0.6));
  border: 1px solid rgba(212,144,10,0.2);
  border-radius: 26px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(212,144,10,0.1);
}
.cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-top: 10px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #040a12;
  border-top: 1px solid rgba(212,144,10,0.1);
}
.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 40px;
  text-align: center;
}
.footer-logo {
  height: 110px;
  width: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 20px rgba(212,144,10,0.25));
}
.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin: 0 0 24px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}
.footer-nav a {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold-light); }
.footer-copy {
  font-size: 0.78rem;
  color: rgba(154, 175, 204, 0.4);
  letter-spacing: 0.06em;
  margin: 0;
}

/* ===== DEPARTMENT CARDS ===== */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Make the last two cards (fire) center in the last row */
.dept-grid .dept-card:nth-child(4) { grid-column: 1; }
.dept-grid .dept-card:nth-child(5) { grid-column: 2; }

.dept-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 28px 24px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.dept-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* Blue glow for law enforcement */
.dept-leo:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 120, 255, 0.5);
  background: var(--panel-2);
  box-shadow:
    0 0 0 1px rgba(30, 120, 255, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(30, 120, 255, 0.25),
    0 0 80px rgba(30, 120, 255, 0.12),
    inset 0 0 30px rgba(30, 120, 255, 0.06);
}

.dept-leo::before {
  background: radial-gradient(ellipse at top, rgba(30, 120, 255, 0.12), transparent 60%);
}
.dept-leo:hover::before { opacity: 1; }

/* Red glow for fire departments */
.dept-fire:hover {
  transform: translateY(-6px);
  border-color: rgba(220, 50, 30, 0.5);
  background: var(--panel-2);
  box-shadow:
    0 0 0 1px rgba(220, 50, 30, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(220, 50, 30, 0.28),
    0 0 80px rgba(220, 50, 30, 0.12),
    inset 0 0 30px rgba(220, 50, 30, 0.07);
}

.dept-fire::before {
  background: radial-gradient(ellipse at top, rgba(220, 50, 30, 0.12), transparent 60%);
}
.dept-fire:hover::before { opacity: 1; }

.dept-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
}

.dept-badge img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.dept-leo:hover .dept-badge img {
  filter: drop-shadow(0 4px 18px rgba(30,120,255,0.4));
  transform: scale(1.05);
}

.dept-fire:hover .dept-badge img {
  filter: drop-shadow(0 4px 18px rgba(220,50,30,0.45));
  transform: scale(1.05);
}

.dept-type {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.dept-leo .dept-type  { color: #5b9cf6; }
.dept-fire .dept-type { color: #f87060; }

.dept-card h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
}

.dept-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 18px;
}

.dept-link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  margin-top: auto;
}

.dept-leo .dept-link  { color: #5b9cf6; }
.dept-fire .dept-link { color: #f87060; }

.dept-leo:hover .dept-link  { color: #93bfff; }
.dept-fire:hover .dept-link { color: #ffaa9b; }

@media (max-width: 980px) {
  .dept-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dept-grid .dept-card:nth-child(4),
  .dept-grid .dept-card:nth-child(5) {
    grid-column: auto;
  }
}

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

.inner-hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.inner-hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50%;
  background: radial-gradient(ellipse at right center, rgba(212,144,10,0.1), transparent 65%);
  pointer-events: none;
}
.inner-hero-content {
  position: relative;
  z-index: 2;
  padding: 90px 0 60px;
}
.inner-hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 14px;
}
.inner-hero-content p { color: var(--muted); font-size: 1.05rem; max-width: 560px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero-split { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; flex: unset; }
  .hero-logo-wrap { flex: unset; }
  .hero-sub { max-width: 100%; margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .feature-band-grid,
  .content-grid,
  .split-section,
  .split-visual,
  .cta-box { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .feature-band { margin-top: 0; }
}

@media (max-width: 760px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .nav-wrap {
    padding: 12px 0;
    min-height: auto;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .site-brand-logo { height: 52px; }
  .site-nav { justify-content: center; gap: 4px 8px; }
  .site-nav a { font-size: 0.82rem; padding: 6px 8px; }
  .nav-socials { gap: 8px; }
  .hero { padding: 80px 0 60px; }
  .hero-logo-img { width: min(300px, 100%); }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 80px; height: 1px; }
  .split-visual { grid-template-columns: 1fr 1fr; }
  .footer-nav { gap: 16px; }
}

/* ===== DEPARTMENT PAGES ===== */

.dept-hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--line-soft);
}

.dept-hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dept-hero-leo .dept-hero-backdrop {
  background:
    radial-gradient(ellipse at 80% 30%, rgba(30,120,255,0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(13,27,46,0.8) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--bg) 70%);
}

.dept-hero-fire .dept-hero-backdrop {
  background:
    radial-gradient(ellipse at 80% 30%, rgba(220,50,30,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(40,10,10,0.8) 0%, transparent 60%),
    linear-gradient(160deg, #1a0a08 0%, var(--bg) 70%);
}

.dept-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 60px;
}

.dept-hero-patch {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dept-hero-patch img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  animation: float 6s ease-in-out infinite;
}

.dept-hero-leo .dept-hero-patch img {
  filter: drop-shadow(0 8px 30px rgba(0,0,0,0.6)) drop-shadow(0 0 30px rgba(30,120,255,0.25));
}

.dept-hero-fire .dept-hero-patch img {
  filter: drop-shadow(0 8px 30px rgba(0,0,0,0.6)) drop-shadow(0 0 30px rgba(220,50,30,0.3));
}

.dept-hero-text { flex: 1; }

.dept-hero-text h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  color: var(--white);
  margin: 8px 0 16px;
}

.dept-hero-text p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 28px;
}

.dept-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-leo {
  background: linear-gradient(160deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}
.btn-leo:hover {
  background: linear-gradient(160deg, #3b82f6, #2563eb);
  box-shadow: 0 12px 32px rgba(37,99,235,0.45);
}

.btn-fire {
  background: linear-gradient(160deg, #dc2626, #b91c1c);
  color: #fff;
  box-shadow: 0 8px 24px rgba(220,38,38,0.3);
}
.btn-fire:hover {
  background: linear-gradient(160deg, #ef4444, #dc2626);
  box-shadow: 0 12px 32px rgba(220,38,38,0.45);
}

.cta-box { border-radius: 26px; padding: 40px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.cta-box-leo {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(13,27,46,0.6));
  border: 1px solid rgba(37,99,235,0.25);
}
.cta-box-fire {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, rgba(220,38,38,0.12), rgba(30,5,5,0.6));
  border: 1px solid rgba(220,38,38,0.25);
}
.cta-box-leo h2, .cta-box-fire h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-top: 10px;
}

/* ===== ASSET GRID ===== */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.asset-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.asset-card:hover {
  transform: translateY(-5px);
  background: var(--panel-2);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  border-color: rgba(212,144,10,0.2);
}

.asset-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}

.asset-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.asset-card:hover .asset-img-wrap img {
  transform: scale(1.05);
}

.asset-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--panel), var(--bg-soft));
  border-bottom: 1px solid var(--line-soft);
}

.asset-placeholder-icon {
  font-size: 1.8rem;
  opacity: 0.4;
}

.asset-placeholder-text {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.5;
}

.asset-card-label {
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .asset-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .dept-hero-inner { flex-direction: column; text-align: center; gap: 32px; }
  .dept-hero-patch img { width: 140px; height: 140px; }
  .dept-hero-text p { margin: 0 auto 28px; }
  .dept-hero-actions { justify-content: center; }
  .cta-box-leo, .cta-box-fire { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .asset-grid { grid-template-columns: 1fr; }
}

/* ===================================================
   INTERIOR PAGES — about, rules, staff, join
   =================================================== */

/* ---- SHARED PAGE HERO ---- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 72px;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(212,144,10,0.1) 0%, transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--bg) 70%);
}
.page-hero-join .page-hero-backdrop {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(212,144,10,0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(192,39,45,0.08) 0%, transparent 50%),
    linear-gradient(160deg, var(--navy) 0%, var(--bg) 70%);
}
.page-hero-inner {
  position: relative;
  z-index: 2;
}
.page-hero-inner h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 10px 0 16px;
}
.page-hero-inner p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 580px;
  line-height: 1.7;
}

/* ---- ABOUT PAGE ---- */
.about-stat-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s ease;
}
.about-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,144,10,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.about-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.about-stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.value-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 26px 22px;
  transition: all 0.3s ease;
}
.value-card:hover {
  transform: translateY(-5px);
  background: var(--panel-2);
  border-color: rgba(212,144,10,0.2);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.value-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.value-card h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 8px;
}
.value-card p { color: var(--muted); font-size: 0.9rem; }
.features-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  overflow: hidden;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s;
}
.feature-item:last-child { border-bottom: none; }
.feature-item:hover { background: var(--panel); }
.feature-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(212,144,10,0.25);
  line-height: 1;
  flex: 0 0 52px;
  padding-top: 2px;
}
.feature-body h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 6px;
}
.feature-body p { color: var(--muted); font-size: 0.93rem; }

/* ---- RULES PAGE ---- */
.rules-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.rules-toc { position: sticky; top: 108px; }
.toc-inner {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 20px;
}
.toc-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toc-nav a {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 8px;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}
.toc-nav a:hover, .toc-nav a.toc-active {
  color: var(--gold-light);
  background: rgba(212,144,10,0.07);
  border-left-color: var(--gold);
}
.rules-content { display: grid; gap: 48px; }
.rule-section {
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  overflow: hidden;
}
.rule-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  background: var(--panel);
  border-bottom: 1px solid var(--line-soft);
}
.rule-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(212,144,10,0.3);
  line-height: 1;
  flex: 0 0 auto;
}
.rule-section-header h2 {
  font-size: 1.3rem;
  color: var(--white);
  margin: 0;
}
.rule-list { padding: 8px 0; }
.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s;
}
.rule-item:last-child { border-bottom: none; }
.rule-item:hover { background: rgba(255,255,255,0.02); }
.rule-item p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
  flex: 1;
}
.rule-item p strong { color: var(--white); }
.rule-tag {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-top: 1px;
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rule-tag-required { background: rgba(212,144,10,0.15); color: var(--gold-light); }
.rule-tag-ban      { background: rgba(192,39,45,0.18); color: #ff8085; }
.rule-tag-info     { background: rgba(255,255,255,0.06); color: var(--muted); }

/* ---- STAFF PAGE ---- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.staff-grid-ownership {
  grid-template-columns: repeat(2, 1fr);
  max-width: 780px;
}
.staff-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.staff-card:hover {
  transform: translateY(-5px);
  background: var(--panel-2);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

/* Owner / Co-Owner — gold */
.staff-card-owner {
  border-color: rgba(212,144,10,0.25);
  box-shadow: 0 0 18px rgba(212,144,10,0.08), inset 0 0 20px rgba(212,144,10,0.03);
}
.staff-card-owner:hover {
  border-color: rgba(212,144,10,0.5);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5),
              0 0 35px rgba(212,144,10,0.22),
              0 0 70px rgba(212,144,10,0.08),
              inset 0 0 24px rgba(212,144,10,0.05);
}

/* Admin (blue) — applied via JS class below or direct selector */
.staff-card:has(.staff-badge-admin) {
  border-color: rgba(30,120,255,0.2);
  box-shadow: 0 0 18px rgba(30,120,255,0.07), inset 0 0 20px rgba(30,120,255,0.03);
}
.staff-card:has(.staff-badge-admin):hover {
  border-color: rgba(30,120,255,0.45);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5),
              0 0 35px rgba(30,120,255,0.2),
              0 0 70px rgba(30,120,255,0.08),
              inset 0 0 24px rgba(30,120,255,0.04);
}

/* Mod (green) */
.staff-card:has(.staff-badge-mod) {
  border-color: rgba(100,200,100,0.18);
  box-shadow: 0 0 18px rgba(100,200,100,0.06), inset 0 0 20px rgba(100,200,100,0.02);
}
.staff-card:has(.staff-badge-mod):hover {
  border-color: rgba(100,200,100,0.4);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5),
              0 0 35px rgba(100,200,100,0.18),
              0 0 70px rgba(100,200,100,0.07),
              inset 0 0 24px rgba(100,200,100,0.04);
}
.staff-avatar-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}
.staff-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}
.staff-card:hover .staff-avatar { transform: scale(1.04); }
.staff-avatar-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--panel), var(--bg-soft));
}
.staff-avatar-icon { font-size: 3rem; opacity: 0.25; }
.staff-info { padding: 18px 20px; }
.staff-role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.staff-badge-owner  { background: rgba(212,144,10,0.2); color: var(--gold-light); border: 1px solid rgba(212,144,10,0.3); }
.staff-badge-coowner{ background: rgba(212,144,10,0.12); color: #d4b060; border: 1px solid rgba(212,144,10,0.2); }
.staff-badge-admin  { background: rgba(30,120,255,0.15); color: #7eb4ff; border: 1px solid rgba(30,120,255,0.25); }
.staff-badge-mod    { background: rgba(100,200,100,0.12); color: #80cc80; border: 1px solid rgba(100,200,100,0.2); }
.staff-name {
  font-size: 1.1rem;
  color: var(--white);
  margin: 0 0 8px;
}
.staff-bio { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

/* ---- JOIN PAGE ---- */
.req-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.req-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 26px 22px;
  transition: all 0.3s ease;
}
.req-card:hover {
  transform: translateY(-4px);
  background: var(--panel-2);
  border-color: rgba(212,144,10,0.2);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
.req-icon { font-size: 1.8rem; margin-bottom: 12px; }
.req-card h3 { font-size: 1rem; color: var(--white); margin-bottom: 8px; }
.req-card p { color: var(--muted); font-size: 0.88rem; }
.steps-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  overflow: hidden;
  counter-reset: steps;
}
.step-item {
  display: flex;
  gap: 28px;
  padding: 30px 36px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s;
}
.step-item:last-child { border-bottom: none; }
.step-item:hover { background: rgba(255,255,255,0.02); }
.step-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.35;
  flex: 0 0 44px;
  line-height: 1;
  padding-top: 2px;
}
.step-body h3 { font-size: 1.1rem; color: var(--white); margin-bottom: 8px; }
.step-body p { color: var(--muted); font-size: 0.93rem; line-height: 1.65; }
.dept-apply-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dept-apply-grid .dept-apply-card:nth-child(4) { grid-column: 1; }
.dept-apply-grid .dept-apply-card:nth-child(5) { grid-column: 2; }
.dept-apply-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
  min-width: 0;
  box-sizing: border-box;
}
.dept-apply-card img {
  width: 60px;
  height: 60px;
  min-width: 60px;
  max-width: 60px;
  object-fit: contain;
  flex: 0 0 60px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}
.dept-apply-card:hover img { transform: scale(1.08); }
.dept-apply-leo:hover {
  border-color: rgba(30,120,255,0.4);
  box-shadow: 0 8px 30px rgba(30,120,255,0.15);
  background: var(--panel-2);
}
.dept-apply-fire:hover {
  border-color: rgba(220,50,30,0.4);
  box-shadow: 0 8px 30px rgba(220,50,30,0.15);
  background: var(--panel-2);
}
.dept-apply-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.dept-apply-type {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.dept-apply-leo .dept-apply-type  { color: #5b9cf6; }
.dept-apply-fire .dept-apply-type { color: #f87060; }
.dept-apply-info h3 { font-size: 0.95rem; margin-bottom: 6px; color: var(--white); }
.dept-apply-leo .dept-link  { color: #5b9cf6; font-size: 0.8rem; }
.dept-apply-fire .dept-link { color: #f87060; font-size: 0.8rem; }
.faq-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  overflow: hidden;
}
.faq-item {
  padding: 24px 32px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s;
}
.faq-item:last-child { border-bottom: none; }
.faq-item:hover { background: rgba(255,255,255,0.02); }
.faq-item h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}
.faq-item h3::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 400;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.faq-open h3::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
  margin-top: 12px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin-top 0.2s;
  margin-top: 0;
}
.faq-item.faq-open p {
  max-height: 200px;
  margin-top: 12px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 980px) {
  .values-grid     { grid-template-columns: repeat(2, 1fr); }
  .rules-layout    { grid-template-columns: 1fr; }
  .rules-toc       { position: static; }
  .staff-grid      { grid-template-columns: repeat(2, 1fr); }
  .staff-grid-ownership { grid-template-columns: 1fr; max-width: 420px; }
  .req-grid        { grid-template-columns: repeat(2, 1fr); }
  .dept-apply-grid { grid-template-columns: repeat(2, 1fr); }
  .dept-apply-grid .dept-apply-card:nth-child(4),
  .dept-apply-grid .dept-apply-card:nth-child(5) { grid-column: auto; }
  .about-stat-stack { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .values-grid  { grid-template-columns: 1fr; }
  .staff-grid   { grid-template-columns: 1fr; }
  .req-grid     { grid-template-columns: 1fr; }
  .dept-apply-grid { grid-template-columns: 1fr; }
  .feature-item { flex-direction: column; gap: 8px; }
  .step-item    { flex-direction: column; gap: 10px; }
  .rule-item    { flex-direction: column; gap: 8px; }
}

/* Owner cards — logo-style avatars need contain, not cover */
.staff-card-owner .staff-avatar {
  object-fit: contain;
  background: var(--bg);
  padding: 10px;
}

/* Logo-style avatars for admin/mod cards */
.staff-avatar-logo {
  object-fit: contain;
  background: var(--bg);
  padding: 10px;
}

/* ===== GUILDBASE APPLICATION CARDS ===== */
.guildbase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.guildbase-grid .gb-card:nth-child(4) { grid-column: 1; }
.guildbase-grid .gb-card:nth-child(5) { grid-column: 2; }

.gb-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s ease;
}
.gb-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.gb-card-top img {
  width: 70px;
  height: 70px;
  min-width: 70px;
  max-width: 70px;
  object-fit: contain;
  flex: 0 0 70px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}
.gb-card:hover .gb-card-top img { transform: scale(1.06); }
.gb-card-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.gb-card-type {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.gb-card-info h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.2;
}
.gb-card-info p { color: var(--muted); font-size: 0.84rem; line-height: 1.5; }
.gb-btn { width: 100%; justify-content: center; }

.gb-card-leo {
  border-color: rgba(30,120,255,0.15);
}
.gb-card-leo .gb-card-type { color: #5b9cf6; }
.gb-card-leo:hover {
  transform: translateY(-5px);
  border-color: rgba(30,120,255,0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(30,120,255,0.1);
  background: var(--panel-2);
}
.gb-card-fire {
  border-color: rgba(220,50,30,0.15);
}
.gb-card-fire .gb-card-type { color: #f87060; }
.gb-card-fire:hover {
  transform: translateY(-5px);
  border-color: rgba(220,50,30,0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(220,50,30,0.12);
  background: var(--panel-2);
}
.gb-card-civ {
  border-color: rgba(212,144,10,0.15);
}
.gb-card-civ .gb-card-type { color: var(--gold-light); }
.gb-card-civ:hover {
  transform: translateY(-5px);
  border-color: rgba(212,144,10,0.35);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(212,144,10,0.1);
  background: var(--panel-2);
}
.gb-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 12px;
}
.gb-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gb-note a:hover { color: var(--gold-light); }

@media (max-width: 980px) {
  .guildbase-grid { grid-template-columns: repeat(2, 1fr); }
  .guildbase-grid .gb-card:nth-child(4),
  .guildbase-grid .gb-card:nth-child(5) { grid-column: auto; }
}
@media (max-width: 580px) {
  .guildbase-grid { grid-template-columns: 1fr; }
}

/* ===== CTA + DISCORD WIDGET LAYOUT ===== */
.cta-discord-wrap {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

/* CTA card — takes remaining space */
.cta-panel {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(212,144,10,0.1), rgba(13,27,46,0.6));
  border: 1px solid rgba(212,144,10,0.2);
  border-radius: 26px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(212,144,10,0.1);
}

.cta-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-top: 10px;
}

.cta-panel .cta-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Discord widget — fixed width column */
.discord-widget-card {
  flex: 0 0 350px;
  width: 350px;
  box-sizing: border-box;
  background: var(--panel);
  border: 1px solid rgba(88,101,242,0.25);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(88,101,242,0.08);
}

.discord-widget-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: var(--panel);
  border: 1px solid rgba(88,101,242,0.25);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(88,101,242,0.08);
}

.discord-widget-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a5abf5;
  border-bottom: 1px solid rgba(88,101,242,0.2);
  background: rgba(88,101,242,0.06);
}

.discord-widget-card iframe {
  display: block;
  width: 100%;
  border: none;
}

@media (max-width: 980px) {
  .cta-discord-wrap {
    flex-direction: column;
  }
  .discord-widget-card iframe {
    height: 350px;
  }
}

/* ===== DEVELOPER TEAM CARDS ===== */
.staff-badge-dev {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.staff-card-dev {
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.07), inset 0 0 20px rgba(139, 92, 246, 0.03);
}

.staff-card-dev:hover {
  transform: translateY(-5px);
  background: var(--panel-2);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(139, 92, 246, 0.22),
    0 0 80px rgba(139, 92, 246, 0.08),
    inset 0 0 30px rgba(139, 92, 246, 0.05);
}

/* =====================================================
   COMPREHENSIVE MOBILE OVERHAUL
   Breakpoints: 768px (tablet), 480px (phone)
   ===================================================== */

/* ---- HAMBURGER MENU ---- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  z-index: 1100;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
/* Ensure hamburger never shows on desktop */
@media (min-width: 769px) {
  .nav-hamburger { display: none !important; }
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- TABLET (768px) ---- */
@media (max-width: 768px) {

  /* NAV — hamburger */
  .nav-wrap {
    min-height: 70px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap: 12px;
    position: relative;
  }
  .site-header.scrolled .nav-wrap { min-height: 60px; }
  .site-brand-logo { height: 56px; }

  .nav-hamburger { display: flex; }
  .nav-socials { display: none; }

  .nav-right {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: rgba(7, 13, 22, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(212,144,10,0.15);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px 40px;
    gap: 32px;
    transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1050;
    margin-left: 0;
  }
  .nav-right.mobile-open { right: 0; }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .site-nav a {
    font-size: 1.1rem;
    padding: 12px 14px;
    width: 100%;
    border-radius: 10px;
    color: var(--muted);
  }
  .site-nav a:hover, .site-nav a.active {
    background: rgba(212,144,10,0.08);
    color: var(--gold-light);
  }
  .nav-underline { display: none; }

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

  /* Mobile overlay backdrop */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1040;
  }
  .nav-overlay.active { display: block; }

  /* HERO */
  .hero { padding: 80px 0 60px; }
  .hero-split {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  .hero-content { max-width: 100%; flex: unset; }
  .hero-content h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .hero-sub { max-width: 100%; margin: 0 auto 28px; font-size: 0.97rem; }
  .hero-actions { justify-content: center; flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
  .hero-logo-wrap { flex: unset; }
  .hero-logo-img { width: min(260px, 80vw); }
  .hero-scroll-hint { margin-top: 36px; }

  /* SECTIONS */
  .section { padding: 56px 0; }
  .section-heading h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }

  /* FEATURE BAND */
  .feature-band-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-band { margin-top: 0; padding-bottom: 0; }

  /* DEPT CARDS */
  .dept-grid { grid-template-columns: 1fr 1fr; }
  .dept-grid .dept-card:nth-child(4),
  .dept-grid .dept-card:nth-child(5) { grid-column: auto; }

  /* SPLIT SECTIONS */
  .split-section { grid-template-columns: 1fr; gap: 32px; }
  .split-visual { grid-template-columns: 1fr 1fr; }

  /* CONTENT CARDS */
  .content-grid { grid-template-columns: 1fr; gap: 14px; }

  /* CTA */
  .cta-box { grid-template-columns: 1fr; gap: 20px; padding: 28px 24px; }
  .cta-actions { justify-content: flex-start; flex-wrap: wrap; }
  .cta-discord-wrap { flex-direction: column; }
  .cta-panel { padding: 28px 24px; }
  .discord-widget-card { flex: 0 0 auto; width: 100%; }
  .discord-widget-card iframe { height: 320px; }

  /* QUOTE */
  .quote-box { padding: 24px 20px; }

  /* ABOUT PAGE */
  .about-stat-stack { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .feature-item { padding: 20px 20px; gap: 16px; }

  /* RULES PAGE */
  .rules-layout { grid-template-columns: 1fr; gap: 24px; }
  .rules-toc { position: static; }
  .toc-inner { padding: 16px; }
  .toc-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc-nav a { padding: 5px 10px; font-size: 0.78rem; border-left: none; border-bottom: 2px solid transparent; border-radius: 6px; }
  .toc-nav a:hover, .toc-nav a.toc-active { border-left-color: transparent; border-bottom-color: var(--gold); }
  .rule-section-header { padding: 16px 20px; gap: 12px; }
  .rule-item { padding: 14px 20px; flex-direction: column; gap: 8px; }
  .rule-num { font-size: 1.1rem; }

  /* STAFF PAGE */
  .staff-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .staff-grid-ownership { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .staff-avatar-wrap { height: 160px; }

  /* DEPT HERO */
  .dept-hero { padding: 70px 0 56px; }
  .dept-hero-inner { flex-direction: column; text-align: center; gap: 24px; }
  .dept-hero-patch img { width: 130px; height: 130px; }
  .dept-hero-text h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
  .dept-hero-text p { margin: 0 auto 24px; }
  .dept-hero-actions { justify-content: center; }

  /* ASSET GRID */
  .asset-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* JOIN PAGE */
  .req-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .step-item { padding: 22px 24px; gap: 16px; }
  .guildbase-grid { grid-template-columns: 1fr 1fr; }
  .guildbase-grid .gb-card:nth-child(4),
  .guildbase-grid .gb-card:nth-child(5) { grid-column: auto; }
  .faq-item { padding: 18px 20px; }

  /* PAGE HERO */
  .page-hero { padding: 72px 0 52px; }
  .page-hero-inner h1 { font-size: clamp(2rem, 6vw, 3.2rem); }

  /* FOOTER */
  .footer-logo { height: 80px; }
  .footer-nav { gap: 12px; }
  .footer-nav a { font-size: 0.78rem; }

  /* CTA BOX variants */
  .cta-box-leo, .cta-box-fire { grid-template-columns: 1fr; }
}

/* ---- PHONE (480px) ---- */
@media (max-width: 480px) {

  .container { width: calc(100% - 24px); }

  /* NAV */
  .site-brand-logo { height: 46px; }

  /* HERO */
  .hero { padding: 60px 0 48px; }
  .hero-content h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .hero-logo-img { width: min(220px, 75vw); }

  /* DEPT GRID — single column on small phones */
  .dept-grid { grid-template-columns: 1fr; }
  .dept-grid .dept-card:nth-child(4),
  .dept-grid .dept-card:nth-child(5) { grid-column: auto; }
  .dept-badge img { width: 80px; height: 80px; }

  /* FEATURE BAND */
  .mini-feature { padding: 20px 18px; }

  /* ABOUT */
  .about-stat-stack { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .feature-item { flex-direction: column; gap: 8px; padding: 18px 16px; }
  .feature-num { font-size: 1.5rem; flex: unset; }
  .features-list { border-radius: 14px; }

  /* RULES */
  .rule-section { border-radius: 14px; }
  .rule-tag { font-size: 0.6rem; padding: 3px 7px; }

  /* STAFF */
  .staff-grid { grid-template-columns: 1fr; }
  .staff-grid-ownership { grid-template-columns: 1fr; }
  .staff-avatar-wrap { height: 200px; }

  /* ASSET GRID */
  .asset-grid { grid-template-columns: 1fr 1fr; }

  /* JOIN */
  .req-grid { grid-template-columns: 1fr; }
  .guildbase-grid { grid-template-columns: 1fr; }
  .guildbase-grid .gb-card:nth-child(4),
  .guildbase-grid .gb-card:nth-child(5) { grid-column: auto; }
  .dept-apply-grid { grid-template-columns: 1fr; }
  .dept-apply-grid .dept-apply-card:nth-child(4),
  .dept-apply-grid .dept-apply-card:nth-child(5) { grid-column: auto; }
  .steps-list { border-radius: 14px; }
  .step-item { padding: 20px 18px; flex-direction: column; gap: 8px; }
  .step-number { font-size: 1.6rem; flex: unset; }
  .faq-list { border-radius: 14px; }

  /* BUTTONS */
  .btn { min-height: 44px; font-size: 0.82rem; padding: 0 18px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }

  /* DEPT HERO */
  .dept-hero { padding: 56px 0 44px; }
  .dept-hero-patch img { width: 110px; height: 110px; }
  .dept-hero-actions { flex-direction: column; align-items: center; }
  .dept-hero-actions .btn { width: 100%; max-width: 280px; }

  /* CTA */
  .cta-box { padding: 22px 18px; border-radius: 18px; }
  .cta-box h2 { font-size: 1.4rem; }

  /* QUOTE */
  .split-visual { grid-template-columns: 1fr; }

  /* FOOTER */
  .footer-center { padding: 40px 16px 28px; }
  .footer-logo { height: 70px; }
  .footer-nav { flex-direction: row; justify-content: center; gap: 10px 16px; }
  .footer-copy { font-size: 0.72rem; }

  /* PAGE HERO */
  .page-hero { padding: 56px 0 40px; }
  .page-hero-inner h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .page-hero-inner p { font-size: 0.93rem; }

  /* DISCORD WIDGET */
  .discord-widget-card iframe { height: 280px; }
}

/* ===== CENTERED DISCORD WIDGET ===== */
.discord-center-wrap {
  display: flex;
  justify-content: center;
}

.discord-center-wrap .discord-widget-card {
  width: 100%;
  max-width: 500px;
  flex: none;
}
