/* =========================================================
   UCHIHA CLAN FANSITE — PREMIUM DARK THEME
   Color palette:
     --bg-deep:    #0a0a14
     --bg-dark:    #0f0f1e
     --bg-card:    #14141f
     --bg-card-2:  #1a1a2e
     --red:        #D32F2F
     --red-bright: #E53935
     --red-glow:   rgba(211,47,47,0.35)
     --text:       #e8e8e8
     --text-muted: #8a8a9a
     --border:     rgba(211,47,47,0.2)
   ========================================================= */

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

:root {
  --bg-deep: #0a0a14;
  --bg-dark: #0f0f1e;
  --bg-card: #14141f;
  --bg-card-2: #1a1a2e;
  --red: #D32F2F;
  --red-bright: #E53935;
  --red-glow: rgba(211,47,47,0.35);
  --red-glow-soft: rgba(211,47,47,0.15);
  --text: #e8e8e8;
  --text-muted: #8a8a9a;
  --text-dim: #6a6a7a;
  --border: rgba(211,47,47,0.2);
  --border-subtle: rgba(255,255,255,0.06);
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Inter', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- UTILITIES ---- */
.accent { color: var(--red); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: 100px 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
}

.label-line {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--red);
  opacity: 0.6;
}

.label-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
  line-height: 1.8;
}

.sub-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 40px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- SCROLL ANIMATIONS ---- */
.fade-in, .fade-in-left, .fade-in-right {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left { transform: translateX(-40px); }
.fade-in-right { transform: translateX(40px); }

.fade-in.visible, .fade-in-left.visible, .fade-in-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ====================================================
   NAVBAR
   ==================================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(10, 10, 20, 0.95);
  box-shadow: 0 2px 24px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.clan-symbol {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ====================================================
   HERO
   ==================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.55) saturate(0.8);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,20,0.85) 0%,
    rgba(10,10,20,0.5) 50%,
    rgba(10,10,20,0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 72px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}

.hero-title-line {
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 0 60px rgba(211,47,47,0.3);
}

.hero-title-sub {
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--red);
}

.hero-desc {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: var(--red);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--red);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--red-bright);
  box-shadow: 0 0 24px var(--red-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.25);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.4; }
}

/* ====================================================
   ABOUT SASUKE
   ==================================================== */
.about-sasuke {
  background: var(--bg-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
  margin-top: 60px;
}

.portrait-frame {
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
}

.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(10,10,20,0.9) 100%);
  z-index: 1;
  pointer-events: none;
}

.portrait-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.portrait-frame:hover .portrait-img {
  transform: scale(1.04);
}

.portrait-glow {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px rgba(211,47,47,0.12);
  z-index: 2;
  pointer-events: none;
  transition: box-shadow 0.4s ease;
}

.portrait-frame:hover .portrait-glow {
  box-shadow: inset 0 0 80px rgba(211,47,47,0.25);
}

.portrait-stats {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-top: none;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stat-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.bio-block {
  border-left: 2px solid var(--border);
  padding-left: 24px;
  transition: border-color 0.3s ease;
}

.bio-block:hover {
  border-left-color: var(--red);
}

.bio-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.bio-block p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ====================================================
   CLAN OVERVIEW
   ==================================================== */
.clan-overview {
  background: var(--bg-deep);
  overflow: hidden;
}

.clan-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.clan-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.15) saturate(0.5);
}

.clan-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg-deep) 0%, transparent 30%, transparent 70%, var(--bg-deep) 100%);
}

.clan-overview .container {
  position: relative;
  z-index: 1;
}

.clan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.clan-card {
  background: rgba(20,20,31,0.85);
  border: 1px solid var(--border);
  padding: 32px 28px;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.clan-card:hover {
  border-color: var(--red);
  box-shadow: 0 0 32px var(--red-glow-soft), 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}

.clan-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.clan-card-icon svg {
  width: 100%;
  height: 100%;
}

.clan-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.clan-card-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.lore-image-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lore-img-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.lore-img-wrap img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.75) saturate(0.8);
}

.lore-img-wrap:hover img {
  transform: scale(1.06);
  filter: brightness(0.9) saturate(1);
}

.lore-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(10,10,20,0.95), transparent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ====================================================
   GALLERY
   ==================================================== */
.gallery-section {
  background: var(--bg-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.member-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: box-shadow 0.4s ease, transform 0.3s ease, border-color 0.4s ease;
}

.member-card:hover {
  box-shadow: 0 0 40px var(--red-glow-soft), 0 12px 40px rgba(0,0,0,0.5);
  transform: translateY(-6px);
  border-color: var(--red);
}

.member-card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.member-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.85) saturate(0.85);
}

.member-card:hover .member-card-img {
  transform: scale(1.08);
  filter: brightness(0.5) saturate(0.5);
}

.member-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(10,10,20,0.95) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.member-card:hover .member-card-overlay {
  opacity: 1;
}

.member-card-quote {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
}

.member-card-body {
  padding: 24px;
}

.member-card-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.member-card-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 12px;
}

.member-card-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.member-card-powers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.power-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--border);
  padding: 4px 10px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.member-card:hover .power-tag {
  background: rgba(211,47,47,0.1);
  border-color: var(--red);
}

/* ====================================================
   POWERS & ABILITIES
   ==================================================== */
.powers-section {
  background: var(--bg-deep);
}

/* Evolution track */
.evolution-section {
  margin-bottom: 80px;
}

.evolution-track {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.evo-step {
  flex: 0 0 auto;
  width: 240px;
  text-align: center;
}

.evo-icon-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.evo-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(211,47,47,0.5));
  transition: filter 0.4s ease, transform 0.4s ease;
}

.evo-step:hover .evo-icon {
  filter: drop-shadow(0 0 24px rgba(211,47,47,0.8));
  transform: scale(1.08);
}

.evo-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211,47,47,0.15) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

.evo-glow--bright {
  background: radial-gradient(circle, rgba(211,47,47,0.25) 0%, transparent 70%);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

.evo-arrow {
  flex-shrink: 0;
  width: 48px;
}

.evo-arrow svg {
  width: 48px;
  height: 24px;
}

.evo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.evo-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Techniques grid */
.techniques-section {
  margin-bottom: 80px;
}

.techniques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.technique-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--red);
  padding: 28px 28px 28px 24px;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.technique-card:hover {
  box-shadow: 0 0 32px var(--red-glow-soft), 0 8px 28px rgba(0,0,0,0.4);
  transform: translateY(-4px);
  border-color: var(--border);
  border-left-color: var(--red-bright);
}

.technique-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
}

.technique-icon svg {
  width: 100%;
  height: 100%;
}

.technique-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.technique-element {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.technique-desc {
  font-size: 0.865rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Powers lore image */
.powers-lore-img {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.powers-lore-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: brightness(0.4) saturate(0.7);
}

.powers-lore-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  background: rgba(10,10,20,0.3);
}

.powers-lore-caption p {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.powers-lore-caption cite {
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

/* ====================================================
   LEGACY
   ==================================================== */
.legacy-section {
  position: relative;
  overflow: hidden;
}

.legacy-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.legacy-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.2) saturate(0.5);
}

.legacy-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg-deep) 0%, rgba(10,10,20,0.6) 40%, rgba(10,10,20,0.6) 60%, var(--bg-deep) 100%);
}

.legacy-section .container {
  position: relative;
  z-index: 1;
}

.legacy-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.legacy-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legacy-lead {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.8;
  font-weight: 400;
}

.legacy-text p:not(.legacy-lead) {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.legacy-pillars {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.legacy-pillar {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.7;
  padding-top: 2px;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.pillar-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.legacy-final-img {
  border: 1px solid var(--border);
  overflow: hidden;
}

.legacy-final-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.7) saturate(0.8);
  transition: transform 0.6s ease;
}

.legacy-final-img:hover img {
  transform: scale(1.03);
}

/* ====================================================
   FOOTER
   ==================================================== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

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

.footer-symbol {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-clan-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text);
}

.footer-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

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

.footer-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--red);
}

.footer-community {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-community-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-links-social {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover {
  color: var(--red);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-copy,
.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10,10,20,0.97);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 14px 24px;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content { padding-top: 80px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .portrait-img { height: 380px; }

  .clan-cards {
    grid-template-columns: 1fr;
  }

  .lore-image-row {
    grid-template-columns: 1fr;
  }

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

  .evolution-track {
    flex-direction: column;
    gap: 16px;
  }

  .evo-arrow {
    transform: rotate(90deg);
  }

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

  .legacy-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .powers-lore-img img { height: 260px; }
  .powers-lore-caption { padding: 24px; }

  .legacy-final-img img { height: 260px; }

  .hero-scroll-hint { display: none; }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; justify-content: center; }
  .portrait-img { height: 300px; }
  .portrait-stats { grid-template-columns: 1fr; }
}
