* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

/* Header & Navigation */
header {
    background: var(--bg-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 4px;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
}

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

/* Sections */
.section {
    padding: 5rem 2rem;
}

.alt-bg {
    background: var(--bg-light);
}

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

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-dark);
}

.lead {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Algorithm Section */
.algorithm-box {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 3rem;
}

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

.formula {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 5px;
    margin: 1rem 0;
}

.formula-details {
    list-style: none;
    margin-top: 1rem;
}

.formula-details li {
    padding: 0.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.insight-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.15);
}

.insight-card h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Problems Grid */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.problem-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.problem-card.verified {
    border-color: var(--success-color);
}

.problem-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.problem-icon {
    font-size: 2rem;
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.problem-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.problem-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.problem-result {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Results Section */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.result-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.result-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.result-data p {
    margin: 0.5rem 0;
}

.result-data .highlight {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
    margin: 1rem 0;
}

.academic-paper {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.academic-paper h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-detail {
    font-size: 1.25rem;
    margin: 1rem 0;
}

.contact-detail a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-detail a:hover {
    text-decoration: underline;
}

.contact-purposes {
    margin-top: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-purposes h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-purposes ul {
    list-style: none;
}

.contact-purposes li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-purposes li:last-child {
    border-bottom: none;
}

/* Challenges Section */
.challenge-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.challenge-categories h3 {
    color: var(--primary-color);
    margin: 2rem 0 1.5rem;
    text-align: center;
    font-size: 1.75rem;
}

.challenge-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    transition: color 0.3s;
}

.challenge-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.total-prize-summary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin: 4rem 0 3rem;
    text-align: center;
}

.total-prize-summary h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.prize-breakdown {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.prize-item {
    text-align: center;
}

.prize-amount {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

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

.why-canon-wins {
    margin: 3rem 0;
}

.why-canon-wins h3 {
    color: var(--primary-color);
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.action-cta {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 15px;
    margin-top: 3rem;
    text-align: center;
}

.action-cta h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.action-cta p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 1rem 0;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
}

.footer-contact a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .section {
        padding: 3rem 1rem;
    }
}
