:root {
  --bg: #070708;
  --bg2: #0b0b0e;
  --panel: #0f0f12;
  --panel2: #14141a;
  --text: #f1f1f3;
  --muted: #b9b9c2;
  --red: #b00000;
  --red2: #ff1f3a;
  --red3: #ff6b7a;
  --gold: #d4a574;
  --line: rgba(255,255,255,.08);
  --glow: 0 0 20px rgba(176,0,0,.35), 0 0 60px rgba(255,31,58,.12);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 600; }

/* Animated background */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(176,0,0,.15), transparent 50%),
    radial-gradient(ellipse 70% 50% at 85% 80%, rgba(255,31,58,.1), transparent 50%),
    var(--bg);
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,7,8,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s;
}

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

.mobile-menu {
  background: var(--panel);
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.mobile-link {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 0.75rem;
  border-radius: 8px;
}

.mobile-link:hover { background: rgba(255,255,255,.05); color: var(--text); }

.mobile-menu-btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

/* Brand */
.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red2);
  text-shadow: var(--glow);
  text-decoration: none;
}

/* Sections */
section { padding: 5rem 1.5rem; }

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

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--red2);
  text-shadow: var(--glow);
}

.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding-top: 2rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.card-glow {
  box-shadow: var(--glow), 0 20px 60px rgba(0,0,0,.4);
  border-color: rgba(176,0,0,.3);
}

/* Topic cards */
.topic-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-decoration: none;
  transition: all 0.3s;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow), 0 20px 60px rgba(0,0,0,.4);
  border-color: rgba(176,0,0,.3);
}

.topic-card .topic-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.topic-card h3 {
  color: var(--text);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.topic-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.topic-card .topic-link {
  color: var(--red2);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Key insight box */
.insight-box {
  background: linear-gradient(135deg, rgba(176,0,0,.15), rgba(255,31,58,.08));
  border: 1px solid rgba(255,31,58,.3);
  border-radius: var(--radius);
  padding: 2rem;
}

.insight-box h3 {
  color: var(--red2);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Pills/Tags */
.pill {
  display: inline-block;
  background: var(--panel2);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin: 0.25rem;
  border: 1px solid var(--line);
}

.pill-red {
  background: rgba(176,0,0,.2);
  color: var(--red3);
  border-color: rgba(176,0,0,.4);
}

/* Filter buttons */
.filter-btn {
  display: inline-block;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.filter-btn:hover { border-color: var(--red); color: var(--text); }

.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

/* Verse cards */
.verse-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.verse-ref {
  color: var(--red2);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.verse-text {
  font-style: italic;
  color: var(--text);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.verse-analysis {
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* Charts */
.chart-container {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.chart-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

/* Principles */
.principle {
  background: linear-gradient(135deg, var(--panel), var(--panel2));
  border-left: 3px solid var(--red);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.principle h4 {
  color: var(--red2);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Dark section */
.section-dark {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Stats */
.stat-card {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--red2);
  text-shadow: var(--glow);
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Tabs */
.tab-btn {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-btn:hover { color: var(--text); }

.tab-btn.active {
  color: var(--red2);
  border-bottom-color: var(--red);
}

.tab-content { display: none; padding: 2rem 0; }
.tab-content.active { display: block; }

/* Ethics framework */
.framework-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.framework-card h4 {
  color: var(--red2);
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 3rem 1.5rem;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--panel2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* Responsive */
@media (max-width: 768px) {
  section { padding: 3rem 1rem; }
  .hero, .page-hero { min-height: auto; padding: 4rem 1rem; }
}

/* Blockquote */
blockquote {
  border-left: 3px solid var(--red);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--red);
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red2);
  box-shadow: var(--glow);
}

.timeline-date {
  color: var(--red2);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.timeline-content h4 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Accordion */
.accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  background: var(--panel);
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.accordion-header:hover { background: var(--panel2); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: var(--bg2);
}

.accordion-content.open { max-height: 2000px; }

.accordion-inner { padding: 1.5rem; }

/* Figure cards */
.figure-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
}

.figure-card h4 {
  color: var(--red2);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.figure-card .dates {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.figure-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Quote card */
.quote-card {
  background: linear-gradient(135deg, rgba(176,0,0,.1), rgba(255,31,58,.05));
  border: 1px solid rgba(255,31,58,.2);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.quote-card blockquote {
  border: none;
  padding: 0;
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.quote-card .attribution {
  margin-top: 1rem;
  color: var(--red2);
  font-size: 0.9rem;
}

/* Content sections */
.content-section {
  max-width: 800px;
  margin: 0 auto;
}

.content-section h3 {
  color: var(--red2);
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-section p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.content-section ul, .content-section ol {
  color: var(--muted);
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-section li {
  margin-bottom: 0.5rem;
}

/* Highlight box */
.highlight-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box h4 {
  color: var(--red2);
  margin-bottom: 0.5rem;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
}

/* Hebrew/Greek terms */
.term {
  background: rgba(176,0,0,.15);
  color: var(--red3);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-style: italic;
}

/* Myth cards */
.myth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.myth-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
}

.myth-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.myth-number {
  color: var(--red);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.9rem;
}

.myth-claim {
  color: var(--red2);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.myth-facts {
  margin-bottom: 1rem;
}

.myth-facts h4 {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.myth-facts p {
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.myth-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.myth-bottom-line {
  background: rgba(176,0,0,.1);
  border-left: 3px solid var(--red);
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--text);
}

.myth-bottom-line strong {
  color: var(--red2);
}
