/* ============================================================
   LUMINA — The Void Design System
   ============================================================ */

:root {
  --bg:          #000000;
  --gold:        #C8A96E;
  --gold-light:  #E8D5A3;
  --gold-dim:    rgba(200, 169, 110, 0.18);
  --text:        #F5F0E8;
  --muted:       #7A7060;
  --muted-mid:   #9A8E7E;
  --nav-h:       72px;
  --ff-display:  'Cormorant Garamond', Georgia, serif;
  --ff-body:     'DM Sans', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
ul { list-style: none; }

/* ── Custom Cursor ── */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(200,169,110,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.25,1,0.5,1),
              height 0.35s cubic-bezier(0.25,1,0.5,1),
              border-color 0.35s;
}
body:has(.cta-button:hover) .cursor-ring {
  width: 72px; height: 72px;
  border-color: rgba(200,169,110,0.9);
}

/* ── Loader ── */
#loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.loader-brand {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  letter-spacing: 0.45em;
  color: var(--gold);
  font-weight: 300;
}
.loader-bar-wrap {
  width: 200px; height: 1px;
  background: rgba(200,169,110,0.15);
  position: relative; overflow: hidden;
}
.loader-bar {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width 0.1s linear;
}
.loader-pct {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* ── Navigation ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 3rem;
  z-index: 20;
  mix-blend-mode: normal;
}
.site-header::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
  pointer-events: none;
}
.logo {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  font-weight: 300;
  position: relative;
}
.nav-links {
  display: flex; gap: 2.5rem;
  margin: 0 auto;
  position: relative;
}
.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-mid);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200,169,110,0.35);
  padding: 0.55rem 1.5rem;
  border-radius: 100px;
  transition: background 0.3s, color 0.3s;
  position: relative;
}
.nav-cta:hover {
  background: var(--gold-dim);
  color: var(--gold-light);
}

/* ── Canvas ── */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.canvas-wrap::before,
.canvas-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 12vw;
  z-index: 2;
  pointer-events: none;
}
.canvas-wrap::before {
  left: 0;
  background: linear-gradient(to right, #000 0%, transparent 100%);
}
.canvas-wrap::after {
  right: 0;
  background: linear-gradient(to left, #000 0%, transparent 100%);
}
#canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: block;
}

/* ── Dark Overlay ── */
#dark-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* ── Marquee ── */
.marquee-wrap {
  position: fixed;
  bottom: 14vh;
  left: 0; right: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s;
}
.marquee-wrap.visible { opacity: 1; }
.marquee-track {
  font-family: var(--ff-display);
  font-size: 14vw;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.06;
  white-space: nowrap;
  letter-spacing: 0.05em;
  line-height: 1;
  will-change: transform;
}

/* ── Hero Standalone ── */
.hero-standalone {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}
.hero-inner {
  padding-top: calc(var(--nav-h) + 2rem);
  padding-left: 5vw;
  max-width: 38vw;
}
.hero-label {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.4s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-heading {
  font-family: var(--ff-display);
  font-size: clamp(4.5rem, 8vw, 9rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.0s 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-heading em {
  color: var(--gold);
  font-style: italic;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted-mid);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.8s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.9s 1.1s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s 1.5s ease-in-out infinite;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* ── Scroll Container ── */
#scroll-container {
  position: relative;
  height: 900vh;
  z-index: 10;
}

/* ── Scroll Sections (absolutely positioned, height set by JS) ── */
.scroll-section {
  position: absolute;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  min-height: 100vh;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}
.scroll-section[data-persist="true"] {
  pointer-events: auto;
}

/* ── Text Alignment Zones ── */
.align-left {
  justify-content: flex-start;
  padding-left: 5vw;
}
.align-left .section-inner {
  max-width: 32vw;
}
.align-right {
  justify-content: flex-end;
  padding-right: 5vw;
}
.align-right .section-inner {
  max-width: 32vw;
  text-align: left;
}

/* ── Section Typography ── */
.section-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.section-heading {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 4.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.section-heading em { color: var(--gold); font-style: italic; }
.section-body {
  font-size: 0.95rem;
  color: var(--muted-mid);
  line-height: 1.75;
  max-width: 28ch;
}

/* ── Feature List ── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 0.5rem;
}
.feature-list li {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.feat-num {
  font-family: var(--ff-display);
  font-size: 0.85rem;
  color: var(--gold);
  opacity: 0.6;
  padding-top: 0.15rem;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.feature-list strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
}
.feature-list p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Stats ── */
.stats-section {
  justify-content: center;
  align-items: center;
}
.stats-inner {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: none;
  width: 70vw;
  border: 1px solid rgba(200,169,110,0.1);
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(20px);
  padding: 4rem 5rem;
}
.stat {
  flex: 1;
  text-align: center;
}
.stat-number {
  font-family: var(--ff-display);
  font-size: clamp(3.5rem, 6vw, 7rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-unit {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 2vw, 2.2rem);
  color: var(--gold);
  opacity: 0.7;
  font-weight: 300;
  margin-left: 0.25rem;
}
.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.8rem;
}
.stat-divider {
  width: 1px;
  height: 80px;
  background: rgba(200,169,110,0.15);
  flex-shrink: 0;
  margin: 0 3rem;
}

/* ── Quote Section ── */
.quote-section {
  justify-content: center;
  align-items: center;
}
.quote-inner {
  max-width: 55vw;
  text-align: center;
  border-top: 1px solid rgba(200,169,110,0.15);
  border-bottom: 1px solid rgba(200,169,110,0.15);
  padding: 3rem 0;
}
.quote-text {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3.5vw, 4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
blockquote cite {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Testimonials ── */
.testimonial-card {
  border-left: 1px solid rgba(200,169,110,0.2);
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}
.testimonial-card p {
  font-size: 0.88rem;
  color: var(--muted-mid);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  font-style: italic;
}
.testimonial-card footer {
  display: flex; flex-direction: column; gap: 0.15rem;
}
.test-name {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.04em;
}
.test-role {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ── CTA Section ── */
.cta-section {
  justify-content: center;
  align-items: center;
}
.cta-inner {
  text-align: center;
  max-width: 44ch;
  position: relative;
  padding: 4rem 3rem;
}
.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.4) 60%,
    transparent 100%);
  border-radius: 8px;
  pointer-events: none;
  z-index: -1;
}
.cta-heading {
  margin-bottom: 1rem;
}
.cta-inner .section-body {
  margin: 0 auto 2.5rem;
  max-width: 36ch;
  text-align: center;
}

/* ── CTA Button — Magnetic Glassmorphism ── */
.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg,
    rgba(200,169,110,0.12) 0%,
    rgba(200,169,110,0.04) 100%);
  border: 1px solid rgba(200,169,110,0.45);
  backdrop-filter: blur(16px);
  color: var(--gold-light);
  padding: 1.2rem 3.8rem;
  border-radius: 100px;
  font-family: var(--ff-body);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: none;
  outline: none;
  box-shadow:
    0 0 40px rgba(200,169,110,0.10),
    0 0 80px rgba(200,169,110,0.05),
    inset 0 1px 0 rgba(255,255,255,0.04);
  transition:
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    background 0.4s ease;
  will-change: transform;
  margin-bottom: 1.5rem;
}
.cta-button:hover {
  box-shadow:
    0 0 60px rgba(200,169,110,0.22),
    0 0 120px rgba(200,169,110,0.10),
    inset 0 1px 0 rgba(255,255,255,0.06);
  border-color: rgba(200,169,110,0.7);
  background: linear-gradient(135deg,
    rgba(200,169,110,0.18) 0%,
    rgba(200,169,110,0.07) 100%);
}
.btn-label { position: relative; z-index: 1; }
.btn-icon {
  position: relative; z-index: 1;
  font-size: 1rem;
  transition: transform 0.3s cubic-bezier(0.25,1,0.5,1);
}
.cta-button:hover .btn-icon { transform: translateX(5px); }

.cta-note {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 8;
  background: var(--bg);
  border-top: 1px solid rgba(200,169,110,0.08);
  padding: 2.5rem 3rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.footer-brand {
  font-family: var(--ff-display);
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  opacity: 0.5;
  font-weight: 300;
}
.footer-copy {
  font-size: 0.72rem;
  color: var(--muted);
  flex: 1;
  letter-spacing: 0.05em;
}
.footer-nav {
  display: flex; gap: 2rem;
}
.footer-nav a {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--gold-light); }

/* ── Grain Overlay ── */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 9997;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.35;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { max-width: 80vw; padding-right: 5vw; }
  .hero-heading { font-size: clamp(3.5rem, 12vw, 6rem); }
  .align-left, .align-right { padding: 0 6vw; justify-content: flex-start; }
  .align-left .section-inner,
  .align-right .section-inner { max-width: 80vw; }
  .stats-inner { flex-direction: column; gap: 2rem; width: 85vw; padding: 3rem; }
  .stat-divider { width: 60px; height: 1px; margin: 0; }
  .quote-inner { max-width: 80vw; }
  .canvas-wrap::before, .canvas-wrap::after { display: none; }
  .marquee-track { font-size: 22vw; }
  .site-header { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .cta-inner { max-width: 80vw; }
}
