﻿/* ============================================================
   AURA  Luxury Retrofuturist Documentation
   Design System: Dark Gold Retrofuturism
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --bg-card: #151515;
  --text: #f8f8f8;
  --text-dim: #c0c0c0;
  --text-muted: #808080;
  --gold: #d4af37;
  --gold-dim: #c9a227;
  --gold-dark: #b8941f;
  --border: #222222;
  --glow: rgba(212, 175, 55, 0.15);
  --shadow: rgba(0, 0, 0, 0.5);
  --font-heading: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --transition: all 0.3s ease;
  --transition-slow: all 0.6s ease;
}

[data-theme="light"] {
  --bg: #f5f0e8;
  --bg-alt: #ede8dc;
  --bg-card: #faf7f0;
  --text: #1a1a1a;
  --text-dim: #3a3a3a;
  --text-muted: #6a6a6a;
  --border: #d0c8b0;
  --glow: rgba(180, 140, 20, 0.12);
  --shadow: rgba(0, 0, 0, 0.15);
}

/* ============================================================
   2. RESET AND BASE STYLES
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

::selection {
  background-color: var(--gold);
  color: var(--bg);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================================
   3. 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: transform 0.1s ease, opacity 0.3s ease;
}

.cursor-follower {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  opacity: 0.6;
}

.cursor.is-hovering {
  transform: translate(-50%, -50%) scale(2);
  opacity: 0.5;
}

.cursor-follower.is-hovering {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

/* ============================================================
   4. CANVAS — 2D particle ambient background
   ============================================================ */
#webgl {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

/* Ambient radial gradient behind hero — pure CSS, no JS */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   5. NAVIGATION  — original luxury style
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  padding: 30px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 100%);
  transition: all 0.5s ease;
  /* Prevent any child from overflowing the nav */
  overflow: hidden;
  box-sizing: border-box;
}

.nav.scrolled {
  padding: 18px 60px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

/* Logo — large Cormorant Garamond, gold gradient */
.nav-logo {
  flex-shrink: 0;
  min-width: 0;
}

.nav-logo a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 60%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: letter-spacing 0.3s ease;
  white-space: nowrap;
}

.nav-logo a:hover {
  letter-spacing: 0.15em;
}

/* Right side — theme toggle + hamburger, never overflow */
.nav > #themeToggle,
.nav > .menu-toggle {
  flex-shrink: 0;
}

/* Links — Inter, small caps, elegant */
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Theme toggle */
#themeToggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}

#themeToggle:hover {
  border-color: var(--gold);
  transform: rotate(180deg);
  box-shadow: 0 0 16px var(--glow);
}

.theme-icon { line-height: 1; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-dim);
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   6. MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-link {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 300;
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-menu.active .mobile-link:nth-child(2) {
  transition-delay: 0.15s;
}

.mobile-menu.active .mobile-link:nth-child(3) {
  transition-delay: 0.2s;
}

.mobile-menu.active .mobile-link:nth-child(4) {
  transition-delay: 0.25s;
}

.mobile-menu.active .mobile-link:nth-child(5) {
  transition-delay: 0.3s;
}

.mobile-link:hover {
  color: var(--gold-dim);
  text-shadow: 0 0 20px var(--glow);
}

/* ============================================================
   7. HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  padding: 140px 60px 200px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 60px;
  right: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
  opacity: 0.4;
}

/* ============================================================
   8. HERO CONTENT
   ============================================================ */
.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: block;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 180px;
  line-height: 0.9;
  font-weight: 300;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 40%, var(--gold-dark) 80%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 24px;
  font-weight: 300;
}

.hero-description {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 48px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   9. BUTTONS
   ============================================================ */
.btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 14px 32px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border: 1px solid var(--gold);
  box-shadow: 0 0 20px var(--glow);
}

.btn-primary:hover {
  background: var(--gold-dim);
  border-color: var(--gold-dim);
  box-shadow: 0 0 32px rgba(212, 175, 55, 0.3);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: var(--glow);
  box-shadow: 0 0 20px var(--glow);
  transform: translateY(-1px);
}

/* ============================================================
   10. HERO STATS
   ============================================================ */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 60%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.3));
}

/* ∞ symbol — always visible, no counter JS */
.stat-infinity {
  font-size: 64px;
  line-height: 0.9;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ============================================================
   11. SCROLL INDICATOR
   ============================================================ */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: top;
}

/* ============================================================
   12. KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* ============================================================
   13. CONTAINER
   ============================================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

/* ============================================================
   14. SECTION HEADER
   ============================================================ */
.section-header {
  margin-bottom: 80px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 300;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.01em;
}

/* ============================================================
   15. FEATURES SECTION
   ============================================================ */
.features {
  padding: 150px 0;
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

/* ============================================================
   16. FEATURE CARD — luxury, no translateY, no brackets
   ============================================================ */
.feature-card {
  background: var(--bg-card);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
  /* No border — grid gap creates the dividers */
  text-decoration: none;
  display: block;
}

/* Animated gold shimmer line at top */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dim));
  transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Radial glow from top-left on hover */
.feature-card::after {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.feature-card:hover {
  background: #111111;
}

.feature-card:hover::before {
  right: 0;
}

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

[data-theme="light"] .feature-card:hover {
  background: #faf7f0;
}

/* ============================================================
   17. FEATURE ICON — clean square, no animation
   ============================================================ */
.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  background: transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.feature-card:hover .feature-icon {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.06);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon svg {
  opacity: 1;
}

/* ============================================================
   18. FEATURE TEXT
   ============================================================ */
.feature-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
  color: var(--gold);
}

.feature-desc,
.feature-description {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.feature-link {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease, gap 0.3s ease;
}

.feature-card:hover .feature-link {
  color: var(--gold);
  gap: 12px;
}

/* ============================================================
   19. TECH STACK SECTION
   ============================================================ */
.tech-stack {
  padding: 150px 0;
  background: var(--bg-alt);
  position: relative;
  z-index: 1;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
}

.tech-item {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: var(--gold);
  transition: height 0.4s ease;
}

.tech-item:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: #0f0f0f;
}

.tech-item:hover::before {
  height: 100%;
}

.tech-item h4 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.tech-item p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   20. CTA SECTION
   ============================================================ */
.cta-section {
  padding: 160px 0;
  position: relative;
  z-index: 1;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.cta-content {
  max-width: 800px;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.cta-desc {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.7;
  max-width: 560px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   21. FOOTER
   ============================================================ */
.footer {
  padding: 80px 0 40px;
  background: var(--bg-alt);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ============================================================
   22. PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 100px;
  position: relative;
  z-index: 1;
}

.page-hero .container {
  width: 100%;
}

.page-hero-content {
  max-width: 900px;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 60px;
  right: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.3;
}

.page-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.2s;
}

.page-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(64px, 11vw, 130px);
  font-weight: 300;
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--text) 0%, var(--gold) 55%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 0.95;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.4s;
}

.page-subtitle {
  font-family: var(--font-body);
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 560px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.6s;
}

/* ============================================================
   23. INNER PAGE CONTENT
   ============================================================ */
.models-content,
.content {
  position: relative;
  z-index: 1;
  padding: 100px 0 160px;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 60px;
}

.lead {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 300;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 80px;
  border-left: 2px solid var(--gold);
  padding-left: 32px;
}

/* ============================================================
   24. PAGE NAV (prev / next)
   ============================================================ */
.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 120px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
}

.page-nav-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: opacity 0.3s ease;
  flex: 1;
}

.page-nav-link.prev { align-items: flex-start; }
.page-nav-link.next { align-items: flex-end; text-align: right; }
.page-nav-link:hover { opacity: 0.7; }

.page-nav-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-nav-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 300;
  color: var(--gold);
}

/* ============================================================
   25. SHARED CARD HOVER — no translateY, just border glow
   ============================================================ */
.feature-card,
.model-card,
.metric,
.tech-item,
.endpoint,
.prediction-section,
.table-section {
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.model-card:hover,
.metric:hover,
.endpoint:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(212, 175, 55, 0.05);
}

/* ============================================================
   26. WEBGL CANVAS
   ============================================================ */
#webgl {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   27. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav { padding: 20px 40px; }
  .nav.scrolled { padding: 14px 40px; }
  .container { padding: 0 40px; }
  .hero { padding: 120px 40px 180px; }
  .hero::after { left: 40px; right: 40px; }
  .hero-title { font-size: 120px; }
  .section-title { font-size: 56px; }
  .features-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .tech-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .footer-content { grid-template-columns: 1fr; gap: 48px; }
  .page-hero::after { left: 40px; right: 40px; }
  .container-narrow { padding: 0 40px; }
}

@media (max-width: 768px) {
  .nav {
    padding: 16px 20px;
    /* Ensure nav never overflows on mobile */
    overflow: visible;
  }
  .nav.scrolled { padding: 12px 20px; }
  /* Shrink logo on mobile so hamburger stays in frame */
  .nav-logo a {
    font-size: 24px;
    letter-spacing: 0.06em;
  }
  .nav-logo a:hover { letter-spacing: 0.06em; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .container { padding: 0 24px; }
  .hero { padding: 100px 24px 80px; }
  .hero::after { left: 24px; right: 24px; }
  .hero-title { font-size: clamp(72px, 18vw, 120px); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 56px; }
  .scroll-indicator { display: none; }
  .features { padding: 80px 0; }
  .features-grid { grid-template-columns: 1fr; gap: 2px; }
  .tech-stack { padding: 80px 0; }
  .tech-grid { grid-template-columns: 1fr; gap: 2px; }
  .cta-section { padding: 100px 0; }
  .section-title { font-size: 44px; }
  .page-hero { min-height: 60vh; padding-bottom: 60px; }
  .page-hero::after { left: 24px; right: 24px; }
  .container-narrow { padding: 0 24px; }
  .models-content, .content { padding: 70px 0 120px; }
  .lead { font-size: clamp(18px, 3vw, 22px); padding-left: 20px; margin-bottom: 60px; }
  .page-nav { flex-direction: column; gap: 20px; }
  .page-nav-link.next { align-items: flex-start; text-align: left; }
}

@media (max-width: 480px) {
  .nav { padding: 14px 16px; }
  .nav-logo a { font-size: 22px; letter-spacing: 0.04em; }
  .container { padding: 0 20px; }
  .hero { padding: 80px 20px 60px; }
  .hero::after { left: 20px; right: 20px; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
  .stat-number { font-size: 44px; }
  .stat-infinity { font-size: 52px; }
  .page-hero::after { left: 20px; right: 20px; }
  .container-narrow { padding: 0 20px; }
  .models-content, .content { padding: 50px 0 100px; }
}

/* ============================================================
   28. LIGHT THEME OVERRIDES
   ============================================================ */
[data-theme="light"] .nav.scrolled {
  background: rgba(245, 240, 232, 0.96);
}

[data-theme="light"] .mobile-menu {
  background: rgba(245, 240, 232, 0.98);
}

[data-theme="light"] .feature-card:hover {
  background: #faf7f0;
}

[data-theme="light"] .tech-item:hover {
  background: #faf7f0;
}

[data-theme="light"] .hero::before {
  background: radial-gradient(circle, rgba(180, 140, 20, 0.06) 0%, transparent 65%);
}

/* ============================================================
   29. FINISHING TOUCHES
   ============================================================ */

/* Smooth underline on all text links */
.model-body a, .story-content a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s ease;
}
.model-body a:hover, .story-content a:hover {
  text-decoration-color: var(--gold);
}

/* Refined section divider */
.features::before,
.tech-stack::before {
  content: '';
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  margin: 0 auto 0;
}

/* Hero title responsive clamp */
.hero-title {
  font-size: clamp(80px, 14vw, 180px);
}

/* Stat divider line — more refined */
.hero-stats {
  position: relative;
}
.hero-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.25), transparent);
}

/* Footer logo — use Cormorant instead of mono */
.footer-logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.08em;
}

/* Smooth focus ring */
*:focus-visible {
  outline: 1px solid rgba(212, 175, 55, 0.6);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ============================================================
   30. UTILITY
   ============================================================ */
.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;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Theme toggle */
#themeToggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
}

#themeToggle:hover {
  border-color: var(--gold);
  transform: rotate(180deg);
  box-shadow: 0 0 16px var(--glow);
}

.theme-icon { line-height: 1; }

/* feature-desc alias */
.feature-desc {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}ent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* ============================================================
   30. THEME TOGGLE (id-based)
   ============================================================ */
#themeToggle {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-family: var(--font-mono);
}

#themeToggle:hover {
  background: var(--glow);
  border-color: var(--gold);
  box-shadow: 0 0 16px var(--glow);
}

.theme-icon {
  line-height: 1;
}

/* feature-desc alias (used in HTML) */
.feature-desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
