@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   CSS CUSTOM PROPERTIES & COLOR SYSTEM (Light Mode Default)
   ========================================================================== */
:root {
  color-scheme: light;
  
  /* HSL Color Palette Tokens */
  --bg-primary-hsl: 36, 15%, 97%;      /* Warm Soft Off-White */
  --bg-secondary-hsl: 40, 10%, 93%;    /* Warm Muted Sand */
  --bg-tertiary-hsl: 150, 10%, 90%;    /* Warm Light Sage */
  
  --text-primary-hsl: 162, 28%, 12%;   /* Deep Forest Slate */
  --text-secondary-hsl: 162, 14%, 34%; /* Muted Sage Slate */
  --text-muted-hsl: 162, 8%, 52%;      /* Faded Sage Slate */
  
  --accent-sage-hsl: 154, 25%, 38%;    /* Active Leaf Green */
  --accent-blue-hsl: 204, 28%, 42%;    /* Soft Slate Blue */
  --accent-warm-hsl: 18, 48%, 56%;     /* Gentle Terracotta / Warning */
  
  /* Borders and Glassmorphism */
  --border-color: hsla(var(--text-primary-hsl), 0.08);
  --border-focus: hsla(var(--accent-sage-hsl), 0.4);
  --card-bg: rgba(255, 255, 255, 0.65);
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow-color: rgba(28, 46, 38, 0.04);
  --shadow-hover: rgba(28, 46, 38, 0.08);
  --glow-color: rgba(94, 142, 119, 0.12);

  /* Font Families */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Spacing & Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container-max: 1200px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   DARK MODE OVERRIDES (Native Media & Class Override)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root:not(.light-mode-forced) {
    color-scheme: dark;
    --bg-primary-hsl: 162, 22%, 6%;     /* Very Deep Forest Black */
    --bg-secondary-hsl: 162, 14%, 9%;   /* Dark Charcoal Sage */
    --bg-tertiary-hsl: 162, 12%, 13%;   /* Deep Forest Gray */
    
    --text-primary-hsl: 140, 16%, 92%;  /* Warm Pale Sage */
    --text-secondary-hsl: 150, 10%, 72%;/* Muted Sage Gray */
    --text-muted-hsl: 150, 8%, 54%;     /* Faded Sage Gray */
    
    --accent-sage-hsl: 154, 34%, 55%;   /* Vibrant Leaf Sage */
    --accent-blue-hsl: 204, 38%, 58%;   /* Vibrant Slate Blue */
    --accent-warm-hsl: 18, 56%, 62%;    /* Vibrant Terracotta */
    
    --border-color: hsla(var(--text-primary-hsl), 0.08);
    --border-focus: hsla(var(--accent-sage-hsl), 0.5);
    --card-bg: rgba(21, 31, 27, 0.55);
    --glass-bg: rgba(10, 15, 13, 0.45);
    --glass-border: rgba(40, 52, 47, 0.35);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --shadow-hover: rgba(0, 0, 0, 0.55);
    --glow-color: rgba(110, 184, 148, 0.08);
  }
}

.dark-mode {
  color-scheme: dark;
  --bg-primary-hsl: 162, 22%, 6%;
  --bg-secondary-hsl: 162, 14%, 9%;
  --bg-tertiary-hsl: 162, 12%, 13%;
  
  --text-primary-hsl: 140, 16%, 92%;
  --text-secondary-hsl: 150, 10%, 72%;
  --text-muted-hsl: 150, 8%, 54%;
  
  --accent-sage-hsl: 154, 34%, 55%;
  --accent-blue-hsl: 204, 38%, 58%;
  --accent-warm-hsl: 18, 56%, 62%;
  
  --border-color: hsla(var(--text-primary-hsl), 0.08);
  --border-focus: hsla(var(--accent-sage-hsl), 0.5);
  --card-bg: rgba(21, 31, 27, 0.55);
  --glass-bg: rgba(10, 15, 13, 0.45);
  --glass-border: rgba(40, 52, 47, 0.35);
  --shadow-color: rgba(0, 0, 0, 0.4);
  --shadow-hover: rgba(0, 0, 0, 0.55);
  --glow-color: rgba(110, 184, 148, 0.08);
}

/* Base Variable Maps for Styles */
:root {
  --bg-primary: hsl(var(--bg-primary-hsl));
  --bg-secondary: hsl(var(--bg-secondary-hsl));
  --bg-tertiary: hsl(var(--bg-tertiary-hsl));
  --text-primary: hsl(var(--text-primary-hsl));
  --text-secondary: hsl(var(--text-secondary-hsl));
  --text-muted: hsl(var(--text-muted-hsl));
  --accent-sage: hsl(var(--accent-sage-hsl));
  --accent-blue: hsl(var(--accent-blue-hsl));
  --accent-warm: hsl(var(--accent-warm-hsl));
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--accent-sage);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   REUSABLE LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-padding {
  padding-top: 120px;
  padding-bottom: 120px;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 var(--shadow-color);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-sage);
  margin-bottom: 16px;
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.15;
}

.serif-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
}

/* Gradients */
.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-sage) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  gap: 8px;
}

.btn-primary {
  background-color: var(--accent-sage);
  color: #ffffff !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px hsl(var(--accent-sage-hsl), 0.35);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* ==========================================================================
   STICKY HEADER & NAV
   ========================================================================== */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 24px 0;
}

.header-scrolled {
  padding: 12px 0;
  background-color: rgba(var(--bg-primary-hsl), 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px var(--shadow-color);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-sage));
  display: block;
  overflow: hidden;
  box-shadow:
    0 4px 12px hsl(var(--accent-sage-hsl), 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.85);
  transform-origin: 50% 36%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

@media (max-width: 768px) {
  .main-nav {
    display: none; /* Mobile menu can toggle or be a simplified overlay */
  }
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 560px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-actions > .btn-primary {
    display: none;
  }

  .logo-link {
    font-size: 1.05rem;
  }
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Toggle Sun/Moon details */
.theme-toggle-btn .sun-icon {
  display: block;
}
.theme-toggle-btn .moon-icon {
  display: none;
}

.dark-mode .theme-toggle-btn .sun-icon {
  display: none;
}
.dark-mode .theme-toggle-btn .moon-icon {
  display: block;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-sec {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, hsla(var(--accent-sage-hsl), 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, hsla(var(--accent-blue-hsl), 0.05) 0%, transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
}

.hero-content {
  z-index: 10;
}

.hero-title {
  font-size: clamp(3.2rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
  max-width: 600px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .hero-ctas {
    justify-content: center;
  }
}

/* ==========================================================================
   HERO VISUAL & FLOATING BADGES
   ========================================================================== */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Ambient glow behind mockup */
.hero-visual-wrapper::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* Mockup Layout */
.device-mockup {
  position: relative;
  width: 275px;
  height: 570px;
  border-radius: 40px;
  border: 10px solid var(--text-primary);
  background-color: var(--bg-secondary);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    inset 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 2;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.device-mockup:hover {
  transform: rotateY(5deg) rotateX(5deg) scale(1.02);
}

.hero-device {
  border: 12px solid hsl(162, 22%, 8%);
  border-radius: 46px;
  background: hsl(162, 22%, 8%);
  box-shadow:
    0 28px 70px -18px rgba(0, 0, 0, 0.38),
    0 0 0 1px hsla(var(--text-primary-hsl), 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-device::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: 32px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    inset 0 18px 32px rgba(255, 255, 255, 0.08),
    inset 0 -18px 32px rgba(0, 0, 0, 0.08);
}

.showcase-device {
  border: 12px solid hsl(162, 22%, 8%);
  border-radius: 46px;
  background: hsl(162, 22%, 8%);
  box-shadow:
    0 28px 70px -18px rgba(0, 0, 0, 0.36),
    0 0 0 1px hsla(var(--text-primary-hsl), 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.showcase-device::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: 32px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    inset 0 18px 32px rgba(255, 255, 255, 0.07),
    inset 0 -18px 32px rgba(0, 0, 0, 0.08);
}

.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  padding: 12px 14px;
}

.app-screenshot-screen {
  display: block;
  padding: 0;
  background: #f6fbf8;
  border-radius: 30px;
}

.hero-app-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.showcase-screenshot-screen {
  display: block;
  padding: 0;
  border-radius: 30px;
  background: #f6fbf8;
}

.showcase-app-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px var(--shadow-color);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 6s ease-in-out infinite;
  border: 1px solid var(--glass-border);
  background: rgba(var(--bg-primary-hsl), 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: max-content;
}

.badge-noise {
  top: 8%;
  left: -15%;
  animation-delay: 0s;
}

.badge-crowd {
  top: 35%;
  right: -20%;
  animation-delay: 1.5s;
}

.badge-light {
  bottom: 25%;
  left: -22%;
  animation-delay: 3s;
}

.badge-match {
  bottom: 8%;
  right: -12%;
  animation-delay: 4.5s;
}

@media (max-width: 1024px) {
  .hero-visual-wrapper {
    margin-top: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .badge-noise { left: -5%; }
  .badge-crowd { right: -5%; }
  .badge-light { left: -10%; }
  .badge-match { right: -5%; }
}

@media (max-width: 480px) {
  .floating-badge {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .badge-noise { top: 4%; left: -2%; }
  .badge-crowd { top: 30%; right: -2%; }
  .badge-light { bottom: 18%; left: -4%; }
  .badge-match { bottom: 4%; right: -2%; }
}

.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.badge-icon-sage {
  background-color: hsla(var(--accent-sage-hsl), 0.15);
  color: var(--accent-sage);
}

.badge-icon-blue {
  background-color: hsla(var(--accent-blue-hsl), 0.15);
  color: var(--accent-blue);
}

.badge-icon-warm {
  background-color: hsla(var(--accent-warm-hsl), 0.15);
  color: var(--accent-warm);
}

.badge-info {
  display: flex;
  flex-direction: column;
}

.badge-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

.badge-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   PROBLEM SECTION
   ========================================================================== */
.problem-sec {
  background-color: var(--bg-secondary);
}

.section-head {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 64px auto;
}

.section-head h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.6;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

.problem-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}

.problem-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--shadow-hover);
  border-color: var(--border-focus);
}

.problem-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.problem-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.problem-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   HOW IT WORKS SECTION
   ========================================================================== */
.how-sec {
  background-color: var(--bg-primary);
}

.how-steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

@media (max-width: 900px) {
  .how-steps-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* Connector line for steps (desktop only) */
@media (min-width: 901px) {
  .how-steps-container::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, 
      hsla(var(--accent-sage-hsl), 0.1) 0%, 
      hsla(var(--accent-sage-hsl), 0.4) 50%, 
      hsla(var(--accent-blue-hsl), 0.1) 100%);
    z-index: 1;
  }
}

.how-step {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4);
}

.step-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 300px;
  margin-bottom: 24px;
}

/* UI Mini-Previews inside steps */
.step-preview {
  width: 100%;
  max-width: 280px;
  height: 170px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  padding: 16px;
  background-color: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 20px var(--shadow-color);
}

/* Step 1 Preview details */
.preview-factors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  height: 100%;
}
.factor-pill {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border: 1px solid var(--border-color);
}
.factor-pill span {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}
.factor-pill strong {
  font-size: 0.85rem;
  color: var(--text-primary);
}

/* Step 2 Preview details */
.preview-score-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 8px;
}

.circle-score-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-sage) 0% 88%, var(--border-color) 88% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-score-inner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

/* Step 3 Preview details */
.preview-support {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 12px;
}
.pulse-circle-preview {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: hsla(var(--accent-sage-hsl), 0.15);
  border: 2px solid var(--accent-sage);
  animation: breathing 4s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pulse-circle-preview::after {
  content: '';
  width: 12px;
  height: 12px;
  background-color: var(--accent-sage);
  border-radius: 50%;
}
.support-subtext {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-sage);
}

/* ==========================================================================
   CORE FEATURES SECTION
   ========================================================================== */
.features-sec {
  background-color: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px var(--shadow-hover);
  border-color: var(--border-focus);
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-sage);
  background-color: hsla(var(--accent-sage-hsl), 0.08);
}

.feature-card:nth-child(even) .feature-icon-wrapper {
  color: var(--accent-blue);
  background-color: hsla(var(--accent-blue-hsl), 0.08);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   APP SHOWCASE SECTION (Premium Launch Page style)
   ========================================================================== */
.showcase-sec {
  background-color: var(--bg-primary);
  overflow: hidden;
  position: relative;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 1024px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* Navigation tabs (controls on the left/top) */
.showcase-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 1024px) {
  .showcase-controls {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.showcase-tab {
  background: none;
  border: 1px solid var(--border-color);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

@media (max-width: 1024px) {
  .showcase-tab {
    width: auto;
    padding: 12px 18px;
  }
}

.showcase-tab:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-muted);
}

.showcase-tab.active {
  background-color: var(--card-bg);
  border-color: var(--accent-sage);
  box-shadow: 0 8px 20px var(--shadow-color);
}

.tab-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-tab.active .tab-number {
  background-color: var(--accent-sage);
  color: #fff;
  border-color: var(--accent-sage);
}

.tab-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.showcase-tab.active .tab-title {
  color: var(--text-primary);
}

/* Showcase Mockup wrapper (center/right) */
.showcase-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

/* Device screen display screens */
.mockup-screen-content {
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.4s ease;
  overflow-y: auto;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}
.mockup-screen-content::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.mockup-screen-content.active {
  display: flex;
  opacity: 1;
}

/* ==========================================================================
   MISSION SECTION (Designed for Independence)
   ========================================================================== */
.mission-sec {
  background-color: var(--bg-secondary);
  position: relative;
}

.mission-wrapper {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.mission-text {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: var(--text-primary);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.mission-text span {
  display: block;
  margin-top: 24px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0;
}

/* ==========================================================================
   ACCESSIBILITY & TRUST SECTION
   ========================================================================== */
.trust-sec {
  background-color: var(--bg-primary);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.trust-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  transition: var(--transition-smooth);
}

.trust-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
}

.trust-icon-wrapper {
  color: var(--accent-sage);
  margin-bottom: 24px;
}

.trust-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.trust-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   FINAL CTA SECTION
   ========================================================================== */
.cta-sec {
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.cta-box {
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: 
    radial-gradient(circle at top right, hsla(var(--accent-sage-hsl), 0.1) 0%, transparent 40%),
    radial-gradient(circle at bottom left, hsla(var(--accent-blue-hsl), 0.1) 0%, transparent 40%);
}

@media (max-width: 768px) {
  .cta-box {
    padding: 60px 24px;
  }
}

.cta-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.cta-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer-sec {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 80px;
  padding-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  margin-bottom: 64px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 320px;
  margin-bottom: 24px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.footer-column h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-column a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal-page {
  min-height: 100vh;
  padding-top: 160px;
  background:
    radial-gradient(circle at top left, hsla(var(--accent-sage-hsl), 0.08) 0%, transparent 32%),
    var(--bg-primary);
}

.legal-wrapper {
  max-width: 820px;
}

.legal-wrapper h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.legal-updated {
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 48px;
}

.legal-content {
  display: grid;
  gap: 28px;
  color: var(--text-secondary);
}

.legal-content h2 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.legal-content p {
  font-size: 1rem;
  line-height: 1.75;
}

.legal-content a {
  color: var(--accent-sage);
  font-weight: 700;
}

@media (max-width: 560px) {
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ==========================================================================
   SCROLL INTERSECTION ANIMATION UTILITIES
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Custom delay utility classes */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   INTERACTIVE MARKETING ENHANCEMENTS STYLES
   ========================================================================== */

/* 1. On-Site Accessibility Settings */
:root {
  --font-scale: 1;
}

body {
  font-size: calc(1rem * var(--font-scale));
}

.accessibility-menu {
  position: relative;
  display: inline-block;
}

.a11y-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 250px;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px var(--shadow-color);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition-fast);
  z-index: 1001;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.a11y-dropdown.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.a11y-option {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.a11y-option:last-child {
  margin-bottom: 0;
}

.a11y-option span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.a11y-btn-group {
  display: flex;
  gap: 8px;
}

.a11y-opt-btn {
  flex: 1;
  padding: 8px 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.a11y-opt-btn:hover {
  background: var(--border-color);
}

.a11y-opt-btn.active {
  background: var(--accent-sage);
  color: #fff;
  border-color: var(--accent-sage);
}

.a11y-opt-toggle {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  transition: var(--transition-fast);
}

.a11y-opt-toggle:hover {
  background: var(--border-color);
}

.a11y-opt-toggle.active {
  background: var(--accent-sage);
  color: #fff;
  border-color: var(--accent-sage);
}

/* Dyslexia Mode Stack Override */
.dyslexia-mode, .dyslexia-mode * {
  font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", sans-serif !important;
  letter-spacing: 0.06em !important;
  word-spacing: 0.12em !important;
  line-height: 1.8 !important;
}

/* High Contrast Styling Overrides */
.high-contrast {
  --bg-primary-hsl: 0, 0%, 100% !important;
  --bg-secondary-hsl: 0, 0%, 96% !important;
  --bg-tertiary-hsl: 0, 0%, 90% !important;
  
  --text-primary-hsl: 0, 0%, 0% !important;
  --text-secondary-hsl: 0, 0%, 5% !important;
  --text-muted-hsl: 0, 0%, 10% !important;
  
  --accent-sage-hsl: 154, 100%, 15% !important;
  --accent-blue-hsl: 204, 100%, 15% !important;
  --accent-warm-hsl: 18, 100%, 20% !important;
  
  --border-color: #000000 !important;
  --border-focus: #000000 !important;
  --card-bg: #ffffff !important;
  --glass-bg: #ffffff !important;
  --glass-border: #000000 !important;
}

.dark-mode.high-contrast {
  --bg-primary-hsl: 0, 0%, 0% !important;
  --bg-secondary-hsl: 0, 0%, 5% !important;
  --bg-tertiary-hsl: 0, 0%, 10% !important;
  
  --text-primary-hsl: 0, 0%, 100% !important;
  --text-secondary-hsl: 0, 0%, 95% !important;
  --text-muted-hsl: 0, 0%, 90% !important;
  
  --accent-sage-hsl: 154, 100%, 85% !important;
  --accent-blue-hsl: 204, 100%, 85% !important;
  --accent-warm-hsl: 18, 100%, 80% !important;
  
  --border-color: #ffffff !important;
  --border-focus: #ffffff !important;
  --card-bg: #000000 !important;
  --glass-bg: #000000 !important;
  --glass-border: #ffffff !important;
}

.high-contrast .glass,
.high-contrast .problem-card,
.high-contrast .feature-card,
.high-contrast .trust-card,
.high-contrast .showcase-tab,
.high-contrast .btn,
.high-contrast .device-mockup {
  border: 2px solid var(--border-color) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 2. Sensory Match Calculator Styles */
.calculator-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: auto !important;
  min-height: 260px;
}

.calc-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 8px;
}

.calc-heading {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.calc-score-badge {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-sage);
  background: hsla(var(--accent-sage-hsl), 0.12);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.calc-sliders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.calc-slider-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 99px;
  outline: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-sage);
  cursor: pointer;
  transition: transform 0.1s ease;
  border: 2px solid var(--bg-primary);
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-feedback-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 0.68rem;
  color: var(--text-secondary);
  border-top: 1px dashed var(--border-color);
  padding-top: 8px;
}

.calc-match-text {
  font-weight: 700;
  color: var(--accent-sage);
}

/* 4. Showcase Slider Carousel Styles */
.showcase-slider-wrapper {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-slider-wrapper .mockup-screen-content {
  display: flex !important;
  opacity: 1 !important;
  width: 20%;
  flex-shrink: 0;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 0;
}

.showcase-slider-wrapper .mockup-screen-content::-webkit-scrollbar {
  display: none;
}
