/* ── Ambient Background ── */
.ambient-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at 20% 0%, var(--primary) 0%, transparent 55%),
                radial-gradient(ellipse at 80% 100%, var(--accent) 0%, transparent 50%),
                var(--bg);
    overflow: hidden;
    pointer-events: none;
}

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

.orb-1 {
    width: 550px; height: 550px;
    background: var(--primary);
    top: -150px; left: -100px;
}

.orb-2 {
    width: 480px; height: 480px;
    background: var(--accent);
    bottom: -120px; right: -80px;
}

.orb-3 {
    width: 380px; height: 380px;
    background: var(--accent2);
    top: 45%; left: 45%;
    opacity: 0.18;
}

/* ── Utility ── */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-text { color: var(--primary); }

/* ── Hero ── */
.hero {
    position: relative;
    padding: 12rem 5% 7.5rem;
    text-align: left;
    min-height: 90vh;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 75% 45% at 50% 0%, rgba(139,92,246,0.1) 0%, transparent 75%),
        linear-gradient(180deg, transparent 60%, var(--bg) 100%);
    pointer-events: none;
}

/* particle dots */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 1.5px at 15% 25%, var(--primary) 0, transparent 55%),
        radial-gradient(circle 1.5px at 85% 30%, var(--accent) 0, transparent 55%),
        radial-gradient(circle 1px at 45% 75%, #fff 0, transparent 55%),
        radial-gradient(circle 1.2px at 65% 85%, var(--accent2) 0, transparent 55%);
    pointer-events: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 1.4rem;
    background: rgba(139,92,246,0.12);
    border: 1px solid var(--border-bright);
    border-radius: 50px;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2.25rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.8rem, 7.5vw, 5.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--text);
    position: relative;
    z-index: 1;
    font-weight: 800;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-desc {
    font-size: 1.05rem;
    color: #cbd5e1;
    max-width: 540px;
    margin: 0 0 2.5rem;
    line-height: 1.85;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(139,92,246,0.18);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dim));
    color: #fff;
    padding: 0.95rem 2.7rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    border-radius: 12px;
    transition: var(--transition);
    display: inline-block;
    border: none;
    box-shadow: 0 0 36px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 52px rgba(139,92,246,0.5);
}

.animate-pulse-btn {
    animation: btnPulse 2.2s infinite;
}

@keyframes btnPulse {
    0%,100% { box-shadow: 0 0 30px var(--primary-glow); }
    50%      { box-shadow: 0 0 50px rgba(139,92,246,0.55); }
}

.btn-secondary {
    padding: 0.95rem 2.7rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    border-radius: 12px;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border-bright);
    transition: var(--transition);
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(139,92,246,0.06);
    transform: translateY(-2px);
}

/* ── Stats Bar ── */
.stats-bar {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.25rem;
    border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    color: var(--primary);
    line-height: 1;
    text-shadow: 0 0 16px var(--primary-glow);
    font-weight: 800;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
}

/* ── Feature Grid ── */
.game-features {
    padding: 6.5rem 0;
    background: var(--bg);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.75rem;
    letter-spacing: 1px;
    font-weight: 600;
}

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

.game-card.premium-hover {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-surface) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.game-card.premium-hover:hover {
    border-color: var(--border-bright);
    box-shadow: 0 16px 56px rgba(139,92,246,0.15);
    transform: translateY(-8px);
}

.game-card.premium-hover::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 210px;
}

.card-img-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.8);
}

.game-card:hover .card-img-wrapper img {
    transform: scale(1.12);
    filter: brightness(1);
}

.overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-card) 0%, transparent 58%);
}

.game-info { padding: 1.5rem; }

.game-info h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    color: var(--text);
    letter-spacing: 1px;
    font-weight: 700;
}

.game-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
}

.cyber-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.3rem;
    background: transparent;
    border: 1px solid var(--border-bright);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--primary);
    transition: var(--transition);
}

.cyber-btn svg { transition: transform 0.25s; width: 14px; height: 14px; }

.game-card:hover .cyber-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dim));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 24px var(--primary-glow);
}

.game-card:hover .cyber-btn svg { transform: translateX(5px); }

/* ── News Section ── */
.dark-section {
    background: var(--bg-surface);
    padding: 6.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.news-grid.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 2rem;
}

.news-card.glass-effect {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.news-card.glass-effect:hover {
    border-color: var(--border-bright);
    box-shadow: 0 14px 48px rgba(139,92,246,0.12);
    transform: translateY(-6px);
}

.news-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-img-container img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.78);
}

.news-card:hover .news-img-container img {
    transform: scale(1.1);
    filter: brightness(1);
}

.news-date-badge {
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(15,23,42,0.92);
    padding: 0.3rem 0.85rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    border: 1px solid var(--border-bright);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
}

.news-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.news-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
    line-height: 1.4;
    letter-spacing: 0.5px;
    color: var(--text);
    font-weight: 700;
}

.news-content h3 a:hover { color: var(--primary); }

.news-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1.25rem;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: var(--transition);
}

.read-more::after { content: '→'; display: inline-block; transition: transform 0.25s; }
.read-more:hover::after { transform: translateX(5px); }

/* ── Why Us ── */
.why-us {
    padding: 6.5rem 0;
    background: var(--bg);
}

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

.why-card {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-surface) 100%);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.why-card:hover { border-color: var(--border-bright); transform: translateY(-4px); }

.why-icon {
    font-size: 2.1rem;
    margin-bottom: 1.25rem;
    line-height: 1;
}

.why-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    color: var(--text);
    letter-spacing: 1px;
    font-weight: 700;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ── CTA ── */
.cta-section {
    padding: 5rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 2.75rem 3.25rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 0% 50%, rgba(139,92,246,0.1), transparent);
    pointer-events: none;
}

.cta-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    font-weight: 800;
}

.cta-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 440px;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ── Featured Spotlight ── */
.featured-section {
    padding: 6.5rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 2rem;
}

.featured-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.featured-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-7px);
    box-shadow: 0 16px 56px rgba(139,92,246,0.14);
}

.featured-img {
    position: relative;
    height: 190px;
    overflow: hidden;
}

.featured-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.78);
    transition: transform 0.5s ease, filter 0.3s ease;
}

.featured-card:hover .featured-img img {
    transform: scale(1.1);
    filter: brightness(1);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-card:hover .featured-overlay { opacity: 1; }

.play-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dim));
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding: 0.7rem 1.6rem;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 0 28px var(--primary-glow);
}

.hot-tag {
    position: absolute;
    top: 14px; left: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-weight: 700;
}

.featured-info {
    padding: 1.25rem;
}

.featured-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    color: var(--text);
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.featured-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

/* ── Tournaments ── */
.tournaments-section {
    padding: 6.5rem 0;
    background: var(--bg);
}

.live-dot {
    display: inline-block;
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 12px var(--accent);
    animation: livePulse 1.4s infinite;
    vertical-align: middle;
}

@keyframes livePulse {
    0%,100% { box-shadow: 0 0 8px var(--accent); }
    50%      { box-shadow: 0 0 22px var(--accent); }
}

.tournaments-list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.tournament-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.75rem 2.25rem;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-surface) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    flex-wrap: wrap;
}

.tournament-item:hover {
    border-color: var(--border-bright);
    box-shadow: 0 12px 44px rgba(139,92,246,0.1);
    transform: translateY(-3px);
}

.tournament-status {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 0.35rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tournament-status.live {
    background: rgba(6,182,212,0.15);
    color: var(--accent);
    border: 1px solid rgba(6,182,212,0.4);
}

.tournament-status.upcoming {
    background: rgba(139,92,246,0.12);
    color: var(--primary);
    border: 1px solid var(--border-bright);
}

.tournament-info { flex: 1; min-width: 190px; }

.tournament-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    color: var(--text);
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.tournament-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tournament-prize {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.prize-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
}

.prize-value {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    color: var(--primary);
    text-shadow: 0 0 14px var(--primary-glow);
    font-weight: 800;
}

/* ── How to Play ── */
.how-to-play {
    padding: 6.5rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps-grid {
    display: flex;
    align-items: center;
    gap: 0;
}

.step-card {
    flex: 1;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--border-bright);
    box-shadow: 0 12px 44px rgba(139,92,246,0.1);
    transform: translateY(-3px);
}

.step-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    color: var(--primary);
    line-height: 1;
    opacity: 0.5;
    flex-shrink: 0;
    font-weight: 800;
}

.step-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: var(--text);
    letter-spacing: 1px;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.step-divider {
    font-size: 1.7rem;
    color: var(--primary);
    padding: 0 1.5rem;
    flex-shrink: 0;
    opacity: 0.4;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* ── Testimonials ── */
.testimonials-section {
    padding: 6.5rem 0;
    background: var(--bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-surface) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.testimonial-card:hover {
    border-color: var(--border-bright);
    box-shadow: 0 12px 44px rgba(139,92,246,0.1);
}

.testimonial-stars {
    color: var(--primary);
    font-size: 0.95rem;
    letter-spacing: 3px;
}

.testimonial-card > p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.85;
    flex: 1;
    font-style: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

.author-avatar {
    width: 44px; height: 44px;
    background: rgba(139,92,246,0.15);
    border: 1px solid var(--border-bright);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--primary);
    flex-shrink: 0;
    font-weight: 700;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 700;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-image {
        order: -1;
    }
    .hero-image img {
        max-height: 380px;
    }
}

@media (max-width: 768px) {
    .hero { padding: 8rem 5% 4.5rem; min-height: auto; }
    .hero-inner {
        gap: 2rem;
    }
    .hero h1 { font-size: 2.4rem; letter-spacing: 1.5px; }
    .hero-desc { font-size: 0.95rem; }
    .hero-image img {
        max-height: 320px;
        width: 100%;
        border-radius: 16px;
    }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
    .stat-item:nth-child(3), .stat-item:last-child { border-bottom: none; }
    .grid-container, .news-grid.modern-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .game-features, .dark-section, .why-us { padding: 4.5rem 0; }
    .section-header { margin-bottom: 2.75rem; }
    .why-grid { grid-template-columns: 1fr; }
    .cta-box { flex-direction: column; align-items: flex-start; padding: 2rem 1.75rem; }
    .cta-actions { width: 100%; }
    .cta-actions a { flex: 1; text-align: center; }
    .featured-section, .tournaments-section, .how-to-play, .testimonials-section {
        padding: 4.5rem 0;
    }
    .featured-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .steps-grid { flex-direction: column; gap: 1.5rem; }
    .step-divider { transform: rotate(90deg); padding: 0; }
    .tournament-item { flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: 1.5rem; }
    .tournament-item .btn-primary,
    .tournament-item .btn-secondary { width: 100%; text-align: center; }
}
