/* Index Page Specific Styles */

/* Accessibility - Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

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

/* Mobile Menu */
.mobile-menu-button {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    position: relative;
    transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    transition: all 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.mobile-menu-button[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-menu-button[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-button[aria-expanded="true"] .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Hero Section Updates */
.hero {
    padding: 8rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.floating-badge {
    background: rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    color: var(--primary-glow);
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-subtitle strong {
    color: var(--primary-glow);
    font-weight: 700;
}

/* Social Proof in Hero */
.hero-social-proof {
    margin-top: 2rem;
    opacity: 0.9;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
}

/* Button Improvements */
.glow-button {
    position: relative;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: white;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    min-height: 48px; /* Better touch target */
}

.glow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.glow-button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Stats Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 4rem auto;
    max-width: 800px;
    padding: 0 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.03));
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.5rem;
    padding: 2rem;
    margin: 0;
}

.testimonial-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: block;
    font-weight: 600;
    color: var(--primary-glow);
    font-style: normal;
    margin-bottom: 0.25rem;
}

.testimonial-credentials {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* How It Works Section */
.how-section {
    padding: 6rem 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto 0;
}

.step-card {
    text-align: center;
    position: relative;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 1.5rem;
}

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

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

/* Device Logos Section */
.device-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1.5rem;
}

.device-logos img {
    opacity: 0.7;
    transition: opacity 0.3s;
    filter: grayscale(100%) brightness(1.5);
}

.device-logos img:hover {
    opacity: 1;
}

.device-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Risk Demo Section */
.risk-demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 3rem auto;
    align-items: center;
}

.risk-visual {
    display: flex;
    justify-content: center;
}

.risk-gauge {
    position: relative;
    width: 300px;
    height: 150px;
}

.gauge-svg {
    width: 100%;
    height: 100%;
}

.gauge-fill {
    animation: drawGauge 1.5s ease-out forwards;
}

@keyframes drawGauge {
    from {
        stroke-dasharray: 0 200;
    }
    to {
        stroke-dasharray: 50 150;
    }
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -20%);
    text-align: center;
}

.gauge-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #10b981;
}

.gauge-label {
    display: block;
    font-size: 0.9rem;
    color: #10b981;
    font-weight: 600;
}

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

.insight-list {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
}

.insight-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.insight-good {
    color: #10b981;
}

.insight-warning {
    color: #fbbf24;
}

.risk-recommendation {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 1rem;
    padding: 1rem;
    color: var(--text-primary);
}

/* Features Grid Updates */
.features-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.03), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card.large {
    grid-column: span 2;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.feature-benefits {
    list-style: none;
    margin: 1rem 0 0 0;
    padding: 0;
}

.feature-benefits li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.feature-benefits li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-glow);
}

/* Injury Stats Section */
.injury-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.injury-stat h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.stat-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    border-radius: 4px;
    animation: fillBar 1.5s ease-out forwards;
}

@keyframes fillBar {
    from {
        width: 0;
    }
}

.injury-stat span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* CTA Section Updates */
.cta-section {
    padding: 6rem 2rem;
    text-align: center;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 3rem;
    background: rgba(99, 102, 241, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 3rem;
}

.inline-email-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto;
}

.email-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 100px;
    font-size: 1rem;
    transition: all 0.3s;
    min-height: 48px;
}

.email-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.email-input:invalid {
    border-color: #ef4444;
}

.submit-button {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    min-height: 48px;
    white-space: nowrap;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--primary-glow);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-header h2 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
    
    .floating-badge {
        animation: none;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Show mobile menu button */
    .mobile-menu-button {
        display: block;
    }
    
    /* Mobile navigation */
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(18, 18, 28, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s;
        border-radius: 0 0 1rem 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: block;
        text-align: center;
    }
    
    /* Hero adjustments */
    .hero {
        padding: 6rem 1rem 3rem;
        min-height: 90vh;
    }
    
    /* Risk demo stacked */
    .risk-demo-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Features grid single column */
    .feature-card.large {
        grid-column: span 1;
    }
    
    /* Inline form stacked */
    .inline-email-form {
        flex-direction: column;
    }
    
    /* Touch targets */
    button, 
    a, 
    input {
        min-height: 44px;
    }
    
    /* Testimonials single column */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Reduce animation complexity */
    .glass-layer {
        animation-duration: 60s;
    }
}

/* Print styles */
@media print {
    .liquid-glass-bg,
    .track-field,
    nav,
    .floating-badge,
    .mobile-menu-button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* Footer Styles */
footer {
    margin-top: 6rem;
    padding: 3rem 1rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 20, 0.5);
    backdrop-filter: blur(12px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    padding: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-glow);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Mobile Footer */
@media (max-width: 768px) {
    footer {
        margin-top: 4rem;
        padding: 2rem 1rem 1.5rem;
    }
    
    .footer-links {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .footer-links a {
        padding: 0.25rem 0.5rem;
    }
}