/* Cinematic Scan CSS */
:root {
  --bg-pure-black: #050508;
  --bg-card: rgba(15, 15, 20, 0.6);
  --accent: #ffffff;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-pure-black);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  overflow: auto;  /* Landing page scrollable; locked to hidden via .lm-cinematic */
  height: auto;
  width: 100vw;
  min-height: 100vh;
}

/* Background Orbs */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.orb-1 {
  background: rgba(255, 68, 68, 0.15); /* Red */
  width: 50vw;
  height: 50vw;
  top: -20%;
  left: -20%;
  animation: drift 20s infinite alternate ease-in-out;
}
.orb-2 {
  background: rgba(255, 204, 0, 0.15); /* Yellow */
  width: 40vw;
  height: 40vw;
  bottom: -10%;
  right: -10%;
  animation: driftReverse 25s infinite alternate ease-in-out;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10%, 10%) scale(1.1); }
}
@keyframes driftReverse {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-10%, -10%) scale(1.2); }
}

/* Font Families */
.font-mont { font-family: 'Montserrat', sans-serif; }
.font-playfair { font-family: 'Playfair Display', serif; }
.font-space-grotesk { font-family: 'Space Grotesk', sans-serif; }
.font-inter { font-family: 'Inter', sans-serif; }

.bg-pure-black { background-color: var(--bg-pure-black); }
.text-accent { color: var(--accent); }

/* Layout Utils */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.flex-col { flex-direction: column; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.fixed { position: fixed; }

/* Scene Layer — fixed container that holds all scenes above the landing page */
#scene-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5;
  pointer-events: none;    /* allow scroll-through to landing when no scene is active */
}
#scene-layer.cinematic-active {
  pointer-events: auto;    /* block interaction with landing during cinematic flow */
}

/* Scenes */
.scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  visibility: hidden;
  opacity: 0;
  z-index: 10;
  background: #050508;     /* solid bg so landing content never bleeds through */
}
.scene.active-scene {
  visibility: visible;
  opacity: 1;
  z-index: 20;
}

/* BEGIN button must be clickable even when scene-layer has pointer-events:none */
#begin-btn {
  pointer-events: auto;
}

/* When cinematic flow is active, all scenes get pointer-events */
#scene-layer.cinematic-active .scene.active-scene {
  pointer-events: auto;
}

/* Initial States for Stagger/GSAP */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
}

/* Controls */
.cinematic-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 1rem 3rem;
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.4s ease;
}
.cinematic-btn:hover {
  border-color: rgba(255, 255, 255, 0.8);
}
.hover-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  border-radius: 50%;
  pointer-events: none;
}
.cinematic-btn:hover .hover-glow {
  width: 200px;
  height: 200px;
}

/* Glass & Curves */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.curved {
  border-radius: 2rem;
}
.soft-shadow {
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Inputs */
.input-wrapper {
  width: 100%;
}
.cinematic-input {
  background: transparent;
  border: none;
  color: white;
  width: 100%;
  resize: none;
  outline: none;
  caret-color: white;
}
.cinematic-input::placeholder { color: transparent; }
.bottom-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 10%;
  height: 1px;
  background-color: rgba(255,255,255,0.2);
  transition: width 0.4s ease, background-color 0.4s ease;
}
.cinematic-input:focus + .bottom-line {
  width: 100%;
  background-color: rgba(255,255,255,0.8);
}

/* Form controls */
.voice-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}
.voice-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}
.voice-ring {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.voice-btn.recording .voice-ring {
  animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.voice-btn.recording i {
  color: #ffffff;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Loading Scene */
.glow-text {
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}
.glow-progress {
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Results Scene */
.results-scene {
  background-color: transparent; /* Changed from pure black to allow global orbs to show */
  height: 100vh;
  z-index: 5;
  display: block;
  visibility: visible;
  top: 100vh;
  opacity: 1;
}

.top-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
}
.top-btn:hover {
  border-color: white;
  color: white;
}

.works-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); }
.works-card h4 { color: #ffffff; }
.works-card i { color: rgba(255,255,255,0.2); }

.lacks-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); }
.lacks-card h4 { color: #ffffff; }
.lacks-card i { color: rgba(255,255,255,0.2); }
.lacks-card > div { background: rgba(255,255,255,0.1); }
.lacks-card > div span { color: #e4e4e7; }
.tracking-bar { opacity: 0.8; }

.doc-pill {
  background: rgba(25, 25, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  color: #d4d4d8;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: all 0.3s;
  text-decoration: none;
}
.doc-pill:hover {
  background: white;
  color: black;
}

.share-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
  cursor: pointer;
}
.btn-ghost {
  background: transparent;
  color: white;
  border: none;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Glass Header (for scroll visibility) */
.glass-header {
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Themed Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 2px solid var(--bg-pure-black);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Tailwind-ish utilities */
.text-7xl { font-size: 4.5rem; }
.text-8xl { font-size: 6rem; }
.text-9xl { font-size: 8rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }
.mt-6 { margin-top: 1.5rem; }
.p-8 { padding: 2rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-40 { padding-bottom: 10rem; }
.pt-32 { padding-top: 8rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.gap-8 { gap: 2rem; }
.gap-6 { gap: 1.5rem; }
.gap-4 { gap: 1rem; }
.max-w-3xl { max-width: 48rem; margin: 0 auto; }
.max-w-4xl { max-width: 56rem; margin: 0 auto; }
.max-w-7xl { max-width: 80rem; margin: 0 auto; }
.text-center { text-align: center; }
.opacity-0 { opacity: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-extrabold { font-weight: 800; }
.font-medium { font-weight: 500; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-wide { letter-spacing: 0.05em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.uppercase { text-transform: uppercase; }
.leading-tight { line-height: 1.1;}
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 1024px) {
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:text-8xl { font-size: 6rem; }
  .md\:text-9xl { font-size: 8rem; }
  .md\:text-7xl { font-size: 4.5rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-6xl { font-size: 3.75rem; }
}
.col-span-12 { grid-column: span 12 / span 12; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-4 { width: 1rem; } .h-4 { height: 1rem; }
.w-5 { width: 1.25rem; } .h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; } .h-6 { height: 1.5rem; }
.w-10 { width: 2.5rem; } .h-10 { height: 2.5rem; }
.w-24 { width: 6rem; } .h-24 { height: 6rem; }
.rounded-full { border-radius: 9999px; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.shrink-0 { flex-shrink: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.top-0 { top: 0; }
.-top-4 { top: -1rem; }
.-right-4 { right: -1rem; }
.top-full { top: 100%; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.bottom-12 { bottom: 3rem; }
.translate-y-4 { transform: translateY(1rem); }
.translate-y-6 { transform: translateY(1.5rem); }
.transition-colors { transition-property: color, background-color, border-color, fill, stroke; transition-duration: 300ms; }
.pointer-events-none { pointer-events: none; }
.hidden { display: none; }
.border { border-width: 1px; }
.border-white { border-color: white; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-gray-800 { border-color: rgba(255,255,255,0.1); }
.border-gray-600 { border-color: rgba(255,255,255,0.2); }
.border-gray-700 { border-color: rgba(255,255,255,0.15); }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.bg-white { background-color: white; }
.bg-black { background-color: black; }
.bg-black\/50 { background-color: rgba(0,0,0,0.5); }
.bg-gray-800 { background-color: rgba(255,255,255,0.1); }
.bg-gray-900\/50 { background-color: rgba(255,255,255,0.05); }
.bg-gray-950 { background-color: rgba(0,0,0,0.8); }
.bg-white\/5 { background-color: rgba(255,255,255,0.05); }
.bg-white\/80 { background-color: rgba(255,255,255,0.8); }
.bg-white\/60 { background-color: rgba(255,255,255,0.6); }
.bg-white\/40 { background-color: rgba(255,255,255,0.4); }
.text-black { color: black; }
.text-gray-300 { color: rgba(255,255,255,0.8); }
.text-gray-400 { color: rgba(255,255,255,0.6); }
.text-gray-500 { color: rgba(255,255,255,0.4); }
.hover\:bg-white:hover { background-color: white; }
.hover\:text-black:hover { color: black; }
.hover\:text-gray-300:hover { color: rgba(255,255,255,0.8); }
.hover\:bg-gray-800:hover { background-color: rgba(255,255,255,0.1); }
.hover\:bg-gray-800\/80:hover { background-color: rgba(255,255,255,0.08); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-pure-black { --tw-gradient-from: #050508; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(5,5,8,0)); }
.via-pure-black\/90 { --tw-gradient-stops: var(--tw-gradient-from), rgba(5,5,8,0.9), var(--tw-gradient-to, rgba(5,5,8,0)); }
.to-transparent { --tw-gradient-to: rgba(0,0,0,0); }
.from-white\/5 { --tw-gradient-from: rgba(255,255,255,0.05); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255,255,255,0)); }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pointer-events-auto { pointer-events: auto; }

/* Missing utilities for results page */
.border-l-4 { border-left-width: 4px; }
.border-l-red-500 { border-left-color: #ef4444; }
.text-mint { color: #00FF87; }
.border-mint\/20 { border-color: rgba(0,255,135,0.2); }
.from-mint\/10 { --tw-gradient-from: rgba(0,255,135,0.1); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0,255,135,0)); }
.min-h-\[300px\] { min-height: 300px; }
.shadow-\[0_0_20px_10px_rgba\(0\,0\,0\,0\.8\)\] { box-shadow: 0 0 20px 10px rgba(0,0,0,0.8); }
.bg-black\/80 { background-color: rgba(0,0,0,0.8); }
.text-green-400 { color: #4ade80; }
.bg-green-400  { background-color: #4ade80; }
.scale-95  { transform: scale(0.95); }
.scale-1   { transform: scale(1); }
.gap-2     { gap: 0.5rem; }
.gap-12    { gap: 3rem; }
.origin-bottom { transform-origin: bottom; }
.overflow-visible { overflow: visible; }
.border-red-500 { border-color: #ef4444; }
.sm\:inline-block { display: inline-block; }
.wrap { flex-wrap: wrap; }
@media (min-width: 640px) { .sm\:inline-block { display: inline-block; } }

@keyframes spin { 100% { transform: rotate(360deg); } }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
