/* ============================================================
   伊德海拉之影 — Shadow Goddess Theme
   Void blacks · Divine crimson · Eldritch shadow tendrils
   Lovecraftian dark fantasy on light ash
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Void palette */
  --void: #0a0a0f;
  --void-deep: #06050a;
  --void-warm: #141019;
  --void-ash: #1c1820;

  /* Divine crimson */
  --crimson: #8b1a2b;
  --crimson-bright: #b42030;
  --crimson-glow: #c93a40;
  --crimson-dark: #5c0f1c;
  --crimson-pale: #d4788a;

  /* Shadow tendril tones */
  --shadow-smoke: #3a3540;
  --shadow-mist: #6e6875;
  --shadow-whisper: #9e98a5;

  /* Light ash background */
  --bg: #e8e4df;
  --bg-alt: #dfdbd5;
  --bg-card: #ede9e4;
  --bg-header: var(--void);
  --bg-footer: var(--void-deep);
  --bg-hero: linear-gradient(180deg, var(--void) 0%, var(--void-warm) 60%, var(--bg) 100%);

  /* Text */
  --text: #1c181c;
  --text-light: #5c5860;
  --text-on-dark: #d8d4ce;
  --text-muted: #8a8590;

  /* Accent */
  --accent: var(--crimson);
  --accent-hover: var(--crimson-bright);
  --accent-light: rgba(139, 26, 43, 0.12);
  --accent-glow: rgba(139, 26, 43, 0.25);

  /* Borders & shadows */
  --border: #cfcbc5;
  --border-light: #ddd9d2;
  --shadow-sm: 0 1px 3px rgba(10, 10, 15, 0.08);
  --shadow-md: 0 4px 16px rgba(10, 10, 15, 0.10);
  --shadow-lg: 0 8px 32px rgba(10, 10, 15, 0.14);
  --shadow-void: 0 4px 24px rgba(10, 10, 15, 0.30);
  --shadow-crimson: 0 0 20px rgba(139, 26, 43, 0.18);

  /* Radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  /* Fonts */
  --font-heading: 'Noto Serif SC', 'STSong', 'SimSun', 'Georgia', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'Cinzel', 'Noto Serif SC', 'Georgia', serif;

  /* Layout */
  --max-width: 1100px;
  --header-height: 64px;

  /* Transitions */
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Body: Shadow tendril motif --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background:
    radial-gradient(ellipse 80% 50% at 10% 20%, var(--crimson) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 85% 60%, var(--shadow-smoke) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 50% 85%, var(--crimson-dark) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 25% 75%, var(--void-warm) 0%, transparent 50%);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--void);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.4rem; letter-spacing: -0.02em; }
h2 { font-size: 1.8rem; margin-bottom: 1rem; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }
a { color: var(--crimson); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--crimson-bright); }

img { max-width: 100%; height: auto; display: block; }

/* --- Header --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 2px solid var(--crimson-dark);
  height: var(--header-height);
}

/* Header: shadow tendril accent line */
header::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--crimson-dark) 10%,
    var(--crimson) 25%,
    var(--crimson-glow) 40%,
    var(--crimson) 55%,
    var(--crimson-dark) 70%,
    transparent 85%
  );
  opacity: 0.7;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-on-dark);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.logo:hover { color: var(--crimson-glow); }

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--crimson-bright), var(--crimson-dark) 70%, var(--void-deep));
  box-shadow: 0 0 8px var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-on-dark);
  flex-shrink: 0;
}

/* Navigation */
nav { display: flex; align-items: center; gap: 1.2rem; }

nav a {
  color: var(--shadow-whisper);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: var(--text-on-dark);
  border-bottom-color: var(--crimson-glow);
}

/* Header CTA button */
.nav-cta {
  background: var(--crimson);
  color: #fff !important;
  padding: 0.45rem 1.2rem !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-bottom: none !important;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
  background: var(--crimson-bright);
  box-shadow: var(--shadow-crimson);
  color: #fff !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-on-dark);
  transition: transform var(--transition), opacity var(--transition);
}

/* --- Main --- */
main {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* --- Hero --- */
.hero {
  position: relative;
  background: var(--bg-hero);
  color: var(--text-on-dark);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  overflow: hidden;
}

/* Hero: eldritch shadow radial glows */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(139, 26, 43, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 20% 80%, rgba(58, 53, 64, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 80% 80%, rgba(58, 53, 64, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

/* Hero: shadow tendril overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(10, 10, 15, 0.03) 3px,
      rgba(10, 10, 15, 0.03) 4px
    );
  pointer-events: none;
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-inner h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  color: #e8e0d8;
  margin-bottom: 0.8rem;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(10, 10, 15, 0.6), 0 0 40px rgba(139, 26, 43, 0.3);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--crimson-pale);
  margin-bottom: 1.5rem;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--shadow-whisper);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--shadow-whisper);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
}

.btn-hero {
  display: inline-block;
  background: var(--crimson);
  color: #fff;
  padding: 0.75rem 2.2rem;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 4px 20px rgba(139, 26, 43, 0.35);
}

.btn-hero:hover {
  background: var(--crimson-bright);
  box-shadow: 0 6px 28px rgba(139, 26, 43, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

.hero-visual {
  max-width: 480px;
  margin: 2.5rem auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-void);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Page Hero (sub-pages) --- */
.page-hero {
  background: linear-gradient(180deg, var(--void) 0%, var(--void-warm) 80%, var(--bg) 100%);
  color: var(--text-on-dark);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 30%, rgba(139, 26, 43, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.page-hero-inner h1 {
  color: #e8e0d8;
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(10, 10, 15, 0.5);
}

.page-hero-inner p {
  color: var(--shadow-whisper);
  font-size: 1rem;
  margin-top: 0.6rem;
}

/* --- Sections --- */
section {
  padding: 3.5rem 1.5rem;
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--void);
  letter-spacing: 0.03em;
  position: relative;
  display: inline-block;
}

/* Section title: crimson underline with tendril ends */
.section-header h2::after {
  content: '';
  display: block;
  width: 60%;
  height: 2px;
  margin: 0.7rem auto 0;
  background: linear-gradient(90deg, transparent, var(--crimson-dark), var(--crimson), var(--crimson-dark), transparent);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 600px;
  margin: 0.8rem auto 0;
}

/* Section alternate background */
.section-alt {
  background: var(--bg-alt);
}

/* --- Content section --- */
.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--shadow-mist);
}

/* --- Info Card --- */
.info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border-left: 4px solid var(--crimson);
  padding: 1.3rem 1.5rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  border-left-color: var(--crimson-bright);
}

.info-card h3 {
  margin-bottom: 0.5rem;
  color: var(--void);
}

/* --- Feature Card --- */
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border-left: 4px solid var(--shadow-smoke);
  padding: 1.4rem 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-left-color: var(--crimson);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--void-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  border: 2px solid var(--shadow-smoke);
}

.feature-card h3 {
  color: var(--void);
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* --- Info Grid --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

/* --- Story Block --- */
.story-block {
  background: var(--bg-card);
  border-left: 4px solid var(--crimson-dark);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color var(--transition);
}

.story-block:hover {
  border-left-color: var(--crimson);
}

.story-chapter {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--crimson);
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.story-block h3 {
  color: var(--void);
  margin-bottom: 0.5rem;
}

.story-block p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* --- Character Card --- */
.char-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.char-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.char-card-header {
  background: linear-gradient(135deg, var(--void) 0%, var(--void-warm) 100%);
  padding: 1rem 1.3rem;
  color: var(--text-on-dark);
}

.char-card-header h3 {
  color: var(--text-on-dark);
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
}

.char-role {
  font-size: 0.82rem;
  color: var(--crimson-pale);
  letter-spacing: 0.05em;
}

.char-card-body {
  padding: 1.3rem;
}

.char-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: -2rem auto 1rem;
  border: 3px solid var(--bg-card);
  background: var(--void-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  z-index: 1;
}

.char-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.char-trait {
  font-size: 0.78rem;
  background: var(--accent-light);
  color: var(--crimson-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}

/* --- Guide Steps --- */
.guide-step {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--void);
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  border: 2px solid var(--crimson-dark);
}

.step-content h3 {
  color: var(--void);
  margin-bottom: 0.3rem;
}

.step-content p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* --- Tip Box --- */
.tip-box {
  background: var(--bg-card);
  border-left: 4px solid var(--crimson);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}

.tip-box h4 {
  color: var(--crimson);
  margin-bottom: 0.3rem;
  font-family: var(--font-heading);
}

.tip-box p {
  margin-bottom: 0;
  color: var(--text-light);
  font-size: 0.94rem;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-q {
  width: 100%;
  padding: 1.1rem 1.3rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--void);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition);
}

.faq-q:hover {
  background: rgba(139, 26, 43, 0.04);
}

.faq-toggle {
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--crimson);
  transition: transform var(--transition);
  line-height: 1;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 1.3rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 1.3rem 1.1rem;
}

.faq-a p {
  color: var(--text-light);
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-crimson);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 15, 0.92);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-void);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: var(--crimson);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--void) 0%, var(--void-warm) 60%, var(--crimson-dark) 100%);
  color: var(--text-on-dark);
  text-align: center;
  padding: 3.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 30% 50%, rgba(139, 26, 43, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 50%, rgba(139, 26, 43, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* CTA: shadow tendril overlay */
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(139, 26, 43, 0.04) 20px,
      rgba(139, 26, 43, 0.04) 21px
    );
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #e8e0d8;
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
}

.cta-inner p {
  color: var(--shadow-whisper);
  margin-bottom: 1.8rem;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--crimson);
  color: #fff !important;
  padding: 0.65rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(139, 26, 43, 0.3);
}

.btn-primary:hover {
  background: var(--crimson-bright);
  box-shadow: 0 6px 24px rgba(139, 26, 43, 0.45);
  transform: translateY(-1px);
}

/* --- Download Card --- */
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.download-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--void);
}

.download-card .version-badge {
  display: inline-block;
  background: var(--void-warm);
  color: var(--crimson-pale);
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

/* --- Info Table --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.info-table th {
  background: var(--void-warm);
  color: var(--text-on-dark);
  padding: 0.7rem 1rem;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.info-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
}

.info-table tr:hover td {
  background: var(--accent-light);
}

/* --- Req Table --- */
.req-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.req-table th,
.req-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.req-table th {
  background: var(--bg-alt);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--crimson-dark);
  width: 120px;
}

/* --- Stats Row --- */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
  min-width: 100px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--crimson);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* --- Tags --- */
.tag {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.2rem 0.7rem;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--crimson-dark);
  letter-spacing: 0.02em;
}

.tag-dark {
  background: var(--void-warm);
  color: var(--shadow-whisper);
}

/* --- Shadow Divider --- */
.shadow-divider {
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    var(--shadow-smoke) 15%,
    var(--crimson-dark) 35%,
    var(--crimson) 50%,
    var(--crimson-dark) 65%,
    var(--shadow-smoke) 85%,
    transparent
  );
  margin: 2rem 0;
  border: none;
  border-radius: 1px;
}

/* --- Accent Line --- */
.accent-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
  margin: 1.5rem 0;
  border: none;
  border-radius: 1px;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  display: flex;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumbs a:hover {
  color: var(--crimson);
}

.breadcrumbs span {
  color: var(--text);
}

/* --- Blockquote --- */
blockquote {
  border-left: 4px solid var(--crimson-dark);
  padding: 0.8rem 1.3rem;
  margin: 1.5rem 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-light);
  font-style: italic;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.pb-0 { padding-bottom: 0; }

/* --- Footer --- */
footer {
  background: var(--bg-footer);
  color: var(--shadow-smoke);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  border-top: 1px solid var(--void-warm);
  position: relative;
  z-index: 1;
}

footer p {
  margin-bottom: 0;
  letter-spacing: 0.02em;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }

  .hero-inner h1 { font-size: 2.2rem; }
  .page-hero-inner h1 { font-size: 1.7rem; }

  /* Mobile nav */
  .hamburger { display: flex; }

  nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--void);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.8rem;
    border-bottom: 2px solid var(--crimson-dark);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  nav.open {
    transform: translateY(0);
  }

  nav a {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--void-warm);
    font-size: 1rem;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.3rem;
  }

  .card-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 1rem; }

  .guide-step {
    gap: 0.8rem;
  }

  .hero { padding: 3.5rem 1rem 3rem; }
  section { padding: 2.5rem 1rem; }
}

@media (max-width: 480px) {
  .hero-inner h1 { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .page-hero { padding: 2rem 1rem 1.5rem; }
  .hero-tags { gap: 0.4rem; }
  .hero-tag { font-size: 0.78rem; padding: 0.25rem 0.7rem; }
}
