/* ============================================
   BC TENANT'S GUIDE — DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary palette */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2236;
  --bg-card: #151d2e;
  --bg-glass: rgba(17, 24, 39, 0.7);

  /* Accent colors */
  --gold: #d4a853;
  --gold-light: #e8c97a;
  --gold-dark: #b8902e;
  --gold-glow: rgba(212, 168, 83, 0.15);

  /* Good / Bad colors */
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.08);
  --green-border: rgba(34, 197, 94, 0.3);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.08);
  --red-border: rgba(239, 68, 68, 0.3);

  /* Text colors */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #d4a853;

  /* Misc */
  --border-color: rgba(148, 163, 184, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(212, 168, 83, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- Animated Background ---------- */
.bg-gradient-orbs {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-gradient-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-gradient-orbs .orb:nth-child(1) {
  width: 600px; height: 600px;
  background: var(--gold);
  top: -200px; left: -100px;
  animation-duration: 22s;
}

.bg-gradient-orbs .orb:nth-child(2) {
  width: 500px; height: 500px;
  background: #3b82f6;
  bottom: -150px; right: -100px;
  animation-duration: 18s;
  animation-delay: -5s;
}

.bg-gradient-orbs .orb:nth-child(3) {
  width: 400px; height: 400px;
  background: var(--green);
  top: 50%; left: 50%;
  animation-duration: 25s;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.1); }
  50% { transform: translate(-30px, 60px) scale(0.95); }
  75% { transform: translate(40px, 20px) scale(1.05); }
}

/* ---------- Top Navigation ---------- */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.top-nav.scrolled {
  background: rgba(10, 14, 26, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

.nav-logo .logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--bg-primary);
}

.nav-logo span {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-logo span .accent {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: var(--gold-glow);
}

.nav-search {
  position: relative;
}

.nav-search input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 14px 8px 36px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  width: 200px;
  transition: var(--transition);
  outline: none;
}

.nav-search input:focus {
  border-color: var(--gold);
  width: 280px;
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.nav-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0; right: 0; bottom: 0;
  background: rgba(10, 14, 26, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
  animation: fadeSlideDown 0.3s ease;
}

.mobile-menu a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 16px;
  border-radius: 8px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.mobile-menu a:hover {
  color: var(--gold);
  background: var(--gold-glow);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-glow);
  border: 1px solid rgba(212, 168, 83, 0.25);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.4s both;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold-light) 50%, var(--text-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.8s ease 0.4s both, shimmer 6s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
  animation: fadeUp 0.8s ease 0.6s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.8s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 83, 0.4);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  animation: fadeUp 0.8s ease 1s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Floating Particles (Hero) ---------- */
.hero-particles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles .particle {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.3;
  animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100px) translateX(100px); opacity: 0; }
}

/* ---------- Section Layout ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 24px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-label .line {
  width: 30px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 48px;
}

/* ---------- Disclaimer Banner ---------- */
.disclaimer-banner {
  background: var(--bg-tertiary);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.disclaimer-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--red);
}

.disclaimer-banner h3 {
  color: var(--red);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.disclaimer-banner ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.disclaimer-banner li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding-left: 20px;
  position: relative;
}

.disclaimer-banner li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--red);
}

/* ---------- Color code guide ---------- */
.color-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

.color-guide-card {
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.color-guide-card.good {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
}

.color-guide-card.bad {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
}

.color-guide-card .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.color-guide-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.color-guide-card.good h4 { color: var(--green); }
.color-guide-card.bad h4 { color: var(--red); }

.color-guide-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ---------- Example Cards (Good / Bad) ---------- */
.example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.example-card {
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.example-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
}

.example-card.good {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
}

.example-card.good::before { background: var(--green); }

.example-card.bad {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
}

.example-card.bad::before { background: var(--red); }

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

.example-card .example-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 6px;
}

.example-card.good .example-label {
  color: var(--green);
  background: rgba(34, 197, 94, 0.12);
}

.example-card.bad .example-label {
  color: var(--red);
  background: rgba(239, 68, 68, 0.12);
}

.example-card blockquote {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  border: none;
  padding: 0;
  margin: 0;
}

/* Single full-width example */
.example-full {
  margin: 24px 0;
}

/* ---------- Accordion Sections ---------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item:hover {
  border-color: rgba(212, 168, 83, 0.2);
}

.accordion-item.active {
  border-color: rgba(212, 168, 83, 0.3);
  box-shadow: var(--shadow-glow);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.accordion-header:hover {
  background: rgba(212, 168, 83, 0.03);
}

.accordion-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.accordion-header .num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--gold-glow);
  color: var(--gold);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.accordion-header .chevron {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.accordion-item.active .chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-body {
  max-height: 8000px;
}

.accordion-content {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

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

.accordion-content h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin: 24px 0 12px;
}

/* ---------- Info Cards / Feature Boxes ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.info-card:hover {
  border-color: rgba(212, 168, 83, 0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.info-card .card-icon {
  width: 48px; height: 48px;
  background: var(--gold-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.info-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ---------- Data Tables ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

thead {
  background: var(--bg-tertiary);
}

th {
  text-align: left;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--border-color);
}

td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

tr:last-child td { border-bottom: none; }

tr:hover td {
  background: rgba(212, 168, 83, 0.03);
}

/* ---------- Comparison Table ---------- */
.comparison-table {
  margin: 24px 0;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: 2px;
}

.comparison-row.header {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.comparison-cell {
  padding: 14px 18px;
  font-size: 0.88rem;
}

.comparison-cell.risky {
  background: var(--red-bg);
  border-left: 3px solid var(--red);
  color: var(--text-secondary);
}

.comparison-cell.safe {
  background: var(--green-bg);
  border-left: 3px solid var(--green);
  color: var(--text-secondary);
}

.comparison-cell.risky-header {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
}

.comparison-cell.safe-header {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

/* ---------- Scenario Cards ---------- */
.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 24px 0;
  transition: var(--transition);
}

.scenario-card:hover {
  border-color: rgba(212, 168, 83, 0.2);
}

.scenario-card .scenario-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.scenario-card .scenario-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- Highlight Boxes ---------- */
.highlight-box {
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0;
  position: relative;
}

.highlight-box.gold {
  background: var(--gold-glow);
  border: 1px solid rgba(212, 168, 83, 0.25);
}

.highlight-box.gold::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gold);
  border-radius: 4px 0 0 4px;
}

.highlight-box.warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.highlight-box.warning::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: #f59e0b;
  border-radius: 4px 0 0 4px;
}

.highlight-box h4 {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.highlight-box.warning h4 {
  color: #f59e0b;
}

.highlight-box p, .highlight-box li {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.highlight-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
}

.highlight-box li {
  padding-left: 20px;
  position: relative;
}

.highlight-box li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ---------- Checklist Items ---------- */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.checklist li:hover {
  border-color: rgba(212, 168, 83, 0.2);
}

.checklist .check-icon {
  flex-shrink: 0;
  color: var(--green);
  font-size: 1.1rem;
  margin-top: 1px;
}

/* ---------- Resource Cards ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.resource-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.resource-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.resource-card .resource-url {
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.resource-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ---------- Timeline ---------- */
.timeline {
  margin: 24px 0;
  padding-left: 28px;
  border-left: 2px solid var(--border-color);
}

.timeline-item {
  position: relative;
  padding: 0 0 28px 24px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
}

.timeline-item .date {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---------- Legislation Summary Table ---------- */
.legislation-table td:first-child {
  font-weight: 600;
  color: var(--gold);
  font-size: 0.85rem;
  min-width: 200px;
}

/* ---------- Quick Jump / TOC ---------- */
.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 32px 0;
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.toc-item:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateX(4px);
}

.toc-item .toc-num {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  min-width: 28px;
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 168, 83, 0.5);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-color);
  padding: 60px 24px;
  text-align: center;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.footer .footer-highlight {
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Progress Bar ---------- */
.reading-progress {
  position: fixed;
  top: 70px;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  z-index: 1001;
  transition: width 0.1s linear;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-search input { width: 160px; }
  .nav-search input:focus { width: 200px; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .hero { padding: 100px 20px 60px; min-height: 90vh; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }

  .section { padding: 60px 20px; }

  .example-grid { grid-template-columns: 1fr; }
  .color-guide { grid-template-columns: 1fr; }
  .comparison-row { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .toc-grid { grid-template-columns: 1fr; }

  .nav-search { display: none; }

  .accordion-header h3 { font-size: 0.95rem; }
  .scenario-card { padding: 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-stat .number { font-size: 1.6rem; }
  .btn { padding: 12px 20px; font-size: 0.88rem; }
  .nav-inner { height: 60px; }
  html { scroll-padding-top: 68px; }
  .reading-progress { top: 60px; }
}

/* ---------- Search Results Overlay ---------- */
.search-overlay {
  display: none;
  position: fixed;
  top: 70px;
  left: 0; right: 0; bottom: 0;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  z-index: 998;
  padding: 40px 24px;
  overflow-y: auto;
}

.search-overlay.active { display: block; }

.search-results {
  max-width: 700px;
  margin: 0 auto;
}

.search-results h3 {
  color: var(--gold);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.search-result-item {
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.search-result-item:hover {
  border-color: var(--gold);
}

.search-result-item .result-section {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.search-result-item .result-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.search-result-item mark {
  background: rgba(212, 168, 83, 0.3);
  color: var(--text-primary);
  padding: 1px 3px;
  border-radius: 3px;
}

/* ---------- Floating Progress Indicators ---------- */
.section-progress {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-progress .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
  transition: var(--transition);
  cursor: pointer;
}

.section-progress .dot.active {
  background: var(--gold);
  opacity: 1;
  transform: scale(1.4);
}

@media (max-width: 1024px) {
  .section-progress { display: none; }
}
