/* ==========================================================================
   ANANTLUMINA - MINIMALIST INSTITUTIONAL DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Default: Light Kesari (Divine Saffron Wash) */
  --bg-main: #FFFDF9;
  --bg-subtle: #FFF4E6;
  --bg-elevated: #FDE8D0;
  --bg-card: #FFFFFF;
  
  --text-main: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-faint: #94A3B8;

  --accent-gold: #B45309;
  --accent-gold-light: #FEF3C7;
  --accent-navy: #1E293B;

  --border-light: #F5E0C8;
  --border-subtle: #FAF0E4;
  --border-focus: #E2C4A2;

  --font-serif: 'Newsreader', Garamond, Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 4px 20px -2px rgba(180, 83, 9, 0.06);
  --shadow-elevated: 0 12px 32px -4px rgba(180, 83, 9, 0.08);
}

/* ================= Color Shade Presets ================= */

/* 1. Light Kesari (Sacred Saffron Wash) - DEFAULT */
body[data-theme="kesari"] {
  --bg-main: #FFFDF9;
  --bg-subtle: #FFF4E6;
  --bg-elevated: #FDE8D0;
  --bg-card: #FFFFFF;
  --accent-gold: #B45309;
  --border-light: #F5E0C8;
  --border-subtle: #FAF0E4;
}

/* 2. Light Sindoor (Sacred Vermilion / Kumkum Wash) */
body[data-theme="sindoor"] {
  --bg-main: #FFFAF8;
  --bg-subtle: #FFF0EB;
  --bg-elevated: #FDDCD2;
  --bg-card: #FFFFFF;
  --accent-gold: #9F2B1F;
  --border-light: #F6D6CC;
  --border-subtle: #FAECE7;
}

/* 3. Deep Kesari (Warm Saffron Gold Glow) */
body[data-theme="kesari-rich"] {
  --bg-main: #FFF8EE;
  --bg-subtle: #FEEDD5;
  --bg-elevated: #FDE0B8;
  --bg-card: #FFFFFF;
  --accent-gold: #92400E;
  --border-light: #F1D6B8;
  --border-subtle: #FBE6CE;
}

/* 4. Deep Sindoor (Warm Terracotta / Kumkum Radiance) */
body[data-theme="sindoor-rich"] {
  --bg-main: #FFF3EF;
  --bg-subtle: #FDE4DC;
  --bg-elevated: #FBCDC0;
  --bg-card: #FFFFFF;
  --accent-gold: #881337;
  --border-light: #F3C4B6;
  --border-subtle: #F9D5CB;
}

/* 5. Soft Sand & Cashmere */
body[data-theme="sand"] {
  --bg-main: #FDFCFA;
  --bg-subtle: #F5F1E9;
  --bg-elevated: #ECE5DA;
  --bg-card: #FFFFFF;
  --accent-gold: #9A7328;
  --border-light: #E8E2D7;
  --border-subtle: #F1ECE3;
}

/* 6. Pure Minimal White */
body[data-theme="white"] {
  --bg-main: #FFFFFF;
  --bg-subtle: #F8F9FA;
  --bg-elevated: #F1F3F5;
  --bg-card: #FFFFFF;
  --accent-gold: #9A7328;
  --border-light: #E2E8F0;
  --border-subtle: #EDF2F7;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  transition: background-color 0.25s ease;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 760px;
}

/* ================= Typography ================= */
h1, h2, h3, .serif-heading {
  font-family: var(--font-serif);
  color: var(--text-main);
  font-weight: 500;
  letter-spacing: -0.02em;
}

h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ================= Navigation Bar ================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-main);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 32px;
  height: 32px;
}

.brand-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-title span {
  font-weight: 400;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-menu a:hover {
  color: var(--text-main);
}

.nav-btn-primary {
  background: var(--text-main);
  color: #FFFFFF !important;
  font-weight: 500;
  font-size: 0.88rem !important;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.nav-btn-primary:hover {
  background: #2D3748;
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-dark {
  background: var(--text-main);
  color: #FFFFFF;
}

.btn-dark:hover {
  background: #1E293B;
  transform: translateY(-1px);
}

.btn-light {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-light);
  box-shadow: var(--shadow-subtle);
}

.btn-light:hover {
  background: var(--bg-subtle);
  border-color: var(--border-focus);
}

/* ================= Hero Section ================= */
.hero-section {
  padding: 100px 0 80px;
  text-align: center;
  background-color: var(--bg-main);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
}

.hero-heading {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.18;
  max-width: 880px;
  margin: 0 auto 24px;
  color: var(--text-main);
}

.hero-lead {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.hero-divider {
  height: 1px;
  background: var(--border-light);
  width: 100%;
  max-width: 880px;
  margin: 40px auto 0;
}

/* ================= Section Base ================= */
.section {
  padding: 90px 0;
  background-color: var(--bg-main);
  transition: background-color 0.25s ease;
}

.section-alt {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
}

.section-header-centered {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

/* ================= Mission Section ================= */
.mission-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card);
  max-width: 860px;
  margin: 0 auto;
}

.mission-quote {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 24px;
}

.mission-body p {
  margin-bottom: 18px;
  font-size: 1.02rem;
  color: var(--text-secondary);
}

.mission-body p:last-child {
  margin-bottom: 0;
}

/* ================= Three Pillars Grid ================= */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}

.pillar-index {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-gold);
  font-weight: 500;
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-main);
}

.pillar-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.pillar-details {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar-details li {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pillar-details li::before {
  content: '—';
  color: var(--accent-gold);
}

/* ================= Philosophy Section ================= */
.master-diagram-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  text-align: center;
  margin-bottom: 32px;
}

.master-diagram-img {
  width: 100%;
  max-width: 980px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  image-rendering: -webkit-optimize-contrast;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.wave-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  background: var(--bg-card);
}

.wave-card.sukha {
  border-top: 3px solid var(--accent-gold);
}

.wave-card.dukkha {
  border-top: 3px solid var(--text-main);
}

.wave-card h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.wave-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ================= Interactive Demonstration ================= */
.demo-container {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.demo-sidebar {
  background: var(--bg-subtle);
  border-right: 1px solid var(--border-light);
  padding: 24px;
}

.demo-sidebar-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.demo-query-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.demo-query-btn:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-main);
}

.demo-query-btn.active {
  background: var(--bg-card);
  border-color: var(--border-light);
  color: var(--text-main);
  font-weight: 600;
  box-shadow: var(--shadow-subtle);
}

.demo-content {
  padding: 32px;
}

.demo-question-box {
  background: var(--bg-subtle);
  border-left: 3px solid var(--text-main);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
}

.demo-question-box .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.demo-question-box .text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
}

.citations-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.citation-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.demo-answer-text {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.demo-answer-text p {
  margin-bottom: 12px;
  font-size: 0.98rem;
}

.demo-answer-text code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-gold);
}

/* ================= Principles & Ethics ================= */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.principle-item {
  display: flex;
  gap: 16px;
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-gold);
  flex-shrink: 0;
  padding-top: 2px;
}

.principle-text h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.principle-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ================= Founder Letter ================= */
.letter-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-subtle);
  max-width: 780px;
  margin: 0 auto;
}

.letter-salutation {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 24px;
}

.letter-content p {
  margin-bottom: 20px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.letter-signature {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-main);
}

/* ================= Waitlist & Access ================= */
.waitlist-section {
  text-align: center;
  padding: 80px 0;
  background-color: var(--bg-main);
}

.waitlist-form-clean {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 480px;
  margin: 28px auto 14px;
}

.waitlist-input-clean {
  flex: 1;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--bg-card);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease;
}

.waitlist-input-clean:focus {
  border-color: var(--text-main);
}

/* ================= Footer ================= */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 50px 0 30px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.6;
}

/* ================= Interactive Theme Switcher Bar ================= */
.theme-picker-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-family: var(--font-sans);
}

.theme-picker-label {
  color: #CBD5E1;
  font-weight: 500;
  margin-right: 4px;
}

.theme-dot-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.theme-dot-btn:hover {
  transform: scale(1.2);
}

.theme-dot-btn.active {
  border-color: #38BDF8;
  transform: scale(1.15);
}

/* ================= Responsive ================= */
@media (max-width: 860px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .demo-container {
    grid-template-columns: 1fr;
  }
  .demo-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  .principles-grid {
    grid-template-columns: 1fr;
  }
  .letter-wrapper {
    padding: 32px 24px;
  }
  .nav-menu {
    display: none;
  }
  .waitlist-form-clean {
    flex-direction: column;
  }
  .theme-picker-bar {
    bottom: 12px;
    right: 12px;
    padding: 4px 8px;
  }
}
