/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0c;
    --bg-secondary: #0f0f13;
    --bg-card: #12121a;
    --bg-card-hover: #181824;
    --cyan: #00e5ff;
    --cyan-dim: rgba(0, 229, 255, 0.15);
    --cyan-glow: rgba(0, 229, 255, 0.4);
    --magenta: #e040fb;
    --magenta-dim: rgba(224, 64, 251, 0.15);
    --magenta-glow: rgba(224, 64, 251, 0.4);
    --text-primary: #e8e8ec;
    --text-secondary: #8a8a9a;
    --text-muted: #55556a;
    --border: rgba(255, 255, 255, 0.06);
    --gradient-cyan: linear-gradient(135deg, #00e5ff, #00b8d4);
    --gradient-magenta: linear-gradient(135deg, #e040fb, #ab47bc);
    --gradient-mixed: linear-gradient(135deg, #00e5ff, #e040fb);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== FONTS ===== */
.mono {
    font-family: 'Share Tech Mono', monospace;
}

/* ===== GLOBAL LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 12, 0.95);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-brand-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-cyan);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: var(--bg-primary);
}

.nav-brand-text {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.nav-brand-text span {
    color: var(--cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--cyan);
}

.nav-cta {
    padding: 8px 20px;
    background: var(--cyan-dim);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 8px;
    color: var(--cyan) !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.nav-cta:hover {
    background: rgba(0, 229, 255, 0.25) !important;
    box-shadow: 0 0 20px var(--cyan-glow);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(0, 229, 255, 0.08);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(224, 64, 251, 0.06);
    bottom: -100px;
    left: -100px;
    animation-delay: -4s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(0, 229, 255, 0.05);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -2s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Floating data particles */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: rgba(0, 229, 255, 0.15);
    animation: particleFloat linear infinite;
    white-space: nowrap;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-20px) rotate(5deg); opacity: 0; }
}

/* Chart line animation */
.hero-chart {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    overflow: hidden;
    opacity: 0.15;
}

.hero-chart svg {
    width: 100%;
    height: 100%;
}

.chart-line {
    fill: none;
    stroke: var(--cyan);
    stroke-width: 2;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: drawLine 3s ease-out forwards;
}

.chart-line-2 {
    stroke: var(--magenta);
    animation-delay: 0.5s;
}

.chart-fill {
    opacity: 0.1;
    animation: fadeIn 3s ease-out forwards;
}

.chart-fill-2 {
    animation-delay: 0.5s;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--cyan-dim);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--cyan);
    margin-bottom: 32px;
    animation: badgePulse 3s ease-in-out infinite;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.1); }
    50% { box-shadow: 0 0 0 8px rgba(0, 229, 255, 0); }
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero h1 .gradient-text {
    background: var(--gradient-mixed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--gradient-cyan);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: rgba(0, 229, 255, 0.3);
    background: var(--cyan-dim);
    transform: translateY(-2px);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== FEATURE CARDS ===== */
.features {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-cyan);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.15);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--cyan-dim);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:nth-child(even):hover {
    border-color: rgba(224, 64, 251, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--magenta-dim);
}

.feature-card:nth-child(even)::before {
    background: var(--gradient-magenta);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    background: var(--cyan-dim);
    border: 1px solid rgba(0, 229, 255, 0.1);
}

.feature-card:nth-child(even) .feature-icon {
    background: var(--magenta-dim);
    border-color: rgba(224, 64, 251, 0.1);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== LIVE STATS SECTION ===== */
.live-stats {
    position: relative;
}

.live-stats::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--cyan-dim), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.1);
}

.stat-card:nth-child(2) { transition-delay: 0.05s; }
.stat-card:nth-child(3) { transition-delay: 0.1s; }
.stat-card:nth-child(4) { transition-delay: 0.15s; }

.stat-icon {
    font-size: 28px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.stat-value {
    font-family: 'Share Tech Mono', monospace;
    font-size: 42px;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px var(--cyan-glow);
}

.stat-card:nth-child(even) .stat-value {
    color: var(--magenta);
    text-shadow: 0 0 30px var(--magenta-glow);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.stat-ticker {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

.stat-ticker .up {
    color: #4caf50;
}

/* ===== LEADERBOARD ===== */
.leaderboard {
    background: var(--bg-secondary);
}

.leaderboard-table {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 60px 1fr 140px 120px;
    padding: 16px 24px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border);
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 60px 1fr 140px 120px;
    padding: 16px 24px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-row:hover {
    background: rgba(0, 229, 255, 0.03);
}

.leaderboard-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-cyan);
    opacity: 0;
    transition: opacity 0.3s;
}

.leaderboard-row:hover::before {
    opacity: 1;
}

.rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Share Tech Mono', monospace;
    font-weight: 700;
    font-size: 14px;
    position: relative;
}

.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA000);
    color: #1a1a1a;
    animation: rankShimmer 3s ease-in-out infinite;
}

.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #9E9E9E);
    color: #1a1a1a;
    animation: rankShimmer 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    color: #1a1a1a;
    animation: rankShimmer 3s ease-in-out infinite;
    animation-delay: 1s;
}

.rank-4, .rank-5 {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

@keyframes rankShimmer {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 215, 0, 0); }
    50% { box-shadow: 0 0 16px rgba(255, 215, 0, 0.3); }
}

.rank-2 { animation-name: rankShimmer2; }
@keyframes rankShimmer2 {
    0%, 100% { box-shadow: 0 0 0 rgba(192, 192, 192, 0); }
    50% { box-shadow: 0 0 16px rgba(192, 192, 192, 0.3); }
}

.rank-3 { animation-name: rankShimmer3; }
@keyframes rankShimmer3 {
    0%, 100% { box-shadow: 0 0 0 rgba(205, 127, 50, 0); }
    50% { box-shadow: 0 0 16px rgba(205, 127, 50, 0.3); }
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.player-name {
    font-weight: 600;
    font-size: 14px;
}

.player-tag {
    font-size: 12px;
    color: var(--text-muted);
}

.player-score {
    font-family: 'Share Tech Mono', monospace;
    font-weight: 600;
    color: var(--cyan);
    font-size: 15px;
}

.player-kd {
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== GAMES INTEGRATION ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.game-card::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(transparent, rgba(0, 229, 255, 0.05), transparent, transparent);
    animation: gameCardRotate 8s linear infinite;
    opacity: 0;
    transition: opacity 0.4s;
}

.game-card:hover::after {
    opacity: 1;
}

@keyframes gameCardRotate {
    to { transform: rotate(360deg); }
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.game-icon {
    font-size: 36px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.game-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.game-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #4caf50;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.game-status-dot {
    width: 6px;
    height: 6px;
    background: #4caf50;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.game-status.coming-soon {
    color: var(--text-muted);
}

.game-status.coming-soon .game-status-dot {
    background: var(--text-muted);
    animation: none;
}

/* ===== FOOTER ===== */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 16px;
    line-height: 1.7;
    max-width: 300px;
}

.footer h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
}

.footer-socials a:hover {
    border-color: rgba(0, 229, 255, 0.3);
    color: var(--cyan);
    transform: translateY(-2px);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #2a2a3a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a4a;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    section { padding: 60px 0; }

    .nav-links { display: none; }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 50px 1fr 100px;
    }

    .player-kd { display: none; }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
