/* ============================================
   AuraLens AI — Global Design System
   관상·손금·족금 AI 분석 서비스
   ============================================ */

/* ── Google Fonts — Cyber-Mysticism Typography ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Hanken+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties — Cyber-Mysticism Design System ── */
:root {
  /* Primary Colors — Electric Purple */
  --primary: #ddb7ff;
  --primary-light: #f0dbff;
  --primary-dark: #b76dff;
  --primary-glow: rgba(221, 183, 255, 0.4);

  /* Secondary — Neon Cyan */
  --gold: #4cd7f6;
  --gold-light: #acedff;
  --gold-dark: #03b5d3;
  --gold-glow: rgba(76, 215, 246, 0.4);

  /* Accent — Acid Green */
  --accent: #91db2a;
  --accent-glow: rgba(145, 219, 42, 0.3);

  /* Background — Deep Midnight Indigo */
  --bg-cosmic: #0b1326;
  --bg-surface: rgba(23, 31, 51, 0.4);
  --bg-card: rgba(23, 31, 51, 0.5);
  --bg-glass: rgba(23, 31, 51, 0.6);

  /* Feature Colors — Cyber-Mysticism Palette */
  --color-face: #4cd7f6;
  --color-palm: #ddb7ff;
  --color-foot: #91db2a;
  --color-saju: #b76dff;

  /* Text — Material Design 3 On-Surface */
  --text-primary: #dae2fd;
  --text-secondary: #cfc2d6;
  --text-muted: #988d9f;

  /* Borders — Glass & Neon */
  --border-subtle: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(221, 183, 255, 0.3);

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  /* Shadows — Neon Aura */
  --shadow-glow-purple: 0 0 25px rgba(221, 183, 255, 0.3);
  --shadow-glow-gold: 0 0 25px rgba(76, 215, 246, 0.3);
  --shadow-glow-cyan: 0 0 25px rgba(76, 215, 246, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.37);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Safe Area */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Font — Cyber-Mysticism Typography */
  --font-display: 'Syne', 'Noto Sans KR', sans-serif;
  --font-sans: 'Hanken Grotesk', 'Noto Sans KR', -apple-system, sans-serif;
  --font-serif: 'Noto Sans KR', Georgia, serif;
  --font-mono: 'Space Mono', 'Noto Sans KR', monospace;

  /* Mouse tracking variables */
  --mouse-x: 50%;
  --mouse-y: 50%;

  /* Additional Cyber-Mysticism Colors */
  --inverse-primary: #842bd2;
  --surface-container: #171f33;
  --surface-container-high: #222a3d;
  --surface-container-highest: #2d3449;
  --surface-container-low: #131b2e;
  --surface-container-lowest: #060e20;
  --on-primary: #490080;
  --secondary-container: #03b5d3;
  --tertiary-container: #65a100;
  --outline-variant: #4d4354;
  --error: #ffb4ab;
  --error-container: #93000a;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cosmic);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  
  /* Desktop App Layout */
  @media (min-width: 768px) {
    display: block;
    background: radial-gradient(circle at center, #131b2e 0%, #0b1326 100%);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img, video {
  max-width: 100%;
  display: block;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ── Layout Utilities ── */
.page-container {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: calc(70px + var(--safe-top));
  padding-bottom: calc(80px + var(--safe-bottom));
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  max-width: 1200px;
}

/* Desktop overrides */
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
  .page-content {
    padding-bottom: 40px;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 60px;
  }
}

/* ── Hero Center Layout ── */
.hero-main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 80px 0;
  text-align: center;
  overflow: visible;
}

.hero-info-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 800px;
}

/* ── Mystic Compass Background ── */
.mystic-compass-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
}

@media (max-width: 768px) {
  .mystic-compass-container {
    width: 320px;
    height: 320px;
    opacity: 0.2;
  }
}

.mystic-compass {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-outer {
  border: 1px solid rgba(212, 160, 23, 0.2);
  animation: spin-slow 40s linear infinite;
}

.ring-middle {
  inset: 15%;
  border: 1px dashed rgba(139, 92, 246, 0.3);
  animation: spin-reverse-slow 25s linear infinite;
}

.compass-core {
  position: absolute;
  inset: 35%;
  background: rgba(10, 10, 20, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(212, 160, 23, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(212, 160, 23, 0.2);
  animation: mystic-glow 4s infinite ease-in-out;
}

.yin-yang-wrap {
  width: 80%;
  height: 80%;
  animation: spin-slow 15s linear infinite;
}

.yin-yang {
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #F1F5F9 50%, #0A0A14 50%);
  border-radius: 50%;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.yin-dot, .yang-dot {
  position: absolute;
  left: 50%;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.yin-dot {
  top: 0;
  background: #F1F5F9;
}
.yin-dot::after {
  content: "";
  width: 25%;
  height: 25%;
  background: #0A0A14;
  border-radius: 50%;
}

.yang-dot {
  bottom: 0;
  background: #0A0A14;
}
.yang-dot::after {
  content: "";
  width: 25%;
  height: 25%;
  background: #F1F5F9;
  border-radius: 50%;
}

.orbit-particle {
  position: absolute;
  border-radius: 50%;
}

.p1 {
  width: 12px;
  height: 12px;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
  animation: orbit 10s linear infinite;
}

.p2 {
  width: 10px;
  height: 10px;
  background: var(--color-foot);
  box-shadow: 0 0 15px var(--color-foot);
  animation: orbit 15s linear infinite reverse;
}

/* ── Typography Additions ── */
.hero-badge {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
  letter-spacing: 8px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-weight: 300;
}

/* ── Component Fixes ── */
.cta-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 440px;
}

.stats-group {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 60px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 900;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

.logout-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.result-tag.face { border-color: rgba(16,185,129,0.3); color: var(--color-face); }
.result-tag.palm { border-color: rgba(245,158,11,0.3); color: var(--color-palm); }
.result-tag.foot { border-color: rgba(244,63,94,0.3); color: var(--color-foot); }
.result-tag.saju { border-color: rgba(59,130,246,0.3); color: var(--color-saju); }

/* ── Nav Bar Additions ── */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  margin-right: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-selector:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--primary-light); }
.lang-text { font-size: 13px; font-weight: 700; color: var(--text-primary); }

@keyframes mystic-glow {
  0%, 100% { box-shadow: 0 0 50px rgba(212,160,23,0.2); }
  50% { box-shadow: 0 0 80px rgba(139,92,246,0.4); }
}

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin-reverse-slow { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes orbit { from { transform: rotate(0deg) translateX(150px) rotate(0deg); } to { transform: rotate(360deg) translateX(150px) rotate(-360deg); } }


/* ── Responsive Grid Utilities ── */
.grid-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .grid-dashboard {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1200px) {
  .grid-dashboard {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1025px) {
  .grid-split {
    grid-template-columns: 400px 1fr;
    align-items: start;
    gap: 40px;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .container {
    max-width: 768px;
    padding: 0 30px;
  }
}

/* ── Cosmic Background ── */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(107, 33, 168, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(212, 160, 23, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, #0A0A14 0%, #0F0F23 50%, #0A0A14 100%);
  pointer-events: none;
}

.cosmic-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(10, 10, 20, 0.7) 100%);
}

/* ── Particle Stars ── */
.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--duration, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: var(--max-opacity, 0.6); transform: scale(1); }
}

/* ── Navigation ── */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  padding-top: calc(12px + var(--safe-top));
  background: rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 20px;
  transition: all var(--transition-fast);
}

.nav-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* ── Bottom Tab Bar (Mobile) ── */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 0;
  padding-bottom: calc(8px + var(--safe-bottom));
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .tab-bar {
    display: none;
  }
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.tab-item.active {
  color: var(--primary-light);
}

.tab-item.active::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary-light);
  border-radius: var(--radius-full);
}

.tab-icon {
  font-size: 22px;
  line-height: 1;
}

.tab-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ── Glass Card ── */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-base);
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-purple);
}

.glass-card-sm {
  padding: 16px;
  border-radius: var(--radius-md);
}

/* ── Glow Card (Feature Cards) ── */
.glow-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.glow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--glow-color, var(--primary));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.glow-card:hover::before {
  opacity: 1;
}

.glow-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--glow-color, var(--primary)) 30%, transparent);
  box-shadow: 0 8px 40px color-mix(in srgb, var(--glow-color, var(--primary)) 15%, transparent);
}

.glow-card--face { --glow-color: var(--color-face); }
.glow-card--palm { --glow-color: var(--color-palm); }
.glow-card--foot { --glow-color: var(--color-foot); }
.glow-card--saju { --glow-color: var(--color-saju); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 0 30px var(--primary-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 50px var(--primary-glow);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1a1a2e;
  box-shadow: 0 0 30px var(--gold-glow);
}

.btn-ghost {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-ghost:hover {
  border-color: var(--border-glow);
}

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

/* ── Form Inputs ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 16px;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* Select styling */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

/* ── Grid for time select ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* ── Section Headers ── */
.section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Score/Progress Ring ── */
.score-ring {
  position: relative;
  width: 120px;
  height: 120px;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring-bg {
  fill: none;
  stroke: var(--bg-surface);
  stroke-width: 8;
}

.score-ring-fill {
  fill: none;
  stroke: var(--primary-light);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.5s ease;
}

.score-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-value {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.score-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── Camera View ── */
.camera-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
}

@media (min-width: 1025px) {
  .camera-container {
    aspect-ratio: 16 / 9;
  }
}

.camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.camera-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.camera-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
}

.camera-guide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-guide-ring {
  width: 200px;
  height: 260px;
  border: 2px dashed rgba(139, 92, 246, 0.4);
  border-radius: 50%;
  animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

.camera-actions {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.camera-btn-capture {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--primary-light);
  box-shadow: 0 0 30px var(--primary-glow);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-btn-capture:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px var(--primary-glow);
}

.camera-btn-capture:active {
  transform: scale(0.95);
}

.camera-btn-capture-inner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

/* ── Loading Animation ── */
.mystic-loader {
  position: relative;
  width: 120px;
  height: 120px;
}

.mystic-loader .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.mystic-loader .ring:nth-child(1) {
  border-top-color: var(--primary-light);
  animation: spin 1.5s linear infinite;
}

.mystic-loader .ring:nth-child(2) {
  inset: 10px;
  border-right-color: var(--gold);
  animation: spin-reverse 2s linear infinite;
}

.mystic-loader .ring:nth-child(3) {
  inset: 20px;
  border-bottom-color: var(--accent);
  animation: spin 2.5s linear infinite;
}

.mystic-loader .core {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-light), var(--primary-dark));
  box-shadow: 0 0 30px var(--primary-glow);
  animation: pulse-core 1.5s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes pulse-core {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* ── Floating Orb ── */
.orb {
  border-radius: 50%;
  position: absolute;
  filter: blur(1px);
  animation: float-orb var(--duration, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.orb-purple {
  background: radial-gradient(circle at 30% 30%, var(--primary-light), var(--primary-dark));
  box-shadow: 0 0 60px var(--primary-glow);
}

.orb-gold {
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold-dark));
  box-shadow: 0 0 60px var(--gold-glow);
}

@keyframes float-orb {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ── Fade In Animation ── */
.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-left {
  animation: fadeInLeft 0.6s ease forwards;
}

.fade-in-right {
  animation: fadeInRight 0.6s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ── Utility ── */
.text-center { text-align: center; }
.text-gradient-purple {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-cosmic);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ── Result Tag ── */
.result-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── Progress Bar ── */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 1s ease;
}

/* ── Desktop Layout ── */
@media (min-width: 1025px) {
  .desktop-grid {
    display: grid;
    grid-template-columns: 240px 1fr 360px;
    gap: 24px;
    min-height: calc(100vh - 80px);
  }

  .desktop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 0;
  }

  .desktop-main {
    padding: 20px 0;
  }

  .desktop-panel {
    padding: 20px 0;
  }

  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .desktop-only {
    display: none !important;
  }

  .desktop-grid {
    display: flex;
    flex-direction: column;
  }
}

/* ── Landing Hero specific ── */
.hero-title {
  font-size: clamp(3rem, 12vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -3px;
}

@media (min-width: 1025px) {
  .hero-title {
    font-size: clamp(5rem, 8vw, 10rem);
  }
}

/* ── Upload Zone ── */
.upload-zone {
  width: 100%;
  min-height: 200px;
  border: 2px dashed var(--border-glow);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--bg-glass);
}

.upload-zone:hover {
  border-color: var(--primary-light);
  background: rgba(139, 92, 246, 0.05);
}

.upload-zone.dragover {
  border-color: var(--primary-light);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 40px var(--primary-glow);
}

/* ── Material Symbols config ── */
.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 300,
    'GRAD' 0,
    'opsz' 24;
  user-select: none;
}

/* ============================================
   Cyber-Mysticism Design System — Components
   ============================================ */

/* ── Glass Panel — "The Altar" ── */
.glass-panel {
  background: rgba(11, 19, 38, 0.4);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.glass-panel-heavy {
  background: rgba(23, 31, 51, 0.6);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(221, 183, 255, 0.2);
}

/* ── Neon Aura Shadows ── */
.neon-shadow-primary {
  box-shadow: 0 0 25px rgba(221, 183, 255, 0.3);
}

.neon-shadow-secondary {
  box-shadow: 0 0 25px rgba(76, 215, 246, 0.3);
}

.neon-shadow-tertiary {
  box-shadow: 0 0 25px rgba(145, 219, 42, 0.3);
}

/* ── Holographic Text Gradient ── */
.text-gradient-primary {
  background: linear-gradient(to right, var(--primary-dark), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-hero {
  background: linear-gradient(135deg, var(--primary), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Button — "Light-Injected" ── */
.btn-light-injected {
  background: linear-gradient(135deg, var(--inverse-primary), var(--gold));
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
}

.btn-light-injected::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary-container));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-light-injected:hover::before {
  opacity: 1;
}

.btn-light-injected:hover {
  box-shadow: 0 0 30px rgba(221, 183, 255, 0.5);
  transform: translateY(-2px);
}

/* ── Button — Ghost Neon ── */
.btn-ghost-neon {
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: all 0.3s ease;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}

.btn-ghost-neon:hover {
  background: rgba(76, 215, 246, 0.1);
  box-shadow: 0 0 15px rgba(76, 215, 246, 0.2) inset, 0 0 15px rgba(76, 215, 246, 0.2);
}

/* ── Ambient Mesh Background ── */
.ambient-mesh {
  position: fixed;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle at 50% 50%, rgba(132, 43, 210, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(76, 215, 246, 0.1) 0%, transparent 30%);
  filter: blur(60px);
  z-index: 0;
  animation: mesh-drift 20s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes mesh-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 5%) scale(1.05); }
  100% { transform: translate(-5%, -5%) scale(0.95); }
}

/* ── Starfield Background ── */
.starfield {
  background-image:
    radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 40px 70px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 50px 160px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 40px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 130px 80px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 160px 120px, #ffffff, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: moveStars 60s linear infinite;
}

@keyframes moveStars {
  from { background-position: 0 0; }
  to { background-position: -200px -200px; }
}

/* ── Scanning Line Animation ── */
.scanning-line {
  background: linear-gradient(to bottom, transparent, rgba(76, 215, 246, 0.5), transparent);
  animation: scan-sweep 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scan-sweep {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}

/* ── Reticle Pulse ── */
.reticle {
  animation: reticle-pulse 2s infinite;
}

@keyframes reticle-pulse {
  0% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.5; transform: scale(0.95); }
}

/* ── Chip / Tag — Cyber-Mysticism ── */
.cyber-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--surface-container-high);
  border: 1px solid var(--outline-variant);
  color: var(--text-primary);
}

.cyber-chip--primary { color: var(--primary); border-color: rgba(221, 183, 255, 0.3); }
.cyber-chip--secondary { color: var(--gold); border-color: rgba(76, 215, 246, 0.3); }
.cyber-chip--tertiary { color: var(--accent); border-color: rgba(145, 219, 42, 0.3); }
.cyber-chip--error { color: var(--error); border-color: rgba(255, 180, 171, 0.3); }

/* ── Sigil Container — Scanning Shimmer ── */
.sigil-container {
  position: relative;
  overflow: hidden;
}

.sigil-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
  transform: skewX(-20deg);
  animation: sigil-scan 4s infinite;
}

@keyframes sigil-scan {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

/* ── Cyber-Mysticism Sidebar Navigation ── */
.cyber-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  padding: 80px 16px 32px;
  background: rgba(6, 14, 32, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  width: 260px;
  z-index: 40;
}

.cyber-sidebar-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cyber-sidebar-link:hover {
  background: rgba(45, 52, 73, 0.3);
  color: var(--text-primary);
}

.cyber-sidebar-link.active {
  background: rgba(221, 183, 255, 0.15);
  color: var(--primary);
  border-right: 4px solid var(--primary);
  box-shadow: var(--shadow-glow-purple);
}

/* ── Progress Bar — Neon Fill ── */
.progress-bar-fill {
  transition: width 1s ease-in-out;
}

/* ── Hover Card Lift Effect ── */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.5s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-purple);
}

/* ============================================
   HERO SECTION REDESIGN — "The Body Oracle"
   Cinematic Full-Viewport Hero
   ============================================ */

/* ── Cinematic Hero — Full Viewport ── */
.hero-cinematic {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 40px;
}

@media (min-width: 768px) {
  .hero-cinematic {
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: row;
    padding: 0 60px;
    gap: 60px;
  }
}

@media (min-width: 1200px) {
  .hero-cinematic {
    padding: 0 80px;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
  }
}

/* ── Hero Text Column ── */
.hero-text-col {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 600px;
}

@media (min-width: 768px) {
  .hero-text-col {
    flex: 1;
    align-items: flex-start;
    text-align: left;
  }
}

/* ── Hero Visual Column ── */
.hero-visual-col {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
}

@media (max-width: 767px) {
  .hero-visual-col {
    max-width: 340px;
    margin-top: 20px;
    order: -1;
  }
}

/* ── Hero Badge ── */
.hero-badge-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(76, 215, 246, 0.3);
  background: rgba(76, 215, 246, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-badge-new .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 0.4; box-shadow: 0 0 0 0 rgba(76, 215, 246, 0.4); }
  50% { opacity: 1; box-shadow: 0 0 0 6px rgba(76, 215, 246, 0); }
}

/* ── Hero Title ── */
.hero-title-new {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-title-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero Subtitle ── */
.hero-sub-new {
  font-family: var(--font-sans);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
  opacity: 0.85;
}

/* ── Hero CTA Button ── */
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0b1326;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--gold) 100%);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(76, 215, 246, 0.25), 0 4px 20px rgba(0,0,0,0.3);
}

.hero-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold) 0%, var(--primary) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 50px rgba(76, 215, 246, 0.4), 0 8px 30px rgba(0,0,0,0.3);
}

.hero-cta-btn:hover::before {
  opacity: 1;
}

.hero-cta-btn:active {
  transform: scale(0.97);
}

.hero-cta-btn span {
  position: relative;
  z-index: 1;
}

/* Idle pulse animation for CTA */
.hero-cta-btn::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-dark), var(--gold));
  z-index: -1;
  opacity: 0;
  animation: cta-glow-pulse 3s ease-in-out infinite;
}

@keyframes cta-glow-pulse {
  0%, 100% { opacity: 0; transform: scale(1); filter: blur(8px); }
  50% { opacity: 0.5; transform: scale(1.05); filter: blur(12px); }
}

/* ── Hero Social Proof ── */
.hero-proof {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-proof-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
}

/* ── Parallax Layers ── */
.parallax-scene {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1200px;
}

.parallax-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  pointer-events: none;
  transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Layer 0: Stars */
.parallax-layer--stars {
  inset: -20%;
  opacity: 0.4;
}

/* Layer 1: Energy aura */
.parallax-layer--aura {
  inset: -10%;
}

.hero-aura-glow {
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221, 183, 255, 0.2) 0%, rgba(76, 215, 246, 0.1) 40%, transparent 70%);
  filter: blur(40px);
  animation: aura-breathe 6s ease-in-out infinite;
}

@keyframes aura-breathe {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0.9; }
}

/* Layer 2: Rings */
.parallax-layer--rings {}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  pointer-events: none;
}

.hero-ring--outer {
  width: 95%;
  height: 95%;
  border-color: rgba(221, 183, 255, 0.1);
  animation: spin-slow 40s linear infinite;
}

.hero-ring--inner {
  width: 75%;
  height: 75%;
  border-color: rgba(76, 215, 246, 0.12);
  border-style: dashed;
  animation: spin-slow 25s linear infinite reverse;
}

/* Layer 3: Main image */
.parallax-layer--image {
  pointer-events: auto;
}

.hero-image-container {
  position: relative;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(221, 183, 255, 0.25);
  box-shadow: 0 0 40px rgba(221, 183, 255, 0.15), 0 0 80px rgba(76, 215, 246, 0.08);
  background: var(--bg-cosmic);
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  mix-blend-mode: screen;
}

/* Placeholder gradient if no image */
.hero-image-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 40% 40%, rgba(221, 183, 255, 0.3) 0%, rgba(76, 215, 246, 0.15) 40%, var(--bg-cosmic) 70%);
}

/* Layer 4: Particles */
.parallax-layer--particles {
  inset: -10%;
}

/* Layer 5: Reflection overlay */
.parallax-layer--reflection {
  inset: 0;
  pointer-events: none;
}

.hero-reflection {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0) 100%);
  border-radius: 50%;
  mix-blend-mode: overlay;
}

/* ── Scanner Sweep ── */
.scanner-sweep {
  position: absolute;
  width: 100%;
  height: 3px;
  left: 0;
  top: 0;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  box-shadow: 0 0 20px var(--gold), 0 0 60px rgba(76, 215, 246, 0.3);
  opacity: 0.8;
  animation: hero-scan 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  border-radius: 2px;
}

@keyframes hero-scan {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}

.scanner-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: scanner-text-flash 4s ease-in-out infinite;
  white-space: nowrap;
  text-shadow: 0 0 10px var(--gold);
}

@keyframes scanner-text-flash {
  0%, 80%, 100% { opacity: 0; }
  30%, 60% { opacity: 1; }
}

/* ── Scroll Indicator ── */
.scroll-indicator {
  display: none;
}

@media (min-width: 768px) {
  .scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
  }
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-indicator .scroll-arrow {
  animation: scroll-bounce 2s ease-in-out infinite;
  color: var(--primary);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ============================================
   THE THREE REVELATIONS — Service Showcase
   ============================================ */

.revelations-section {
  position: relative;
  z-index: 10;
  padding: 80px 24px;
}

@media (min-width: 768px) {
  .revelations-section {
    padding: 120px 60px;
  }
}

.revelations-header {
  text-align: center;
  margin-bottom: 60px;
}

.revelations-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.revelations-header p {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ── Revelation Card ── */
.revelation-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0;
  position: relative;
}

@media (min-width: 768px) {
  .revelation-card {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }

  .revelation-card--reverse {
    flex-direction: row-reverse;
  }
}

/* Image side */
.revelation-image {
  flex: 1;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.5s ease;
}

.revelation-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--rev-color, var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.revelation-card:hover .revelation-image::before {
  opacity: 1;
}

.revelation-card:hover .revelation-image {
  border-color: color-mix(in srgb, var(--rev-color, var(--primary)) 40%, transparent);
  box-shadow: 0 8px 40px color-mix(in srgb, var(--rev-color, var(--primary)) 15%, transparent);
  transform: scale(1.02);
}

.revelation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.revelation-card:hover .revelation-image img {
  transform: scale(1.05);
}

/* Placeholder for images not yet available */
.revelation-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(23, 31, 51, 0.8) 100%);
  color: var(--text-muted);
}

.revelation-image-placeholder .material-symbols-outlined {
  font-size: 48px;
  color: var(--rev-color, var(--primary));
  opacity: 0.6;
}

/* Text side */
.revelation-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.revelation-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rev-color, var(--primary));
  width: fit-content;
}

.revelation-tag::before {
  content: '';
  width: 8px;
  height: 2px;
  background: var(--rev-color, var(--primary));
  border-radius: 1px;
}

.revelation-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

.revelation-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 450px;
}

.revelation-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rev-color, var(--primary));
  cursor: pointer;
  transition: all 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  width: fit-content;
}

.revelation-cta:hover {
  gap: 14px;
}

.revelation-cta .material-symbols-outlined {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.revelation-cta:hover .material-symbols-outlined {
  transform: translateX(6px);
}

/* Color variants */
.revelation-card--palm { --rev-color: #4cd7f6; }
.revelation-card--face { --rev-color: #ddb7ff; }
.revelation-card--foot { --rev-color: #91db2a; }

/* ============================================
   LIVE PROOF BAR
   ============================================ */

.proof-bar {
  position: relative;
  z-index: 10;
  padding: 40px 24px;
  border-top: 1px solid rgba(221, 183, 255, 0.1);
  border-bottom: 1px solid rgba(221, 183, 255, 0.1);
  background: rgba(11, 19, 38, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.proof-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.proof-bar-live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.proof-bar-live .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.proof-bar-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 600px) {
  .proof-bar-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.proof-stat {
  text-align: center;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(23, 31, 51, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.proof-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.proof-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================
   THE CONVERSION ALTAR
   ============================================ */

.altar-section {
  position: relative;
  z-index: 10;
  padding: 80px 24px;
}

@media (min-width: 768px) {
  .altar-section {
    padding: 120px 60px;
  }
}

.altar-container {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(23, 31, 51, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(221, 183, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .altar-container {
    padding: 60px;
    display: flex;
    gap: 60px;
    align-items: center;
  }
}

/* Background glow */
.altar-container::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(221, 183, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.altar-form-side {
  flex: 1;
  max-width: 440px;
}

.altar-teaser-side {
  flex: 1;
}

.altar-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.altar-sub {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.altar-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.altar-form label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
  display: block;
}

.altar-form input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(11, 19, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 16px;
  font-family: var(--font-sans);
  transition: all 0.3s ease;
  outline: none;
}

.altar-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(221, 183, 255, 0.15);
}

.altar-form input::placeholder {
  color: var(--text-muted);
}

/* Teaser locked items */
.altar-teaser-card {
  background: rgba(11, 19, 38, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
}

@media (max-width: 767px) {
  .altar-teaser-card {
    margin-top: 32px;
  }
}

.altar-teaser-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-secondary);
}

.altar-teaser-item:last-child {
  border-bottom: none;
}

.altar-teaser-item .material-symbols-outlined {
  font-size: 18px;
  color: var(--primary);
  opacity: 0.6;
}

.altar-teaser-item .teaser-value {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ============================================
   SCROLL REVEAL ANIMATION SYSTEM
   ============================================ */

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal--left {
  transform: translateX(-40px);
}

.scroll-reveal--right {
  transform: translateX(40px);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger delays */
.scroll-reveal[data-delay="100"] { transition-delay: 100ms; }
.scroll-reveal[data-delay="200"] { transition-delay: 200ms; }
.scroll-reveal[data-delay="300"] { transition-delay: 300ms; }
.scroll-reveal[data-delay="400"] { transition-delay: 400ms; }

/* ============================================
   ENTRANCE SEQUENCE (Hero Load)
   ============================================ */

.entrance-hidden {
  opacity: 0;
  transform: translateY(30px);
}

.entrance-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.entrance-scale {
  opacity: 0;
  transform: scale(0.85);
}

.entrance-scale.entrance-visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Floating Particles ── */
.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: particle-float var(--dur, 5s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes particle-float {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
  50% { opacity: var(--max-op, 0.5); transform: translateY(var(--drift, -15px)) scale(1); }
}
