/* ── Ambient Background ── */
.ambient-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--bg);
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
}

.orb-1 {
    width: 600px; height: 600px;
    background: var(--primary);
    top: -200px; left: -150px;
}

.orb-2 {
    width: 500px; height: 500px;
    background: var(--accent2);
    bottom: -150px; right: -100px;
}

.orb-3 {
    width: 300px; height: 300px;
    background: var(--accent);
    top: 50%; left: 50%;
    opacity: 0.08;
}

/* ── Utility ── */
.gradient-text {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

.highlight-text { color: var(--primary); }
.glass-panel { background: none; border: none; box-shadow: none; backdrop-filter: none; }
.glass-nav { background: none; }
.neon-glow { position: relative; }
.neon-glow::before { display: none; }

/* ── Hero ── */
.hero {
    position: relative;
    padding: 10rem 5% 6rem;
    text-align: center;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0,255,135,0.08) 0%, transparent 70%),
        linear-gradient(180deg, transparent 60%, var(--bg) 100%);
    pointer-events: none;
}

/* grid lines */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,255,135,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,135,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 1rem;
    background: rgba(0,255,135,0.08);
    border: 1px solid var(--border-bright);
    border-radius: 4px;
    color: var(--primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.05;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    padding: 0.85rem 2.2rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: var(--transition);
    display: inline-block;
    border: 1px solid transparent;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 32px rgba(0,255,135,0.5);
    transform: translateY(-2px);
}

.animate-pulse-btn {
    animation: btnPulse 2.5s infinite;
}

@keyframes btnPulse {
    0%,100% { box-shadow: 0 0 20px var(--primary-glow); }
    50%      { box-shadow: 0 0 36px rgba(0,255,135,0.5); }
}

.btn-secondary {
    padding: 0.85rem 2.2rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius);
    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(0,255,135,0.05);
}

.scroll-indicator { display: none; }

/* ── Stats Bar ── */
.stats-bar {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-number {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    text-shadow: 0 0 12px var(--primary-glow);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Feature Grid ── */
.game-features {
    padding: 5rem 0;
    background: var(--bg);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.game-card.premium-hover {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.game-card.premium-hover::before { display: none; }

.game-card.premium-hover::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    box-shadow: 0 0 8px var(--primary);
}

.game-card.premium-hover:hover {
    border-color: var(--border-bright);
    box-shadow: 0 0 24px rgba(0,255,135,0.08);
    transform: translateY(-4px);
}

.game-card.premium-hover:hover::after { transform: scaleX(1); }

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-img-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.85);
}

.game-card:hover .card-img-wrapper img {
    transform: scale(1.06);
    filter: brightness(1);
}

.overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-card) 0%, transparent 60%);
}

.game-info { padding: 1.25rem; }

.game-info h3 {
    font-family: 'Rajdhani', sans-serif;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.game-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.55;
}

.cyber-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.45rem 1rem;
    background: transparent;
    border: 1px solid var(--border-bright);
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary);
    transition: var(--transition);
}

.cyber-btn svg { transition: transform 0.2s; width: 14px; height: 14px; }

.game-card:hover .cyber-btn {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    box-shadow: 0 0 12px var(--primary-glow);
}

.game-card:hover .cyber-btn svg { transform: translateX(3px); }

/* ── News Section ── */
.dark-section {
    background: var(--bg-surface);
    padding: 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(300px, 1fr));
    gap: 1.5rem;
}

.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 0 20px rgba(0,255,135,0.07);
    transform: translateY(-3px);
}

.news-img-container {
    position: relative;
    height: 190px;
    overflow: hidden;
}

.news-img-container img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.8);
}

.news-card:hover .news-img-container img {
    transform: scale(1.05);
    filter: brightness(1);
}

.news-date-badge {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(10,10,15,0.85);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid var(--border-bright);
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-content { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }

.news-content h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.news-content h3 a:hover { color: var(--primary); }

.news-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.65;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 1rem;
    color: var(--primary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.read-more::after { content: '→'; display: inline-block; transition: transform 0.2s; }
.read-more:hover::after { transform: translateX(3px); }

/* ── Why Us ── */
.why-us {
    padding: 5rem 0;
    background: var(--bg);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.why-card {
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.why-card:hover { border-color: var(--border-bright); }
.why-card:hover::before { transform: scaleX(1); }

.why-icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.why-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.why-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── CTA ── */
.cta-section {
    padding: 4rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 3rem;
    background: var(--bg-card);
    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 60% 80% at 0% 50%, rgba(0,255,135,0.05), transparent);
    pointer-events: none;
}

.cta-text h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 420px;
}

.cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ── Ad ── */
.shiny-border::before { display: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero { padding: 7rem 5% 4rem; min-height: auto; }
    .hero h1 { font-size: 2.2rem; }
    .hero-desc { font-size: 0.9rem; }
    .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.25rem; }
    .game-features, .dark-section, .why-us { padding: 3.5rem 0; }
    .section-header { margin-bottom: 2rem; }
    .why-grid { grid-template-columns: 1fr; }
    .cta-box { flex-direction: column; align-items: flex-start; padding: 2rem 1.5rem; }
    .cta-actions { width: 100%; }
    .cta-actions a { flex: 1; text-align: center; }
}

/* ── Featured Spotlight ── */
.featured-section {
    padding: 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(260px, 1fr));
    gap: 1.5rem;
}

.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(-4px);
    box-shadow: 0 0 24px rgba(0,255,135,0.1);
}

.featured-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.featured-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: transform 0.4s ease, filter 0.3s ease;
}

.featured-card:hover .featured-img img {
    transform: scale(1.06);
    filter: brightness(1);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    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: var(--primary);
    color: #000;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius);
    text-transform: uppercase;
    box-shadow: 0 0 16px var(--primary-glow);
}

.hot-tag {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--accent);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.featured-info {
    padding: 1.1rem;
}

.featured-info h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.3rem;
}

.featured-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* ── Tournaments ── */
.tournaments-section {
    padding: 5rem 0;
    background: var(--bg);
}

.live-dot {
    display: inline-block;
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px var(--accent);
    animation: livePulse 1.5s infinite;
    vertical-align: middle;
}

@keyframes livePulse {
    0%,100% { box-shadow: 0 0 6px var(--accent); }
    50%      { box-shadow: 0 0 16px var(--accent); }
}

.tournaments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tournament-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    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 0 20px rgba(0,255,135,0.06);
}

.tournament-status {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.tournament-status.live {
    background: rgba(255,61,107,0.15);
    color: var(--accent);
    border: 1px solid rgba(255,61,107,0.3);
    animation: livePulse 1.5s infinite;
}

.tournament-status.upcoming {
    background: rgba(0,255,135,0.08);
    color: var(--primary);
    border: 1px solid var(--border-bright);
}

.tournament-info { flex: 1; min-width: 180px; }

.tournament-info h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.2rem;
}

.tournament-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.tournament-prize {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    flex-shrink: 0;
}

.prize-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prize-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* ── How to Play ── */
.how-to-play {
    padding: 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.25rem;
    align-items: flex-start;
    padding: 2rem;
    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 0 20px rgba(0,255,135,0.07);
}

.step-number {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    opacity: 0.6;
    flex-shrink: 0;
}

.step-content h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.step-divider {
    font-size: 1.5rem;
    color: var(--primary);
    padding: 0 1rem;
    flex-shrink: 0;
    opacity: 0.5;
}

/* ── Testimonials ── */
.testimonials-section {
    padding: 5rem 0;
    background: var(--bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.testimonial-card:hover {
    border-color: var(--border-bright);
    box-shadow: 0 0 20px rgba(0,255,135,0.06);
}

.testimonial-stars {
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.testimonial-card > p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.author-avatar {
    width: 38px; height: 38px;
    background: rgba(0,255,135,0.1);
    border: 1px solid var(--border-bright);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary);
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.875rem;
    color: var(--text);
    font-weight: 600;
}

.testimonial-author span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Responsive new sections ── */
@media (max-width: 768px) {
    .featured-section, .tournaments-section, .how-to-play, .testimonials-section {
        padding: 3.5rem 0;
    }
    .featured-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .steps-grid { flex-direction: column; gap: 1rem; }
    .step-divider { transform: rotate(90deg); padding: 0; }
    .tournament-item { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem; }
    .tournament-item .btn-primary,
    .tournament-item .btn-secondary { width: 100%; text-align: center; }
}
