/* Mito Health Inspired Design System for True Standard */
/* Based on Inter font family and clean modern aesthetic */

/* Base Variables */
:root {
  --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --color-bg: #f9f8f6;
  --color-text: #242322;
  --color-text-muted: #64635f;
  --color-accent: #10C67A;
  --color-dark: #242322;
  --color-white: #ffffff;
  --color-border: #e2e0dd;
  --max-width: 1400px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;
  --spacing-2xl: 80px;
  --spacing-3xl: 120px;
  --border-radius: 10px;
  --border-radius-full: 100px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Container Utilities */
.landing-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

@media (max-width: 810px) {
  .landing-container {
    padding: 0 var(--spacing-md);
  }
}

@media (max-width: 390px) {
  .landing-container {
    padding: 0 var(--spacing-sm);
  }
}

/* Section Spacing */
.landing-section {
  padding: var(--spacing-2xl) 0;
}

.landing-section-large {
  padding: var(--spacing-3xl) 0;
}

@media (max-width: 810px) {
  .landing-section {
    padding: var(--spacing-xl) 0;
  }
  
  .landing-section-large {
    padding: var(--spacing-2xl) 0;
  }
}

/* Header Styles */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  z-index: 100;
  height: 80px;
  transition: background-color 0.3s ease;
}

.landing-header.scrolled {
  background-color: rgba(249, 248, 246, 0.95);
  backdrop-filter: blur(10px);
}

/* Analytes page always has dark header background */
.analytes-page .landing-header {
  background-color: var(--color-dark);
}

/* Analytes page header text should be white */
.analytes-page .landing-logo {
  color: white !important;
}

.analytes-page .landing-nav a {
  color: white !important;
}

.analytes-page .landing-btn-primary {
  background-color: #8B5CF6;
  color: white;
}

.analytes-page .landing-btn-primary:hover {
  background-color: white;
  color: #8B5CF6;
}

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

.landing-logo {
  font-family: var(--font-inter);
  font-size: 28px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.landing-header.scrolled .landing-logo {
  color: var(--color-text);
}

.landing-nav {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-nav a {
  color: white;
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  transition: all 0.2s ease;
  font-family: var(--font-inter);
}

.landing-header.scrolled .landing-nav a {
  color: var(--color-text);
}

.landing-nav a:hover {
  opacity: 0.7;
}

@media (max-width: 810px) {
  .landing-nav {
    display: none;
  }
}

/* Ultra-Clean Button System */
/*
 * BUTTON DESIGN GUIDELINES:
 * - All buttons use 8px border radius (rounded-lg) for modern, professional feel
 * - Consistent 12px vertical, 24px horizontal padding
 * - Font weight 500 (medium) for readability
 * - -0.01em letter spacing for premium typography
 * - Smooth 0.3s transitions for color changes only
 * - NO shadows, NO borders, NO transform effects for ultra-clean aesthetic
 * - Color inversion on hover (background and text swap)
 *
 * BUTTON HIERARCHY:
 * .landing-btn-primary - Main CTA (purple background)
 * .landing-btn-secondary - Secondary CTA on dark backgrounds (transparent)
 * .landing-btn-dark - Primary CTA for light backgrounds (dark background)
 * .landing-btn-white - CTA for dark backgrounds (white background)
 * .landing-btn-light - Secondary CTA for light backgrounds (light gray)
 *
 * USAGE RULES:
 * - Use .landing-btn-primary or .landing-btn-dark on light backgrounds
 * - Use .landing-btn-white or .landing-btn-secondary on dark backgrounds
 * - Always pair with .landing-btn-arrow for CTAs with arrows
 * - Maintain consistent spacing between buttons (16px minimum)
 */

/* Primary Button - For main CTAs on light backgrounds */
.landing-btn-primary {
  background-color: #8B5CF6;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 15px;
  font-family: var(--font-inter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

/* Default hover for light backgrounds */
.landing-btn-primary:hover {
  background-color: #1F2937;
  color: white;
}

/* Hover for dark backgrounds (hero, CTA sections) */
.landing-hero .landing-btn-primary:hover,
.landing-cta-section .landing-btn-primary:hover,
.landing-how-it-works .landing-btn-primary:hover {
  background-color: white;
  color: #8B5CF6;
}

/* Header variant for transparent backgrounds */
.landing-header .landing-btn-primary {
  background-color: #8B5CF6;
  color: white;
}

.landing-header.scrolled .landing-btn-primary {
  background-color: #8B5CF6;
  color: white;
}

/* Header on dark hero: hover to white */
.landing-header .landing-btn-primary:hover {
  background-color: white;
  color: #8B5CF6;
}

/* Header scrolled on light bg: hover to dark gray */
.landing-header.scrolled .landing-btn-primary:hover {
  background-color: #1F2937;
  color: white;
}

/* Secondary Button - For secondary CTAs on dark backgrounds */
.landing-btn-secondary {
  background-color: transparent;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 15px;
  font-family: var(--font-inter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.landing-btn-secondary:hover {
  background-color: #1F2937;
  color: white;
}

/* Dark Button - Primary on light backgrounds (alias for consistency) */
.landing-btn-dark {
  background-color: var(--color-dark);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 15px;
  font-family: var(--font-inter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.landing-btn-dark:hover {
  background-color: #1F2937;
  color: white;
}

/* White Button - For CTAs on dark backgrounds */
.landing-btn-white {
  background-color: white;
  color: var(--color-text);
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: var(--font-inter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.landing-btn-white:hover {
  background-color: #1F2937;
  color: white;
}

/* Light Button - Secondary style for light backgrounds */
.landing-btn-light {
  background-color: #f8f9fa;
  color: var(--color-text);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 15px;
  font-family: var(--font-inter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.landing-btn-light:hover {
  background-color: #1F2937;
  color: white;
}

/* Button Arrow Animation */
.landing-btn-arrow::after {
  content: "→";
  transition: transform 0.2s ease;
}

.landing-btn-arrow:hover::after {
  transform: translateX(4px);
}

/* Hero Section */
.landing-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.landing-hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.landing-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.landing-hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 800px;
}

.landing-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-full);
  padding: 8px 16px;
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-inter);
}

.landing-hero-badge::before {
  content: "⚠";
  width: 16px;
  height: 16px;
  background: rgba(255, 193, 7, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.landing-hero h1 {
  /* Font family now controlled by Tailwind classes (font-serif/font-sans) */
  font-size: 72px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.landing-hero p {
  font-family: var(--font-inter);
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.5;
}

@media (max-width: 810px) {
  .landing-hero h1 {
    font-size: 48px;
  }
  
  .landing-hero p {
    font-size: 18px;
  }
}

@media (max-width: 390px) {
  .landing-hero h1 {
    font-size: 36px;
  }
  
  .landing-hero p {
    font-size: 16px;
  }
  
  .landing-hero-badge {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Tests Overview Section */
.landing-tests-overview {
  background-color: var(--color-bg);
  padding: var(--spacing-3xl) 0;
  text-align: center;
  overflow: hidden;
}

.landing-tests-overview h2 {
  /* Font family now controlled by Tailwind classes (font-serif/font-sans) */
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.landing-tests-overview p {
  font-family: var(--font-inter);
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 800px;
  margin: 0 auto var(--spacing-2xl);
  line-height: 1.6;
}

@media (max-width: 390px) {
  .landing-tests-overview h2 {
    font-size: 36px;
  }
  
  .landing-tests-overview p {
    font-size: 16px;
  }
}

/* Chemical Image Carousel - Ultra Clean Design */
.landing-chemical-carousel {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  margin-bottom: 80px;
  padding: 60px 0;
  background: transparent;
}

.landing-chemical-track {
  display: flex;
  gap: 40px;
  animation: scrollCarousel 20s linear infinite;
  will-change: transform;
}

.landing-chemical-card-wrapper {
  flex-shrink: 0;
  position: relative;
  width: auto;
  height: auto;
}

.landing-chemical-card {
  display: block;
  width: auto;
  height: 680px;
  object-fit: contain;
  border-radius: 28px;
}

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

@media (max-width: 1440px) {
  .landing-chemical-card {
    height: 600px;
  }
}

@media (max-width: 1024px) {
  .landing-chemical-carousel {
    padding: 50px 0;
  }

  .landing-chemical-track {
    gap: 32px;
  }

  .landing-chemical-card {
    height: 520px;
    border-radius: 24px;
  }
}

@media (max-width: 768px) {
  .landing-chemical-carousel {
    margin-bottom: 60px;
    padding: 40px 0;
  }

  .landing-chemical-track {
    gap: 24px;
  }

  .landing-chemical-card {
    height: 460px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .landing-chemical-carousel {
    margin-bottom: 48px;
    padding: 32px 0;
  }

  .landing-chemical-track {
    gap: 20px;
    animation: scrollCarousel 20s linear infinite;
  }

  .landing-chemical-card {
    height: 380px;
    border-radius: 18px;
  }
}

/* Advanced Testing Cards */
.landing-advanced-testing {
  background-color: white;
  padding: var(--spacing-3xl) 0;
}

.landing-advanced-testing h2 {
  /* Font family now controlled by Tailwind classes (font-serif/font-sans) */
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 16px;
  text-align: center;
}

.landing-advanced-testing .subtitle {
  font-family: var(--font-inter);
  font-size: 18px;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.landing-cards-container {
  position: relative;
  overflow: hidden;
}

.landing-cards-wrapper {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 32px;
  margin: 0 -32px;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .landing-cards-wrapper {
    padding: 0 24px;
    margin: 0 -24px;
    gap: 16px;
  }
}

.landing-cards-wrapper::-webkit-scrollbar {
  display: none;
}

.landing-test-card {
  flex: 0 0 300px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.landing-test-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
  .landing-test-card {
    flex: 0 0 280px;
  }
}

@media (max-width: 480px) {
  .landing-test-card {
    flex: 0 0 260px;
  }
}

/* Clean Card Style for Pricing and Other Sections */
.landing-card-clean {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(36, 35, 34, 0.1);
  transition: box-shadow 0.3s ease;
}

.landing-card-clean:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.landing-card-image {
  width: 100%;
  height: 200px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.landing-card-content {
  padding: 32px;
}

.landing-card-title {
  font-family: var(--font-inter);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.landing-card-description {
  font-family: var(--font-inter);
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.landing-learn-more {
  color: var(--color-text);
  text-decoration: underline;
  font-weight: 500;
  font-size: 16px;
  transition: opacity 0.2s ease;
  font-family: var(--font-inter);
}

.landing-learn-more:hover {
  opacity: 0.7;
}

@media (max-width: 390px) {
  .landing-advanced-testing h2 {
    font-size: 36px;
  }
  
  .landing-test-card {
    flex: 0 0 280px;
  }
  
  .landing-card-content {
    padding: 24px;
  }
}

/* How It Works (Dark) */
.landing-how-it-works {
  background-color: var(--color-dark);
  color: white;
  padding: var(--spacing-3xl) 0;
}

.landing-how-it-works h2 {
  /* Font family, size, weight, spacing now controlled by Tailwind classes */
  color: white;
}

.landing-steps-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  align-items: start;
}

.landing-steps-connector {
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--color-text-muted) 0px,
    var(--color-text-muted) 8px,
    transparent 8px,
    transparent 16px
  );
  z-index: 1;
}

.landing-process-step {
  position: relative;
  z-index: 2;
}

.landing-step-number {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 32px;
  position: relative;
  font-family: var(--font-inter);
}

.landing-step-number.active {
  background-color: #8B7CF6;
  color: white;
}

.landing-step-number.inactive {
  background-color: var(--color-text-muted);
  color: white;
}

.landing-step-title {
  font-family: var(--font-inter);
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
  line-height: 1.3;
}

.landing-step-description {
  font-family: var(--font-inter);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .landing-steps-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .landing-steps-connector {
    display: none;
  }
}

@media (max-width: 810px) {
  .landing-how-it-works {
    padding: var(--spacing-2xl) 0;
  }
  
  .landing-how-it-works h2 {
    /* Font size and spacing now controlled by Tailwind classes */
    color: white;
  }
  
  .landing-steps-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Animation Utilities */
.landing-fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-animate-delay-1 {
  animation-delay: 0.1s;
}

.landing-animate-delay-2 {
  animation-delay: 0.2s;
}

.landing-animate-delay-3 {
  animation-delay: 0.3s;
}

/* Card and Grid Layouts */
.landing-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.landing-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

/* Testimonial Cards */
.landing-testimonial-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 32px;
  height: 100%;
  position: relative;
}

.landing-testimonial-card blockquote {
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
  color: var(--color-text);
}

.landing-testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.landing-author-image {
  width: 48px;
  height: 48px;
  border-radius: 1000px;
  background-color: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-text-muted);
  font-family: var(--font-inter);
}

.landing-author-info h4 {
  font-family: var(--font-inter);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text);
  margin: 0;
}

.landing-author-info p {
  font-family: var(--font-inter);
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

/* CTA Section */
.landing-cta-section {
  background-color: var(--color-dark);
  color: white;
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-lg);
  margin: 0;
}

.landing-cta-section h2 {
  /* Font family now controlled by Tailwind classes (font-serif/font-sans) */
  font-size: 40px;
  font-weight: 400;
  margin-bottom: 16px;
}

.landing-cta-section p {
  font-family: var(--font-inter);
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.8;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Stats Section */
.landing-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.landing-stat-item h3 {
  font-family: var(--font-inter);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.landing-stat-item p {
  font-family: var(--font-inter);
  font-size: 16px;
  color: var(--color-text-muted);
  margin: 0;
}

/* Footer */
.landing-footer {
  background-color: var(--color-dark);
  color: white;
  padding: 64px 0 32px;
}

.landing-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.landing-footer h4 {
  font-family: var(--font-inter);
  font-weight: 600;
  margin-bottom: 16px;
  color: white;
}

.landing-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.landing-footer ul li {
  margin-bottom: 8px;
}

.landing-footer ul li a {
  font-family: var(--font-inter);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-footer ul li a:hover {
  color: var(--color-accent);
}

.landing-footer-bottom {
  border-top: 1px solid #404040;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.landing-footer-bottom p {
  font-family: var(--font-inter);
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 0;
}

@media (max-width: 810px) {
  .landing-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .landing-cta-section {
    margin: 0 16px;
  }
}

/* Pricing Grid Responsive */
.landing-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

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

/* Stats Grid Responsive */
@media (max-width: 768px) {
  .landing-stats-clean-grid {
    grid-template-columns: 1fr !important;
    gap: 60px !important;
  }
}

/* Analytes Page Styles */
.analytes-page {
  min-height: 100vh;
  background-color: var(--color-bg);
}

.analytes-hero {
  padding-top: 160px;
  padding-bottom: 80px;
  background-color: var(--color-dark);
}

.analytes-hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.analytes-hero h1 {
  font-size: 64px;
  font-weight: 400;
  line-height: 1.1;
  color: white;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.analytes-hero h1 .accent {
  color: #8B5CF6; /* Purple primary color */
}

.analytes-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.analytes-legend {
  margin-bottom: 80px;
}

.analytes-legend-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-full);
  font-size: 13px;
  font-weight: 500;
  color: white;
}

.analytes-legend-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.analytes-categories {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 80px;
  padding-bottom: 40px;
}

.analytes-category {
  margin-bottom: 80px;
}

.analytes-category-header {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.analytes-category-title-row {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.analytes-category-title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin: 0;
  padding: 0;
}

.analytes-category-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: #8B5CF6; /* Purple primary color */
  color: white;
  border-radius: var(--border-radius-full);
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}

.analytes-category-count {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.analytes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.analyte-card {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: var(--color-white);
  transition: all 0.3s ease;
}

.analyte-card:hover {
  /* Removed shadow effect */
}

.analyte-card-header {
  padding: 20px 24px;
  background-color: var(--color-bg);
  transition: background-color 0.2s ease;
}

.analyte-card-header:focus {
  outline: none;
}

.analyte-card-header:hover {
  background-color: var(--color-white);
}

.analyte-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.analyte-card-description {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.analyte-card-icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transform: rotate(0deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.analyte-card-icon.rotate-45 {
  transform: rotate(90deg) !important;
}

.analyte-card-content {
  padding: 0 24px 24px 24px;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  transition: background-color 0.2s ease;
}

.analyte-card[data-accordion-expanded="true"]:hover .analyte-card-content {
  background-color: var(--color-bg);
}

.analyte-card-content-inner {
  padding-top: 20px;
}

.analyte-explanation {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 16px;
}

.analyte-details {
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.analyte-detail-item {
  margin-bottom: 12px;
}

.analyte-detail-item:last-child {
  margin-bottom: 0;
}

.analyte-detail-label {
  font-weight: 600;
  color: var(--color-text);
  font-size: 13px;
}

.analyte-detail-value {
  color: var(--color-text-muted);
  font-size: 13px;
  margin-top: 4px;
  line-height: 1.5;
}

.analytes-footer-note {
  max-width: 1000px;
  margin: 60px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.analytes-footer-text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .analytes-hero {
    padding-top: 140px;
    padding-bottom: 60px;
  }

  .analytes-hero h1 {
    font-size: 48px;
  }

  .analytes-category-title {
    font-size: 28px;
  }

  .analytes-category {
    margin-bottom: 60px;
  }

  .analytes-categories {
    padding-top: 60px;
  }
}

@media (max-width: 480px) {
  .analytes-hero {
    padding-top: 120px;
    padding-bottom: 40px;
  }

  .analytes-hero h1 {
    font-size: 36px;
  }

  .analytes-hero p {
    font-size: 16px;
  }

  .analytes-legend {
    flex-direction: column;
    gap: 12px;
  }

  .analytes-category {
    margin-bottom: 48px;
  }

  .analytes-categories {
    padding-top: 40px;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Scrolling marquee animations for hazard pills */
.scrolling-row {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.scrolling-content {
  display: inline-flex;
  gap: 16px;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Odd rows (1,3) scroll left to right - very slow speed, start immediately visible */
.scrolling-odd .scrolling-content {
  animation-name: scroll-left-to-right-immediate;
  animation-duration: 120s;
}

/* Even rows (2,4) scroll right to left - very slow speed, start immediately visible */
.scrolling-even .scrolling-content {
  animation-name: scroll-right-to-left-immediate;
  animation-duration: 120s;
}

@keyframes scroll-left-to-right {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes scroll-right-to-left {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes scroll-left-to-right-immediate {
  0% {
    transform: translateX(-33.33%);
  }

  100% {
    transform: translateX(0%);
  }
}

@keyframes scroll-right-to-left-immediate {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-33.33%);
  }
}

/* Pause animation on hover for better UX */
.scrolling-row:hover .scrolling-content {
  animation-play-state: paused;
}

/* Enhanced pill styling */
.hazard-pill {
  font-feature-settings: "kern" 1;
  letter-spacing: 0.01em;
}

.hazard-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hazard-pill:hover::before {
  opacity: 1;
}

/* Scroll Animation Styles */
.animate-on-scroll {
  will-change: opacity, transform, filter;
}

/* Enhanced scroll animations for modern feel */
@supports (will-change: transform) {
  .animate-on-scroll {
    backface-visibility: hidden;
    perspective: 1000px;
  }
}

/* Design System Animations */
.stagger-container {
  animation-delay: 0s;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* Hover effects for interactive elements */
.transition-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Enhanced button hover effects */
.btn-hover-effect {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-hover-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-hover-effect:hover::before {
  left: 100%;
}

/* Card animations */
.card-enter {
  animation: cardEnter 0.5s ease-out;
}

@keyframes cardEnter {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Loading animations */
.loading-pulse {
  animation: loadingPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Skeleton loading animation */
.skeleton {
  animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
  0% {
    background-color: hsl(200, 20%, 80%);
  }
  100% {
    background-color: hsl(200, 20%, 95%);
  }
}

/* Fade transitions for route changes */
.page-transition-enter {
  opacity: 0;
  transform: translateY(10px);
}

.page-transition-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-transition-exit {
  opacity: 1;
  transform: translateY(0);
}

.page-transition-exit-active {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Reduced motion support - respect user preferences */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  [data-controller="scroll-animate"] [data-scroll-animate-target="animate"] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Smooth scrolling for the whole page */
html {
  scroll-behavior: smooth;
}

/* Enhanced focus styles for accessibility */
*:focus-visible {
  outline: 2px solid theme('colors.blue.500');
  outline-offset: 2px;
  border-radius: 4px;
}
