/* Import Ovo - elegant serif font */
@import url('https://fonts.googleapis.com/css2?family=Ovo&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Theme Colors (Day) */
    --light-primary-color: #f8f9fa;
    --light-primary-dark: #e9ecef;
    --light-primary-light: #ffffff;
    --light-secondary-color: #6c757d;
    --light-accent-color: #2d5a3d;
    --light-accent-light: #4a7c59;
    --light-accent-dark: #1a3d2a;
    --light-accent-forest: #2d5a3d;
    --light-accent-sage: #6b8e6b;
    --light-accent-moss: #4a7c59;
    
    /* Light Theme Text Colors */
    --light-text-primary: #212529;
    --light-text-secondary: #6c757d;
    --light-text-light: #868e96;
    --light-text-muted: #adb5bd;
    --light-text-forest: #2d5a3d;
    
    /* Light Theme Background Colors */
    --light-bg-primary: #ffffff;
    --light-bg-secondary: #f8f9fa;
    --light-bg-accent: #e9ecef;
    --light-bg-dark: #dee2e6;
    --light-bg-card: #ffffff;
    --light-bg-card-hover: #f8f9fa;
    --light-bg-glass: rgba(255, 255, 255, 0.9);
    
    /* Dark Theme Colors (Night) */
    --dark-primary-color: #fafafa;
    --dark-primary-dark: #e5e5e5;
    --dark-primary-light: #ffffff;
    --dark-secondary-color: #d4d4d8;
    --dark-accent-color: #2d5a3d;
    --dark-accent-light: #4a7c59;
    --dark-accent-dark: #1a3d2a;
    --dark-accent-forest: #2d5a3d;
    --dark-accent-sage: #6b8e6b;
    --dark-accent-moss: #4a7c59;
    
    /* Dark Theme Text Colors */
    --dark-text-primary: #fafafa;
    --dark-text-secondary: #d4d4d8;
    --dark-text-light: #a1a1aa;
    --dark-text-muted: #71717a;
    --dark-text-forest: #2d5a3d;
    
    /* Dark Theme Background Colors */
    --dark-bg-primary: #0a0a0a;
    --dark-bg-secondary: #1a1a1a;
    --dark-bg-accent: #262626;
    --dark-bg-dark: #000000;
    --dark-bg-card: #1a1a1a;
    --dark-bg-card-hover: #262626;
    --dark-bg-glass: rgba(26, 26, 26, 0.8);
    
    /* Default to dark theme (will be overridden by JavaScript) */
    --primary-color: var(--dark-primary-color);
    --primary-dark: var(--dark-primary-dark);
    --primary-light: var(--dark-primary-light);
    --secondary-color: var(--dark-secondary-color);
    --accent-color: var(--dark-accent-color);
    --accent-light: var(--dark-accent-light);
    --accent-dark: var(--dark-accent-dark);
    --accent-forest: var(--dark-accent-forest);
    --accent-sage: var(--dark-accent-sage);
    --accent-moss: var(--dark-accent-moss);
    
    /* Text Colors */
    --text-primary: var(--dark-text-primary);
    --text-secondary: var(--dark-text-secondary);
    --text-light: var(--dark-text-light);
    --text-muted: var(--dark-text-muted);
    --text-forest: var(--dark-text-forest);
    
    /* Background Colors */
    --bg-primary: var(--dark-bg-primary);
    --bg-secondary: var(--dark-bg-secondary);
    --bg-accent: var(--dark-bg-accent);
    --bg-dark: var(--dark-bg-dark);
    --bg-card: var(--dark-bg-card);
    --bg-card-hover: var(--dark-bg-card-hover);
    --bg-glass: var(--dark-bg-glass);
    
    /* Light Theme Gradients */
    --light-bg-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --light-bg-gradient-premium: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    --light-bg-gradient-luxury: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    --light-bg-gradient-day: linear-gradient(135deg, #ffffff 0%, #f8f9fa 30%, #e9ecef 70%, #dee2e6 100%);
    --light-bg-gradient-forest: linear-gradient(135deg, #2d5a3d 0%, #4a7c59 50%, #6b8e6b 100%);
    --light-bg-gradient-sage: linear-gradient(135deg, #1a3d2a 0%, #2d5a3d 50%, #4a7c59 100%);
    
    /* Dark Theme Gradients */
    --dark-bg-gradient: linear-gradient(135deg, #1a1a1a 0%, #262626 100%);
    --dark-bg-gradient-premium: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #262626 100%);
    --dark-bg-gradient-luxury: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #1a1a1a 100%);
    --dark-bg-gradient-night: linear-gradient(135deg, #000000 0%, #0a0a0a 30%, #1a1a1a 70%, #262626 100%);
    --dark-bg-gradient-forest: linear-gradient(135deg, #2d5a3d 0%, #4a7c59 50%, #6b8e6b 100%);
    --dark-bg-gradient-sage: linear-gradient(135deg, #1a3d2a 0%, #2d5a3d 50%, #4a7c59 100%);
    
    /* Default to dark gradients (will be overridden by JavaScript) */
    --bg-gradient: var(--dark-bg-gradient);
    --bg-gradient-premium: var(--dark-bg-gradient-premium);
    --bg-gradient-luxury: var(--dark-bg-gradient-luxury);
    --bg-gradient-night: var(--dark-bg-gradient-night);
    --bg-gradient-forest: var(--dark-bg-gradient-forest);
    --bg-gradient-sage: var(--dark-bg-gradient-sage);
    
    /* Border Colors */
    --border-color: #262626;
    --border-light: #404040;
    --border-luxury: #525252;
    --border-forest: #2d5a3d;
    
    /* Premium Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.4);
    --shadow-premium: 0 25px 50px -12px rgb(0 0 0 / 0.7);
    --shadow-luxury: 0 32px 64px -12px rgb(0 0 0 / 0.8);
    --shadow-glow: 0 0 20px rgb(45 90 61 / 0.4);
    --shadow-forest: 0 0 30px rgb(45 90 61 / 0.3);
    --shadow-sage: 0 0 25px rgb(26 61 42 / 0.2);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-4xl: 2.5rem;
}

body {
    font-family: 'Ovo', Georgia, 'Times New Roman', serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-gradient-luxury);
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
    text-rendering: optimizeLegibility;
    transition: background 1.5s ease, color 1.5s ease;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Universal theme transition for smooth color changes */
* {
    transition: background-color 1.5s ease, 
                color 1.5s ease, 
                border-color 1.5s ease, 
                box-shadow 1.5s ease,
                background 1.5s ease;
}

/* Elegant Serif Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Ovo', Georgia, 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: 0.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.15;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

h4 {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.25;
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-rendering: optimizeLegibility;
}

/* Premium Text Styles */
.text-forest {
    color: var(--text-forest);
    background: var(--bg-gradient-forest);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-sage {
    color: var(--accent-sage);
    background: var(--bg-gradient-sage);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ultra-Premium Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--border-forest);
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--shadow-luxury);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
}

.nav-logo a:hover {
    text-decoration: none;
}

.nav-logo h2 {
    font-family: 'Ovo', Georgia, 'Times New Roman', serif;
    background: var(--bg-gradient-forest);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 4px rgba(45, 90, 61, 0.3);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: 'Ovo', Georgia, 'Times New Roman', serif;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    padding: 0.75rem 0;
    text-transform: none;
}

.nav-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(45, 90, 61, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--bg-gradient-forest);
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(45, 90, 61, 0.4);
}

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

/* Ultra-Premium Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: var(--bg-gradient-luxury);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(45, 90, 61, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(74, 124, 89, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(45, 90, 61, 0.04) 0%, transparent 70%),
        radial-gradient(circle at 30% 30%, rgba(107, 142, 107, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 0%, rgba(45, 90, 61, 0.02) 50%, transparent 100%),
        linear-gradient(-45deg, transparent 0%, rgba(74, 124, 89, 0.015) 50%, transparent 100%);
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.highlight {
    background: var(--bg-gradient-forest);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 2px 4px rgba(45, 90, 61, 0.3);
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1rem;
    left: 0;
    width: 100%;
    height: 0.5rem;
    background: var(--bg-gradient-forest);
    opacity: 0.15;
    z-index: -1;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(45, 90, 61, 0.2);
}

.hero-subheading {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.4;
    font-weight: 700;
    text-align: left;
}

.hero-subtitle {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Ultra-Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--radius-2xl);
    font-weight: 700;
    font-family: 'Ovo', Georgia, 'Times New Roman', serif;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-luxury);
    text-transform: none;
    font-weight: 400;
}

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

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

.btn-primary {
    background: var(--bg-gradient-forest);
    color: var(--bg-dark);
    box-shadow: var(--shadow-luxury), 0 0 0 1px var(--border-forest);
    font-weight: 800;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-forest), var(--accent-moss));
    transform: translateY(-4px);
    box-shadow: var(--shadow-luxury), var(--shadow-forest);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--border-forest);
    box-shadow: none;
    font-weight: 700;
}

.btn-secondary:hover {
    background: var(--bg-gradient-forest);
    color: var(--bg-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-luxury), var(--shadow-forest);
}

.btn-large {
    padding: 1.5rem 3.5rem;
    font-size: 1rem;
    font-weight: 400;
    border-radius: var(--radius-3xl);
}

/* Hero Visual - Sleep Cycle Visualization */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 450px;
}

.sleep-cycle-visualization {
    width: 100%;
    max-width: 700px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-4xl);
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-luxury);
    position: relative;
    overflow: hidden;
}

.sleep-cycle-visualization::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient-forest);
    border-radius: var(--radius-4xl) var(--radius-4xl) 0 0;
}

/* Timeline Header */
.timeline-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.timeline-header h3 {
    font-family: 'Ovo', Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.timeline-header p {
    font-family: 'Ovo', Georgia, 'Times New Roman', serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

/* Time Labels */
.time-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.time-label {
    font-family: 'Ovo', Georgia, 'Times New Roman', serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Sleep Chart */
.sleep-chart {
    margin-bottom: 2rem;
}

.sleep-timeline-bar {
    position: relative;
    height: 80px;
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.sleep-segment {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sleep-segment:hover {
    transform: scaleY(1.05);
    z-index: 2;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Sleep Stage Colors - Tracker Style */
.wake-segment {
    background: linear-gradient(135deg, #64748b, #475569);
}

.light-segment {
    background: linear-gradient(135deg, #4a7c59, #6b8e6b);
}

.deep-segment {
    background: linear-gradient(135deg, #1a3d2a, #2d5a3d);
}

.rem-segment {
    background: linear-gradient(135deg, #6b8e6b, #8fbc8f);
}

/* Stage Labels */
.stage-labels {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.stage-legend {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.wake-color {
    background: linear-gradient(135deg, #64748b, #475569);
}

.light-color {
    background: linear-gradient(135deg, #4a7c59, #6b8e6b);
}

.deep-color {
    background: linear-gradient(135deg, #1a3d2a, #2d5a3d);
}

.rem-color {
    background: linear-gradient(135deg, #6b8e6b, #8fbc8f);
}

.legend-item span {
    font-family: 'Ovo', Georgia, 'Times New Roman', serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Cycle Progression */
.cycle-progression {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    position: relative;
}

.cycle-progression::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent, var(--accent-color));
    opacity: 0.3;
}

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

.phase-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-card);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--shadow-md);
}

.phase-icon svg {
    width: 1.2rem;
    height: 1.2rem;
    stroke: var(--accent-color);
}

.cycle-phase:hover .phase-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-forest);
}

.phase-label {
    font-family: 'Ovo', Georgia, 'Times New Roman', serif;
    font-size: 0.75rem;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 0.25rem;
    letter-spacing: 0.01em;
}


/* Sleep Quality Indicators */
.sleep-quality {
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
}

.quality-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1rem 0.75rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 100px;
}

.quality-metric:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-forest);
}

.metric-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.metric-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    filter: drop-shadow(0 4px 8px rgba(45, 90, 61, 0.3));
}

.metric-value {
    font-family: 'Ovo', Georgia, 'Times New Roman', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: 0.01em;
}

.metric-label {
    font-family: 'Ovo', Georgia, 'Times New Roman', serif;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Animations */
@keyframes sleepCycle {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.sleep-stage {
    animation: sleepCycle 4s ease-in-out infinite;
}

.sleep-stage:nth-child(1) { animation-delay: 0s; }
.sleep-stage:nth-child(2) { animation-delay: 1s; }
.sleep-stage:nth-child(3) { animation-delay: 2s; }
.sleep-stage:nth-child(4) { animation-delay: 3s; }

    /* Responsive Design */
    @media (max-width: 768px) {
        .sleep-cycle-visualization {
            padding: 1.5rem 1rem;
            max-width: 100%;
        }

        .sleep-timeline-bar {
            height: 60px;
        }

        .stage-legend {
            gap: 1rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .legend-item {
            gap: 0.25rem;
        }

        .legend-color {
            width: 12px;
            height: 12px;
        }

        .legend-item span {
            font-size: 0.8rem;
        }

        .cycle-progression {
            flex-direction: column;
            gap: 1.5rem;
        }

        .cycle-progression::before {
            display: none;
        }

        .sleep-quality {
            flex-direction: column;
            gap: 1rem;
        }

        .quality-metric {
            min-width: auto;
        }

        .time-labels {
            padding: 0 0.5rem;
        }

        .time-label {
            font-size: 0.8rem;
        }
    }

/* Ultra-Premium Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Ultra-Premium Services Section */
.services {
    padding: 6rem 0;
    background: var(--bg-primary);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(212, 175, 55, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(229, 228, 226, 0.01) 0%, transparent 70%);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-4xl);
    box-shadow: var(--shadow-luxury);
    border: 1px solid var(--border-color);
    text-align: left;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient-forest);
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 10px rgba(45, 90, 61, 0.4);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-15px) scale(1.05);
    box-shadow: var(--shadow-luxury), var(--shadow-forest);
    border-color: var(--border-forest);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    filter: drop-shadow(0 6px 12px rgba(45, 90, 61, 0.3));
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    height: 3.2rem;
    overflow: hidden;
}

/* Metrics Lists */
.metrics-list {
}

.metrics-list h4 {
    font-family: 'Ovo', Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

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

.metrics-list li {
    font-family: 'Ovo', Georgia, 'Times New Roman', serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    letter-spacing: 0.01em;
}

.metrics-list li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Service Pricing */
.service-price {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.service-price .price {
    font-family: 'Ovo', Georgia, 'Times New Roman', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 0.02em;
}

/* Featured Service Card */
.service-card.featured {
    border: 2px solid var(--accent-color);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(45, 90, 61, 0.05) 100%);
    transform: scale(1.05);
}

.service-card.featured::before {
    background: var(--bg-gradient-forest);
    transform: scaleX(1);
    box-shadow: 0 0 15px rgba(45, 90, 61, 0.6);
}

.service-card.featured:hover {
    transform: translateY(-15px) scale(1.08);
}

.service-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: var(--bg-gradient-forest);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 0 var(--radius-4xl) 0 var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.3);
}

/* Benefits Section */
.benefits {
    padding: 8rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(15, 23, 42, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.01) 0%, transparent 50%);
    pointer-events: none;
}

.benefits-intro {
    margin-bottom: 3rem;
    font-size: 1.25rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-gradient-forest);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 8px rgba(45, 90, 61, 0.4);
}

.benefit-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.04) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover::after {
    opacity: 1;
}

.benefit-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-forest);
    border-color: var(--border-forest);
}

.benefit-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    filter: drop-shadow(0 4px 8px rgba(45, 90, 61, 0.3));
}

.benefit-card:hover .benefit-icon {
    color: var(--accent-light);
    transform: scale(1.1);
}

.benefit-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 500;
}

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

/* Additional benefit cards animation */
.benefit-card-additional {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.benefit-card-additional.show {
    opacity: 1;
    transform: translateY(0);
    display: flex !important;
}

.benefits-grid.expanded .benefit-card-additional {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Benefits More Button */
.benefits-more-container {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.btn-more {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-lg);
    font-family: 'Ovo', Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-more:hover {
    color: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.3);
}

.btn-more:hover::before {
    opacity: 1;
}

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

/* Technology CTA */
.technology-cta {
    text-align: center;
    margin: 2rem 0 3rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.benefits-cta .btn-primary {
    background: var(--accent-color);
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--accent-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.benefits-cta .btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

.benefits-cta .btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.benefits-cta .btn-secondary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Design for Benefits */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .benefit-card h3 {
        font-size: 1.1rem;
    }
    
    .benefit-card p {
        font-size: 0.9rem;
    }
    
    .benefits-cta {
        margin-top: 3rem;
        padding-top: 2rem;
    }
}


/* Technology Section */
.technology {
    padding: 8rem 0;
    background: var(--bg-primary);
    position: relative;
}

.technology::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(212, 175, 55, 0.005) 50%, transparent 100%);
    pointer-events: none;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tech-category {
    background: var(--bg-card);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tech-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-gold));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.tech-category:hover::before {
    transform: scaleX(1);
}

.tech-category:hover {
    background: var(--bg-card-hover);
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-premium);
}

.tech-category h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.tech-category ul {
    list-style: none;
}

.tech-category li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.tech-category li:last-child {
    border-bottom: none;
}

.tech-category li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Comparison Section */
.comparison {
    padding: 8rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.comparison::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(45, 90, 61, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 124, 89, 0.01) 0%, transparent 50%);
    pointer-events: none;
}

.comparison-table-container {
    overflow-x: auto;
    margin: 3rem 0;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    font-size: 0.95rem;
    min-width: 800px;
}

.comparison-table thead {
    background: var(--bg-accent);
    border-bottom: 2px solid var(--border-color);
}

.comparison-table th {
    padding: 1.5rem 1rem;
    text-align: left;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    border-right: 1px solid var(--border-color);
}

.comparison-table th:last-child {
    border-right: none;
}

.comparison-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: top;
}

.comparison-table td:last-child {
    border-right: none;
}

.comparison-table tr:hover {
    background: var(--bg-accent);
}

.sanctuary-lab-row {
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.1) 0%, rgba(74, 124, 89, 0.05) 100%);
    border: 2px solid var(--accent-color);
}

.sanctuary-lab-row td {
    color: var(--text-primary);
    font-weight: 500;
}

.service-name {
    position: relative;
    font-weight: 600;
    color: var(--text-primary);
}

.service-tag {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-left: 0.5rem;
    font-weight: 500;
}

/* Simple Status Icons */
.icon-tick,
.icon-question,
.icon-cross {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 16px;
    transition: all 0.3s ease;
}

/* Green tick */
.icon-tick::before {
    content: '✓';
    color: var(--accent-color);
    font-size: 14px;
    font-weight: bold;
}

/* Amber exclamation mark */
.icon-question::before {
    content: '!';
    color: #d4af37;
    font-size: 14px;
    font-weight: bold;
}

/* Red cross */
.icon-cross::before {
    content: '✕';
    color: #dc2626;
    font-size: 14px;
    font-weight: bold;
}

/* Hover effects */
.icon-tick:hover::before {
    color: var(--accent-light);
    text-shadow: 0 0 8px rgba(45, 90, 61, 0.4);
}

.icon-question:hover::before {
    color: #b8941f;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.icon-cross:hover::before {
    color: #b91c1c;
    text-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
}

.comparison-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.highlight-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient-forest);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.highlight-card:hover::before {
    transform: scaleX(1);
}

.highlight-card:hover {
    background: var(--bg-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.highlight-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.highlight-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design for Comparison */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .comparison-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .highlight-card {
        padding: 1.5rem;
    }
}

/* Process Section */
.process {
    padding: 8rem 0;
    background: var(--bg-primary);
    position: relative;
}

.process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(15, 23, 42, 0.01) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.005) 0%, transparent 60%);
    pointer-events: none;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 4rem;
    height: 4rem;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--accent-light);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.step:hover .step-number {
    background: var(--accent-light);
    transform: scale(1.1);
    box-shadow: var(--shadow-xl), var(--shadow-forest);
}

.step h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: var(--bg-secondary);
    text-align: center;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(45, 90, 61, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background: var(--accent-color);
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--accent-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta .btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

/* Green Section Wrapper (Contact + Footer) */
.green-section-wrapper {
    background: var(--bg-gradient-luxury);
    position: relative;
    overflow: hidden;
}

.green-section-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(45, 90, 61, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(74, 124, 89, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(45, 90, 61, 0.04) 0%, transparent 70%),
        radial-gradient(circle at 30% 30%, rgba(107, 142, 107, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.green-section-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 0%, rgba(45, 90, 61, 0.02) 50%, transparent 100%),
        linear-gradient(-45deg, transparent 0%, rgba(74, 124, 89, 0.015) 50%, transparent 100%);
    pointer-events: none;
}

/* Contact Section */
.contact {
    padding: 8rem 0 4rem 0;
    background: transparent;
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    color: var(--text-secondary);
}

.contact-item strong {
    color: var(--text-primary);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    padding: 3.5rem 3rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-gold));
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.15), var(--shadow-md);
    transform: translateY(-1px);
    background: var(--bg-accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Messages */
.form-message {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.form-message-success {
    background: rgba(45, 90, 61, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.form-message-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid #dc2626;
    color: #dc2626;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quiz Section */
.quiz-section {
    padding: 6rem 0 2rem 0;
    background: var(--bg-primary);
    min-height: 100vh;
}

.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-header h1 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.quiz-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.quiz-progress {
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--bg-gradient-forest);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 10px rgba(45, 90, 61, 0.3);
}

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

.quiz-question {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.quiz-question.active {
    display: block;
}

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

.quiz-question h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.quiz-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quiz-option:hover {
    background: var(--bg-accent);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quiz-option:hover::before {
    opacity: 1;
}

.quiz-option input[type="radio"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.quiz-option input[type="radio"]:checked + .option-text {
    color: var(--accent-color);
    font-weight: 600;
}

.quiz-option:has(input[type="radio"]:checked) {
    background: var(--bg-accent);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(45, 90, 61, 0.2);
}

.option-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Quiz Results */
.quiz-results {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-header h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.score-display {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-gradient-forest);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl), 0 0 20px rgba(45, 90, 61, 0.3);
    position: relative;
}

.score-percentage {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    text-align: center;
    display: block;
    width: 100%;
}

.score-category {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.score-category h3 {
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.score-category p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.recommendations {
    margin-bottom: 3rem;
}

.recommendations h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recommendation-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    background: var(--bg-accent);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.recommendation-item h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.recommendation-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.results-cta {
    text-align: center;
    padding: 2rem;
    background: var(--bg-gradient-forest);
    border-radius: var(--radius-xl);
    color: white;
}

.results-cta h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.results-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.results-cta .btn {
    background: white;
    color: var(--accent-color);
    font-weight: 600;
}

.results-cta .btn:hover {
    background: var(--bg-secondary);
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Responsive Design for Quiz */
@media (max-width: 768px) {
    .quiz-section {
        padding: 5rem 0 1rem 0;
    }
    
    .quiz-container,
    .quiz-results {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .quiz-header {
        margin-bottom: 1.5rem;
    }
    
    .quiz-header h1 {
        font-size: 1.5rem;
    }
    
    .quiz-header p {
        font-size: 0.9rem;
    }
    
    .quiz-question h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .quiz-option {
        padding: 0.75rem 1rem;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .quiz-navigation .btn {
        width: 100%;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-number {
        font-size: 2rem;
    }
}

/* Footer */
.footer {
    background: transparent;
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .sleep-line-graph {
        padding: 2rem 1.5rem;
    }
    
    .graph-legend {
        flex-direction: column;
        gap: 1rem;
    }
    
    .graph-chart {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .y-axis {
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
        padding: 0.5rem 0;
    }
    
    .y-label {
        text-align: center;
        padding-right: 0;
        font-size: 0.7rem;
    }
    
    .sleep-chart-svg {
        height: 250px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .sleep-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .metric-card {
        padding: 1.5rem 1rem;
    }
    
    /* Cycle Progression - Mobile Layout: 3 on top, 2 on bottom */
    .cycle-progression {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 1rem;
        justify-items: center;
    }
    
    .cycle-progression .cycle-phase:nth-child(4),
    .cycle-progression .cycle-phase:nth-child(5) {
        grid-column: span 1;
    }
    
    .cycle-progression .cycle-phase:nth-child(4) {
        grid-column: 1;
    }
    
    .cycle-progression .cycle-phase:nth-child(5) {
        grid-column: 3;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .metrics-list h4 {
        font-size: 0.9rem;
    }
    
    .metrics-list li {
        font-size: 0.8rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .sleep-metrics {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

@keyframes gentlePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.hero-content {
    animation: slideInLeft 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-visual {
    animation: slideInRight 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.service-card {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.benefit-item {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.tech-category {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.step {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.metric-card {
    animation: subtleFloat 6s ease-in-out infinite;
}

.metric-card:nth-child(2) {
    animation-delay: 1s;
}

.metric-card:nth-child(3) {
    animation-delay: 2s;
}

.metric-card:nth-child(4) {
    animation-delay: 3s;
}

.metric-icon {
    animation: gentlePulse 4s ease-in-out infinite;
}

.service-icon {
    animation: gentlePulse 5s ease-in-out infinite;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Form Field Error State */
.field-error {
    border-color: #fca5a5 !important;
    background-color: #fef2f2 !important;
}

.field-error::placeholder {
    color: #f87171 !important;
    font-weight: 500;
}

/* Form Messages */
.form-message {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.form-message-success {
    background: rgba(45, 90, 61, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.form-message-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid #dc2626;
    color: #dc2626;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Single Package Layout */
.services-grid.single-package {
    display: flex;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.service-card.premium {
    max-width: 100%;
    width: 100%;
    border: 3px solid var(--accent-color);
    box-shadow: 0 20px 40px rgba(45, 90, 61, 0.15), 0 0 30px rgba(45, 90, 61, 0.1);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(45, 90, 61, 0.03) 100%);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.service-card.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light), var(--accent-color));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.service-card.premium .service-badge {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    letter-spacing: 0.8px;
    box-shadow: 0 8px 20px rgba(45, 90, 61, 0.3);
    text-transform: uppercase;
}

.service-card.premium .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(45, 90, 61, 0.2);
}

.service-card.premium .service-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.service-card.premium h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-primary);
    font-weight: 600;
}

.service-card.premium p {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2.5rem 0;
    padding: 0 1rem;
}

.metrics-column {
    background: rgba(45, 90, 61, 0.05);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(45, 90, 61, 0.1);
    position: relative;
}

.metrics-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.metrics-column h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
}

.metrics-column ul {
    list-style: none;
    padding: 0;
}

.metrics-column li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(45, 90, 61, 0.1);
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.metrics-column li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.75rem;
}

.metrics-column li:last-child {
    border-bottom: none;
}

/* Package Includes */
.package-includes {
    background: linear-gradient(135deg, var(--bg-accent) 0%, rgba(45, 90, 61, 0.08) 100%);
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin: 2.5rem 0;
    border: 1px solid rgba(45, 90, 61, 0.15);
    position: relative;
}

.package-includes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.package-includes h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
}

.package-includes ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.package-includes li {
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Premium Price Styling */
.premium-price {
    margin-top: 3rem;
    padding: 2.5rem 0 0;
    border-top: 2px solid var(--accent-color);
    text-align: center;
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.05) 0%, transparent 100%);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    position: relative;
}

.premium-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

.premium-price .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(45, 90, 61, 0.1);
}

.premium-price .price-note {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Mobile Responsive for Premium Package */
@media (max-width: 768px) {
    .service-card.premium {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .service-card.premium h3 {
        font-size: 1.5rem;
    }
    
    .service-card.premium .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }
    
    .service-card.premium .service-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem 0;
        padding: 0;
    }
    
    .metrics-column {
        padding: 1.5rem;
    }
    
    .package-includes {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .package-includes ul {
        grid-template-columns: 1fr;
    }
    
    .premium-price {
        margin-top: 2rem;
        padding: 2rem 0 0;
    }
    
    .premium-price .price {
        font-size: 2.5rem;
    }
    
    .premium-price .price-note {
        font-size: 0.9rem;
    }
}

/* Premium Package Centering and Spacing */
.package-centered {
    text-align: center;
}

.package-includes-list {
    max-width: 600px;
    margin: 0 auto;
}

.package-includes-list p {
    margin: 0.75rem 0;
    line-height: 1.6;
}

.package-cta-spaced {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}
