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

:root {
    --primary: #7c3aed;
    --primary-dark: #5b21b6;
    --primary-light: #a78bfa;
    --secondary: #06b6d4;
    --accent: #10b981;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: var(--gray-100);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875em;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

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

.nav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--white);
}

.nav-cta {
    background: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    color: var(--white) !important;
}

.nav-cta:hover {
    background: var(--primary-dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 50%, #1a1a2e 100%);
    padding: 8rem 1.5rem 6rem;
    text-align: 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(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary-light);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-400);
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    color: var(--gray-500);
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-meta .separator {
    color: var(--gray-600);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Logos */
.hero-logos {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-logos-label {
    display: block;
    color: var(--gray-500);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.hero-logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.logo-link {
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.logo-link:hover {
    opacity: 1;
}

.partner-logo {
    height: 40px;
    width: auto;
    filter: grayscale(1) invert(1);
}

.partner-logo.nvidia-logo {
    height: 32px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

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

.section-alt {
    background: var(--gray-100);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Coming Soon Box */
.coming-soon-box {
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.coming-soon-box h3 {
    font-size: 1.5rem;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.coming-soon-box p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.coming-soon-box .btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.coming-soon-box .btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.overview-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: transform 0.2s, box-shadow 0.2s;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.overview-logo {
    height: 2.5rem;
    width: auto;
}

.overview-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.overview-card p {
    color: var(--gray-600);
}

/* Tracks Grid */
.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.track-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: transform 0.2s, box-shadow 0.2s;
}

.track-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.track-label {
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.track-weight {
    color: var(--gray-500);
    font-weight: 600;
}

.track-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.track-card > p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.track-details {
    background: var(--gray-100);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.detail-item {
    margin-bottom: 0.5rem;
}

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

.detail-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.75rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
}

.detail-item code {
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

.track-models {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.model-tag {
    background: var(--gray-200);
    color: var(--gray-700);
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Code Section */
.code-section {
    background: var(--dark);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--dark-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header span {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.code-lang {
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary-light);
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.code-section pre {
    padding: 1.5rem;
    overflow-x: auto;
}

.code-section code {
    background: transparent;
    color: var(--gray-300);
    font-size: 0.875rem;
    line-height: 1.7;
    padding: 0;
}

/* Evaluation Grid */
.eval-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.eval-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid var(--gray-200);
}

.eval-card.primary {
    border-color: var(--primary);
    background: linear-gradient(to bottom, rgba(124, 58, 237, 0.05), var(--white));
}

.eval-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.eval-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.eval-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.eval-detail span {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.eval-detail .highlight {
    color: var(--primary);
    font-weight: 600;
}

.baseline-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.baseline-info h3 {
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.baseline-info p {
    color: var(--gray-600);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-300);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 114px;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--gray-400);
    z-index: 1;
}

.timeline-item.important::before {
    border-color: var(--primary);
    background: var(--primary-light);
}

.timeline-item.highlight::before {
    border-color: var(--accent);
    background: var(--accent);
}

.timeline-date {
    flex: 0 0 100px;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.875rem;
    text-align: right;
    padding-top: 0.25rem;
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.timeline-item.important .timeline-content {
    border-color: var(--primary-light);
}

.timeline-item.highlight .timeline-content {
    border-color: var(--accent);
    background: linear-gradient(to right, rgba(16, 185, 129, 0.05), var(--white));
}

.timeline-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.timeline-content ul {
    list-style: none;
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.timeline-content li {
    margin-bottom: 0.25rem;
}

/* Prizes Section */
.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.prize-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.prize-card.grand {
    grid-column: 1 / -1;
    background: var(--gradient);
    color: var(--white);
    border: none;
}

.prize-amount {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.prize-label {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.prize-card.grand p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

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

.prize-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.prize-card p {
    color: var(--gray-600);
}

.requirements-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.requirements-box h3 {
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.requirements-box ul {
    list-style: none;
}

.requirements-box li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
}

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

/* CTA Section */
.cta-section {
    background: var(--gradient);
    text-align: center;
    padding: 5rem 1.5rem;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
}

.cta-note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Resources Section */
.resources-section {
    background: var(--dark);
    padding: 4rem 1.5rem;
}

.resources-section .section-title {
    color: var(--white);
}

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

.resource-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--dark-light);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    color: var(--gray-300);
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.resource-link:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--primary);
    color: var(--white);
}

.resource-icon {
    font-size: 1.25rem;
}

/* Footer */
.footer {
    background: var(--gray-900);
    padding: 3rem 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-info p {
    color: var(--gray-400);
    margin-bottom: 0.25rem;
}

.footer-contact p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.footer-contact a {
    color: var(--primary-light);
}

/* Page Header (for subpages) */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    padding: 8rem 1.5rem 3rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--gray-400);
    font-size: 1.125rem;
}

/* Content Grid (for getting-started page) */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.content-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    text-align: center;
}

.content-card.coming-soon-card {
    background: var(--gray-50);
    border-style: dashed;
}

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

.content-card h2 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.content-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.content-card .btn-secondary {
    background: var(--gray-900);
    color: var(--white);
    border: 2px solid var(--gray-900);
}

.content-card .btn-secondary:hover {
    background: var(--gray-700);
    border-color: var(--gray-700);
}

.badge {
    display: inline-block;
    background: var(--gray-200);
    color: var(--gray-600);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.info-box {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.info-box p {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero {
        padding: 6rem 1.5rem 4rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item::before {
        left: 14px;
    }

    .timeline-date {
        flex: 0 0 auto;
        width: 100%;
        text-align: left;
        padding-left: 3rem;
        margin-bottom: 0.5rem;
    }

    .timeline-item {
        flex-direction: column;
        gap: 0;
        padding-left: 3rem;
    }

    .prize-card.grand {
        grid-column: auto;
    }

    .prize-amount {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .code-section pre {
        padding: 1rem;
    }

    .code-section code {
        font-size: 0.75rem;
    }
}
