/* ════════════════════════════════════════════════════════════════
   EPOCH RS — LANDING PAGE STYLES
   Premium dark theme, glassmorphism, animated hero
   ════════════════════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #06060a;
    color: #e4e4e7;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ════════════════════════════════════════
   NAVIGATION RIBBON
   ════════════════════════════════════════ */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 32px;
    height: 64px;
    background: rgba(6, 6, 10, 0.6);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.landing-nav.scrolled {
    background: rgba(6, 6, 10, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #818cf8, #6366f1, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* If you add a logo image later: */
.nav-logo-img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    background: rgba(99, 102, 241, 0.08);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #e4e4e7;
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 32px 40px;
    overflow: hidden;
}

/* Animated gradient orbs — enhanced movement */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #6366f1, transparent 70%);
    top: -10%;
    left: -5%;
    animation: orb-drift-1 16s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8b5cf6, transparent 70%);
    bottom: -10%;
    right: -5%;
    animation: orb-drift-2 20s ease-in-out infinite;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #06b6d4, transparent 70%);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation: orb-drift-3 18s ease-in-out infinite;
    opacity: 0.2;
}

/* Each orb has its own unique path for organic, non-repetitive feel */
@keyframes orb-drift-1 {
    0%   { transform: translate(0, 0) scale(1); }
    15%  { transform: translate(80px, -60px) scale(1.08); }
    35%  { transform: translate(-50px, 40px) scale(0.92); }
    55%  { transform: translate(60px, 70px) scale(1.06); }
    75%  { transform: translate(-30px, -50px) scale(0.96); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes orb-drift-2 {
    0%   { transform: translate(0, 0) scale(1); }
    20%  { transform: translate(-70px, -80px) scale(1.1); }
    40%  { transform: translate(60px, 30px) scale(0.9); }
    60%  { transform: translate(-40px, 60px) scale(1.05); }
    80%  { transform: translate(50px, -40px) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes orb-drift-3 {
    0%   { transform: translateX(-50%) translate(0, 0) scale(1); }
    20%  { transform: translateX(-50%) translate(60px, -70px) scale(1.12); }
    45%  { transform: translateX(-50%) translate(-80px, 50px) scale(0.88); }
    70%  { transform: translateX(-50%) translate(40px, 60px) scale(1.08); }
    100% { transform: translateX(-50%) translate(0, 0) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
}

/* Hero banner image (hidden by default, swap point) */
.hero-banner-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 32px;
    border-radius: 16px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title-accent {
    background: linear-gradient(135deg, #c7d2fe 0%, #818cf8 30%, #6366f1 60%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    color: #a1a1aa;
    font-weight: 400;
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    text-decoration: none;
    box-shadow:
        0 4px 20px rgba(88, 101, 242, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 35px rgba(88, 101, 242, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, #6872f5 0%, #5865F2 100%);
}

.hero-cta:active {
    transform: translateY(-1px) scale(1);
}

.discord-icon {
    flex-shrink: 0;
}

/* ════════════════════════════════════════
   SECTION HEADINGS (shared)
   ════════════════════════════════════════ */
.section-heading {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #e4e4e7, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ════════════════════════════════════════
   STATS GRID
   ════════════════════════════════════════ */
.stats-section {
    padding: 40px 32px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.stat-card {
    background: rgba(24, 24, 27, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: #818cf8;
}

.stat-icon i {
    font-size: 1.8rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fafafa;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #71717a;
    font-weight: 600;
}

/* Loading shimmer on dynamic stats */
.stat-value.loading {
    background: linear-gradient(90deg, #27272a 25%, #3f3f46 50%, #27272a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
    color: transparent !important;
    min-width: 50px;
    display: inline-block;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ════════════════════════════════════════
   ACHIEVEMENTS TICKER
   ════════════════════════════════════════ */
.achievements-section {
    padding: 32px 0 60px;
    overflow: hidden;
}

.ticker-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.ticker-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: ticker-scroll 60s linear infinite;
    will-change: transform;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    flex-shrink: 0;
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px 22px;
    min-width: 260px;
    max-width: 320px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.ticker-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: scale(1.03);
}

.ticker-player {
    font-weight: 600;
    font-size: 0.9rem;
    color: #c7d2fe;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-achievement {
    font-size: 0.82rem;
    color: #a1a1aa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-time {
    font-size: 0.72rem;
    color: #52525b;
    margin-top: 6px;
}

/* Placeholder when loading */
.ticker-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    color: #52525b;
    font-size: 0.9rem;
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.landing-footer {
    text-align: center;
    padding: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: #52525b;
    font-size: 0.82rem;
}

.landing-footer a {
    color: #818cf8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.landing-footer a:hover {
    color: #a5b4fc;
}

/* ════════════════════════════════════════
   COMPETITIONS
   ════════════════════════════════════════ */
.competitions-section {
    padding: 48px 32px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.competitions-section .section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.competitions-section .section-heading i {
    font-size: 1.4rem;
    color: #f59e0b;
}

.competitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.comp-card {
    background: rgba(24, 24, 27, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s ease;
}

.comp-card:hover {
    border-color: rgba(245, 158, 11, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.comp-card-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comp-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fafafa;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comp-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.comp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.comp-badge.type-team {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.15);
}

.comp-date {
    font-size: 0.72rem;
    color: #52525b;
}

.comp-participants {
    font-size: 0.72rem;
    color: #71717a;
    margin-left: auto;
}

.comp-participants i {
    font-size: 0.8rem;
    vertical-align: -1px;
}

/* Leaderboard rows */
.comp-leaderboard {
    padding: 8px 0;
}

.comp-row {
    display: flex;
    align-items: center;
    padding: 7px 20px;
    gap: 12px;
    transition: background 0.2s ease;
}

.comp-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comp-rank {
    min-width: 22px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #52525b;
    text-align: center;
}

.comp-row:nth-child(1) .comp-rank { color: #fbbf24; }
.comp-row:nth-child(2) .comp-rank { color: #d1d5db; }
.comp-row:nth-child(3) .comp-rank { color: #d97706; }

.comp-player {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: #e4e4e7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comp-gained {
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
    font-variant-numeric: tabular-nums;
}

/* ════════════════════════════════════════
   FEATURE SHOWCASE
   ════════════════════════════════════════ */
.feature-section {
    padding: 60px 32px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-header {
    text-align: center;
    margin-bottom: 48px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 100px;
    margin-bottom: 20px;
}

.feature-badge i {
    font-size: 1rem;
}

.feature-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #e4e4e7 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-subtitle {
    font-size: 1.05rem;
    color: #71717a;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.feature-card {
    background: rgba(24, 24, 27, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

/* Main card (left, spans both rows) */
.feature-card-main {
    grid-row: 1 / 3;
}

.feature-card-image {
    position: relative;
    overflow: hidden;
    background: #111113;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card-main .feature-card-image {
    flex: 1;
    min-height: 360px;
}

.feature-card:not(.feature-card-main) .feature-card-image {
    height: 200px;
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.5s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.feature-card:not(.feature-card-main) .feature-card-image img {
    object-fit: cover;
    object-position: top;
    padding: 0;
}

.feature-card:hover .feature-card-image img {
    transform: scale(1.04);
    opacity: 1;
}

.feature-card-body {
    padding: 24px;
}

.feature-card-main .feature-card-body {
    padding: 28px;
}

.feature-card-icon {
    margin-bottom: 12px;
    color: #818cf8;
}

.feature-card-icon i {
    font-size: 1.5rem;
}

.feature-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fafafa;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature-card-main .feature-card-body h3 {
    font-size: 1.3rem;
}

.feature-card-body p {
    font-size: 0.88rem;
    color: #a1a1aa;
    line-height: 1.65;
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .landing-nav {
        padding: 0 16px;
    }

    .nav-logo-text {
        font-size: 1.2rem;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .hero {
        padding: 90px 20px 32px;
    }

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

    .hero-cta {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .stats-section {
        padding: 32px 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 20px 16px;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .section-heading {
        font-size: 1.3rem;
        margin-bottom: 24px;
    }

    .achievements-section {
        padding: 24px 0 48px;
    }

    .competitions-section {
        padding: 32px 16px 48px;
    }

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

    .feature-section {
        padding: 40px 16px 60px;
    }

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

    .feature-card-main {
        grid-row: auto;
    }

    .feature-card:not(.feature-card-main) .feature-card-image {
        height: 180px;
    }

    .feature-title {
        font-size: 1.7rem;
    }

    .feature-subtitle {
        font-size: 0.95rem;
    }
}

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