/* ==========================================================================
   DESIGN SYSTEM & CUSTOM COMPONENTS — DRA. BEATRIZ VIANA
   ========================================================================== */

@import url('https://fonts.cdnfonts.com/css/satoshi');

:root {
  --bg: #F7F4EF;
  --text: #1C1C1C;
  --muted: #6F6A64;
  --primary: #123C3A;
  --secondary: #E6DED3;
  --accent: #4F9D7A;
  --card: #FFFFFF;
  --border: rgba(18, 60, 58, 0.1);
  --radius: 24px;
  
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Satoshi', sans-serif;
  
  --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
  --transition-smooth: all 0.6s var(--ease-out-quint);
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.15);
}

/* Global Styles */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

/* Glass Header */
.glass-header {
  background: rgba(247, 244, 239, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-fast);
}

/* Mobile Menu Toggle classes */
.mobile-menu.active {
  display: flex !important;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Premium Card Hover Effect */
.card-premium {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.35s var(--ease-out-quint);
  box-shadow: 0 10px 30px rgba(18, 60, 58, 0.03);
}

.card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(18, 60, 58, 0.06);
  border-color: var(--accent);
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: white;
  border-radius: 999px;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  padding: 16px 28px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(79, 157, 122, 0.2);
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 999px;
  transition: var(--transition-fast);
  padding: 16px 28px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.section-number {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.15em;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 16px;
  font-weight: 600;
}

/* Animations */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg);
  clip-path: circle(150% at var(--reveal-x, 50%) var(--reveal-y, 50%));
  transition: clip-path 0.85s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.85s ease;
}

.preloader__content {
  position: relative;
  width: 100%;
  max-width: 600px;
  padding: 24px;
  text-align: center;
}

#preloader-logo {
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s ease;
}

html.is-loading {
  overflow: hidden;
}

/* State when hiding */
#preloader.is-hidden {
  visibility: hidden;
  pointer-events: none;
  clip-path: circle(0% at var(--reveal-x, 50px) var(--reveal-y, 50px));
}

/* ==========================================================================
   HERO CASE TERMINAL
   ========================================================================== */
.hero__case-terminal {
  background-color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px rgba(18, 60, 58, 0.15);
  padding: 32px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  aspect-ratio: 0.82;
  color: white;
}

.hero__case-terminal::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.terminal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

.terminal__indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.pulse-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: beaconPulse 1.8s infinite;
}

@keyframes beaconPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.terminal__tabs {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.terminal__tab {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
}

.terminal__tab:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.terminal__tab.active {
  background: rgba(79, 157, 122, 0.1);
  border-color: var(--accent);
}

.tab__num {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
}

.tab__progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.tab__label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: white;
}

.tab__progress-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  width: 100%;
  overflow: hidden;
  position: relative;
}

.tab__progress-fill {
  height: 100%;
  width: 0%;
  background-color: var(--accent);
}

.terminal__body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-height: 180px;
}

.terminal__content {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.terminal__content.active {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: contentFadeIn 0.5s var(--ease-out-quint) forwards;
}

@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.terminal__meta {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
}

.terminal__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  font-family: var(--font-display);
}

.terminal__text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.terminal__stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-left: 2px solid var(--accent);
}

.terminal-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}

.terminal-stat-row span {
  color: rgba(255, 255, 255, 0.4);
}

.terminal__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   SHOWREEL (SCROLL GRID 3X3 ZOOM)
   ========================================================================== */
.video-section {
  position: relative;
  height: 400vh;
  background-color: var(--bg);
}

.sticky-video-section {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Texto Outlined de Fundo - Estilo Serifado Fraunces */
.sticky-video-section::before {
  content: 'JULLYANE GONÇALVES';
  position: absolute;
  font-family: var(--font-display);
  font-size: 14vw;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(18, 60, 58, 0.04);
  white-space: nowrap;
  letter-spacing: 2px;
  z-index: 1;
  pointer-events: none;
  text-align: center;
  width: 100%;
}

.video-section-text {
  position: absolute;
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 900;
  color: white;
  z-index: 20;
  text-align: center;
  width: 100%;
  pointer-events: none;
  opacity: 0;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.2), 0 16px 50px rgba(18, 60, 58, 0.6);
  letter-spacing: -0.02em;
  will-change: transform, opacity, filter;
}

.word-span {
  display: inline-block;
}

.highlight-word .letter-span {
  color: var(--secondary); /* Sand/beige color for "SEM LIMITES" */
  font-style: italic;
  font-weight: 800;
  text-shadow: 0 0 45px rgba(230, 222, 211, 0.25), 0 16px 50px rgba(18, 60, 58, 0.6);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 24px;
  width: 110vw;
  height: 110vh;
  transform: scale(3.5);
  transform-origin: center center;
  opacity: 1;
  transition: transform 0.1s linear;
  z-index: 5;
  pointer-events: none;
}

.video-wrapper {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(18, 60, 58, 0.03);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.video-wrapper:not(.video-wrapper-center) {
  opacity: 0;
}

.video-wrapper-center {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: white !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  text-align: center;
  padding: 32px;
  z-index: 10;
  grid-column: 2;
  grid-row: 2;
}



.grid-card-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}

.video-wrapper-center .grid-card-label {
  color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.grid-card-content {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-column {
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.grid-card-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.video-wrapper-center .grid-card-value {
  color: var(--accent);
}

.grid-card-huge {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-display);
}

.video-wrapper-center .grid-card-huge {
  color: white;
}

.grid-card-huge.accent {
  color: var(--accent);
}

/* Mini SVGs no Grid */
.small-wave {
  width: 100%;
  height: 40px;
}

.small-wave path {
  stroke: var(--accent);
}

.ecg-line {
  width: 100%;
  height: 30px;
}

.ecg-line path {
  stroke: var(--accent);
}

.force-bar-wrap {
  width: 100%;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 9px;
  overflow: hidden;
}

.force-bar {
  height: 100%;
  background-color: var(--accent);
  border-radius: 9px;
}

.circular-chart-neon {
  width: 50px;
  height: 50px;
}

.circular-chart-neon .circle-bg {
  fill: none;
  stroke: var(--secondary);
  stroke-width: 2.8;
}

.circular-chart-neon .circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.8;
  stroke-linecap: round;
}


.center-telemetry-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ==========================================================================
   SPINE DIAGNOSTIC CONSOLE
   ========================================================================== */
.about__diagnostic-console {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  background-color: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(18, 60, 58, 0.03);
  padding: 24px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  align-items: center;
}

.about__diagnostic-console::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 10%, rgba(79, 157, 122, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.console__left {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 12px;
  position: relative;
}

.spine-scanner-svg {
  width: 100%;
  height: 320px;
  display: block;
}

.spine-line {
  stroke-dasharray: 6 3;
  animation: spinePulse 3s ease-in-out infinite;
}

@keyframes spinePulse {
  0%, 100% { opacity: 0.7; stroke-width: 2.5px; }
  50% { opacity: 1; stroke-width: 3.5px; filter: drop-shadow(0 0 3px var(--accent)); }
}

.spine-node {
  transition: all 0.3s ease;
}

.spine-node:hover {
  r: 7.5px;
  fill: var(--accent);
  cursor: pointer;
}

.spine-node--alert {
  animation: nodeAlertPulse 1.5s infinite;
}

@keyframes nodeAlertPulse {
  0%, 100% {
    r: 5px;
    fill: var(--bg);
    stroke: var(--danger);
    filter: drop-shadow(0 0 2px var(--danger));
  }
  50% {
    r: 7px;
    fill: var(--danger);
    stroke: #ff7373;
    filter: drop-shadow(0 0 6px var(--danger));
  }
}

.laser-scanner-line {
  animation: scanSpine 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scanSpine {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.1;
  }
  5% {
    opacity: 0.8;
  }
  45% {
    opacity: 0.8;
  }
  50% {
    transform: translateY(350px);
    opacity: 0.1;
  }
  55% {
    opacity: 0.8;
  }
  95% {
    opacity: 0.8;
  }
}

.console__right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  justify-content: space-between;
}

.console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.console-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.console-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  animation: scanningBlink 1.5s infinite;
}

@keyframes scanningBlink {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.console-data-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.console-data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 6px;
}

.console-data-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.console-data-item .data-label {
  color: var(--muted);
  font-family: var(--font-mono);
}

.console-data-item .data-value {
  font-weight: 700;
}

.text-danger {
  color: var(--danger);
}

.console-alert {
  background-color: rgba(239, 68, 68, 0.03);
  border: 1px solid rgba(239, 68, 68, 0.12);
  padding: 12px;
  border-radius: 8px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.alert-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--danger);
  flex-shrink: 0;
  margin-top: 3px;
}

.pulse-danger {
  animation: dangerPulse 1.5s infinite;
}

@keyframes dangerPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    transform: scale(1.25);
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
  }
}

.alert-text {
  font-size: 10px;
  line-height: 1.4;
  color: var(--text);
}

.alert-text strong {
  color: var(--danger);
}

/* ==========================================================================
   TIMELINE (PROCESSO)
   ========================================================================== */
.timeline {
  position: relative;
}

.timeline-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.timeline-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  border: 4px border var(--bg);
  box-shadow: 0 4px 10px rgba(18, 60, 58, 0.1);
  transition: background-color 0.4s ease, color 0.4s ease;
}

.timeline-step.is-visible .timeline-number {
  background: var(--accent);
}

.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 80%;
  top: 10%;
  background-color: var(--border);
  z-index: 1;
}

.timeline-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--fill, 0%);
  background-color: var(--accent);
  transition: height 0.1s linear;
}

/* ==========================================================================
   INTERACTIVE QUIZ
   ========================================================================== */
.quiz-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(18, 60, 58, 0.02);
}

.quiz-progress-bar {
  height: 3px;
  background-color: var(--bg);
  width: 100%;
}

.quiz-progress-fill {
  height: 100%;
  width: 33.3%;
  background-color: var(--accent);
  transition: width 0.4s var(--ease-out-quint);
}

.quiz-step {
  padding: 48px;
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeInStep 0.4s var(--ease-out-quint) forwards;
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-step h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--primary);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  background-color: var(--bg);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.quiz-option:hover {
  background-color: rgba(79, 157, 122, 0.05);
  border-color: var(--accent);
}

.quiz-option.selected {
  background-color: rgba(79, 157, 122, 0.08);
  border-color: var(--accent);
}

.quiz-option .indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  position: relative;
  transition: var(--transition-fast);
}

.quiz-option.selected .indicator {
  border-color: var(--accent);
  background-color: var(--accent);
}

.quiz-option.selected .indicator::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: white;
}

.quiz-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 1px;
}

.form-control {
  background-color: var(--bg);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 16px;
  color: var(--text);
  font-size: 14px;
  transition: var(--transition-fast);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(79, 157, 122, 0.1);
}

.form-control.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-glow);
}

.quiz-footer {
  border-top: 1px solid var(--border);
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg);
}

.quiz-steps-indicators {
  display: flex;
  gap: 8px;
}

.quiz-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--secondary);
  transition: var(--transition-fast);
}

.quiz-indicator.active {
  background-color: var(--accent);
  transform: scale(1.15);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ==========================================================================
   TESTIMONIALS SLIDER
   ========================================================================== */
.testimonial-slider-wrap {
  position: relative;
  overflow: hidden;
}

.testimonial-slides {
  display: flex;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-controls {
  display: flex;
  gap: 12px;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--card);
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: rgba(79, 157, 122, 0.03);
}

/* ==========================================================================
   REVEAL OBSERVERS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out-quint), transform 0.8s var(--ease-out-quint);
}

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

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

.reveal-left {
  opacity: 0 !important;
  transform: translateX(-40px) !important;
  transition: opacity 1.2s var(--ease-out-quint), transform 1.2s var(--ease-out-quint) !important;
}
.reveal-left.active {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.reveal-right {
  opacity: 0 !important;
  transform: translateX(40px) !important;
  transition: opacity 1.2s var(--ease-out-quint), transform 1.2s var(--ease-out-quint) !important;
}
.reveal-right.active {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.reveal-scale {
  opacity: 0 !important;
  transform: scale(0.96) translateY(20px) !important;
  transition: opacity 1.2s var(--ease-out-quint), transform 1.2s var(--ease-out-quint) !important;
}
.reveal-scale.active {
  opacity: 1 !important;
  transform: scale(1) translateY(0) !important;
}

/* ==========================================================================
   RESPONSIVENESS MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .video-grid {
    transform: scale(2.4);
  }
}

@media (max-width: 768px) {
  .hero__case-terminal {
    aspect-ratio: auto;
    padding: 24px;
    text-align: left;
  }
  
  .terminal__title {
    font-size: 18px;
  }
  
  .terminal__text {
    font-size: 13px;
  }
  
  .terminal__tabs {
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 16px;
  }
  
  .terminal__tab {
    padding: 10px 8px;
    gap: 6px;
  }
  
  .tab__label {
    font-size: 9px;
  }
  
  .video-grid {
    gap: 16px;
    width: 125vw;
    height: 125vh;
  }
  
  .video-wrapper {
    padding: 16px;
  }
  
  .video-section-text {
    font-size: 52px;
  }
  
  .sticky-video-section::before {
    font-size: 16vw;
  }
  
  .about__diagnostic-console {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  
  .spine-scanner-svg {
    height: 260px;
  }
  
  .timeline-line {
    left: 24px;
    transform: none;
  }
  
  .timeline-marker {
    left: 24px;
    transform: translateX(-50%);
  }
  
  .timeline-step {
    padding-left: 64px;
    text-align: left !important;
    justify-content: flex-start;
  }
  
  .timeline-step > div:first-child {
    text-align: left !important;
    width: 100%;
  }
  
  .quiz-step {
    padding: 24px;
  }
  
  .quiz-footer {
    padding: 20px 24px;
  }
}
