/**
 * New Media Animation (NMA) — Production Hero Implementation
 * Architecture:
 * - BACKGROUND ARTWORK (100% Uncut artwork foundation, zero obscuring overlays)
 * - REAL HTML CONTENT (Headline, Tagline, Description, CTAs - 100% transparent directly on background)
 * - REAL STATS CARDS (Subtle glassy cards)
 * - REAL CATEGORY RAIL (Sleek Glassmorphic Ribbon Track at bottom)
 * - DUAL THEME (Light Mode & Dark Mode)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Permanent+Marker&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* =====================================================================
   DESIGN TOKENS (LIGHT & DARK THEMES)
   ===================================================================== */
:root,
html[data-theme="light"] {
  --primary: #FFC928;
  --primary-hover: #EAB308;
  --secondary: #E6392F;
  --secondary-hover: #DC2626;
  
  --hero-bg-fallback: #FFFFFF;
  --hero-text: #0F172A;
  --hero-text-muted: #334155;
  --hero-eyebrow: #0F172A;
  
  /* Category Ribbon: Transparent rail, glossy cards */
  --hero-ribbon-bg: transparent;
  --hero-ribbon-border: transparent;
  --hero-ribbon-shadow: none;
  
  --hero-card-bg: rgba(255, 255, 255, 0.95);
  --hero-card-border: #E2E8F0;
  --hero-card-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --hero-card-hover-border: #FFC928;
  --hero-card-hover-bg: #FFFFFF;
  --hero-card-text: #0F172A;
  --hero-card-subtext: #475569;
  
  /* High-Contrast Stats Cards */
  --hero-stat-bg: rgba(255, 255, 255, 0.95);
  --hero-stat-border: #E2E8F0;
  --hero-stat-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  
  --hero-arrow-bg: rgba(255, 255, 255, 0.96);
  --hero-arrow-border: #CBD5E1;
  --hero-arrow-text: #0F172A;
  
  --hero-video-btn-bg: rgba(255, 255, 255, 0.96);
  --hero-video-btn-border: #CBD5E1;
  --hero-video-btn-text: #0F172A;
  --hero-play-circle-bg: #0F172A;
  --hero-play-circle-color: #FFFFFF;
}

html[data-theme="dark"] {
  --primary: #FFC928;
  --primary-hover: #FBBF24;
  --secondary: #E6392F;
  --secondary-hover: #EF4444;
  
  --hero-bg-fallback: #090D16;
  --hero-text: #FFFFFF;
  --hero-text-muted: #E2E8F0;
  --hero-eyebrow: #F8FAFC;
  
  /* Category Ribbon: Transparent rail, glossy cards */
  --hero-ribbon-bg: transparent;
  --hero-ribbon-border: transparent;
  --hero-ribbon-shadow: none;
  
  --hero-card-bg: rgba(17, 24, 39, 0.92);
  --hero-card-border: rgba(255, 255, 255, 0.16);
  --hero-card-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  --hero-card-hover-border: #FFC928;
  --hero-card-hover-bg: rgba(26, 34, 53, 0.96);
  --hero-card-text: #FFFFFF;
  --hero-card-subtext: #94A3B8;
  
  /* High-Contrast Stats Cards */
  --hero-stat-bg: rgba(17, 24, 39, 0.92);
  --hero-stat-border: rgba(255, 255, 255, 0.16);
  --hero-stat-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  
  --hero-arrow-bg: rgba(17, 24, 39, 0.92);
  --hero-arrow-border: rgba(255, 255, 255, 0.2);
  --hero-arrow-text: #FFFFFF;
  
  --hero-video-btn-bg: rgba(17, 24, 39, 0.92);
  --hero-video-btn-border: rgba(255, 255, 255, 0.22);
  --hero-video-btn-text: #FFFFFF;
  --hero-play-circle-bg: #FFC928;
  --hero-play-circle-color: #0F172A;
}

/* =====================================================================
   HERO MASTER CONTAINER & BACKGROUND ARTWORK LAYER
   ===================================================================== */
.hero-master {
  position: relative;
  width: 100%;
  min-height: 780px;
  background-color: var(--hero-bg-fallback);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.3s ease;
}

/* The Background Artwork Layer (Fallback / Default Native Resolution) */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: right center;
  z-index: 1;
  pointer-events: none;
  transform: none !important;
  will-change: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transition: background-image 0.3s ease;
}

html[data-theme="light"] .hero-bg-layer {
  background-image: url('../images/hero/hero-bg-light.webp');
}

html[data-theme="dark"] .hero-bg-layer {
  background-image: url('../images/hero/hero-bg-dark.webp');
}

/* Directional Intelligent Scrim:
   Covers text and UI area on the left (0% to 55%) for maximum text & UI contrast against bright windows / daylight art,
   fades out completely to 100% transparent before reaching the 3D character (75% to 100%) on the right.
   Also provides soft bottom gradient to ground the category rail. */
.hero-adaptive-scrim,
.hero-overlay-layer {
  display: none !important;
}

.hero-bg-showcase-viewport::after,
.hero-bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.86) 28%,
      rgba(255, 255, 255, 0.58) 48%,
      rgba(255, 255, 255, 0.16) 66%,
      rgba(255, 255, 255, 0) 80%
    ),
    linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.62) 12%,
      rgba(255, 255, 255, 0) 24%
    );
  transition: background 0.3s ease;
}

html[data-theme="dark"] .hero-bg-showcase-viewport::after,
html[data-theme="dark"] .hero-bg-layer::after {
  background:
    linear-gradient(
      90deg,
      rgba(8, 12, 22, 0.96) 0%,
      rgba(8, 12, 22, 0.88) 28%,
      rgba(8, 12, 22, 0.6) 48%,
      rgba(8, 12, 22, 0.16) 66%,
      rgba(8, 12, 22, 0) 80%
    ),
    linear-gradient(
      0deg,
      rgba(8, 12, 22, 0.96) 0%,
      rgba(8, 12, 22, 0.68) 12%,
      rgba(8, 12, 22, 0) 24%
    );
}

/* =====================================================================
   HERO FULL-SCREEN 1-BY-1 SLIDESHOW SLIDER (1 IMAGE/VIDEO AT A TIME)
   ===================================================================== */
.hero-bg-showcase-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: auto;
}

/* Individual Full-Screen Slide (Only ONE active and on screen at a time) */
.hero-showcase-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease;
  will-change: transform, opacity;
  overflow: hidden;
  display: block;
}

/* Active Slide: fully centered and filling screen */
.hero-showcase-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

/* Slide leaving smoothly to the left */
.hero-showcase-slide.leaving-prev {
  opacity: 0;
  transform: translateX(-100%);
  z-index: 1;
}

/* Slide leaving smoothly to the right (reverse direction) */
.hero-showcase-slide.leaving-next {
  opacity: 0;
  transform: translateX(100%);
  z-index: 1;
}

/* Slide Media (Image or Video) */
.hero-showcase-slide video,
.hero-showcase-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

/* Theme-Specific Slide Filtering */
html[data-theme="dark"] .slide-theme-light {
  display: none !important;
}

html[data-theme="light"] .slide-theme-dark {
  display: none !important;
}

.slide-theme-both {
  display: block !important;
}

/* Floating Course Tag Pill pinned on active slide */
.hero-slide-tag-pill {
  position: absolute;
  bottom: 122px;
  right: 88px;
  z-index: 4;
  pointer-events: auto;
}

.hero-slide-tag-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .hero-slide-tag-link {
  background: rgba(17, 24, 39, 0.94);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .hero-slide-tag-link,
:root:not([data-theme="dark"]) .hero-slide-tag-link {
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #CBD5E1;
  color: #0F172A !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.hero-slide-tag-link:hover {
  transform: translateY(-2px);
  border-color: #e50914;
}

.hero-slide-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e50914;
  box-shadow: 0 0 8px rgba(229, 9, 20, 0.6);
  flex-shrink: 0;
}

.hero-slide-tag-cta {
  color: #e50914;
  font-weight: 800;
}

/* Slider Controls: Subtle indicator dots & navigation arrows */
.hero-slideshow-controls {
  position: absolute;
  bottom: 78px;
  right: 88px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.hero-slideshow-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-slide-dot {
  width: 22px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="light"] .hero-slide-dot {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-slide-dot.active {
  width: 44px;
  background: #e50914 !important;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.8);
}

.hero-slider-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-slider-arrow:hover {
  background: #e50914;
  border-color: #e50914;
  transform: scale(1.08);
}

/* =====================================================================
   HIGH-CONTRAST EDITORIAL TYPOGRAPHY & PILL BADGES
   ===================================================================== */
/* Day (Light / White) Mode: Razor-sharp deep dark typography with solid contrast */
:root:not([data-theme="dark"]) .hero-dynamic-title,
:root:not([data-theme="dark"]) .hero-title-text,
:root:not([data-theme="dark"]) #heroDynamicTitle,
:root:not([data-theme="dark"]) #heroTitleText,
html:not([data-theme="dark"]) .hero-dynamic-title,
html:not([data-theme="dark"]) .hero-title-text,
html:not([data-theme="dark"]) #heroDynamicTitle,
html:not([data-theme="dark"]) #heroTitleText,
html[data-theme="light"] .hero-dynamic-title,
html[data-theme="light"] .hero-title-text,
html[data-theme="light"] #heroDynamicTitle,
html[data-theme="light"] #heroTitleText,
html[data-theme="light"] .title-turn-your,
html[data-theme="light"] .word-into,
html[data-theme="light"] .title-reality {
  color: #0A0E1A !important;
  paint-order: normal;
  -webkit-text-stroke: 0 !important;
  font-weight: 900 !important;
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.95),
    0 2px 6px rgba(0, 0, 0, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.12) !important;
  filter: none !important;
  -webkit-font-smoothing: antialiased;
}

html[data-theme="light"] .brush-word {
  color: #E6392F !important;
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.9),
    0 2px 6px rgba(230, 57, 47, 0.35) !important;
}

/* Dark (Night) Mode: Luminous pure white typography with cinematic grounding shadow */
html[data-theme="dark"] .hero-dynamic-title,
html[data-theme="dark"] .hero-title-text,
html[data-theme="dark"] #heroDynamicTitle,
html[data-theme="dark"] #heroTitleText,
html[data-theme="dark"] .title-turn-your,
html[data-theme="dark"] .word-into,
html[data-theme="dark"] .title-reality {
  color: #FFFFFF !important;
  -webkit-text-stroke: 0 !important;
  font-weight: 900 !important;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.95),
    0 4px 14px rgba(0, 0, 0, 0.85),
    0 8px 30px rgba(0, 0, 0, 0.95) !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
}

html[data-theme="dark"] .brush-word {
  color: #FFC928 !important;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.95),
    0 4px 14px rgba(245, 158, 11, 0.6) !important;
}

/* Eyebrow Pill Badge: High contrast, polished rounded capsule */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

:root:not([data-theme="dark"]) .hero-eyebrow,
html[data-theme="light"] .hero-eyebrow {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1.5px solid #FFC928 !important;
  color: #0F172A !important;
  text-shadow: none !important;
}

html[data-theme="dark"] .hero-eyebrow {
  background: rgba(17, 24, 39, 0.92) !important;
  border: 1.5px solid rgba(255, 201, 40, 0.7) !important;
  color: #FFFFFF !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

/* 3D Depth for Tagline */
.hero-tagline span {
  font-weight: 900 !important;
}
:root:not([data-theme="dark"]) .hero-tagline span,
html:not([data-theme="dark"]) .hero-tagline span,
html[data-theme="light"] .hero-tagline span {
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}
:root:not([data-theme="dark"]) .hero-tagline .tag-create,
html[data-theme="light"] .hero-tagline .tag-create {
  color: #D97706 !important; /* Deep rich amber for light mode */
}
html[data-theme="dark"] .hero-tagline span {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 4px 10px rgba(0, 0, 0, 0.9) !important;
}

/* 3D Depth for Description */
.hero-description,
.hero-dynamic-desc {
  font-weight: 600 !important;
}
:root:not([data-theme="dark"]) .hero-description,
:root:not([data-theme="dark"]) .hero-dynamic-desc,
html[data-theme="light"] .hero-description,
html[data-theme="light"] .hero-dynamic-desc {
  color: #1E293B !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9) !important;
}
html[data-theme="dark"] .hero-description,
html[data-theme="dark"] .hero-dynamic-desc {
  color: #F1F5F9 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 4px 12px rgba(0, 0, 0, 0.9) !important;
}

/* Overlay Layer: Disabled / None so background artwork is NEVER blocked! */
.hero-overlay-layer {
  display: none !important;
}

/* =====================================================================
   HERO CONTENT CONTAINER (REAL HTML LAYERS WITH HIGH CONTRAST)
   ===================================================================== */
.hero-container {
  position: relative;
  z-index: 5;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 42px 32px 20px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

/* Upper text wrap is COMPLETELY TRANSPARENT directly over background */
.hero-content-wrap {
  max-width: 820px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
}

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hero-eyebrow);
  margin-bottom: 14px;
}

.eyebrow-accent {
  color: var(--primary);
  font-size: 0.95rem;
}

/* Editorial Headline — Powered by Poppins & Creative Brush Accent */
.hero-title {
  margin: 0 0 16px 0;
  padding: 0;
  line-height: 1.04;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--hero-text);
  letter-spacing: -0.025em;
}

.title-line {
  display: block;
}

.title-turn-your {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  color: var(--hero-text);
  letter-spacing: -0.02em;
}

.title-ideas-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 2px 0;
}

.brush-word {
  font-family: "Permanent Marker", cursive;
  font-size: 1.2em;
  font-weight: 400;
  text-transform: none;
  transform: rotate(-3deg);
  display: inline-block;
  color: var(--secondary);
  line-height: 1;
}

.word-ideas {
  font-family: "Permanent Marker", cursive;
  font-size: 1.2em;
  font-weight: 400;
  text-transform: none;
  transform: rotate(-3deg);
  display: inline-block;
  color: var(--secondary);
  line-height: 1;
}

.word-into {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  color: var(--hero-text);
  letter-spacing: -0.02em;
}

.title-reality {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: clamp(3.2rem, 6vw, 5rem);
  color: var(--hero-text);
  letter-spacing: -0.025em;
}

.reality-dot {
  color: var(--secondary);
}

/* Dynamic Editorial Headline (Multilingual & Config-Driven) */
.hero-dynamic-title {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--hero-text);
  margin: 0 0 16px 0;
  max-width: 780px;
  word-break: break-word;
  text-wrap: balance;
  min-height: calc(2 * 1.14em);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-title-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 100%;
}

.hero-content-wrap .hero-eyebrow,
.hero-content-wrap .hero-title-text,
.hero-content-wrap .hero-tagline,
.hero-content-wrap .hero-dynamic-desc,
.hero-content-wrap .hero-cta-group {
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-text-transitioning .hero-eyebrow,
.hero-text-transitioning .hero-title-text,
.hero-text-transitioning .hero-tagline,
.hero-text-transitioning .hero-dynamic-desc,
.hero-text-transitioning .hero-cta-group {
  opacity: 0 !important;
  transform: translateY(6px) !important;
}

/* =====================================================================
   HERO 4 ANIMATION & MOTION PRESETS (SLIDES & TEXT)
   ===================================================================== */

/* 1. Smooth Cinematic Glide (Default) */
.hero-preset-cinematic_glide .hero-showcase-slide.active img,
.hero-preset-cinematic_glide .hero-showcase-slide.active video {
  animation: heroKenBurnsGlide 12s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes heroKenBurnsGlide {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.0); }
}

.preset-cinematic_glide.hero-text-transitioning .hero-eyebrow,
.preset-cinematic_glide.hero-text-transitioning .hero-title-text,
.preset-cinematic_glide.hero-text-transitioning .hero-tagline,
.preset-cinematic_glide.hero-text-transitioning .hero-dynamic-desc,
.preset-cinematic_glide.hero-text-transitioning .hero-cta-group {
  opacity: 0 !important;
  transform: translateY(12px) !important;
}
.preset-cinematic_glide.hero-text-entering .hero-eyebrow {
  animation: heroGlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0ms both;
}
.preset-cinematic_glide.hero-text-entering .hero-title-text {
  animation: heroGlideIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 60ms both;
}
.preset-cinematic_glide.hero-text-entering .hero-tagline {
  animation: heroGlideIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}
.preset-cinematic_glide.hero-text-entering .hero-dynamic-desc {
  animation: heroGlideIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
}
.preset-cinematic_glide.hero-text-entering .hero-cta-group {
  animation: heroGlideIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 240ms both;
}
@keyframes heroGlideIn {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 2. Dynamic Creative Zoom */
.hero-preset-creative_zoom .hero-showcase-slide.active img,
.hero-preset-creative_zoom .hero-showcase-slide.active video {
  animation: heroCreativeZoomLens 10s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes heroCreativeZoomLens {
  0% { transform: scale(1.08); }
  100% { transform: scale(1.0); }
}

.preset-creative_zoom.hero-text-transitioning .hero-eyebrow,
.preset-creative_zoom.hero-text-transitioning .hero-title-text,
.preset-creative_zoom.hero-text-transitioning .hero-tagline,
.preset-creative_zoom.hero-text-transitioning .hero-dynamic-desc,
.preset-creative_zoom.hero-text-transitioning .hero-cta-group {
  opacity: 0 !important;
  transform: scale(0.92) translateY(6px) !important;
  filter: blur(3px);
}
.preset-creative_zoom.hero-text-entering .hero-eyebrow {
  animation: heroZoomIn 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) 0ms both;
}
.preset-creative_zoom.hero-text-entering .hero-title-text {
  animation: heroZoomIn 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) 60ms both;
}
.preset-creative_zoom.hero-text-entering .hero-tagline {
  animation: heroZoomIn 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) 120ms both;
}
.preset-creative_zoom.hero-text-entering .hero-dynamic-desc {
  animation: heroZoomIn 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) 180ms both;
}
.preset-creative_zoom.hero-text-entering .hero-cta-group {
  animation: heroZoomIn 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) 240ms both;
}
@keyframes heroZoomIn {
  0% { opacity: 0; transform: scale(0.9) translateY(8px); filter: blur(3px); }
  75% { filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

/* 3. Kinetic Vertical Flow */
.preset-kinetic_vertical.hero-text-transitioning .hero-eyebrow,
.preset-kinetic_vertical.hero-text-transitioning .hero-title-text,
.preset-kinetic_vertical.hero-text-transitioning .hero-tagline,
.preset-kinetic_vertical.hero-text-transitioning .hero-dynamic-desc,
.preset-kinetic_vertical.hero-text-transitioning .hero-cta-group {
  opacity: 0 !important;
  transform: translateY(-16px) !important;
}
.preset-kinetic_vertical.hero-text-entering .hero-eyebrow {
  animation: heroKineticIn 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.25) 0ms both;
}
.preset-kinetic_vertical.hero-text-entering .hero-title-text {
  animation: heroKineticIn 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.25) 50ms both;
}
.preset-kinetic_vertical.hero-text-entering .hero-tagline {
  animation: heroKineticIn 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.25) 100ms both;
}
.preset-kinetic_vertical.hero-text-entering .hero-dynamic-desc {
  animation: heroKineticIn 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.25) 150ms both;
}
.preset-kinetic_vertical.hero-text-entering .hero-cta-group {
  animation: heroKineticIn 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.25) 200ms both;
}
@keyframes heroKineticIn {
  0% { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 4. Futuristic 3D Tilt */
.hero-preset-futuristic_tilt .hero-bg-showcase-viewport {
  perspective: 1200px;
  perspective-origin: center center;
}
.preset-futuristic_tilt.hero-text-transitioning .hero-eyebrow,
.preset-futuristic_tilt.hero-text-transitioning .hero-title-text,
.preset-futuristic_tilt.hero-text-transitioning .hero-tagline,
.preset-futuristic_tilt.hero-text-transitioning .hero-dynamic-desc,
.preset-futuristic_tilt.hero-text-transitioning .hero-cta-group {
  opacity: 0 !important;
  transform: translateX(20px) !important;
}
.preset-futuristic_tilt.hero-text-entering .hero-eyebrow {
  animation: heroTiltTextIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0ms both;
}
.preset-futuristic_tilt.hero-text-entering .hero-title-text {
  animation: heroTiltTextIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 50ms both;
}
.preset-futuristic_tilt.hero-text-entering .hero-tagline {
  animation: heroTiltTextIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 100ms both;
}
.preset-futuristic_tilt.hero-text-entering .hero-dynamic-desc {
  animation: heroTiltTextIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 150ms both;
}
.preset-futuristic_tilt.hero-text-entering .hero-cta-group {
  animation: heroTiltTextIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 200ms both;
}
@keyframes heroTiltTextIn {
  0% {
    opacity: 0;
    transform: translateX(-24px);
    text-shadow: 0 0 14px rgba(255, 201, 40, 0.75), 0 0 25px rgba(229, 9, 20, 0.35);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    text-shadow: none;
  }
}

/* Color-Coded Tagline */
.hero-tagline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.tag-learn { color: var(--hero-text); }
.tag-create { color: var(--primary); }
.tag-animate { color: var(--secondary); }
.tag-build { color: var(--hero-text); }

/* Description */
.hero-description,
.hero-dynamic-desc {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  color: var(--hero-text-muted);
  line-height: 1.65;
  max-width: 530px;
  margin: 0 0 28px 0;
  font-weight: 500;
  min-height: calc(2 * 1.65em);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Action Buttons Group */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* Primary CTA: Explore Courses */
.hero-btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #FFC928 !important;
  color: #0A0E1A !important;
  font-family: 'Poppins', sans-serif;
  font-size: 0.96rem;
  font-weight: 800 !important;
  padding: 13px 30px;
  border-radius: 999px;
  text-decoration: none !important;
  border: 1.5px solid #EAB308 !important;
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.45), 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn-explore:hover {
  background-color: #F59E0B !important;
  border-color: #D97706 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(234, 179, 8, 0.6), 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}

.btn-arrow {
  display: inline-block;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.hero-btn-explore:hover .btn-arrow {
  transform: translateX(4px);
}

/* Secondary CTA: Watch Video */
.hero-btn-video {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--hero-video-btn-bg);
  border: 1.5px solid var(--hero-video-btn-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--hero-video-btn-text);
  padding: 8px 20px 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.hero-btn-video:hover {
  transform: translateY(-2px);
  border-color: #FFC928 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.play-btn-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--hero-play-circle-bg);
  color: var(--hero-play-circle-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.video-label-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.video-label-main {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--hero-text);
  line-height: 1.2;
}

.video-label-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--hero-text-muted);
}

/* =====================================================================
   STATISTICS CARDS (SOLID GLASS CARDS DIRECTLY ON ARTWORK)
   ===================================================================== */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 820px;
  width: 100%;
  margin-top: 6px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--hero-stat-bg);
  border: 1.5px solid var(--hero-stat-border);
  box-shadow: var(--hero-stat-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 9px 12px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  min-width: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: #FFC928 !important;
  box-shadow: 0 8px 24px rgba(255, 201, 40, 0.25);
}

.stat-icon-wrap {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-wrap svg {
  width: 20px;
  height: 20px;
  display: block;
}

.stat-icon-red {
  color: var(--secondary);
}

.stat-icon-yellow {
  color: var(--primary);
}

.stat-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

.stat-num {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--hero-text);
  line-height: 1.15;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.stat-lbl {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--hero-text-muted);
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* =====================================================================
   BOTTOM CATEGORY RAIL (SOLID RIBBON WITH INFINITE SLIDE)
   ===================================================================== */
.hero-category-rail {
  position: relative;
  z-index: 5;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 84px 28px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Category Rail Viewport: Completely Transparent Track */
.rail-viewport {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 6px 0;
  overflow: hidden;
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, black 28px, black calc(100% - 28px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 28px, black calc(100% - 28px), transparent);
}

/* Continuous Infinite Sliding Marquee Track */
.rail-track-marquee {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  animation: infiniteRibbonSlide 30s linear infinite;
  will-change: transform;
}

.rail-viewport:hover .rail-track-marquee {
  animation-play-state: paused;
}

@keyframes infiniteRibbonSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.rail-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--hero-card-bg);
  border: 1.5px solid var(--hero-card-border);
  box-shadow: var(--hero-card-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 18px 10px 14px;
  border-radius: 14px;
  text-decoration: none !important;
  color: var(--hero-card-text) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.rail-card:hover {
  transform: translateY(-3px);
  background: var(--hero-card-hover-bg);
  border-color: var(--hero-card-hover-border);
  box-shadow: 0 8px 24px rgba(255, 201, 40, 0.25);
}

.rail-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 201, 40, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.rail-card:hover .rail-card-icon {
  transform: scale(1.08);
}

.rail-card-body {
  display: flex;
  flex-direction: column;
}

.rail-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--hero-card-text);
}

.rail-card-hint {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  color: var(--hero-card-subtext);
}

/* =====================================================================
   REAL-TIME GLOSSY GLARE & MAGNETIC SHEEN (CARDS & BUTTONS)
   ===================================================================== */
.stat-card,
.rail-card,
.hero-btn-explore,
.hero-btn-video {
  position: relative;
  overflow: hidden;
}

/* Diagonal Glare Shimmer Beam (Sweeps dynamically on Hover) */
.stat-card::after,
.rail-card::after,
.hero-btn-explore::after,
.hero-btn-video::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -90%;
  width: 50%;
  height: 220%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.42) 50%,
    transparent 80%
  );
  transform: rotate(25deg);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.75s ease, opacity 0.5s ease;
  z-index: 3;
}

.stat-card:hover::after,
.rail-card:hover::after,
.hero-btn-explore:hover::after,
.hero-btn-video:hover::after {
  opacity: 1;
  transform: rotate(25deg) translate(340%, -15%);
}

/* Real-Time Magnetic Spotlight Glare (Follows Cursor Dynamically) */
.stat-card::before,
.rail-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 180px at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 201, 40, 0.22),
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.stat-card:hover::before,
.rail-card:hover::before {
  opacity: 1;
}

html[data-theme="dark"] .stat-card::before,
html[data-theme="dark"] .rail-card::before {
  background: radial-gradient(
    circle 200px at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 201, 40, 0.28),
    transparent 75%
  );
}

/* Arrow Navigation Buttons */
.rail-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--hero-arrow-bg);
  border: 1px solid var(--hero-arrow-border);
  color: var(--hero-arrow-text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.rail-arrow:hover {
  background: var(--primary);
  color: #000000;
  border-color: var(--primary);
  transform: scale(1.05);
}

/* =====================================================================
   VIDEO MODAL SHOWCASE (MODAL SYSTEM)
   ===================================================================== */
.studio-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.studio-modal-overlay.active {
  display: flex;
}

.studio-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #090D16;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.studio-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}

.studio-modal-close:hover {
  background: var(--secondary);
}

.studio-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.studio-video-container iframe,
.studio-video-container video {
  width: 100%;
  height: 100%;
  border: none;
}

/* =====================================================================
   RESPONSIVE DESIGN (BREAKPOINTS COMPREHENSIVE COVERAGE)
   ===================================================================== */

/* Laptop & Desktop (1024px to 1366px) */
@media (max-width: 1366px) {
  .hero-container {
    padding: 36px 28px 16px 28px;
  }
  
  .title-turn-your { font-size: 3.6rem; }
  .word-ideas { font-size: 3.9rem; }
  .word-into { font-size: 3.2rem; }
  .title-reality { font-size: 4rem; }
  
  .hero-content-wrap {
    max-width: 790px;
  }

  .hero-stats-grid {
    gap: 10px;
    max-width: 790px;
  }

  .stat-card {
    padding: 9px 12px;
    gap: 8px;
  }

  .stat-lbl {
    font-size: 0.68rem;
  }
}

/* Tablets (768px to 1023px) */
@media (max-width: 1023px) {
  .hero-master {
    min-height: 760px;
  }
  
  .hero-bg-layer {
    background-position: 70% center;
  }
  
  .hero-container {
    padding: 32px 24px 20px 24px;
  }
  
  .hero-content-wrap {
    max-width: 580px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
  }
  
  .title-turn-your { font-size: 3rem; }
  .word-ideas { font-size: 3.3rem; }
  .word-into { font-size: 2.7rem; }
  .title-reality { font-size: 3.4rem; }
  
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    margin-top: 14px;
  }
  
  .hero-category-rail {
    padding: 12px 24px 24px 24px;
  }

  .hero-slide-tag-pill {
    bottom: 110px;
    right: 24px;
  }

  .hero-slideshow-controls {
    bottom: 70px;
    right: 24px;
  }
}

/* Mobile Screens (< 768px) */
@media (max-width: 767px) {
  .hero-master {
    min-height: 720px;
    box-sizing: border-box;
  }

  /* Display the artwork background clearly, anchored to show studio and character */
  .hero-bg-layer {
    background-position: 84% center;
    background-size: cover;
    opacity: 1 !important;
  }
  
  /* Mobile Vertical Scrim: Stronger top-to-bottom backdrop so stacked text & buttons are 100% readable */
  .hero-bg-showcase-viewport::after,
  .hero-bg-layer::after {
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.90) 42%,
        rgba(255, 255, 255, 0.60) 68%,
        rgba(255, 255, 255, 0.15) 100%
      );
  }

  html[data-theme="dark"] .hero-bg-showcase-viewport::after,
  html[data-theme="dark"] .hero-bg-layer::after {
    background:
      linear-gradient(
        180deg,
        rgba(8, 12, 22, 0.96) 0%,
        rgba(8, 12, 22, 0.92) 42%,
        rgba(8, 12, 22, 0.65) 68%,
        rgba(8, 12, 22, 0.20) 100%
      );
  }

  /* NO overlay wash - background artwork remains visible */
  .hero-overlay-layer {
    display: none !important;
  }

  .hero-container {
    justify-content: flex-start !important;
    padding: 16px 18px 16px 18px !important;
  }

  /* Upper text area is COMPLETELY TRANSPARENT directly over background with locked min-height to prevent jumping */
  .hero-content-wrap {
    max-width: 100%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    min-height: 480px;
    box-sizing: border-box;
  }

  .hero-eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    font-weight: 800;
    margin-bottom: 12px !important;
    padding: 5px 14px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    line-height: 1 !important;
  }

  #heroEyebrowText {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-block !important;
    max-width: calc(100vw - 110px) !important;
  }

  .hero-title,
  .hero-dynamic-title {
    font-size: clamp(1.85rem, 5.2vw, 2.2rem) !important;
    line-height: 1.15 !important;
    height: calc(2 * 1.15em) !important;
    min-height: calc(2 * 1.15em) !important;
    max-height: calc(2 * 1.15em) !important;
    margin: 0 0 12px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-word !important;
    box-sizing: content-box !important;
  }

  .hero-title-text,
  #heroTitleText {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    max-height: 100% !important;
    width: 100% !important;
  }

  .title-turn-your {
    font-size: 2.15rem;
    line-height: 1.08;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
  }

  .title-ideas-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 3px 0;
  }

  .brush-word,
  .word-ideas {
    font-size: 2.35rem;
    line-height: 1;
    margin: 0 4px 0 0;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
  }

  .word-into {
    font-size: 2.15rem;
    line-height: 1.08;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
  }

  .title-reality {
    font-size: 2.55rem;
    line-height: 1.08;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
  }

  html[data-theme="dark"] .title-turn-your,
  html[data-theme="dark"] .brush-word,
  html[data-theme="dark"] .word-ideas,
  html[data-theme="dark"] .word-into,
  html[data-theme="dark"] .title-reality {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  }

  .hero-tagline {
    font-size: 1.02rem !important;
    height: 1.5em !important;
    min-height: 1.5em !important;
    max-height: 1.5em !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    box-sizing: content-box !important;
  }

  .hero-tagline .tag-create {
    color: #D97706; /* High contrast amber on light background */
  }

  html[data-theme="dark"] .hero-tagline .tag-create {
    color: var(--primary);
  }

  html[data-theme="dark"] .hero-tagline {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  }

  .hero-description,
  .hero-dynamic-desc {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
    height: calc(2 * 1.5em) !important;
    min-height: calc(2 * 1.5em) !important;
    max-height: calc(2 * 1.5em) !important;
    margin: 0 0 18px 0 !important;
    max-width: 95%;
    color: var(--hero-text);
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    box-sizing: content-box !important;
  }

  html[data-theme="dark"] .hero-description {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 20px !important;
  }

  .hero-btn-explore {
    width: 100%;
    justify-content: center;
    padding: 13px 24px !important;
    font-size: 0.96rem;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    box-sizing: border-box !important;
  }

  .hero-btn-video {
    width: 100%;
    justify-content: center;
    padding: 8px 18px !important;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    border-radius: 999px;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    box-sizing: border-box !important;
  }

  .hero-btn-video .video-label-wrap {
    min-width: 0;
    overflow: hidden;
  }

  .hero-btn-video .video-label-main {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }

  .hero-btn-video .video-label-sub {
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    line-height: 16px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }

  html[data-theme="dark"] .hero-btn-video {
    background: rgba(14, 21, 38, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  }

  /* Stats grid: subtle crisp cards */
  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 4px;
    width: 100%;
  }

  .stat-card {
    background: var(--hero-stat-bg) !important;
    border: 1.5px solid var(--hero-stat-border) !important;
    box-shadow: var(--hero-stat-shadow) !important;
    padding: 8px 10px;
    border-radius: 10px;
    gap: 8px;
  }

  .stat-num {
    font-size: 0.92rem;
  }

  .stat-lbl {
    font-size: 0.64rem;
  }

  /* Glassy Ribbon Track for Categories on Mobile */
  .hero-category-rail {
    position: relative !important;
    bottom: auto !important;
    padding: 8px 12px 18px 12px !important;
    margin-top: 8px !important;
    width: 100%;
  }

  .rail-arrow {
    display: none;
  }

  .rail-viewport {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 4px 0;
    border-radius: 0;
  }

  .rail-track-marquee {
    gap: 8px;
    animation-duration: 24s;
  }

  .rail-card {
    padding: 8px 14px 8px 10px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .rail-card-icon {
    width: 32px;
    height: 32px;
  }

  .rail-card-title {
    font-size: 0.78rem;
  }

  .rail-card-hint {
    font-size: 0.62rem;
  }

  /* Completely hide redundant floating pill & controls on mobile to avoid overlapping */
  .hero-slide-tag-pill {
    display: none !important;
  }

  .hero-slideshow-controls {
    display: none !important;
  }
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-btn-explore,
  .hero-btn-video,
  .stat-card,
  .rail-card,
  .rail-track-marquee,
  .hero-bg-layer {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}
