/* ═══════════════════════════════════════════
   ARIESTA STUDIOS — Estilo Mejorado
   HTML + CSS puro — Sin frameworks
   Colores más vivos, diseño más moderno y cercano
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core dark palette */
  --bg: #0a0a0f;
  --bg-dark: #060609;
  --bg-card: #111118;
  --bg-card-hover: #18181f;
  --border: #1f1f2e;
  --border-accent: #2d2d42;

  /* Vivid accent colors */
  --blood: #dc2626;
  --blood-dark: #991b1b;
  --blood-light: #f87171;
  --blood-glow: rgba(220, 38, 38, 0.3);
  --gold: #f59e0b;
  --gold-dim: #b45309;
  --gold-bright: #fbbf24;
  --silver: #94a3b8;
  --silver-light: #e2e8f0;

  /* Character accent colors */
  --blue: #3b82f6;
  --purple: #a855f7;
  --green: #10b981;
  --red: #ef4444;

  /* Text */
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #475569;

  /* Fonts */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-accent: 'Crimson Text', Georgia, serif;

  /* Layout */
  --max-w: 1100px;
  --max-w-narrow: 720px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  padding-top: env(safe-area-inset-top, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: rgba(220, 38, 38, 0.4); color: #fff; }

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--blood-dark); }
* { scrollbar-width: thin; scrollbar-color: var(--border-accent) var(--bg-dark); }

/* ─── Typography ─── */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; }
h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  color: var(--silver-light);
  letter-spacing: .02em;
  background: linear-gradient(135deg, var(--silver-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h3 { font-size: clamp(.95rem, 2vw, 1.15rem); color: var(--silver-light); letter-spacing: .02em; }
p { color: var(--silver); }

.link-accent {
  color: var(--blood-light);
  border-bottom: 1px solid transparent;
  transition: all .3s var(--ease);
  position: relative;
}
.link-accent:hover {
  border-bottom-color: var(--blood-light);
  text-shadow: 0 0 8px var(--blood-glow);
}

/* ─── Layout ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; padding-left: max(1.5rem, env(safe-area-inset-left, 0));
  padding-right: max(1.5rem, env(safe-area-inset-right, 0)); }
.container-narrow { max-width: var(--max-w-narrow); }

/* ─── Dividers ─── */
.divider {
  width: 6rem; height: 2px; margin: 1.25rem auto;
  background: linear-gradient(90deg, transparent, var(--blood), var(--gold), transparent);
  border-radius: 1px;
}
.divider-sm {
  width: 4rem; height: 1px; margin: .75rem auto;
  background: linear-gradient(90deg, transparent, var(--blood), transparent);
}

/* ─── Section ─── */
.section { padding: 6rem 0; position: relative; }
.section-dark {
  background: var(--bg-dark);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(220,38,38,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(168,85,247,0.02) 0%, transparent 50%);
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  font-family: var(--font-heading); font-size: .7rem; text-transform: uppercase;
  letter-spacing: .35em; color: var(--blood); margin-bottom: .5rem;
  text-shadow: 0 0 10px var(--blood-glow);
}
.section-desc { max-width: 32rem; margin: 1rem auto 0; font-size: .9rem; color: var(--text-muted); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; font-family: var(--font-heading);
  font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  border-radius: 4px; transition: all .3s var(--ease); cursor: pointer;
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0; transition: opacity .3s;
}
.btn:hover::before { opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--blood), var(--blood-dark));
  color: #fff; border: 1px solid var(--blood);
  box-shadow: 0 2px 12px rgba(220,38,38,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(220,38,38,0.4);
  border-color: var(--blood-light);
}
.btn-arrow { transition: transform .3s var(--ease); }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-ghost {
  background: transparent; color: var(--silver);
  border: 1px solid var(--border-accent);
}
.btn-ghost:hover {
  border-color: var(--blood);
  color: var(--blood-light);
  background: rgba(220,38,38,0.05);
  transform: translateY(-2px);
}
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ─── Reveal Animation ─── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }

/* ─── Particle Canvas ─── */
#particles {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}


/* ═══════ NAVBAR ═══════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: all .4s var(--ease);
}
#navbar.scrolled {
  background: rgba(10,10,15,0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.6), 0 1px 0 var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 3.75rem;
}
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  transition: opacity .3s;
}
.nav-logo:hover { opacity: 0.8; }
.nav-logo-text {
  font-family: var(--font-heading); font-size: .85rem; font-weight: 700;
  letter-spacing: .08em; color: var(--gold);
  text-shadow: 0 0 10px rgba(245,158,11,0.2);
}
.nav-links { display: flex; gap: .15rem; }
.nav-links a {
  padding: .5rem .85rem; font-family: var(--font-heading); font-size: .72rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-dim); transition: all .3s var(--ease);
  position: relative; border-radius: 4px;
}
.nav-links a:hover {
  color: var(--silver-light);
  background: rgba(255,255,255,0.03);
}
.nav-link-accent {
  color: var(--blood-light) !important;
  background: rgba(220,38,38,0.08) !important;
  border: 1px solid rgba(220,38,38,0.15);
}
.nav-link-accent:hover {
  color: var(--gold-bright) !important;
  background: rgba(245,158,11,0.08) !important;
  border-color: rgba(245,158,11,0.2);
}

.menu-toggle {
  display: none; background: none; border: none; color: var(--silver);
  cursor: pointer; padding: .5rem; z-index: 110; transition: color .3s;
}
.menu-toggle:hover { color: #fff; }
.icon-close { display: none; }

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-logo-text { display: none; }
  .nav-links {
    position: fixed; top: 3.75rem; left: 0; right: 0; bottom: 0;
    height: calc(100dvh - 3.75rem);
    background: rgba(10,10,15,0.98); overflow-y: auto;
    flex-direction: column; align-items: center; justify-content: flex-start; gap: 1.25rem;
    padding: 2rem 1.5rem; opacity: 0; pointer-events: none; transition: opacity .4s;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: 99;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  /* Fallback para navegadores sin soporte de dvh */
  @supports not (height: 100dvh) {
    .nav-links {
      height: calc(100vh - 3.75rem);
    }
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.1rem; padding: 1rem 1.5rem; -webkit-tap-highlight-color: transparent; }
  #menu-toggle.active .icon-menu { display: none; }
  #menu-toggle.active .icon-close { display: block; }
}


/* ═══════ HERO ═══════ */
.hero {
  position: relative; min-height: 100vh; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 25% 15%, rgba(220,38,38,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 85%, rgba(168,85,247,0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(245,158,11,0.03) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,.008) 3px, rgba(255,255,255,.008) 6px);
}
.hero-bg-pattern::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 25%, var(--bg) 80%);
}

.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.4;
  animation: glow-pulse 8s ease-in-out infinite alternate;
}
.hero-glow-1 {
  width: 400px; height: 400px;
  top: 10%; left: -5%;
  background: radial-gradient(circle, rgba(220,38,38,0.15), transparent 70%);
}
.hero-glow-2 {
  width: 300px; height: 300px;
  bottom: 15%; right: -5%;
  background: radial-gradient(circle, rgba(245,158,11,0.1), transparent 70%);
  animation-delay: -4s;
}
@keyframes glow-pulse {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.2); opacity: 0.5; }
}

.hero-content {
  position: relative; z-index: 1; text-align: center;
  padding: 0 1.5rem; animation: hero-enter 1s var(--ease) out;
}
@keyframes hero-enter { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hero-logo-wrap { margin-bottom: 1.5rem; }
.hero-logo-svg {
  width: 12rem; height: auto;
  filter: drop-shadow(0 0 20px rgba(201,169,97,0.3));
  animation: logo-float 6s ease-in-out infinite;
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero-tagline {
  font-family: var(--font-heading); font-size: clamp(.9rem, 2vw, 1.15rem);
  text-transform: uppercase; letter-spacing: .2em; color: var(--silver-light); margin-bottom: .25rem;
  background: none; -webkit-text-fill-color: initial; background-clip: initial;
}
h1.hero-tagline {
  font-weight: 700; line-height: 1.3;
}
.hero-subtagline {
  font-family: var(--font-accent); font-size: .85rem;
  font-style: italic; color: var(--text-muted); margin-bottom: .5rem;
  letter-spacing: .02em;
}
.hero-dot {
  display: inline-block; width: 3px; height: 3px;
  background: var(--blood); border-radius: 50%;
  vertical-align: middle; margin: 0 .5em;
  box-shadow: 0 0 6px var(--blood-glow);
}
.hero-desc {
  font-size: .95rem; color: var(--text-muted); max-width: 30rem; margin: 0 auto;
  font-family: var(--font-accent); line-height: 1.8;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 0.01rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.scroll-arrow {
  width: 30px; height: 40px; position: relative;
  opacity: 1; /* Visible por defecto, JavaScript controla basado en altura */
  transition: opacity 0.3s ease;
  display: flex; align-items: center; justify-content: center;
}
.arrow-icon {
  width: 30px; height: 30px;
  color: var(--text-dim);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: arrow-bounce 2s ease-in-out infinite;
}
@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); }
}
.scroll-text {
  font-size: .6rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--text-dim); font-family: var(--font-heading);
}


/* ═══════ ABOUT ═══════ */
.about-text p {
  margin-bottom: 1.5rem; font-size: .95rem; line-height: 1.85;
  color: var(--silver);
}
.about-text p:last-child { margin-bottom: 0; }

.about-stats {
  display: flex; justify-content: center; gap: 3rem;
  margin-top: 3rem; padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.about-stat {
  text-align: center;
}
.about-stat-num {
  display: block; font-family: var(--font-heading);
  font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--blood-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.2;
}
.about-stat-label {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .15em;
  color: var(--text-dim); font-family: var(--font-heading);
}
@media (max-width: 480px) {
  .about-stats { gap: 1.5rem; }
  .about-stat-num { font-size: 1.8rem; }
}


/* ═══════ TEAM — Character Cards ═══════ */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
@media (max-width: 960px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .team-grid { grid-template-columns: 1fr; max-width: 24rem; margin: 0 auto; } }

.character-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: all .4s var(--ease);
  position: relative;
}
.character-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--blood), var(--gold), transparent);
  opacity: 0; transition: opacity .4s;
}
.character-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(220,38,38,0.05), transparent 60%);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.character-card:hover {
  transform: translateY(-6px);
  border-color: var(--blood-dark);
  box-shadow:
    0 8px 32px rgba(0,0,0,.4),
    0 0 24px var(--blood-glow);
}
.character-card:hover::before { opacity: 1; }
.character-card:hover::after { opacity: 1; }

.card-portrait {
  height: 7.5rem; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(30,25,40,0.8), var(--bg-card));
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: all .4s;
}
.character-card:hover .card-portrait {
  background: linear-gradient(180deg, rgba(40,30,55,0.8), var(--bg-card-hover));
}
.portrait-svg {
  width: 80px; height: 80px;
  transition: transform .4s var(--ease-bounce);
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.5));
}
.character-card:hover .portrait-svg {
  transform: scale(1.1) translateY(-4px);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}

.card-body { padding: 1.25rem; position: relative; z-index: 1; }
.card-header-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .25rem;
}
.card-class {
  font-family: var(--font-heading); font-size: .6rem; text-transform: uppercase;
  letter-spacing: .25em; color: var(--blood); font-weight: 600;
  text-shadow: 0 0 8px var(--blood-glow);
}
.card-level {
  font-family: var(--font-heading); font-size: .55rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--gold-dim);
  background: rgba(245,158,11,0.08);
  padding: .15rem .4rem; border-radius: 3px;
  border: 1px solid rgba(245,158,11,0.15);
}
.card-name {
  font-size: 1.2rem; color: var(--silver-light); margin-bottom: .15rem;
  font-family: var(--font-heading); font-weight: 700;
}
.card-role {
  font-size: .78rem; color: var(--text-dim); margin-bottom: .75rem;
  font-family: var(--font-accent); font-style: italic;
}
.card-quote {
  font-size: .82rem; color: var(--text-muted); font-style: italic;
  line-height: 1.65; margin-bottom: 1rem; padding: .75rem 1rem;
  background: linear-gradient(135deg, rgba(220,38,38,0.04), rgba(245,158,11,0.02));
  border-left: 3px solid var(--blood-dark);
  border-radius: 0 4px 4px 0;
  position: relative;
}
.card-quote::before {
  content: '\201C'; position: absolute; top: -.2rem; left: .3rem;
  font-size: 1.5rem; color: var(--blood); opacity: 0.3;
  font-family: Georgia, serif;
}

/* Stats */
.card-stats { margin-top: 1rem; }
.stat-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.stat-label {
  font-family: var(--font-heading); font-size: .55rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--gold-dim);
  width: 1.75rem; flex-shrink: 0;
}
.stat-bar {
  flex: 1; height: 5px; background: var(--border);
  border-radius: 3px; overflow: hidden;
}
.stat-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--blood-dark), var(--blood), var(--blood-light));
  transition: width 1.2s var(--ease);
  position: relative;
}
.stat-fill::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 6px;
  background: rgba(255,255,255,0.3); border-radius: 0 3px 3px 0;
  filter: blur(2px);
}
.stat-fill-blue { background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa); }
.stat-fill-purple { background: linear-gradient(90deg, #6b21a8, #a855f7, #c084fc); }
.stat-fill-gold { background: linear-gradient(90deg, #92400e, #f59e0b, #fbbf24); }
.stat-fill-green { background: linear-gradient(90deg, #064e3b, #10b981, #34d399); }
.stat-fill-red { background: linear-gradient(90deg, #991b1b, #ef4444, #f87171); }

.stat-val {
  font-size: .7rem; font-weight: 700; color: var(--silver-light);
  width: 1.5rem; text-align: right; font-family: var(--font-heading);
}

/* Skills */
.card-skills { display: flex; flex-wrap: wrap; gap: .35rem; }
.skill-tag {
  font-size: .62rem; padding: .25rem .55rem; border-radius: 4px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.12);
  color: var(--gold-dim); font-weight: 500; letter-spacing: .02em;
  transition: all .3s var(--ease);
  font-family: var(--font-body);
}
.character-card:hover .skill-tag {
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.25);
  color: var(--gold);
  transform: translateY(-1px);
}


/* ═══════ RECRUITMENT ═══════ */
.recruit-text { text-align: center; margin-bottom: 2.5rem; }
.recruit-text p { font-size: .95rem; color: var(--silver); line-height: 1.7; }

.recruit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2.5rem; }
@media (max-width: 768px) { .recruit-grid { grid-template-columns: 1fr; } }

.recruit-card {
  padding: 1.75rem 1.5rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 6px;
  transition: all .4s var(--ease);
  position: relative; overflow: hidden;
}
.recruit-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(220,38,38,0.05), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.recruit-card:hover {
  border-color: var(--blood-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3), 0 0 16px var(--blood-glow);
}
.recruit-card:hover::before { opacity: 1; }
.recruit-card h3 {
  font-size: 1.05rem; margin-bottom: .75rem; color: var(--blood-light);
  position: relative;
}
.recruit-card p {
  font-size: .85rem; color: var(--text-muted); line-height: 1.7;
  position: relative;
}
.recruit-icon {
  color: var(--gold-dim); margin-bottom: 1rem;
  transition: all .4s var(--ease);
}
.recruit-card:hover .recruit-icon {
  color: var(--gold);
  transform: scale(1.1);
}
.recruit-cta { text-align: center; font-size: .95rem; color: var(--text-muted); }


/* ═══════ CONTACT ═══════ */
.contact-grid { display: flex; flex-direction: column; gap: .75rem; max-width: 28rem; margin: 0 auto; }

.contact-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 6px;
  transition: all .4s var(--ease);
}
.contact-card:hover {
  border-color: var(--blood-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,.3), 0 0 12px var(--blood-glow);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}
.contact-icon { color: var(--blood-light); flex-shrink: 0; transition: color .3s; }
.contact-card:hover .contact-icon { color: var(--gold); }
.contact-info h3 { font-size: .85rem; margin-bottom: .1rem; color: var(--silver-light); }
.contact-info p { font-size: .8rem; color: var(--text-muted); }
.contact-arrow {
  color: var(--text-dim); margin-left: auto; flex-shrink: 0;
  transition: all .3s var(--ease);
}
.contact-card:hover .contact-arrow {
  transform: translateX(4px); color: var(--blood-light);
}


/* ═══════ FOOTER ═══════ */
footer {
  border-top: 1px solid var(--border); background: var(--bg-dark);
  padding: 2rem 0;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: .5rem; text-align: center;
}
.footer-brand {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-heading); font-size: .75rem;
  color: var(--gold-dim); letter-spacing: .08em;
  text-transform: uppercase;
}
footer p { font-size: .7rem; color: var(--text-dim); letter-spacing: .03em; }
.footer-slogan {
  color: var(--text-dim); font-family: var(--font-heading);
  font-size: .6rem; letter-spacing: .25em; margin-top: .25rem;
}
.footer-discord {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-dim); transition: color 0.3s ease;
}
.footer-discord:hover {
  color: #5865F2;
}
.footer-link {
  font-size: .7rem; color: var(--text-dim); text-decoration: none;
  transition: color 0.3s ease;
}
.footer-link:hover {
  color: var(--gold-dim);
}


/* ═══════ RESPONSIVE DESIGN — ESSENTIAL BREAKPOINTS ONLY ═══════ */

/* Large Tablets & Small Desktops (1024px) */
@media (max-width: 1024px) {
  :root { --max-w: 960px; }
  .section { padding: 4rem 1.5rem; }
  h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .recruit-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .about-stats { gap: 2.5rem; }
  .hero-logo-svg { width: 10rem; }
  .card-portrait { height: 7rem; }
}

/* Tablets (820px) */
@media (max-width: 820px) {
  :root { --max-w: 100%; }
  .section { padding: 3.5rem 1.25rem; }
  .container { padding: 0 1.25rem; }
  .section-header { margin-bottom: 2.5rem; }
  .hero-logo-svg { width: 9.5rem; }
  .hero-desc { font-size: .9rem; max-width: 26rem; }
  .about-stats { gap: 2rem; }
  .about-stat-num { font-size: 2rem; }
}

/* Standard Mobile (480px) */
@media (max-width: 480px) {
  html { font-size: 14px; }
  
  /* Typography */
  h2 { font-size: clamp(1rem, 1.8vw, 1.25rem); letter-spacing: -.01em; }
  h3 { font-size: clamp(.75rem, 1.4vw, .9rem); }
  p { font-size: .85rem; line-height: 1.6; }
  
  /* Spacing */
  .section { padding: 1.5rem .5rem; }
  .navbar { padding: .5rem; }
  .nav-links a { font-size: .95rem; padding: .75rem 1rem; }
  
  /* Navigation */
  .nav-logo { gap: .25rem; }
  .nav-logo-icon { width: 28px; height: 28px; }
  
  /* Hero */
  .hero { min-height: 70vh; padding: .75rem; }
  .hero-logo-svg { width: 8.5rem; }
  .hero-cta { flex-direction: column; gap: .5rem; }
  .btn { padding: .6rem .8rem; font-size: .8rem; width: 100%; }
  
  /* Character Cards */
  .character-card { padding: 1rem; margin-bottom: .75rem; }
  .character-card:hover { transform: translateY(-3px); }
  .card-portrait { width: 80px; height: 80px; }
  .portrait-svg { width: 80px; height: 80px; }
  .card-name { font-size: .95rem; margin-bottom: .1rem; }
  .card-role { font-size: .7rem; margin-bottom: .5rem; }
  .card-quote { font-size: .75rem; padding: .5rem .75rem; }
  .skill-tag { font-size: .65rem; padding: .2rem .4rem; }
  
  /* Stats */
  .card-stats { margin-top: .75rem; }
  .stat-label { font-size: .65rem; }
  .stat-val { font-size: .65rem; }
  
  /* Grids */
  .team-grid { 
    grid-template-columns: 1fr; 
    max-width: 100%; 
    gap: .5rem; 
  }
  .recruit-grid { grid-template-columns: 1fr; gap: .5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: .75rem; }
  .mechanics-grid { grid-template-columns: 1fr; gap: .5rem; }
  
  /* Footer */
  footer { padding: 1.25rem 0; }
  .footer-brand { font-size: .6rem; }
  .footer-link { font-size: .6rem; }
  footer p { font-size: .6rem; }
  
  /* Recruit Card */
  .recruit-card { padding: 1rem; }
  .recruit-card h3 { font-size: .85rem; margin-bottom: .3rem; }
  
  /* Contact Cards */
  .contact-card { padding: 1rem; }
  .contact-card h3 { font-size: .9rem; margin-bottom: .5rem; }
  .contact-card p { font-size: .8rem; }
  .contact-card a { font-size: .8rem; }
}

/* Small Mobile (420px) */
@media (max-width: 420px) {
  html { font-size: 13.5px; }
  .section { padding: 1.25rem .4rem; }
  .btn { padding: .5rem .6rem; font-size: .75rem; }
  .card-portrait { width: 70px; height: 70px; }
  .portrait-svg { width: 70px; height: 70px; }
}

/* Extra Small Mobile (375px) */
@media (max-width: 375px) {
  html { font-size: 13px; }
  
  /* Typography */
  h2 { font-size: clamp(.95rem, 1.6vw, 1.1rem); }
  h3 { font-size: clamp(.7rem, 1.2vw, .8rem); }
  p { font-size: .8rem; }
  
  /* Spacing */
  .section { padding: 1.1rem .35rem; gap: .5rem; }
  .navbar { padding: .4rem; }
  
  /* Hero */
  .hero { min-height: 60vh; }
  .hero-logo-svg { width: 7.5rem; }
  
  /* Navigation */
  .nav-logo-icon { width: 24px; height: 24px; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: .9rem; padding: .5rem .75rem; }
  
  /* Cards */
  .character-card { padding: .75rem; }
  .card-portrait { width: 65px; height: 65px; }
  .portrait-svg { width: 65px; height: 65px; }
  .card-name { font-size: .8rem; }
  .card-role { font-size: .65rem; }
  .skill-tag { font-size: .6rem; padding: .15rem .3rem; }
  
  /* Buttons */
  .btn { padding: .45rem .6rem; font-size: .7rem; }
  
  /* Footer */
  footer { padding: 1rem 0; }
  .footer-brand { font-size: .55rem; }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 100vh; }
  .hero-logo-svg { width: 6rem; }
  .hero-tagline { font-size: .75rem; letter-spacing: .1em; margin-bottom: .1rem; }
  .hero-subtagline { font-size: .7rem; margin-bottom: .2rem; }
  .hero-desc { font-size: .8rem; margin-top: .2rem; }
  .hero-actions { margin-top: .75rem; }
  .divider { margin: .5rem auto; }
  .scroll-indicator { display: none; }
}

/* Dark Color Scheme Preference */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0f;
    --bg-dark: #060609;
    --text: #e2e8f0;
  }
}

/* Light Color Scheme Support */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-dark: #f3f4f6;
    --text: #1f2937;
  }
}
