/* ============================================================
   LLUNARIS — Cosmic Civilization Design System
   Champagne Gold + Deep Indigo | Dark Theme Only
   ============================================================ */

/* --- Fonts --- */
@import url('https://api.fontshare.com/v2/css?f[]=zodiak@400,500,600,700&f[]=satoshi@300,400,500,700&display=swap');

/* --- Design Tokens --- */
:root {
  /* Typography */
  --font-display: 'Zodiak', Georgia, serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;

  /* Type Scale (fluid) */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Colors — Llunaris Palette */
  --color-bg:           #0a0a14;
  --color-surface:      #0f0f1e;
  --color-surface-2:    #141428;
  --color-text:         #e8e6f5;
  --color-text-muted:   #8a87a8;
  --color-accent:       #c9a84c;
  --color-accent-2:     #a89064;
  --color-accent-3:     #6b5ce7;
  --color-glow:         rgba(201, 168, 76, 0.15);
  --color-border:       rgba(201, 168, 76, 0.12);
  --color-border-strong: rgba(201, 168, 76, 0.25);

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions — Serene, slow */
  --transition-interactive: 300ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-serene: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Shadows */
  --shadow-gold-sm: 0 2px 8px rgba(201, 168, 76, 0.08);
  --shadow-gold-md: 0 4px 20px rgba(201, 168, 76, 0.12);
  --shadow-gold-lg: 0 8px 40px rgba(201, 168, 76, 0.18);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

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

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }

::selection {
  background: rgba(201, 168, 76, 0.3);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button { cursor: pointer; background: none; border: none; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition-interactive); }
a:hover { color: #e0c66a; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* --- Particle Canvas --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Sacred Geometry Background Patterns --- */
.sacred-geometry {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
}

.sacred-geometry::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  animation: sacred-rotate 120s linear infinite;
}

.sacred-geometry::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%) rotate(30deg);
  border-radius: 50%;
  border: 1px solid var(--color-accent-3);
  animation: sacred-rotate 90s linear infinite reverse;
}

@keyframes sacred-rotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Section sacred geometry decoration */
.section-sacred {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.section-sacred::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: 
    radial-gradient(circle at center, transparent 48%, rgba(201, 168, 76, 0.04) 49%, transparent 50%),
    radial-gradient(circle at center, transparent 68%, rgba(107, 92, 231, 0.03) 69%, transparent 70%),
    radial-gradient(circle at center, transparent 88%, rgba(201, 168, 76, 0.02) 89%, transparent 90%);
  animation: sacred-float 60s ease-in-out infinite;
}

.section-sacred::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background:
    conic-gradient(from 0deg, transparent 0deg, rgba(201, 168, 76, 0.02) 60deg, transparent 120deg, rgba(107, 92, 231, 0.015) 180deg, transparent 240deg, rgba(201, 168, 76, 0.02) 300deg, transparent 360deg);
  animation: sacred-float 80s ease-in-out infinite reverse;
}

@keyframes sacred-float {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: var(--space-3) var(--space-8);
  background: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  transition: background 0.5s var(--ease-serene), border-color 0.5s var(--ease-serene), box-shadow 0.5s var(--ease-serene);
}

.nav.scrolled {
  background: rgba(10, 10, 20, 0.85);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-gold-md);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition-interactive);
  white-space: nowrap;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.4s var(--ease-out);
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-accent);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.nav-toggle.active span:first-child { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:last-child { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: var(--space-32) var(--space-6) var(--space-16);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(10, 10, 20, 0.3) 0%, rgba(10, 10, 20, 0.8) 60%),
    linear-gradient(180deg, transparent 0%, rgba(10, 10, 20, 0.6) 70%, var(--color-bg) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-wide);
  padding: 0 var(--space-6);
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: var(--space-2) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-10);
  background: rgba(201, 168, 76, 0.05);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-8);
  line-height: 1;
  background: linear-gradient(135deg, var(--color-accent) 0%, #e8dcc0 35%, var(--color-text) 60%, var(--color-accent-secondary) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 8s ease-in-out infinite;
  text-shadow: none;
}

@keyframes titleShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto var(--space-12);
  line-height: 1.7;
  font-style: italic;
}

.hero-ctas {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-4) var(--space-10);
  border-radius: var(--radius-full);
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  color: var(--color-bg);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 0 50px rgba(201, 168, 76, 0.35);
  transform: translateY(-2px);
  color: var(--color-bg);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-border-strong);
}

.btn-secondary:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  color: var(--color-accent);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* --- Sections --- */
.section {
  position: relative;
  padding: clamp(var(--space-16), 8vw, var(--space-32)) var(--space-6);
  z-index: 1;
}

.section-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
  position: relative;
  padding-left: var(--space-10);
}

.section-badge::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--color-accent);
  transform: translateY(-50%);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.section-description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: var(--space-12);
}

/* Section layouts */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 5vw, var(--space-20));
  align-items: start;
}



.section-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
}

.section-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  transition: transform 1.2s var(--ease-serene);
}

.section-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  pointer-events: none;
}

.section-image:hover img {
  transform: scale(1.03);
}

/* --- Feature Cards --- */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.feature-card {
  background: linear-gradient(145deg, var(--color-surface), var(--color-surface-2));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.feature-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-gold-md);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  color: var(--color-accent);
  font-size: 1.5rem;
}

.feature-card-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.5;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
  text-align: center;
}

.stat {
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: rgba(15, 15, 30, 0.5);
  transition: border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.stat:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-gold-sm);
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Temple Section (full-width image) --- */
.temple-section {
  position: relative;
  padding: 0;
  margin: var(--space-16) 0;
}

.temple-bg {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}

.temple-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.temple-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, var(--color-bg) 0%, transparent 15%, transparent 85%, var(--color-bg) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(10, 10, 20, 0.7) 100%);
}

.temple-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8);
  z-index: 1;
}

.temple-content .section-title {
  text-shadow: 0 2px 40px rgba(10, 10, 20, 0.8);
}

.temple-content .section-description {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 20px rgba(10, 10, 20, 0.8);
  color: var(--color-text);
  opacity: 0.9;
}

.temple-features {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-10);
  flex-wrap: wrap;
  justify-content: center;
}

.temple-feature {
  text-align: center;
  padding: var(--space-6);
  background: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  min-width: 200px;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.temple-feature:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-gold-sm);
}

.temple-feature-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
}

.temple-feature h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.temple-feature p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* --- Portal / CTA Section --- */
.portal-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: var(--space-16) var(--space-6);
}

.portal-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.portal-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.portal-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10, 10, 20, 0.4) 0%, rgba(10, 10, 20, 0.9) 70%);
}

.portal-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.portal-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.portal-subtitle {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-12);
  line-height: 1.7;
}

.portal-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.portal-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color var(--transition-interactive);
}

.portal-link:hover {
  color: var(--color-accent);
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) var(--space-6);
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.15em;
}

.footer-links {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

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

.footer-universe {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

.footer-attribution {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  opacity: 0.6;
}

.footer-attribution a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-attribution a:hover {
  color: var(--color-accent);
}

.footer-divider {
  width: 48px;
  height: 1px;
  background: var(--color-border);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-serene), transform 1s var(--ease-serene);
}

.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Staggered card reveals */
.feature-card.reveal { transition-duration: 0.9s; }
.stat.reveal { transition-duration: 0.9s; }

/* --- Glow Effects --- */
.glow-line {
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.15;
}

/* --- Scroll indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  animation: scroll-float 3s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--color-accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* --- Temple Badge --- */
.temple-badge {
  padding-left: 0 !important;
}

.temple-badge::before {
  display: none;
}

/* --- Interface Section --- */
.interface-section .section-image {
  box-shadow: var(--shadow-gold-lg);
}

/* Ensure section images fill properly */
.section-split .section-image {
  align-self: stretch;
}

.section-split .section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-2xl);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .section-split {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  
  .section-split.reverse {
    direction: ltr;
  }
  
  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

@media (max-width: 768px) {
  .nav {
    top: var(--space-4);
    padding: var(--space-3) var(--space-5);
    gap: var(--space-4);
    width: calc(100% - var(--space-8));
    justify-content: space-between;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + var(--space-4));
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    gap: var(--space-4);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }
  
  .stats {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .hero {
    min-height: 100svh;
    padding: var(--space-24) var(--space-4) var(--space-12);
  }

  .hero-title {
    letter-spacing: 0.06em;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .temple-features {
    flex-direction: column;
    align-items: center;
  }

  .temple-feature {
    min-width: unset;
    width: 100%;
    max-width: 300px;
  }

  .temple-bg {
    height: auto;
    min-height: 80vh;
  }

  .portal-section {
    min-height: 70vh;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-4);
  }

  .section {
    padding: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-4);
  }
}

@media (max-width: 480px) {
  .stat-value {
    font-size: var(--text-xl);
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: var(--space-2) var(--space-4);
  }
}

/* --- Utility --- */
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ============================================================
   DONATION SECTION — "Ilumina el Camino"
   ============================================================ */

.donation-section {
  padding-top: clamp(var(--space-16), 8vw, var(--space-32));
  padding-bottom: clamp(var(--space-16), 8vw, var(--space-32));
}

.donation-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.donation-header .section-badge {
  padding-left: 0;
}

.donation-header .section-badge::before {
  display: none;
}

.donation-header .section-description {
  margin-left: auto;
  margin-right: auto;
}

.donation-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  align-items: start;
}

/* --- Donation Card --- */
.donation-card {
  position: relative;
  background: linear-gradient(160deg, rgba(15, 15, 30, 0.8), rgba(20, 20, 40, 0.6));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.donation-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-gold-md);
}

.donation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.donation-card:hover::before {
  opacity: 1;
}

/* Sacred geometry overlay on cards */
.donation-card-sacred {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.donation-geometry {
  width: 100%;
  height: 100%;
  color: var(--color-accent);
  animation: sacred-rotate 90s linear infinite;
}

/* Featured card (Oráculo) */
.donation-card-featured {
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.08), rgba(15, 15, 30, 0.8));
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.1), inset 0 1px 0 rgba(99, 102, 241, 0.15);
  transform: scale(1.03);
}

.donation-card-featured:hover {
  transform: scale(1.03) translateY(-6px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.15), 0 8px 40px rgba(99, 102, 241, 0.1);
}

.donation-card-featured::before {
  background: linear-gradient(90deg, transparent, var(--color-accent-3), transparent);
}

.donation-card-featured .donation-geometry {
  color: var(--color-accent-3);
}

.donation-card-ribbon {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: linear-gradient(135deg, var(--color-accent-3), #818cf8);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  z-index: 2;
}

.donation-card-glyph {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  margin-bottom: var(--space-4);
  color: var(--color-accent);
  opacity: 0.7;
}

.donation-card-featured .donation-card-glyph {
  color: var(--color-accent-3);
}

.donation-card-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.donation-card-price {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-1);
  margin-bottom: var(--space-8);
}

.donation-price-amount {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.donation-card-featured .donation-price-amount {
  color: var(--color-accent-3);
}

.donation-price-currency {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.donation-card-perks {
  position: relative;
  z-index: 1;
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-8);
  padding: 0;
}

.donation-card-perks li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.06);
}

.donation-card-perks li:last-child {
  border-bottom: none;
}

.perk-icon {
  color: var(--color-accent);
  font-size: 0.6rem;
  flex-shrink: 0;
}

.donation-card-featured .perk-icon {
  color: var(--color-accent-3);
}

/* Donation buttons */
.btn-donation {
  position: relative;
  z-index: 1;
  width: 100%;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  gap: var(--space-3);
  transition: all 0.4s var(--ease-out);
}

.btn-donation-gold {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(201, 168, 76, 0.06));
  color: var(--color-accent);
  border: 1px solid rgba(201, 168, 76, 0.25);
}

.btn-donation-gold:hover {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(201, 168, 76, 0.12));
  border-color: var(--color-accent);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.15);
  transform: translateY(-2px);
  color: var(--color-accent);
}

.btn-donation-indigo {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.1));
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.btn-donation-indigo:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(99, 102, 241, 0.18));
  border-color: #818cf8;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
  color: #c7d2fe;
}

.btn-donation svg {
  flex-shrink: 0;
}

.donation-note {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-10);
  opacity: 0.7;
}

/* Donation responsive */
@media (max-width: 1024px) {
  .donation-tiers {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .donation-card-featured {
    transform: none;
    order: -1;
  }

  .donation-card-featured:hover {
    transform: translateY(-6px);
  }
}

/* ============================================================
   REGISTRATION MODAL
   ============================================================ */

.register-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
  padding: var(--space-6);
}

.register-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.register-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(160deg, rgba(15, 15, 30, 0.95), rgba(10, 10, 20, 0.98));
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-2xl);
  box-shadow: 0 0 80px rgba(201, 168, 76, 0.08), 0 0 160px rgba(99, 102, 241, 0.05);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.5s var(--ease-out);
}

.register-modal-overlay.active .register-modal {
  transform: translateY(0) scale(1);
}

.modal-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  border-radius: var(--radius-2xl);
}

.register-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out);
  z-index: 3;
  background: none;
  border: none;
  cursor: pointer;
}

.register-modal-close:hover {
  color: var(--color-accent);
  background: rgba(201, 168, 76, 0.1);
}

.register-modal-content {
  position: relative;
  z-index: 1;
  padding: var(--space-10) var(--space-8);
}

/* --- Tabs --- */
.register-tabs {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-8);
  background: rgba(15, 15, 30, 0.6);
  border-radius: var(--radius-full);
  padding: var(--space-1);
  border: 1px solid var(--color-border);
}

.register-tab {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease-out);
  background: transparent;
  border: none;
  cursor: pointer;
}

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

.register-tab.active {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.08));
  color: var(--color-accent);
  box-shadow: 0 0 16px rgba(201, 168, 76, 0.1);
}

.register-modal-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--space-8);
}

/* --- Form Fields --- */
.register-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.register-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.register-field label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.register-field input,
.register-field select {
  width: 100%;
  padding: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: rgba(10, 10, 20, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.register-field input::placeholder {
  color: rgba(138, 135, 168, 0.5);
}

.register-field input:focus,
.register-field select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1), 0 0 20px rgba(201, 168, 76, 0.08);
}

.register-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a87a8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

.register-field-error {
  font-size: 0.7rem;
  color: #ef4444;
  min-height: 0;
  transition: min-height 0.2s;
}

.register-field-error.visible {
  min-height: 1rem;
}

.register-field.has-error input,
.register-field.has-error select {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.register-submit {
  margin-top: var(--space-4);
  width: 100%;
  justify-content: center;
}

/* --- Success State --- */
.register-success {
  text-align: center;
  padding: var(--space-8) 0;
}

.register-success-icon {
  margin-bottom: var(--space-6);
  animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

.register-success h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.register-success p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 360px;
  margin: 0 auto;
}

/* ============================================================
   FLOATING ORB BUTTON
   ============================================================ */

.floating-orb {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 9000;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
  transition: transform 0.4s var(--ease-out);
}

.floating-orb:hover {
  transform: scale(1.1);
}

.floating-orb-glow {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(201, 168, 76, 0.4), rgba(201, 168, 76, 0) 70%);
  animation: orbGlow 3s ease-in-out infinite;
}

@keyframes orbGlow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

.floating-orb-core {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.3), 0 0 60px rgba(201, 168, 76, 0.1);
}

/* --- Nav Despertar link --- */
.nav-despertar {
  color: var(--color-accent) !important;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4) !important;
  transition: all 0.3s var(--ease-out) !important;
}

.nav-despertar:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
}

.nav-despertar::after {
  display: none !important;
}

/* --- Responsive Registration --- */
@media (max-width: 768px) {
  .register-modal-content {
    padding: var(--space-8) var(--space-6);
  }

  .floating-orb {
    bottom: var(--space-6);
    right: var(--space-6);
    width: 48px;
    height: 48px;
  }

  .floating-orb-core {
    width: 40px;
    height: 40px;
  }
}

/* ========== HERO VIDEO ========== */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-fallback-img {
  display: none;
}

/* If video fails to load, show fallback image */
.hero-video:not([src]) + .hero-fallback-img,
.hero-bg:not(:has(video)) .hero-fallback-img {
  display: block;
}

/* Audio toggle button for Llunaris hero */
.hero-audio-toggle {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 50%;
  color: #C9A84C;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.hero-audio-toggle:hover {
  background: rgba(201, 168, 76, 0.3);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

.hero-audio-toggle svg {
  width: 24px;
  height: 24px;
}

.hero-audio-toggle .muted-line {
  transition: opacity 0.3s;
}
