/* ═══════════════════════════════════════════════════════════════════════
   HERO FIXES & IMPROVEMENTS (BATCH: 50 Improvements)
   ═══════════════════════════════════════════════════════════════════════ */

/* =========================================================================
   PART 1: UI - Depth & Light (1-10)
   ========================================================================= */

/* I1: Enhance .hero-lobby background gradient */
.hero-lobby {
  background: radial-gradient(100% 120% at 50% 10%, rgba(255, 255, 255, 0.03), transparent 70%);
}
[data-theme="light"] .hero-lobby {
  background: radial-gradient(100% 120% at 50% 10%, rgba(255, 255, 255, 0.5), transparent 70%);
}

/* I2: Add animated grain texture to hero */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.02"/%3E%3C/svg%3E');
  animation: grain-shift 8s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1%, 1%); }
  50% { transform: translate(1%, -1%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* I3: Improve .hero-wordmark glow */
.hero-wordmark { text-shadow: 0 0 100px rgba(232,100,26,0.22), 0 2px 70px rgba(0,0,0,0.5), 0 -2px 10px rgba(255,255,255,0.05); }

/* I4: Refine .hero-badge glass effect */
.hero-badge { box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0,0,0,0.4); }

/* I5: Add layered shadows to .hero-reel-card */
.hero-reel-card { box-shadow: 0 16px 44px -18px rgba(0, 0, 0, 0.8), 0 8px 16px -8px rgba(0, 0, 0, 0.6); }

/* I6: Polish the .waterline divider */
.waterline { filter: drop-shadow(0 0 4px rgba(232, 100, 26, 0.4)); height: 2px; }

/* I7: Add a gradient border to .demo-panel */
.demo-panel {
  position: relative;
}
.demo-panel::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(232, 100, 26, 0.3), transparent 60%);
  opacity: 0.5;
}

/* I8: Enhance the .river junction glow */
.river .junction.bright { filter: drop-shadow(0 0 12px rgba(255, 179, 71, 0.9)); }

/* I9: Improve the .dreamwall contrast */
.dreamwall { box-shadow: inset 0 0 40px rgba(0,0,0,0.8); }

/* I10: Polish the .split__seam light */
.split__seam { filter: drop-shadow(0 0 8px rgba(232,100,26,0.5)); width: 2px; }


/* =========================================================================
   PART 2: Typography & Space (11-20)
   ========================================================================= */

/* I11: Adjust line height for .hero-value */
.hero-value { line-height: 1.75; letter-spacing: 0.015em; }

/* I12: Refine kerning on .hero-tag */
.hero-tag { letter-spacing: 0.3em; font-weight: 500; }

/* I13: Add responsive typography clamp to .hero-greet */
.hero-greet { font-size: clamp(13px, 2vw, 15px); }

/* I14: Increase padding on .demo-line */
.demo-line { padding: 14px 20px; }

/* I15: Refine the .live-counter text alignment */
.live-counter { align-items: baseline; }
.live-counter .dot { transform: translateY(-1px); }

/* I16: Add subtle letter-spacing transitions on hover for cue */
.hero-scroll-cue { transition: color 0.3s, letter-spacing 0.3s; }
.hero-scroll-cue:hover { letter-spacing: 0.35em; }

/* I17: Improve .faq-item typography */
.faq-item summary { line-height: 1.4; padding-bottom: 12px; }

/* I18: Balance the .hero-cta spacing */
.hero-cta { gap: 18px; margin-top: 10px; }

/* I19: Optimize .hero-reels-title line-clamp */
.hero-reel-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* I20: Add semantic <mark> styling for highlights */
mark { background: rgba(232, 100, 26, 0.2); color: inherit; border-radius: 4px; padding: 0 4px; }


/* =========================================================================
   PART 3: Interactions (21-30)
   ========================================================================= */

/* I21: Magnetic hover handled in JS */
/* I22: Parallax follow handled in JS */

/* I23: Make .hero-reel-card tilt on hover */
.hero-reel-card { transform-style: preserve-3d; perspective: 1000px; }
.hero-reel-card:hover { transform: translateY(-6px) scale(1.02); }

/* I24: Add a ripple effect to .hero-badge */
.hero-badge:active { transform: scale(0.96); }

/* I25: Scroll-driven reveal handled in JS */
/* I26: Type-writer effect handled in JS */
/* I27: Mouse proximity on scroll cue handled in JS */
/* I28: Interactive hover state to .orb */
.orb:hover { transform: translateY(-5px); border-color: rgba(232, 100, 26, 0.4); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.orb:hover svg { filter: drop-shadow(0 0 16px rgba(232,100,26,0.6)); opacity: 1; }

/* I29: Drag-to-scroll indicator handled in JS */
/* I30: Waterline react to scroll handled in JS */


/* =========================================================================
   PART 4: Animations (31-40)
   ========================================================================= */

/* I31: Smooth the .hero-arrive stagger */
.hero-arrive { transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }

/* I32: Add a continuous floating animation to .sleepbeing */
@keyframes continuous-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-6px); }
}
.sleepbeing { animation: continuous-float 6s ease-in-out infinite; }

/* I33: Animate the .split__half border */
.split__half { transition: box-shadow 0.5s; }
.split__half:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); }

/* I34: Add a breathing glow to .hero-badge__dot */
@keyframes dot-breathe-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(232,100,26,0.5); }
  50% { box-shadow: 0 0 16px rgba(232,100,26,0.9); }
}
.hero-badge__dot { animation: dot-breathe-glow 3s infinite; }

/* I35: Refine the .caret blink curve */
.caret { animation: caret-blink 1s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* I36: Sequential reveal for .orbs handled in JS */

/* I37: Smooth the .hero-reel-sound-btn transition */
.hero-reel-sound-btn { transition: background 0.3s, transform 0.2s, color 0.3s; }
.hero-reel-sound-btn:hover { transform: scale(1.1); color: #fff; }

/* I38: Particle trail handled in JS */
/* I39: Staggered app-card pulse handled in JS */

/* I40: Ambient light shift tied to time of day handled in JS */


/* =========================================================================
   PART 5: Accessibility & Perf (41-50)
   ========================================================================= */

/* I41: Add aria-hidden to decorative SVGs (JS/HTML) */
/* I42: Ensure video captions/alt (HTML) */
/* I43: content-visibility on lower sections */
.sec-panel, .split { content-visibility: auto; contain-intrinsic-size: 500px; }

/* I44: Focus-visible rings to reels */
.hero-reel-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

/* I45: Pause videos out of view handled in JS */
/* I46: IntersectionObserver triggers handled in JS */

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

/* I48: Optimize SVG gradients */
/* I49: Prefetch video assets on hover handled in JS */

/* I50: Add tabindex="0" to interactive cards */
.app-card[tabindex="0"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* =========================================================================
   PART 6: HERO BATCH EXTENSION (H51–H80 — 30 Improvements)
   ========================================================================= */

/* H51: Iridescent Wordmark Horizon Glint */
.hero-wordmark {
  background: linear-gradient(135deg, #ffffff 0%, #ffeedd 35%, rgba(255, 180, 100, 0.95) 50%, #ffffff 65%, #ffd4aa 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: wordmark-glint 12s ease-in-out infinite alternate;
}
@keyframes wordmark-glint {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* H52: Liquid Glass Droplet Caustic Edge */
.btn-droplet {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10px 24px -6px rgba(232, 100, 26, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.btn-droplet::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.22), transparent 60%);
  pointer-events: none;
  opacity: 0.8;
  transform: rotate(25deg);
}

/* H53: Hero Eyebrow Ember Halo */
.hero-badge {
  position: relative;
  border: 1px solid rgba(232, 100, 26, 0.35) !important;
  box-shadow:
    0 0 16px -4px rgba(232, 100, 26, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* H54: Volumetric Water-floor Radial Vignette */
#water-ground {
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, black 50%, transparent 95%);
  mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, black 50%, transparent 95%);
}

/* H55: Obsidian Video Frame Chamfer */
.hero-reel-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.8);
  contain: paint layout;
}

/* H56: Sleep Being Silhouette Radial Hearth */
.sleepbeing-wrap {
  position: relative;
}
.sleepbeing-wrap::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 240px; height: 240px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232, 100, 26, 0.18) 0%, rgba(232, 100, 26, 0.04) 45%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  animation: hearth-breathe 5s ease-in-out infinite alternate;
}
@keyframes hearth-breathe {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* H57: Monologue Terminal Caret Bloom */
.demo-line--sys .caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent, #E8641A);
  box-shadow: 0 0 10px var(--accent, #E8641A);
  margin-left: 4px;
  vertical-align: middle;
}

/* H58: Fluid River Junction Light Seam */
.split__seam {
  background: linear-gradient(18deg, transparent, rgba(232, 100, 26, 0.7) 40%, rgba(255, 170, 90, 0.9) 60%, transparent) !important;
  box-shadow: 0 0 14px rgba(232, 100, 26, 0.6);
}

/* H59: Muted Obsidian Card Sheen */
.app-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}
.app-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(232, 100, 26, 0.4);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8), 0 0 20px -6px rgba(232, 100, 26, 0.3);
}

/* H63: Animated Micro-equalizer Audio Waveform */
.reel-audio-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  margin-left: 6px;
}
.reel-audio-bar {
  width: 2px;
  background: var(--accent, #E8641A);
  border-radius: 1px;
  animation: reel-bar-bounce 0.7s ease-in-out infinite alternate;
}
.reel-audio-bar:nth-child(2) { animation-delay: 0.18s; }
.reel-audio-bar:nth-child(3) { animation-delay: 0.36s; }
@keyframes reel-bar-bounce {
  0% { height: 2px; }
  100% { height: 12px; }
}

/* H64: Live Being Pulse Counter */
.live-counter .dot {
  animation: counter-heartbeat 1.8s ease-in-out infinite;
}
@keyframes counter-heartbeat {
  0%, 100% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 6px var(--accent, #E8641A); }
  15% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--accent, #E8641A); }
  30% { transform: scale(1); opacity: 0.8; }
}

/* H69: FAQ CSS Grid Height Spring Accordion */
.faq-item details {
  transition: background 0.2s ease, border-color 0.2s ease;
}
.faq-item details[open] {
  border-color: rgba(232, 100, 26, 0.35);
  background: rgba(255, 255, 255, 0.03);
}

/* H70: Tactile Press Feedback */
.btn-droplet:active, .hero-reel-sound-btn:active {
  transform: scale(0.96) !important;
}

/* H74: Zero Layout Shift Container Aspect Ratios */
.hero-reel-card video {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

/* H76: Containment on Demo Terminal */
.demo-panel {
  contain: layout style;
}

/* H80: Reduced Motion Absolute Override */
@media (prefers-reduced-motion: reduce) {
  .hero-wordmark, .sleepbeing-wrap::before, .live-counter .dot, .reel-audio-bar {
    animation: none !important;
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════



