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

:root {
  --gold: #c9a227;
  --gold-light: #e6c458;
  --deep: #0d0d1a;
  --dark: #111128;
  --mid: #1a1a35;
  --card: #1e1e3a;
  --card-hover: #252550;
  --text: #e8e8f0;
  --text-muted: #9090b0;
  --accent: #7b61ff;
  --accent2: #ff6b6b;
  --green: #4ecdc4;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--deep);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

h1, h2, h3, h4 {
  font-family: 'Georgia', serif;
  line-height: 1.3;
}

/* ─── NAV ────────────────────────────────────────────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,26,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,162,39,0.2);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1rem; font-weight: 600; color: var(--gold);
}
.nav-om { font-size: 1.5rem; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  color: var(--text-muted); font-family: 'Arial', sans-serif;
  font-size: 0.875rem; letter-spacing: 0.05em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* ─── HERO ───────────────────────────────────────────────────────────────────── */
.hero {
  background: radial-gradient(ellipse at 20% 50%, rgba(123,97,255,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(201,162,39,0.1) 0%, transparent 60%),
              linear-gradient(180deg, var(--dark) 0%, var(--deep) 100%);
  padding: 6rem 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid rgba(201,162,39,0.1);
}
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.3);
  color: var(--gold);
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 20px; margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--text);
  margin-bottom: 1rem;
}
.hero h1 .accent { color: var(--gold); }
.hero-sub {
  font-size: 1.1rem; color: var(--text-muted); max-width: 640px; margin: 0 auto 1rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold); color: var(--deep);
  padding: 0.8rem 2rem; border-radius: 8px;
  font-family: 'Arial', sans-serif; font-weight: 700; font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-light); color: var(--deep); transform: translateY(-2px); }
.btn-secondary {
  background: transparent; color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.8rem 2rem; border-radius: 8px;
  font-family: 'Arial', sans-serif; font-size: 0.95rem;
  transition: border-color 0.2s, transform 0.2s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ─── STATS BAR ──────────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--mid);
  border-bottom: 1px solid rgba(201,162,39,0.1);
  display: flex; justify-content: space-around; flex-wrap: wrap;
  padding: 1.5rem 2rem; gap: 1rem;
}
.stat { text-align: center; }
.stat-num {
  display: block; font-size: 2rem; font-weight: 700;
  color: var(--gold); font-family: 'Arial', sans-serif;
}
.stat-label {
  font-size: 0.75rem; color: var(--text-muted);
  font-family: 'Arial', sans-serif; text-transform: uppercase; letter-spacing: 0.1em;
}

/* ─── SECTION SHARED ─────────────────────────────────────────────────────────── */
section { padding: 4rem 2rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.5rem; color: var(--text); }
.section-sub { color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1rem; }

/* ─── MASTER QUOTE ───────────────────────────────────────────────────────────── */
.quote-section {
  background: linear-gradient(135deg, var(--mid), var(--card));
  text-align: center; padding: 4rem 2rem;
  border-top: 1px solid rgba(201,162,39,0.15);
  border-bottom: 1px solid rgba(201,162,39,0.15);
}
.master-quote {
  max-width: 800px; margin: 0 auto;
  border: none;
}
.master-quote p {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic; color: var(--text);
  line-height: 1.8; margin-bottom: 1rem;
}
.master-quote p em { color: var(--gold); font-style: normal; }
.master-quote cite {
  color: var(--text-muted); font-family: 'Arial', sans-serif;
  font-size: 0.9rem; letter-spacing: 0.05em;
}

/* ─── THEMES GRID ────────────────────────────────────────────────────────────── */
.themes-section { max-width: 1200px; margin: 0 auto; text-align: center; }
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.theme-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: left;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  display: block; color: var(--text);
  box-shadow: var(--shadow);
}
.theme-card:hover {
  background: var(--card-hover);
  border-color: rgba(201,162,39,0.4);
  transform: translateY(-4px);
  color: var(--text);
}
.theme-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.theme-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--gold); }
.theme-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.theme-meta {
  display: flex; flex-direction: column; gap: 0.2rem;
  font-family: 'Arial', sans-serif; font-size: 0.75rem;
}
.theme-meta span:first-child { color: var(--green); font-weight: 600; }
.theme-meta span:last-child { color: var(--accent); }

/* ─── EQUATION SPOTLIGHT ─────────────────────────────────────────────────────── */
.equation-spotlight {
  background: var(--mid);
  border-top: 1px solid rgba(201,162,39,0.1);
  border-bottom: 1px solid rgba(201,162,39,0.1);
  text-align: center;
}
.equation-spotlight h2 { margin-bottom: 0.5rem; }
.eq-card {
  max-width: 960px; margin: 2rem auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  background: var(--card); border-radius: var(--radius);
  border: 1px solid rgba(201,162,39,0.2);
  padding: 2.5rem; text-align: left;
  box-shadow: var(--shadow);
}
@media (max-width: 640px) { .eq-card { grid-template-columns: 1fr; } }
.eq-teaching h4, .eq-math h4 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold); font-family: 'Arial', sans-serif; margin-bottom: 1rem;
}
.eq-teaching blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1rem; font-style: italic;
  font-size: 1rem; color: var(--text); line-height: 1.8;
}
.eq-teaching cite { display: block; margin-top: 0.75rem; color: var(--text-muted); font-size: 0.85rem; }
.eq-math .equation {
  background: rgba(201,162,39,0.08);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: 8px; padding: 1.2rem;
  font-family: 'Courier New', monospace; font-size: 1.1rem;
  margin-bottom: 1rem; color: var(--gold-light);
}
.eq-math p { font-size: 0.95rem; color: var(--text-muted); }

/* ─── QUOTES STRIP ───────────────────────────────────────────────────────────── */
.quotes-strip {
  background: var(--deep); padding: 3rem 2rem;
}
.quotes-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.quote-item {
  background: var(--card);
  border-left: 3px solid var(--gold);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; font-size: 0.95rem; color: var(--text-muted);
}

/* ─── ABOUT ──────────────────────────────────────────────────────────────────── */
.about-section { background: var(--mid); }
.about-inner { max-width: 1000px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { margin-bottom: 1rem; color: var(--text-muted); }
.about-text strong { color: var(--text); }
.about-links h4 {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold); margin-bottom: 0.75rem; margin-top: 1.5rem;
}
.about-links ul { list-style: none; }
.about-links li { margin-bottom: 0.4rem; font-size: 0.9rem; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────────── */
footer {
  background: #080810;
  border-top: 1px solid rgba(201,162,39,0.1);
  text-align: center; padding: 2rem;
}
.footer-inner p {
  color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.3rem;
}

/* ─── SCIENCE PAGE ───────────────────────────────────────────────────────────── */
.science-hero {
  background: radial-gradient(ellipse at center, rgba(123,97,255,0.1), transparent 70%),
              var(--dark);
  padding: 5rem 2rem 3rem; text-align: center;
  border-bottom: 1px solid rgba(201,162,39,0.1);
}
.theme-section {
  max-width: 1100px; margin: 0 auto;
  padding: 4rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.theme-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}
.theme-header .icon { font-size: 2.5rem; }
.theme-header h2 { margin: 0; }
.theme-summary { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 2.5rem; }

.teachings-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem; margin-bottom: 3rem;
}
.teaching-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 1.5rem;
  border-left: 3px solid var(--gold);
}
.teaching-card p { font-style: italic; font-size: 0.95rem; color: var(--text); }
.teaching-card .source {
  font-size: 0.75rem; color: var(--text-muted);
  margin-top: 0.75rem; font-style: normal;
  font-family: 'Arial', sans-serif;
}

.papers-section h3, .equations-section h3 {
  font-size: 1.1rem; color: var(--gold); margin-bottom: 1.5rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  font-family: 'Arial', sans-serif; font-size: 0.8rem;
}
.papers-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem; margin-bottom: 3rem;
}
.paper-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; padding: 1.5rem;
  transition: border-color 0.2s;
}
.paper-card:hover { border-color: rgba(201,162,39,0.4); }
.paper-card h4 { font-size: 0.95rem; color: var(--text); margin-bottom: 0.4rem; }
.paper-card .authors { font-size: 0.8rem; color: var(--accent); margin-bottom: 0.75rem; font-family: 'Arial', sans-serif; }
.paper-card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }
.paper-card a {
  font-size: 0.8rem; color: var(--green);
  font-family: 'Arial', sans-serif;
}

.equations-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem; margin-bottom: 3rem;
}
.equation-card {
  background: var(--card);
  border: 1px solid rgba(123,97,255,0.2);
  border-radius: 10px; padding: 1.5rem;
}
.equation-card h4 { font-size: 0.9rem; color: var(--accent); margin-bottom: 1rem; font-family: 'Arial', sans-serif; }
.eq-display {
  background: rgba(123,97,255,0.08);
  border: 1px solid rgba(123,97,255,0.2);
  border-radius: 8px; padding: 1rem;
  font-family: 'Courier New', monospace; font-size: 1rem;
  color: var(--gold-light); margin-bottom: 1rem;
  text-align: center;
}
.equation-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ─── TEACHINGS PAGE ─────────────────────────────────────────────────────────── */
.search-bar {
  max-width: 700px; margin: 2rem auto;
  position: relative;
}
.search-bar input {
  width: 100%; padding: 1rem 1.5rem;
  background: var(--card); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px; color: var(--text); font-size: 1rem;
  outline: none;
}
.search-bar input:focus { border-color: var(--gold); }
.filter-bar {
  display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center;
  margin-bottom: 2rem;
}
.filter-btn {
  background: var(--card); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted); padding: 0.5rem 1rem; border-radius: 20px;
  cursor: pointer; font-family: 'Arial', sans-serif; font-size: 0.8rem;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gold); color: var(--deep); border-color: var(--gold);
}
.teachings-list { max-width: 900px; margin: 0 auto; }
.teaching-item {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 1.5rem 2rem; margin-bottom: 1rem;
}
.teaching-item blockquote {
  font-style: italic; font-size: 1rem; color: var(--text);
  margin-bottom: 0.75rem;
}
.teaching-item .meta {
  font-size: 0.78rem; color: var(--text-muted);
  font-family: 'Arial', sans-serif;
  display: flex; gap: 1rem;
}
.teaching-item .tag {
  background: rgba(201,162,39,0.12);
  color: var(--gold); padding: 0.2rem 0.6rem;
  border-radius: 10px; font-size: 0.7rem;
}

/* ─── SAYINGS PAGE ───────────────────────────────────────────────────────────── */
.sayings-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem; max-width: 1200px; margin: 0 auto;
}
.saying-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
}
.saying-card p {
  font-style: italic; font-size: 1rem; color: var(--text);
  line-height: 1.8; flex: 1; margin-bottom: 1rem;
}
.saying-card .saying-footer {
  font-size: 0.8rem; color: var(--text-muted);
  font-family: 'Arial', sans-serif;
  display: flex; justify-content: space-between;
}

/* ─── VIDEO PAGE ─────────────────────────────────────────────────────────────── */
.videos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem; max-width: 1200px; margin: 0 auto;
}
.video-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.video-card:hover { transform: translateY(-4px); border-color: rgba(201,162,39,0.3); }
.video-thumb {
  width: 100%; aspect-ratio: 16/9;
  background: var(--mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-info { padding: 1rem; }
.video-info h4 { font-size: 0.9rem; color: var(--text); margin-bottom: 0.5rem; }
.video-info .vid-meta { font-size: 0.75rem; color: var(--text-muted); font-family: 'Arial', sans-serif; }

/* ─── STUDY PAGE ─────────────────────────────────────────────────────────────── */
.study-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem; max-width: 1000px; margin: 0 auto 3rem;
}
.study-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 2rem;
}
.study-card h3 { color: var(--gold); margin-bottom: 1rem; font-size: 1rem; }
.study-card ul { list-style: none; }
.study-card li { padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.study-card li:last-child { border-bottom: none; }
.study-card a { font-size: 0.9rem; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .eq-card { grid-template-columns: 1fr; }
}
