:root {
    --primary-dark: #0a0e27;
    --primary-light: #1a1f3a;
    --accent-cyan: #00d9ff;
    --accent-purple: #a78bfa;
    --accent-gold: #fbbf24;
    --text-primary: #f0f4ff;
    --text-secondary: #cbd5e1;
    --border-color: #2d3748;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Mono', 'Space Grotesk', monospace;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0f1529 50%, var(--primary-light) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-attachment: fixed;
}

header.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-cyan);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

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

section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 217, 255, 0.1), transparent);
    animation: pulse-glow 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.hero-content {
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-size: 4rem;
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-gold), var(--accent-cyan));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s linear infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-button, .challenge-button {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--accent-cyan);
    background: transparent;
    color: var(--accent-cyan);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    overflow: hidden;
}

.cta-button::before, .challenge-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-cyan);
    z-index: -1;
    transition: left 0.3s ease;
}

.cta-button:hover, .challenge-button:hover {
    color: var(--primary-dark);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.cta-button:hover::before, .challenge-button:hover::before {
    left: 0;
}

.cta-button:active, .challenge-button:active {
    transform: scale(0.98);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-header h3 {
    font-size: 2.5rem;
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: -1px;
}

.header-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), transparent);
}

.dominance-section {
    background: rgba(26, 31, 58, 0.4);
    border-radius: 12px;
    margin: 2rem;
    padding: 4rem 2rem;
}

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

.card {
    background: rgba(45, 55, 72, 0.3);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--accent-cyan);
    background: rgba(45, 55, 72, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-svg {
    width: 100%;
    height: 100%;
    color: var(--accent-cyan);
    stroke: var(--accent-cyan);
    fill: none;
}

.card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
    font-family: 'Space Grotesk', monospace;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.mastery-section {
    background: transparent;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), transparent);
    z-index: -1;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    animation: fadeInUp 0.6s ease-out forwards;
}

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

.timeline-item:nth-child(2) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.3s;
}

.timeline-marker {
    position: absolute;
    left: -8px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--accent-purple);
    border-radius: 50%;
    border: 3px solid var(--primary-dark);
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.5);
}

.timeline-item h4 {
    font-size: 1.1rem;
    color: var(--accent-purple);
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', monospace;
}

.timeline-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.performance-section {
    background: rgba(26, 31, 58, 0.4);
    border-radius: 12px;
    margin: 2rem;
    padding: 4rem 2rem;
}

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

.metric {
    background: rgba(45, 55, 72, 0.3);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.metric:hover {
    border-color: var(--accent-gold);
    background: rgba(45, 55, 72, 0.6);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: 'Space Grotesk', monospace;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-bar {
    height: 6px;
    background: rgba(0, 217, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-cyan));
    border-radius: 3px;
    animation: fill-animation 1.5s ease-out forwards;
}

@keyframes fill-animation {
    from {
        width: 0 !important;
    }
}

.challenge-section {
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(167, 139, 250, 0.05));
    padding: 4rem 2rem;
    border-radius: 12px;
    margin: 2rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.challenge-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', monospace;
    color: var(--accent-gold);
}

.challenge-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
}

footer.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .section-header h3 {
        font-size: 1.8rem;
    }

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

    .dominance-grid,
    .metrics-container {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 1.2rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .card, .metric {
        padding: 1.5rem;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        display: none;
    }

    .timeline-marker {
        left: -10px;
    }

    .cta-button, .challenge-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
