/* ==========================================================================
   DR. BRUNO MESCHEDE — SAÚDE VASCULAR & METABÓLICA
   Design System & Motion Stylesheet (TitanHealth-inspired Editorial Standard)
   ========================================================================== */

/* 1. TYPOGRAPHY (@font-face & Fallbacks) */
@font-face {
  font-family: 'Kodchasan';
  src: url('../assets/fonts/Kodchasan-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kodchasan';
  src: url('../assets/fonts/Kodchasan-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kodchasan';
  src: url('../assets/fonts/Kodchasan-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kodchasan';
  src: url('../assets/fonts/Kodchasan-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 2. DESIGN TOKENS & VARIABLES */
:root {
  /* Brand Colors */
  --color-primary: #0001AB;
  --color-primary-rgb: 0, 1, 171;
  --color-primary-hover: #1012C4;
  --color-primary-dark: #000085;
  --color-primary-light: #EBEBFF;
  --color-primary-subtle: rgba(0, 1, 171, 0.04);
  
  --color-secondary: #68769D;
  --color-secondary-rgb: 104, 118, 157;
  --color-secondary-light: #F0F2F7;
  --color-navy: #1E3C90;

  /* Surfaces & Backgrounds */
  --color-bg-page: #FAFAFC;
  --color-surface-white: #FFFFFF;
  --color-surface-muted: #F4F6FB;
  --color-surface-card: #FFFFFF;
  --color-surface-dark: #080C1A;
  --color-surface-deep-blue: #000185;

  /* Text Colors */
  --color-text-title: #0F172A;
  --color-text-body: #334155;
  --color-text-muted: #64748B;
  --color-text-subtle: #94A3B8;
  --color-text-inverse: #FFFFFF;

  /* Borders & Dividers */
  --color-border: #E8ECF2;
  --color-border-light: rgba(104, 118, 157, 0.12);
  --color-border-focus: #0001AB;

  /* Motion & Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-base: 0.35s var(--ease-out-expo);
  --transition-slow: 0.6s var(--ease-out-expo);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -6px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px -15px rgba(0, 1, 171, 0.08);
  --shadow-xl: 0 30px 60px -20px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 40px rgba(0, 1, 171, 0.2);

  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Typography Stacks */
  --font-display: 'Kodchasan', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 3. BASE RESETS & GLOBAL STYLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-bg-page);
  color: var(--color-text-body);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--color-bg-page);
  color: var(--color-text-body);
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* 4. TYPOGRAPHY SYSTEM */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text-title);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

/* Clean Editorial Tags (No pills, no colorful background bubbles) */
.editorial-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.editorial-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.editorial-tag-inverse {
  color: #9DB4FF;
}
.editorial-tag-inverse .editorial-tag-dot {
  background-color: #9DB4FF;
}

/* 5. CONTAINER & GRID SYSTEM */
.container-custom {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 1024px) {
  .container-custom {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Editorial Crosshair Grid Markers */
.editorial-grid-border {
  position: relative;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.editorial-grid-inner {
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.corner-cross {
  position: absolute;
  width: 15px;
  height: 15px;
  pointer-events: none;
  z-index: 5;
}
.corner-cross::before, .corner-cross::after {
  content: '';
  position: absolute;
  background-color: var(--color-secondary);
  opacity: 0.45;
}
.corner-cross::before {
  top: 7px;
  left: 0;
  width: 15px;
  height: 1px;
}
.corner-cross::after {
  top: 0;
  left: 7px;
  width: 1px;
  height: 15px;
}
.cross-tl { top: -7px; left: -7px; }
.cross-tr { top: -7px; right: -7px; }
.cross-bl { bottom: -7px; left: -7px; }
.cross-br { bottom: -7px; right: -7px; }

/* 6. NAVBAR & TOPBAR GLASSMORPHISM */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.35s var(--ease-out-expo);
}

.navbar-wrapper.scrolled {
  padding: 12px 0;
}

.navbar-glass {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(232, 236, 242, 0.85);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
  padding: 10px 18px 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s var(--ease-out-expo);
}

.navbar-wrapper.scrolled .navbar-glass {
  box-shadow: 0 15px 35px -8px rgba(0, 1, 171, 0.08);
  border-color: rgba(0, 1, 171, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

.brand-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 960px) {
  .brand-logo-img {
    height: 42px;
  }
}

@media (max-width: 959px) {
  .navbar-glass {
    padding: 8px 12px 8px 18px;
  }
}

.nav-cta-btn {
  display: none !important;
}

@media (min-width: 960px) {
  .nav-cta-btn {
    display: inline-flex !important;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}

@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }
}

.nav-link-item {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-body);
  position: relative;
  padding: 4px 0;
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.25s var(--ease-out-expo);
  border-radius: 2px;
}

.nav-link-item:hover {
  color: var(--color-primary);
}

.nav-link-item:hover::after {
  width: 100%;
}

/* 7. BUTTONS & INTERACTION PHYSICS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  outline: none;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, background-color 0.2s ease, filter 0.2s ease;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.btn:active {
  transform: scale(0.94) translateY(1px);
  filter: brightness(0.92);
  transition-duration: 0.08s;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 8px 20px -4px rgba(0, 1, 171, 0.35);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 12px 28px -4px rgba(0, 1, 171, 0.48);
}

.btn-secondary {
  background-color: var(--color-surface-white);
  color: var(--color-text-title);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-primary-subtle);
  box-shadow: 0 8px 22px rgba(0, 1, 171, 0.1);
}

.btn-glow-white {
  background-color: #FFFFFF;
  color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.35);
  font-weight: 700;
}

.btn-glow-white:hover {
  background-color: #F8FAFC;
  box-shadow: 0 14px 40px rgba(255, 255, 255, 0.6);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.0625rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
}

/* 8. HERO SECTION */
.hero-section {
  padding-top: 130px;
  padding-bottom: 70px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-section {
    padding-top: 150px;
    padding-bottom: 80px;
  }
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
  }
}

@media (min-width: 1200px) {
  .hero-grid-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }
}

.hero-text-block {
  width: 100%;
}

.hero-headline {
  font-size: clamp(2.2rem, 4.2vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--color-text-title);
  margin-bottom: 24px;
}

.hero-headline .highlight {
  color: var(--color-primary);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 680px;
  margin-bottom: 36px;
}

/* Hero CTA Group (Side by Side on all screens) */
.hero-cta-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  width: 100%;
}

.btn-hero {
  padding: 14px 22px;
  font-size: 0.9375rem;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .hero-cta-group {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .btn-hero {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 6px;
    font-size: clamp(0.72rem, 3.1vw, 0.85rem);
    white-space: nowrap;
    gap: 4px;
    letter-spacing: -0.01em;
  }
  .btn-hero svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
}

@media (min-width: 768px) {
  .btn-hero {
    padding: 16px 28px;
    font-size: 1.05rem;
  }
}

/* Hero Media Card & YouTube Showcase */
.hero-video-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: #0F172A;
  box-shadow: 0 25px 70px -15px rgba(0, 1, 171, 0.18), 0 10px 20px -5px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.hero-video-card:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 35px 85px -15px rgba(0, 1, 171, 0.28);
}

.hero-video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo), filter 0.6s var(--ease-out-expo);
}

.hero-video-card:hover .hero-video-thumbnail {
  transform: scale(1.03);
  filter: brightness(0.92);
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 1, 171, 0.7) 0%, rgba(15, 23, 42, 0.25) 60%, rgba(0,0,0,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #FFFFFF;
}

.play-button-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(0, 1, 171, 0.6);
  animation: pulse-ring 2.5s infinite;
  transition: transform 0.3s var(--ease-spring), background-color 0.3s;
}

.hero-video-card:hover .play-button-pulse {
  transform: translate(-50%, -50%) scale(1.12);
  background-color: #FFFFFF;
}

.hero-video-card:hover .play-button-pulse svg path {
  fill: var(--color-primary);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(0, 1, 171, 0.6); }
  70% { box-shadow: 0 0 0 24px rgba(0, 1, 171, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 1, 171, 0); }
}

/* 9. STATS & CREDENTIALS BAR */
.stats-container {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  border-left: 2px solid var(--color-border);
}

.stat-item:first-child {
  border-left: none;
}

@media (max-width: 767px) {
  .stat-item {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding: 16px 0;
  }
  .stat-item:first-child {
    border-top: none;
  }
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 6px;
}

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

/* 10. SECTION CARDS & EDITORIAL BLOCKS */
.section-padding {
  padding: 70px 0;
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 100px 0;
  }
}

.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.6;
}

/* Editorial Clean Card */
.editorial-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo), border-color 0.35s var(--ease-out-expo);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.editorial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 1, 171, 0.25);
}

.card-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-subtle);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.editorial-card:hover .card-icon-box {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

/* About Grid Layout */
.about-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 960px) {
  .about-grid-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 52px;
  }
}

/* 11. STEP-BY-STEP PROCESS (METODOLOGIA) */
.step-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--ease-out-expo);
  height: 100%;
}

.step-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-secondary);
  opacity: 0.25;
  position: absolute;
  top: 24px;
  right: 28px;
  pointer-events: none;
}

/* 12. FAQ ACCORDION */
.faq-item {
  background-color: var(--color-surface-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item.active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.faq-question-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 28px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-title);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  outline: none;
}

.faq-icon-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-expo), background-color var(--transition-fast), color var(--transition-fast);
}

.faq-item.active .faq-icon-toggle {
  transform: rotate(45deg);
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.faq-answer-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo), padding 0.3s var(--ease-out-expo);
  padding: 0 28px;
}

.faq-item.active .faq-answer-collapse {
  padding-bottom: 24px;
}

.faq-answer-text {
  font-size: 1rem;
  color: var(--color-text-body);
  line-height: 1.65;
}

/* 13. DRAMATIC INVERSION CTA SECTION */
.cta-dark-inversion {
  background: linear-gradient(135deg, #0001AB 0%, #000075 60%, #080C1A 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 60px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px -15px rgba(0, 1, 171, 0.4);
}

@media (min-width: 1024px) {
  .cta-dark-inversion {
    padding: 90px 70px;
  }
}

.cta-glow-bg {
  position: absolute;
  top: -30%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.cta-glow-bg-2 {
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 118, 157, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

/* 14. FOOTER */
.footer-main {
  background-color: #FFFFFF;
  border-top: 1px solid var(--color-border);
  padding: 70px 0 40px;
}

.footer-link {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--color-text-subtle);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* 15. MODAL SYSTEM (YouTube Video & WhatsApp Routing) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(8, 12, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out-expo);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 900px;
  background-color: #000000;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s var(--ease-spring);
  position: relative;
}

.modal-backdrop.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

.video-container-iframe {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-container-iframe iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 16. MOTION PHYSICS: SCROLL REVEALS */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }
.delay-6 { transition-delay: 0.48s; }

/* 17. MOBILE DRAWER NAVIGATION */
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--color-surface-muted);
  border: none;
  cursor: pointer;
  color: var(--color-text-title);
}

@media (min-width: 960px) {
  .mobile-nav-toggle {
    display: none;
  }
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background-color: #FFFFFF;
  z-index: 150;
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.1);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.4s var(--ease-out-expo);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(8, 12, 26, 0.5);
  backdrop-filter: blur(4px);
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* 18. CAROUSEL & MARQUEE ANIMATIONS */
.logo-marquee-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 16px 0;
}

.logo-marquee-wrapper::before,
.logo-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}

.logo-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-page), transparent);
}

.logo-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-page), transparent);
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: logo-marquee 35s linear infinite;
}

.logo-marquee-wrapper:hover .logo-marquee-track {
  animation-play-state: paused;
}

@keyframes logo-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Form Styles */
.custom-input {
  width: 100%;
  padding: 14px 18px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.custom-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.custom-input:focus {
  border-color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.16);
}

/* Badge glow effects */
.badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background-color: rgba(0, 1, 171, 0.06);
  border: 1px solid rgba(0, 1, 171, 0.15);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* 19. TESTIMONIALS CONTINUOUS INFINITE MARQUEE LOOP */
.testimonials-marquee-wrapper {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 16px 0 24px;
}

.testimonials-marquee-wrapper::before,
.testimonials-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 5;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .testimonials-marquee-wrapper::before,
  .testimonials-marquee-wrapper::after {
    width: 180px;
  }
}

.testimonials-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--color-surface-muted), rgba(244, 246, 251, 0));
}

.testimonials-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--color-surface-muted), rgba(244, 246, 251, 0));
}

.testimonials-marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: testimonial-marquee-anim 42s linear infinite;
  will-change: transform;
  padding-left: 28px;
}

.testimonials-marquee-wrapper:hover .testimonials-marquee-track {
  animation-play-state: paused;
}

@keyframes testimonial-marquee-anim {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card-item {
  width: 380px;
  max-width: 85vw;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  cursor: grab;
}

.testimonial-card-item:active {
  cursor: grabbing;
}

