/* ============================================
   常轨脱离 (Off the Rails) — Theme Stylesheet
   Design: Train-track steel + derail-warning yellows
   Railway-signal motifs on light station background
   ============================================ */

/* ========== CSS VARIABLES ========== */
:root {
  /* Colors */
  --bg: #faf8f5;
  --bg-card: #ffffff;
  --bg-warm: #f5f0e8;
  --bg-alt: #f0ece4;
  --text: #2c2c2c;
  --text-soft: #5a5a5a;
  --text-muted: #8a8a8a;
  --accent: #DAA520;
  --accent-dark: #B8860B;
  --accent-light: #f0d060;
  --steel: #6B7B8D;
  --steel-dark: #4A5568;
  --steel-light: #A0AEC0;
  --signal-red: #C41E3A;
  --signal-green: #2E8B57;
  --warning-yellow: #FFD700;
  --warning-amber: #FF8C00;
  --border: #d4c8b0;
  --border-light: #e8e0d4;
  --shadow: rgba(74, 85, 104, 0.08);
  --shadow-md: rgba(74, 85, 104, 0.15);

  /* Fonts */
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-serif: 'Noto Serif SC', 'STSong', 'SimSun', serif;

  /* Spacing */
  --max-width: 1140px;
  --header-height: 64px;
  --radius: 8px;
  --radius-lg: 12px;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  min-height: 100vh;
  /* Light station platform texture */
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(218, 165, 32, 0.03) 0%, transparent 70%),
    linear-gradient(to bottom, var(--bg) 0%, var(--bg-warm) 100%);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.35;
  color: var(--steel-dark);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; color: var(--steel-dark); }
h3 { font-size: 1.5rem; font-weight: 600; }

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent); }

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

/* ========== UTILITY CLASSES ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.content-list {
  list-style: disc;
  padding-left: 24px;
  margin: 8px 0 16px;
}

.content-list-num {
  list-style: decimal;
  padding-left: 24px;
  margin: 8px 0 16px;
}

.content-li { margin-bottom: 5px; color: var(--text-soft); }
.content-li-sm { margin-bottom: 4px; color: var(--text-soft); }
.content-li-md { margin-bottom: 8px; color: var(--text-soft); }
.content-li-lg { margin-bottom: 10px; color: var(--text-soft); }

.strong-gold { color: var(--accent-dark); font-weight: 700; }
.strong-red { color: var(--signal-red); font-weight: 700; }
.strong-muted { color: var(--steel); font-weight: 700; }
.strong-navy { color: var(--steel-dark); font-weight: 700; }
.strong-pink { color: #C45A8B; font-weight: 700; }

.td-highlight { color: var(--accent-dark); font-weight: 700; }

.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--steel-dark);
  margin: 16px 0 8px;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-soft);
  margin-top: 8px;
  max-width: 600px;
}

.guide-intro {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin-bottom: 20px;
  line-height: 1.85;
}

.route-heading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 24px 0 12px;
}

.route-desc {
  color: var(--text-soft);
  margin-bottom: 16px;
  line-height: 1.8;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
}

.hero-subpage { padding: 40px 24px 48px; }
.hero-subpage-title { font-size: 2rem; font-weight: 700; }

.sys-reqs-h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--steel-dark);
  margin-top: 24px;
  margin-bottom: 12px;
}
.sys-reqs-h3:first-of-type { margin-top: 0; }

.section-subheading {
  text-align: center;
  margin: 40px 0 24px;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--steel-dark);
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--steel-dark);
  border-bottom: 3px solid var(--accent);
  /* Railway track motif on bottom border */
  box-shadow: 0 2px 12px var(--shadow);
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0px,
    var(--accent) 8px,
    var(--steel-dark) 8px,
    var(--steel-dark) 16px
  );
  opacity: 0.6;
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.header-logo:hover { color: var(--accent-light); }

.header-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 2px solid var(--accent);
}

/* ========== NAV ========== */
.header-nav { display: flex; align-items: center; gap: 8px; }
.header-nav a {
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--accent-light);
  background: rgba(255,255,255,0.08);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--accent);
  color: var(--steel-dark) !important;
  border-radius: var(--radius);
  font-weight: 700 !important;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  /* Signal light glow */
  box-shadow: 0 0 12px rgba(218, 165, 32, 0.3);
}
.header-cta:hover {
  background: var(--warning-yellow);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  color: var(--steel-dark) !important;
}

.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: #fff;
  border-radius: 1px;
  transition: all 0.3s;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  text-align: center;
  padding: 60px 24px 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--steel-dark) 0%, #3A4556 50%, var(--steel) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Railway track lines */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(218, 165, 32, 0.08) 28px,
      rgba(218, 165, 32, 0.08) 30px
    ),
    /* Signal light glow */
    radial-gradient(ellipse at 20% 80%, rgba(196, 30, 58, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(46, 139, 87, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  opacity: 0.25;
  filter: blur(2px) saturate(0.6);
}

.hero-home .hero-bg { background-image: url('../img/cover.jpg'); }
.hero-guide .hero-bg { background-image: url('../img/screenshot-02.jpg'); }
.hero-story .hero-bg { background-image: url('../img/screenshot-01.jpg'); }
.hero-characters .hero-bg { background-image: url('../img/screenshot-03.jpg'); }
.hero-faq .hero-bg { background-image: url('../img/screenshot-04.jpg'); }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--accent-light);
  margin-top: 12px;
  font-weight: 500;
}

.hero-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-top: 10px;
  line-height: 1.6;
}

/* ========== MAIN CONTENT ========== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== SECTION ========== */
.section {
  padding: 60px 0;
}
.section-alt {
  background: var(--bg-alt);
  padding: 60px 24px;
  margin: 0 -24px;
}
.section-alt > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-soft);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* ========== CARDS ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 2px 12px var(--shadow);
  transition: all 0.3s;
  /* Railway platform edge */
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent), var(--warning-amber));
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  box-shadow: 0 6px 24px var(--shadow-md);
  transform: translateY(-2px);
}
.card:hover::before {
  opacity: 1;
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--steel-dark);
}
.card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========== FEATURE CARDS (Index) ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px var(--shadow);
  transition: all 0.3s;
}
.feature-card:hover {
  box-shadow: 0 6px 20px var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent);
}
.feature-card-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.feature-card p {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  box-shadow: 0 2px 8px var(--shadow);
  transition: all 0.3s;
  position: relative;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px var(--shadow-md);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }

/* ========== LIGHTBOX ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
}
.lightbox-close:hover { color: var(--accent-light); }

/* ========== CTA BANNER (Index) ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--steel-dark), #3A4556);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  margin: 48px 0 60px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(218,165,32,0.06) 40px, rgba(218,165,32,0.06) 42px);
  pointer-events: none;
}

.cta-banner h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.cta-banner p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--steel-dark);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(218,165,32,0.3);
}
.cta-btn:hover {
  background: var(--warning-yellow);
  box-shadow: 0 0 30px rgba(255,215,0,0.5);
  transform: translateY(-1px);
}

/* ========== REVIEWS ========== */
.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px var(--shadow);
  position: relative;
}
.review-card::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 16px;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
}
.review-card p {
  color: var(--text-soft);
  font-style: italic;
  line-height: 1.7;
  font-size: 0.95rem;
  padding-left: 12px;
}
.review-author {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ========== CHARACTER CARDS ========== */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.char-card {
  display: flex;
  gap: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 12px var(--shadow);
  transition: all 0.3s;
  /* Railway signal light accent */
  position: relative;
  overflow: hidden;
}
.char-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--signal-red), var(--accent), var(--signal-green));
  opacity: 0.7;
}
.char-card:hover {
  box-shadow: 0 6px 24px var(--shadow-md);
  transform: translateY(-2px);
}

.char-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: var(--bg-alt);
}

.char-info { flex: 1; }

.char-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--steel-dark);
  margin-bottom: 4px;
}
.char-name-jp {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.char-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.char-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg-alt);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--steel);
  border: 1px solid var(--border-light);
}

.char-role {
  font-size: 0.85rem;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 6px;
}

.char-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.char-va {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ========== ACCORDION (FAQ) ========== */
.accordion { margin-top: 32px; }

.accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 1px 4px var(--shadow);
}

.accordion-header {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--steel-dark);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.accordion-header:hover { background: var(--bg-alt); }

.accordion-icon {
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.accordion-item.active .accordion-body {
  max-height: 600px;
  padding: 0 24px 20px;
}

.accordion-body p {
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 0.95rem;
}

/* ========== GUIDE STEPS ========== */
.guide-steps {
  margin-top: 32px;
}

.guide-step {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px var(--shadow);
  position: relative;
}
.guide-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent), var(--warning-amber));
  border-radius: 4px 0 0 4px;
}

.guide-step-num {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.guide-step h3 {
  margin-bottom: 10px;
}

.guide-step p {
  color: var(--text-soft);
  line-height: 1.75;
}

.tip-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 16px 0;
}
.tip-box strong {
  color: var(--accent-dark);
}

/* ========== STORY TABS / CHAPTERS ========== */
.story-section {
  margin-bottom: 40px;
}

.story-section h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.story-section p {
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 12px;
}

/* ========== SYSTEM REQUIREMENTS TABLE ========== */
.sys-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}
.sys-table th,
.sys-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.sys-table th {
  background: var(--steel-dark);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sys-table th:first-child { border-radius: var(--radius) 0 0 0; }
.sys-table th:last-child { border-radius: 0 var(--radius) 0 0; }
.sys-table tr:nth-child(even) { background: var(--bg-alt); }
.sys-table tr:hover { background: rgba(218, 165, 32, 0.05); }

/* ========== CONTENT SECTIONS (sub-pages) ========== */
.content-section {
  padding: 48px 0;
}
.content-section h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.content-prose {
  color: var(--text-soft);
  line-height: 1.85;
  font-size: 1rem;
}

.content-prose p {
  margin-bottom: 16px;
}

/* ========== GAME INFO TABLE (Index) ========== */
.info-table {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 32px 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
}

.info-cell {
  padding: 16px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}
.info-cell:nth-child(4n) { border-right: none; }
.info-cell:nth-child(n+5):nth-child(-n+8) { border-bottom: none; }

.info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--steel-dark);
}

/* ========== FOOTER ========== */
.site-footer {
  text-align: center;
  padding: 28px 24px;
  border-top: 3px solid var(--accent);
  position: relative;
  background: var(--steel-dark);
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0px,
    var(--accent) 8px,
    var(--steel-dark) 8px,
    var(--steel-dark) 16px
  );
  opacity: 0.6;
}

.site-footer p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--steel-dark);
    flex-direction: column;
    padding: 12px 0;
    gap: 0;
    box-shadow: 0 4px 12px var(--shadow);
  }
  .header-nav.open { display: flex; }
  .header-nav a {
    padding: 12px 24px;
    border-radius: 0;
  }

  .hamburger { display: flex; }

  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1.1rem; }

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

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

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

  .info-table {
    grid-template-columns: repeat(2, 1fr);
  }
  .info-cell:nth-child(2n) { border-right: none; }
  .info-cell:nth-child(n+5):nth-child(-n+8) { border-bottom: 1px solid var(--border-light); }

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

  .char-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .review-list {
    grid-template-columns: 1fr;
  }

  .hero-subpage { padding: 32px 16px 40px; }
  .hero-subpage-title { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 16px 56px; }
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: 1rem; }

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

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

  .info-table {
    grid-template-columns: 1fr;
  }
  .info-cell { border-right: none; }
  .info-cell:nth-child(n+5):nth-child(-n+8) { border-bottom: 1px solid var(--border-light); }

  .section { padding: 40px 0; }
  .section-title { font-size: 1.6rem; }

  .cta-banner { padding: 32px 20px; }
  .cta-banner h2 { font-size: 1.4rem; }

  .char-avatar { width: 80px; height: 80px; }

  .hero-subpage { padding: 24px 12px 32px; }
}
