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

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.nav-brand h1 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #7f8c8d;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

/* Hero Section */
.hero {
    background: #34495e;
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="subtle-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><rect x="0" y="0" width="40" height="40" fill="rgba(255,255,255,0.02)"/><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="200" height="200" fill="url(%23subtle-pattern)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #3498db;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat .label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.section-intro {
    font-size: 1.2rem;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Introduction */
.intro-text {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Discoveries */
.discoveries {
    background: #f8f9fa;
    position: relative;
}

.discoveries::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="subtle-dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(52,152,219,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23subtle-dots)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.discovery {
    margin-bottom: 4rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.discovery.reverse .discovery-content {
    flex-direction: row-reverse;
}

.discovery-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
}

.discovery-text {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.discovery-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.discovery-lead {
    font-size: 1.2rem;
    color: #34495e;
    margin-bottom: 1rem;
    font-weight: 500;
}

.discovery-text p {
    color: #7f8c8d;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.insight {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    margin-top: 1rem;
    border: 1px solid #e9ecef;
}

.insight strong {
    color: #2c3e50;
}

.discovery-image {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.discovery-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.caption {
    font-size: 0.9rem;
    color: #95a5a6;
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

/* Patterns */
.patterns {
    background: #ffffff;
    position: relative;
}

.patterns::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><defs><pattern id="subtle-lines" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M0 20 L40 20" stroke="rgba(52,152,219,0.1)" stroke-width="1"/><path d="M20 0 L20 40" stroke="rgba(52,152,219,0.1)" stroke-width="1"/></pattern></defs><rect width="80" height="80" fill="url(%23subtle-lines)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.pattern-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.pattern-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.pattern-card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.stat-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.big-number {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
}

.small-text {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Video Container */
.video-container {
    text-align: center;
    margin: 2rem 0;
}

.race-chart {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.chart-caption {
    font-size: 0.9rem;
    color: #95a5a6;
    margin-top: 1rem;
    font-style: italic;
}

/* Conclusion */
.conclusion {
    background: #2c3e50;
    color: white;
    position: relative;
}

.conclusion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="subtle-stars" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="60" height="60" fill="url(%23subtle-stars)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.conclusion h2 {
    color: white;
}

.conclusion-lead {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.key-takeaways {
    margin-bottom: 3rem;
}

.key-takeaways h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #3498db;
}

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

.takeaway {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.takeaway h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #3498db;
}

.takeaway p {
    opacity: 0.9;
    line-height: 1.6;
}

.final-thought {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.final-thought h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #3498db;
}

.final-thought p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #1a252f;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    text-align: center;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .discovery-content {
        grid-template-columns: 1fr;
    }
    
    .discovery.reverse .discovery-content {
        flex-direction: column;
    }
    
    .discovery-text {
        padding: 2rem;
    }
    
    .takeaways-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .discovery-text h3 {
        font-size: 1.5rem;
    }
}

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

/* Add some padding to account for fixed header */
body {
    padding-top: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }
    
    .nav-brand h1 {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .discovery-content {
        flex-direction: column;
    }
    
    .discovery-image {
        padding: 1rem;
    }
    
    .pattern-card {
        padding: 1.5rem;
    }
    
    .takeaways-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}