/* ────────────────────────────────────────────────────────────────────────────
   Base & Variables
──────────────────────────────────────────────────────────────────────────── */
body {
  font-family: 'Outfit', Arial, sans-serif;
  /* Fix for mobile scrolling issues */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Fix iOS Safari viewport issues */
html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

/* ── Load Outfit Font ── */
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/Outfit-Thin.woff2') format('woff2'),
       url('../fonts/Outfit-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/Outfit-Regular.woff2') format('woff2'),
       url('../fonts/Outfit-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── CSS Variables for Consistency ── */
:root {
  /* Colors */
  --primary-color: #287392;
  --primary-light: #45b7d1;
  --primary-dark: #2d8fad;
  --accent-color: #2d8fad;
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --border-gray: #e9ecef;
  
  /* Typography */
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-weight-thin: 100;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  
  /* Spacing System */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
  
  /* Breakpoints */
  --mobile-small: 480px;
  --mobile: 768px;
  --tablet: 968px;
  --desktop: 1200px;
  
  /* Layout */
  --header-height: 56px;
  --header-margin: 32px;
  --section-padding: clamp(60px, 8vh, 120px);
  --content-max-width: 1200px;
  --video-max-width: 800px;
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reset a common grid overflow gotcha */
.two-column-layout > * { min-width: 0; }

/* ── Typography System ── */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

/* ────────────────────────────────────────────────────────────────────────────
   Header & Navigation
──────────────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: var(--spacing-md);
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, calc(100vw - var(--spacing-xl)));
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 0 var(--spacing-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.header-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #0070f3;
  width: 0%;
  transition: width 0.2s ease;
  z-index: 100;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  width: var(--progress, 0%);
  transition: width 0.2s ease;
}

.site-header .logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-header .logo img {
  height: 20px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Menu Toggle */
.menu-toggle {
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation */
.hero-nav {
  position: fixed;
  top: calc(var(--header-height) + var(--spacing-md) + var(--spacing-sm));
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  width: min(640px, calc(100vw - var(--spacing-xl)));
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 999;
  max-height: calc(100vh - 120px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-nav.open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-nav ul { list-style: none; padding: var(--spacing-md) 0; }

.hero-nav a {
  display: flex;
  flex-direction: column;
  padding: var(--spacing-md) var(--spacing-lg);
  text-decoration: none;
  min-height: 64px;
  justify-content: center;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
}

.hero-nav a:hover,
.hero-nav a:focus {
  background: rgba(45, 143, 173, 0.05);
  border-left-color: var(--accent-color);
}

.hero-nav a.active {
  background: rgba(45, 143, 173, 0.1);
  border-left-color: var(--accent-color);
}

.hero-nav .step-label {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-color);
  margin-bottom: 4px;
}

.hero-nav .step-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: var(--font-weight-normal);
  line-height: 1.2;
}

/* ────────────────────────────────────────────────────────────────────────────
   Hero
──────────────────────────────────────────────────────────────────────────── */
.hero-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1;
}

.hero {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, var(--primary-color) 20%, #132a39 70%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
  position: relative;
}

.hero-inner {
  max-width: 90%;
  z-index: 2;
}

.hero-inner h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: var(--font-weight-normal);
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

.hero-inner p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  opacity: 0.9;
  font-weight: var(--font-weight-thin);
}

/* ────────────────────────────────────────────────────────────────────────────
   Main & Sections
──────────────────────────────────────────────────────────────────────────── */
#content {
  position: relative;
  z-index: 2;
  background: var(--white);
}

.background-spacer { height: 0; }
.background { position: relative; background: var(--white); }

/* Section Base */
.stage {
  min-height: 100vh;
  padding: var(--section-padding) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.section-content {
  max-width: var(--content-max-width);
  width: 100%;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: var(--font-weight-normal);
  line-height: 1.2;
  margin-bottom: var(--spacing-xl);
  text-align: center;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-2xl);
  text-align: center;
}

.highlight-twist {
  color: var(--accent-color);
  font-weight: var(--font-weight-semibold);
}

/* ────────────────────────────────────────────────────────────────────────────
   Video Components
──────────────────────────────────────────────────────────────────────────── */
.video-container {
  position: relative;
  max-width: var(--video-max-width);
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16/9;
  width: 100%;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-controls {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container:hover .video-controls,
.video-container.paused .video-controls {
  opacity: 1;
  pointer-events: auto;
}

.play-pause-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(60px, 10vw, 80px);
  height: clamp(60px, 10vw, 80px);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.play-pause-btn:hover {
  background: var(--white);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-pause-btn svg {
  width: clamp(20px, 4vw, 32px);
  height: clamp(20px, 4vw, 32px);
  color: var(--text-primary);
}

.fullscreen-btn,
.mute-btn {
  position: absolute;
  width: clamp(36px, 6vw, 48px);
  height: clamp(36px, 6vw, 48px);
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  pointer-events: auto;
}

.fullscreen-btn { top: var(--spacing-md); right: var(--spacing-md); }
.mute-btn { bottom: var(--spacing-md); right: var(--spacing-md); }

.fullscreen-btn:hover,
.mute-btn:hover { background: rgba(0, 0, 0, 0.9); }

.fullscreen-btn svg,
.mute-btn svg {
  width: clamp(16px, 3vw, 20px);
  height: clamp(16px, 3vw, 20px);
  color: var(--white);
}

/* ────────────────────────────────────────────────────────────────────────────
   Section Specific
──────────────────────────────────────────────────────────────────────────── */

/* Section 1: Filter Installation */
.filter-installation-section {
  background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 100%);
}

/* Section 2: Plug & Position */
.plug-position-section {
  background: linear-gradient(135deg, #e8f4fd 0%, #d1e7f0 100%);
}

.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

.content-column .section-title {
  text-align: left;
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: var(--spacing-2xl);
}

.placement-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.placement-item {
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  border-left: 4px solid transparent;
  opacity: 0.6;
  transform: translateX(-10px);
  transition: all 0.4s ease;
  cursor: pointer;
  display: none;
}

.placement-item.active {
  opacity: 1;
  transform: translateX(0);
  border-left-color: var(--accent-color);
  display: block;
}

.placement-text {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.5;
  color: var(--text-primary);
}

.images-column {
  position: relative;
  height: clamp(300px, 40vw, 500px);
}

.image-scroller {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.1);
}

.placement-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placement-image.active {
  opacity: 1;
  transform: scale(1);
}

.placement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Section 3: App Pairing */
.app-pairing-section {
  background: #000;
  color: var(--white);
  text-align: center;
}

.app-section-header .section-title { color: var(--white); }
.app-section-header .section-subtitle {
  color: var(--accent-color);
  font-style: italic;
}

.app-video-container {
  max-width: var(--video-max-width);
  margin: 0 auto var(--spacing-xl);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  aspect-ratio: 16 / 9;
}

.app-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-guide { display: flex; justify-content: center; }

.download-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  background: rgba(45, 143, 173, 0.9);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.download-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.download-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* Section 4: Replacing the Filter */
.replacing-filter-section {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
  text-align: center;
}

.replacing-container {
  max-width: var(--video-max-width);
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--white);
  aspect-ratio: 16 / 9;
  position: relative;
  width: 100%;
}

.replacing-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.replacing-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition: all 0.8s ease;
}

.replacing-image.active {
  opacity: 1;
  transform: scale(1);
}

.replacing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Section 5: Filter Maintenance */
.filter-maintenance-section { background: var(--white); }

.filter-maintenance-section .content-column .section-title {
  text-align: left;
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: var(--spacing-2xl);
  color: var(--text-primary);
}

.maintenance-content { display: flex; flex-direction: column; }

.maintenance-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.maintenance-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: 0;
  background: transparent;
  border: none;
  opacity: 1;
  transform: none;
  transition: none;
  cursor: default;
}

.maintenance-bullet {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  flex-shrink: 0;
  margin-top: 0;
}

.maintenance-text {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: var(--font-weight-normal);
}

.maintenance-text strong {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
}

.maintenance-image-container {
  position: relative;
  width: 100%;
  height: clamp(300px, 40vw, 500px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.maintenance-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Section 6: Troubleshooting */
.troubleshooting-section {
  background: var(--white);
  color: var(--text-primary);
  text-align: center;
}

.support-links {
  max-width: var(--video-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.support-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 4vw, 2rem);
  background: var(--white);
  border-bottom: 2px solid var(--border-gray);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: var(--font-weight-medium);
}

.support-link:last-child { border-bottom: none; }
.support-link-text { flex: 1; text-align: left; }

.support-link-arrow {
  width: clamp(20px, 3vw, 24px);
  height: clamp(20px, 3vw, 24px);
  color: var(--text-primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.support-link:hover .support-link-arrow { transform: translateX(4px); }

/* ────────────────────────────────────────────────────────────────────────────
   Responsive
──────────────────────────────────────────────────────────────────────────── */

/* Tablet and smaller desktop */
@media (max-width: 968px) {
  :root { --section-padding: clamp(80px, 10vh, 100px); }
  
  .stage {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }

  .two-column-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    text-align: center;
  }

  .content-column .section-title { text-align: center; }
  .images-column { height: clamp(250px, 50vw, 400px); }
}

/* Mobile devices (<= 768px) */
@media (max-width: 768px) {
  :root {
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
    --spacing-xl: 1.25rem;
    --spacing-2xl: 2rem;
    --section-padding: 20px; /* Updated to 20px for top/bottom */
  }

  .site-header {
    width: calc(100vw - var(--spacing-md));
    padding: 0 var(--spacing-md);
    top: var(--spacing-sm);
  }

  .hero-nav a { padding: 12px 20px; }
  .hero-nav {
    width: calc(100vw - var(--spacing-md));
    top: calc(var(--header-height) + var(--spacing-sm) + var(--spacing-xs));
  }
  .hero-nav .step-label { font-size: 0.65rem; }
  .hero-nav .step-title { font-size: 0.95rem; }

  .hero-inner h1 { padding: 0 var(--spacing-md); }

  .stage {
    min-height: 80vh;
    padding-left: 20px;
    padding-right: 20px;
  }

  .video-container,
  .app-video-container,
  .replacing-container {
    border-radius: var(--radius-lg);
  }

  /* Ensure image column is tall enough on small screens */
  .plug-position-section .images-column {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    height: clamp(240px, 60vw, 360px) !important;
  }
  .plug-position-section .image-scroller {
    width: 100% !important;
    height: 100% !important;
  }
  /* Show at least one image if JS hasn't set .active yet */
  .plug-position-section .placement-image:first-child {
    opacity: 1 !important;
    transform: scale(1) !important;
  }

  .images-column { height: clamp(200px, 60vw, 300px); }
  .placement-item { padding: var(--spacing-md); }

  .nav-links { flex-direction: column; gap: var(--spacing-sm); }

  .support-link { font-size: clamp(1.125rem, 5vw, 1.5rem); }
}

/* Mobile devices (<= 480px) */
@media (max-width: 480px) {
  :root {
    --section-padding: 20px; /* Uniform 20px padding for all sections */
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
  }

  /* Base section adjustments */
  .stage {
    min-height: auto;
    padding: var(--section-padding) !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Header adjustments */
  .site-header {
    width: calc(100% - 40px);
    top: 10px;
    padding: 0 12px;
  }

  /* Hero section */
  .hero-inner h1 {
    font-size: 2rem;
    padding: 0;
    margin-bottom: var(--spacing-md);
  }
  .hero-inner p { font-size: 1rem; padding: 0; }

  /* Section titles */
  .section-title {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-lg);
    padding: 0;
  }
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: var(--spacing-xl);
    padding: 0;
  }

  /* Two column layout - force single column */
  .two-column-layout { grid-template-columns: 1fr; gap: var(--spacing-xl); padding: 0; }

  /* Content adjustments */
  .content-column, .images-column { padding: 0; }

  .content-column .section-title {
    text-align: center;
    font-size: 1.75rem;
  }

  /* Video/image containers (EXCLUDING .images-column to avoid collapse) */
  .video-container,
  .app-video-container,
  .replacing-container,
  .maintenance-image-container {
    border-radius: 12px;
    height: auto;
    max-height: 250px;
    margin: 0 auto var(--spacing-lg);
    padding: 0;
  }

  /* Dedicated mobile rules for Plug & Position image column */
  .plug-position-section .images-column {
    height: clamp(220px, 60vw, 320px) !important;
    max-height: none !important;
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 auto var(--spacing-lg);
  }
  .plug-position-section .image-scroller {
    height: 100% !important;
    min-height: 100% !important;
  }
  .plug-position-section .placement-image:first-child {
    opacity: 1;
    transform: scale(1);
  }

  /* Placement items */
  .placement-item { padding: var(--spacing-md); margin: 0; }

  /* Maintenance items */
  .maintenance-item { padding: 0; margin-bottom: var(--spacing-md); }

  /* Support links */
  .support-links { margin: 0; }
  .support-link { padding: var(--spacing-md) var(--spacing-lg); font-size: 1.1rem; }

  /* Remove unnecessary margins */
  .section-content > *:not(:last-child) { margin-bottom: var(--spacing-lg); }

  /* Buttons */
  .download-btn {
    padding: var(--spacing-md) var(--spacing-lg);
    width: 100%;
    justify-content: center;
  }

  /* Navigation */
  .hero-nav {
    width: calc(100% - 40px);
    top: 76px; /* header height + spacing */
    padding: 0;
  }

  .hero-nav a { padding: 12px 16px; min-height: 56px; }
  .hero-nav .step-label { font-size: 0.65rem; }
  .hero-nav .step-title { font-size: 0.95rem; }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  /* Add dark mode variables if needed */
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 100vh; }
  .stage {
    min-height: 80vh;
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
  }
}

/* Print styles */
@media print {
  .site-header,
  .hero-nav,
  .video-controls,
  .play-pause-btn,
  .fullscreen-btn,
  .mute-btn { display: none !important; }
  
  .stage {
    page-break-inside: avoid;
    min-height: auto;
  }
}
