/* ========================================
   PlayNexus — Main Stylesheet
   Neon-Blue → Violet | Clean Futuristic
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #06060d;
    --bg-secondary: #0c0c18;
    --bg-tertiary: #111122;
    --bg-card: #0d0d1a;
    --bg-card-hover: #131326;

    --text-primary: #eaeaf5;
    --text-secondary: #9898b8;
    --text-muted: #5c5c7a;

    /* Neon Blue → Violet gradient endpoints */
    --neon-blue: #00b4ff;
    --neon-violet: #8b5cf6;
    --cyan: #00e5ff;
    --electric-purple: #a855f7;

    /* Primary gradient */
    --gradient-primary: linear-gradient(135deg, var(--neon-blue), var(--neon-violet));
    --gradient-accent: linear-gradient(135deg, var(--cyan), var(--electric-purple));

    /* Glow colors */
    --glow-blue: rgba(0, 180, 255, 0.25);
    --glow-violet: rgba(139, 92, 246, 0.25);
    --glow-cyan: rgba(0, 229, 255, 0.2);

    --green: #22d3a7;
    --green-glow: rgba(34, 211, 167, 0.15);
    --yellow: #facc15;
    --yellow-glow: rgba(250, 204, 21, 0.12);

    --border: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 180, 255, 0.15);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Sora', 'Outfit', sans-serif;

    --transition: 0.25s ease;
    --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 0 24px var(--glow-blue), 0 0 48px var(--glow-violet);
}

.btn-primary:hover {
    box-shadow: 0 0 32px var(--glow-blue), 0 0 64px var(--glow-violet);
    transform: translateY(-2px);
    filter: brightness(1.15);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-glow);
    background: rgba(0, 180, 255, 0.04);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--neon-blue);
    color: var(--cyan);
    background: rgba(0, 180, 255, 0.05);
    box-shadow: 0 0 20px var(--glow-blue);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none !important;
    filter: none !important;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-slow);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(6, 6, 13, 0.88);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid var(--border-glow);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.logo-img {
    height: 64px;
    width: auto;
    display: block;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#networkCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.hero-gradient {
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, var(--glow-blue) 0%, var(--glow-violet) 40%, transparent 70%);
    opacity: 0.45;
    filter: blur(100px);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 180, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 255, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-glow {
    position: absolute;
    bottom: -15%;
    left: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--glow-cyan) 0%, transparent 70%);
    filter: blur(80px);
}

.hero-glow-2 {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--glow-violet) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.5;
}

.hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 32px;
    animation: fadeInDown 0.6s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyan);
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--neon-blue), var(--cyan), var(--neon-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--border-glow), transparent);
}

/* --- Section Shared --- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 180, 255, 0.08);
    border: 1px solid rgba(0, 180, 255, 0.18);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--neon-blue);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
}

/* --- Features Section --- */
.features {
    padding: 120px 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 180, 255, 0.06);
}

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

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(0, 180, 255, 0.12);
    border-radius: var(--radius-md);
    color: var(--neon-blue);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Platforms Section --- */
.platforms {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.platforms::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.platform-card {
    position: relative;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-slow);
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.platform-skins::before {
    background: var(--gradient-primary);
    box-shadow: 0 0 20px var(--glow-blue);
}

.platform-mods::before {
    background: linear-gradient(90deg, var(--yellow), #fbbf24);
}

.platform-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 180, 255, 0.06);
}

.platform-badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.platform-badge.live {
    background: var(--green-glow);
    color: var(--green);
    border: 1px solid rgba(34, 211, 167, 0.3);
    box-shadow: 0 0 12px rgba(34, 211, 167, 0.15);
}

.platform-badge.soon {
    background: var(--yellow-glow);
    color: var(--yellow);
    border: 1px solid rgba(250, 204, 21, 0.25);
}

.platform-icon {
    color: var(--neon-blue);
    margin-bottom: 24px;
}

.platform-mods .platform-icon {
    color: var(--yellow);
    opacity: 0.4;
}

.platform-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.platform-card > p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.platform-features {
    margin-bottom: 32px;
}

.platform-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.platform-features li svg {
    color: var(--green);
    flex-shrink: 0;
}

.platform-features.muted li svg {
    color: var(--text-muted);
}

.platform-features.muted li {
    color: var(--text-muted);
}

/* --- Community / CTA Section --- */
.community {
    padding: 120px 0;
}

.cta-card {
    position: relative;
    padding: 80px 60px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.cta-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-blue) 0%, var(--glow-violet) 40%, transparent 70%);
    filter: blur(100px);
    opacity: 0.4;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-visual {
    position: relative;
    z-index: 1;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.cta-rings {
    position: relative;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    border-radius: 50%;
    animation: ringPulse 3s ease-in-out infinite;
}

.ring-1 {
    inset: 30%;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 15px var(--glow-blue);
    opacity: 0.6;
    animation-delay: 0s;
}

.ring-2 {
    inset: 15%;
    border: 1px solid var(--neon-violet);
    box-shadow: 0 0 10px var(--glow-violet);
    opacity: 0.3;
    animation-delay: 1s;
}

.ring-3 {
    inset: 0;
    border: 1px solid var(--cyan);
    opacity: 0.1;
    animation-delay: 2s;
}

/* --- FAQ Section --- */
.faq {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    cursor: pointer;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition);
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--neon-blue);
}

.faq-item summary svg {
    color: var(--text-muted);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item[open] summary svg {
    transform: rotate(180deg);
    color: var(--neon-blue);
}

.faq-item p {
    padding: 0 0 24px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Footer --- */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 280px;
    line-height: 1.6;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--neon-blue);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px var(--cyan);
    }
    50% {
        opacity: 0.4;
        box-shadow: 0 0 2px var(--cyan);
    }
}

@keyframes ringPulse {
    0%, 100% {
        transform: scale(1);
        opacity: var(--ring-opacity, 0.3);
    }
    50% {
        transform: scale(1.08);
        opacity: calc(var(--ring-opacity, 0.3) * 0.5);
    }
}

/* --- Scroll Animations --- */
.feature-card,
.platform-card,
.cta-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, background var(--transition-slow), border-color var(--transition-slow), box-shadow var(--transition-slow);
}

.feature-card.visible,
.platform-card.visible,
.cta-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

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

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

    .cta-card {
        padding: 48px 32px;
        flex-direction: column;
        text-align: center;
    }

    .cta-actions {
        justify-content: center;
    }

    .cta-visual {
        display: none;
    }

    .faq-item summary {
        font-size: 0.9375rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.875rem;
    }

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

    .platform-card {
        padding: 28px;
    }

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