/* NOESIS LABS - Dark SaaS Redesign */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--background);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 50%, rgba(41, 182, 246, 0.05) 0%, transparent 40%);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Palette de Couleurs & Variables */
:root {
  /* Dark Mode Brand Colors */
  --background: #05050A;
  --surface: #12121A;
  --surface-hover: #1A1A24;
  
  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  
  /* Accents */
  --accent-primary: #0EA5E9; /* Premium Cyan Blue */
  --accent-cyan: #29b6f6;
  --accent-red: #ef4444;
  
  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  --shadow-glow-blue: 0 0 20px rgba(14, 165, 233, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

  /* Font Families */
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing Tokens */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.03em;
}

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

/* Typographie - Desktop */
.text-display {
  font-size: 5rem; /* 80px */
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.text-h1 {
  font-size: 3.5rem; /* 56px */
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.text-h2 {
  font-size: 2.5rem; /* 40px */
  font-weight: 700;
  line-height: 1.2;
}

.text-h3 {
  font-size: 1.5rem; /* 24px */
  font-weight: 600;
  line-height: 1.3;
}

.text-body-lg {
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-secondary);
}

.text-body {
  font-size: 1rem; /* 16px */
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-secondary);
}

.text-body-sm {
  font-size: 0.875rem; /* 14px */
  line-height: 1.5;
  font-weight: 500;
  color: var(--text-secondary);
}

.text-sm {
  font-size: 0.875rem;
}

/* Utils */
.text-balance { text-wrap: balance; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

.text-gradient {
  background: linear-gradient(90deg, #818cf8 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Spacing & Layout */
.section-padding {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.hero-section {
  padding: var(--space-32) 0 var(--space-24) 0;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.container-prose { max-width: 720px; margin: 0 auto; padding: 0 var(--space-4); }
.container-content { max-width: 1080px; margin: 0 auto; padding: 0 var(--space-4); }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-4); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
}

.grid-responsive {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .grid-responsive { grid-template-columns: repeat(3, 1fr); }
  .hero-section { padding-top: var(--space-32); }
}

@media (max-width: 639px) {
  .text-display { font-size: 3rem; }
  .text-h1 { font-size: 2.25rem; }
  .section-padding { padding-top: var(--space-16); padding-bottom: var(--space-16); }
  .hidden-mobile { display: none !important; }
}

/* Flexbox Utils */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }
.gap-16 { gap: var(--space-16); }
.gap-20 { gap: var(--space-20); }

/* Components */

/* Labels / Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

.badge-pill-red {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
}

.badge-pill-blue {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(180deg, #7DB8D1 0%, #6CAFCB 100%);
  color: #FFFFFF;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(108, 175, 203, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #89C3DB 0%, #75B7D2 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(108, 175, 203, 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 15px 31px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background-color: rgba(255,255,255,0.05);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Dark Cards */
.card-dark {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-dark:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

/* Feature Icons */
.icon-box-red {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  margin-bottom: var(--space-6);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.icon-box-blue {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
  z-index: 2;
}

/* Impact Tag */
.impact-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-red);
  margin-top: auto;
  padding-top: var(--space-6);
}

/* Stats */
.stat-number {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-2);
}

.stat-number.blue {
  color: #818cf8;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Timeline Process */
.process-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-12) 0;
}

.process-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, 0.3), transparent);
  transform: translateX(-50%);
  z-index: 1;
}

.process-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-20);
  position: relative;
}

.process-content {
  width: calc(50% - 40px);
}

.process-content.left { text-align: right; }
.process-content.right { text-align: left; }

.process-node {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.step-label {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #818cf8;
  margin-bottom: var(--space-3);
}

@media (max-width: 767px) {
  .process-line { left: 24px; transform: none; }
  .process-step { flex-direction: column; align-items: flex-start; }
  .process-content { width: 100%; padding-left: 64px; text-align: left !important; }
  .process-node { left: 0; transform: none; }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  transition: all 0.3s ease;
  padding: var(--space-4) 0;
}

.navbar.scrolled {
  background: rgba(5, 5, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .navbar-logo-img {
    height: 38px;
  }
}

@media (min-width: 1024px) {
  .navbar-logo-img {
    height: 40px;
  }
}

.nav-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
  filter: brightness(1.2);
}

.nav-logo:hover {
  opacity: 1;
}

/* FIX 2 — Navbar left spacing */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* FIX 3 — Hero logo */
.hero-logo-col {
  background: transparent;
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.hero-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
}
.hero-logo:hover {
  opacity: 1;
}

/* Animations */
.animate-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

.page-enter {
  animation: pageEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-12) 0;
  margin-top: var(--space-20);
  background: var(--surface);
}

/* Utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.overflow-hidden { overflow: hidden; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-xs { max-width: 20rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.aspect-video { aspect-ratio: 16 / 9; }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-full { border-radius: var(--radius-full); }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

/* Responsive Order */
.order-1 { order: 1; }
.order-2 { order: 2; }
@media (min-width: 768px) {
  .order-md-1 { order: 1 !important; }
  .order-md-2 { order: 2 !important; }
}
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mt-20 { margin-top: var(--space-20); }
.mt-24 { margin-top: var(--space-24); }
.mt-32 { margin-top: var(--space-32); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-20 { padding-top: var(--space-20); padding-bottom: var(--space-20); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.pl-2 { padding-left: var(--space-2); }
.border-y { border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.border-t { border-top: 1px solid var(--border-subtle); }
.border-subtle { border-color: var(--border-subtle); }
.font-400 { font-weight: 400; }
.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }
.text-primary { color: var(--text-primary); }
.text-accent-cyan { color: var(--accent-cyan); }
.bg-surface { background-color: var(--surface); }
.bg-surface-hover { background-color: var(--surface-hover); }
.bg-background { background-color: var(--background); }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.hover-text-primary:hover { color: var(--text-primary); }
.flex-grow { flex-grow: 1; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.min-h-300 { min-height: 300px; }

/* Components */
.section-divider-center {
  width: 60px;
  height: 2px;
  background-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.grid-4-col {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .grid-4-col { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4-col { grid-template-columns: repeat(4, 1fr); }
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .grid-2-col { grid-template-columns: repeat(2, 1fr); }
}

/* Custom layouts for cas-concrets */
.grid-cas-text-left {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 768px) {
  .grid-cas-text-left {
    grid-template-columns: 42fr 58fr;
  }
}

.grid-cas-text-right {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 768px) {
  .grid-cas-text-right {
    grid-template-columns: 58fr 42fr;
  }
}

.secondary-case-image {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 14px;
}

/* Espacements personnalisés cas-concrets */
.flow-gain-section {
  margin-top: 88px;
}
@media (max-width: 768px) {
  .flow-gain-section {
    margin-top: 64px;
  }
}

.other-flows-section {
  margin-top: 80px;
}
@media (max-width: 768px) {
  .other-flows-section {
    margin-top: 56px;
  }
}

.cta-microcopy {
  margin-top: 24px;
}

/* Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
}
.input {
  background-color: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.2s ease;
}
.input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px var(--accent-cyan), 0 0 12px rgba(41, 182, 246, 0.15);
}
.input::placeholder {
  color: var(--text-muted);
}
select.input option {
  background-color: var(--surface);
  color: var(--text-primary);
}


/* Glow Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}
.glow-orb-1 {
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
}
.glow-orb-2 {
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
  opacity: 0.15;
}

/* Image Card Hover */
.image-card {
  transition: transform 0.3s ease;
}
.image-card:hover {
  transform: translateY(-4px);
}

/* Navigation Visibility and Mobile Menu */
.nav-desktop {
  display: none;
}
.nav-mobile {
  display: block;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--surface);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
}
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 50;
  padding: 10px;
}
.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    gap: var(--space-6);
    align-items: center;
  }
  .nav-mobile,
  .mobile-menu {
    display: none;
  }
}

/* ─── Micro-improvement styles ─────────────────────────── */

/* Hero tagline — smaller, muted, sits below the subheadline */
.hero-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0;
  margin-bottom: var(--space-4);
}

/* CTA group — primary button + subordinate text link */
.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

/* Secondary CTA as plain text link — no border, no bg */
.cta-text-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
  line-height: 1.5;
}
.cta-text-link:hover {
  color: var(--text-secondary);
}

/* Social proof line — quieter than the microcopy above it */
.social-proof-line {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 400;
  text-align: center;
  margin-top: var(--space-4);
  margin-bottom: 0;
  opacity: 0.75;
}

/* Concrete numbers — understated factual statement below pain points */
.concrete-numbers {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--accent-primary);
  font-weight: 400;
  text-align: center;
  opacity: 0.7;
  margin-top: var(--space-12);
  margin-bottom: 0;
  padding: 0 var(--space-4);
}

/* ─── Mobile constraints (390px+) ─────────────────────── */
@media (max-width: 639px) {
  /* Reduce hero subheadline size so hero fits above the fold */
  .hero-section .text-body-lg {
    font-size: 0.95rem;
  }

  /* Hero tagline slightly smaller on mobile */
  .hero-tagline {
    font-size: 0.8rem;
  }

  /* Stack CTA group vertically; text link on its own line */
  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  /* Give the text link clear breathing room */
  .cta-text-link {
    display: block;
    margin-top: 0;
  }

  /* Social proof line — ensure spacing from surrounding elements */
  .social-proof-line {
    margin-top: var(--space-4);
    margin-bottom: var(--space-4);
    text-align: left;
  }

  /* Concrete numbers — ensure spacing on mobile */
  .concrete-numbers {
    margin-top: var(--space-8);
    font-size: 0.82rem;
  }

  /* Hero logo — hide on mobile */
  .hero-logo-col {
    display: none !important;
  }
}

/* ─── Video Components ─────────────────────────── */

/* Hero Video Card */
.hero-video-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero-video-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background-image: url('logo-noesis-labs-transparent.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.05;
  filter: grayscale(100%);
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
}

.hero-video-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.hero-video-card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.hero-video-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.hero-video-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: background 0.2s ease;
  cursor: pointer;
}

.hero-video-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
}

.hero-video-item .title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.hero-video-item .micro {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Video Section Cards */
.video-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-thumbnail-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.95;
  transition: opacity 0.3s ease, transform 0.5s ease;
  background: var(--surface);
}

.video-thumbnail-container:hover .video-thumbnail {
  opacity: 0.85;
  transform: scale(1.02);
}

.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(14, 165, 233, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
  transition: transform 0.3s ease, background 0.3s ease;
}

.video-thumbnail-container:hover .play-button-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(14, 165, 233, 1);
}

.video-card-content {
  padding: var(--space-6);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.video-card-questions {
  padding-left: var(--space-3);
  border-left: 2px solid var(--border-subtle);
  margin-bottom: var(--space-4);
}

/* Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 10, 0.95);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 1024px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

.video-modal.active .video-modal-content {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1002;
  transition: background 0.2s ease;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.video-modal-player {
  width: 100%;
  height: 100%;
  outline: none;
}
