/* Game Discovery Hub — shared theme */
:root {
    --gp-bg-deep: #0f0e1a;
    --gp-bg-mid: #1a1744;
    --gp-bg-accent: #2d2a6e;
    --gp-purple: #6c6acd;
    --gp-emerald: #10b981;
    --gp-cyan: #06b6d4;
    --gp-amber: #f59e0b;
    --gp-glass: rgba(255, 255, 255, 0.08);
    --gp-glass-border: rgba(255, 255, 255, 0.14);
    --gp-glass-hover: rgba(255, 255, 255, 0.12);
    --gp-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    --gp-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.28);
    --gp-gradient: linear-gradient(135deg, var(--gp-emerald) 0%, var(--gp-cyan) 50%, var(--gp-amber) 100%);
    --gp-gradient-soft: linear-gradient(150deg, rgba(16, 185, 129, 0.22) 0%, rgba(6, 182, 212, 0.18) 100%);
    --font-display: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

.site-body {
    position: relative;
    min-height: 100vh;
    background-color: var(--gp-bg-deep);
    color: #fff;
    overflow-x: hidden;
}

.site-body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 60% at 15% 10%, rgba(108, 106, 205, 0.55) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 20%, rgba(16, 185, 129, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 60% 45% at 50% 100%, rgba(6, 182, 212, 0.15) 0%, transparent 55%),
        linear-gradient(165deg, var(--gp-bg-deep) 0%, var(--gp-bg-mid) 45%, var(--gp-bg-accent) 100%);
}

.site-body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px;
    pointer-events: none;
}

h1,
h2,
h3,
.section-title {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

/* Header */
.site-header {
    background-color: rgba(15, 14, 26, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-nav-link {
    position: relative;
    transition: color 0.25s ease;
}

.site-nav-link::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.35rem;
    height: 2px;
    border-radius: 999px;
    background: var(--gp-gradient);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav-link:hover::after {
    transform: scaleX(1);
}

.site-header.header-scrolled {
    background-color: rgba(15, 14, 26, 0.82);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.site-header.header-scrolled .site-nav-link {
    color: rgba(255, 255, 255, 0.72);
}

.site-header.header-scrolled .site-nav-link:hover {
    color: #fff;
}

.site-header.header-scrolled .site-nav-menu,
.site-header.header-scrolled .site-nav-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

.site-header.header-scrolled .site-nav-toggle {
    border-color: rgba(255, 255, 255, 0.15);
}

.site-header.header-scrolled .site-nav-toggle span {
    background-color: rgba(255, 255, 255, 0.8);
}

.site-header-logo {
    display: block;
    width: 11rem;
    max-width: none;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.site-header-logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.35));
}

@media (min-width: 768px) {
    .site-header-logo {
        width: 8.5rem;
    }
}

@media (max-width: 1023px) {
    #nav-toggle:checked ~ .site-nav-menu {
        display: flex;
    }
}

/* Glass cards — unified */
.glass-card,
.faq-glass-card,
.news-glass-card,
.about-glass-card,
.contact-glass-card,
.partner-glass-card,
.platform-glass-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: var(--gp-glass-border);
    box-shadow: var(--gp-shadow);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.glass-card:hover,
.news-glass-card:hover,
.about-glass-card:hover,
.contact-glass-card:hover,
.partner-glass-card:hover,
.platform-glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: var(--gp-shadow-lg), 0 0 40px rgba(16, 185, 129, 0.08);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
}

.faq-glass-card:hover {
    transform: none;
}

/* Feature / content cards on index */
article.rounded-3xl,
article.rounded-2xl {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

article.rounded-3xl:hover,
article.rounded-2xl:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: var(--gp-shadow-lg), 0 0 48px rgba(6, 182, 212, 0.1);
}

/* Brand gradients */
.about-stat-value,
.partner-brand-gradient,
.platform-brand-gradient {
    background: var(--gp-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-btn-gradient,
.platform-btn-gradient {
    background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.contact-btn-gradient:hover,
.platform-btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.35);
    filter: brightness(1.08);
}

.partner-feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s ease, transform 0.3s ease;
}

.partner-feature-card:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

/* FAQ */
.faq-details > summary {
    list-style: none;
}

.faq-details > summary::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.25s ease;
}

.faq-details[open] .faq-chevron {
    transform: rotate(180deg);
    color: var(--gp-emerald);
}

.faq-details[open] > .faq-answer {
    border-color: rgba(16, 185, 129, 0.25);
}

.faq-details > summary {
    transition: color 0.2s ease;
}

.faq-details[open] > summary {
    color: var(--gp-emerald);
}

/* Hero */
.hero-section {
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 14, 26, 0.35) 0%, rgba(15, 14, 26, 0.55) 100%),
        radial-gradient(ellipse 70% 50% at 50% 40%, rgba(108, 106, 205, 0.25) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-badge {
    animation: gp-float 4s ease-in-out infinite;
}

@keyframes gp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hero-title {
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

/* Section rhythm */
.site-section {
    position: relative;
}

.site-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 640px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.site-section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

/* Section headings decoration */
.section-heading-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.section-heading-wrap::after {
    content: '';
    width: 4rem;
    height: 3px;
    border-radius: 999px;
    background: var(--gp-gradient);
    opacity: 0.85;
}

/* Game library tiles */
.game-tile {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.game-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.game-tile:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(16, 185, 129, 0.15);
    z-index: 2;
}

.game-tile:hover::after {
    border-color: rgba(16, 185, 129, 0.5);
}

.game-tile img {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.game-tile:hover img {
    transform: scale(1.08);
}

/* Buttons */
.subscribe-btn,
a[class*='from-[#10b981]'],
.hero-cta {
    position: relative;
    overflow: hidden;
}

.subscribe-btn::before,
.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.subscribe-btn:hover::before,
.hero-cta:hover::before {
    transform: translateX(100%);
}

/* CTA banner */
.cta-banner {
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent, rgba(16, 185, 129, 0.08), transparent, rgba(6, 182, 212, 0.08), transparent);
    animation: gp-spin 12s linear infinite;
    pointer-events: none;
}

@keyframes gp-spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-footer a:hover {
    color: var(--gp-emerald) !important;
}

/* Page hero icons */
.page-hero-icon {
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.2);
    animation: gp-pulse-glow 3s ease-in-out infinite;
}

@keyframes gp-pulse-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(16, 185, 129, 0.15); }
    50% { box-shadow: 0 0 50px rgba(6, 182, 212, 0.25); }
}

/* Form inputs */
.site-input {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.site-input:focus {
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    outline: none;
}

/* Country popup */
.country-popup-overlay {
    background: rgba(15, 14, 26, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.country-popup-overlay.flex {
    animation: gp-popup-overlay-in 0.3s ease both;
}

.country-popup-panel {
    background: linear-gradient(165deg, rgba(26, 23, 68, 0.95) 0%, rgba(15, 14, 26, 0.92) 100%);
    border-color: var(--gp-glass-border);
    box-shadow:
        var(--gp-shadow-lg),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 80px rgba(108, 106, 205, 0.18);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

.country-popup-overlay.flex .country-popup-panel {
    animation: gp-fade-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.country-popup-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(6, 182, 212, 0.25), rgba(245, 158, 11, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.country-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
    border: 1px solid transparent;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.country-popup-btn:hover {
    color: var(--gp-emerald);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.28);
    transform: scale(1.05);
}

.country-popup-header h2 {
    font-family: var(--font-display);
}

.country-popup-accent {
    background: var(--gp-gradient);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.35);
}

@keyframes gp-popup-overlay-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.service-option,
.country-option {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Fade-in on load */
@keyframes gp-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: gp-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-fade-up-delay {
    animation: gp-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

/* Selection */
::selection {
    background: rgba(16, 185, 129, 0.35);
    color: #fff;
}
