/* --- Variables --- */
:root {
    --dafoy-volt: #CCFF00;
    --neural-blue: #00F0FF;
    --void-black: #050505;
    --deep-space: #0A0A0F;
    --crimson-pulse: #FF2A2A;
    --emerald-green: #00FF94;
    --text-gray: #9CA3AF;
    --text-white: #FFFFFF;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Rajdhani', sans-serif;
}

/* --- Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--void-black);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

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

.gradient-text {
    background: linear-gradient(90deg, var(--dafoy-volt), var(--neural-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel {
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-display);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--dafoy-volt), #b3e600);
    color: var(--void-black);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--neural-blue);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* --- Background --- */
.bg-fixed {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-image {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--void-black), transparent, var(--void-black));
}

.fx-canvas{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    pointer-events:none;
    z-index:1;
    opacity:0.85;
}
.bg-image{ position:relative; z-index:0; }
.bg-overlay{ z-index:2; pointer-events:none; }
@media (prefers-reduced-motion: reduce){
  .fx-canvas{ display:none; }
}


/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.logo-img { width: 40px; height: 40px; object-fit: contain; }
.logo-text { font-family: var(--font-display); font-size: 24px; font-weight: 700; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--dafoy-volt); }

.nav-actions { display: flex; gap: 15px; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
.mobile-toggle span {
    display: block; width: 25px; height: 3px; background: white; margin: 5px 0;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content { max-width: 900px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.dot { width: 8px; height: 8px; background: var(--emerald-green); border-radius: 50%; }

.headline {
    font-family: var(--font-display);
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.subhead {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group { display: flex; gap: 15px; justify-content: center; margin-bottom: 60px; }

.hero-image {
    margin-top: 50px;
    position: relative;
}

.dashboard-preview {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.platforms {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
    opacity: 0.5;
    filter: grayscale(100%);
}
.platforms img { height: 34px; width: auto; object-fit: contain; }

/* --- Features --- */
.features { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-family: var(--font-display); font-size: 48px; margin-bottom: 10px; }
.section-header p { color: var(--text-gray); font-size: 18px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card { padding: 30px; transition: transform 0.3s, border-color 0.3s; }
.card:hover { transform: translateY(-5px); border-color: var(--dafoy-volt); }

.icon-box {
    width: 50px; height: 50px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.icon-box img { width: 24px; height: 24px; }
.icon-box.volt { background: rgba(204, 255, 0, 0.1); border: 1px solid rgba(204, 255, 0, 0.3); }
.icon-box.blue { background: rgba(0, 240, 255, 0.1); border: 1px solid rgba(0, 240, 255, 0.3); }
.icon-box.green { background: rgba(0, 255, 148, 0.1); border: 1px solid rgba(0, 255, 148, 0.3); }
.icon-box.red { background: rgba(255, 42, 42, 0.1); border: 1px solid rgba(255, 42, 42, 0.3); }

.card h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--text-gray); font-size: 15px; }

/* --- Stats --- */
.stats { padding: 50px 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 60px;
    text-align: center;
}
.stat-value { font-family: var(--font-display); font-size: 48px; font-weight: 700; margin-bottom: 5px; }
.stat-label { color: var(--text-gray); }

/* --- Games --- */
.games { padding: 100px 0; }
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.game-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 2/3;
    cursor: pointer;
    transform-style: preserve-3d;
    will-change: transform;
    outline: none;
}
.game-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.game-card:hover .game-img { transform: scale(1.1); }
.game-card::before{
    content:"";
    position:absolute;
    inset:-2px;
    background: radial-gradient(420px 320px at calc(var(--mx,0.5) * 100%) calc(var(--my,0.5) * 100%), rgba(255,255,255,0.20), rgba(255,255,255,0.00) 55%);
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 160ms ease;
    pointer-events:none;
    z-index: 3;
}
.game-card::after{
    content:"";
    position:absolute;
    inset:0;
    background: radial-gradient(520px 400px at calc(var(--mx,0.5) * 100%) calc(var(--my,0.5) * 100%), rgba(204,255,0,0.20), rgba(0,240,255,0.08) 35%, rgba(0,0,0,0) 62%);
    opacity: 0;
    transition: opacity 160ms ease;
    pointer-events:none;
    z-index: 2;
}
.game-card:hover::before,
.game-card:focus-visible::before{ opacity: 1; }
.game-card:hover::after,
.game-card:focus-visible::after{ opacity: 1; }
.game-card:hover{
    box-shadow: 0 0 0 1px rgba(204,255,0,0.25), 0 0 50px rgba(0,240,255,0.20), 0 0 70px rgba(204,255,0,0.12);
}
.game-card:focus-visible{
    box-shadow: 0 0 0 2px rgba(0,240,255,0.55), 0 0 60px rgba(0,240,255,0.20);
}
.game-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 20px;
    background: linear-gradient(to top, var(--void-black), transparent);
}
.game-info { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.rating { color: var(--dafoy-volt); }
.online { color: var(--emerald-green); }
.game-overlay h3 { font-family: var(--font-display); font-size: 24px; }
.link-arrow { color: var(--neural-blue); text-decoration: none; font-weight: 600; }

/* --- CTA --- */
.cta { padding: 100px 0; }
.cta-box {
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-box h2 { font-family: var(--font-display); font-size: 48px; margin-bottom: 15px; }
.cta-box p { color: var(--text-gray); margin-bottom: 40px; font-size: 18px; }
.cta-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.trust-badge { margin-top: 20px; color: var(--text-gray); font-size: 14px; }

/* --- Footer --- */
.footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 80px 0 30px;
    background: var(--void-black);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-brand p { color: var(--text-gray); margin: 20px 0; }
.socials { display: flex; gap: 15px; }
.socials img { width: 24px; height: 24px; opacity: 0.7; transition: opacity 0.3s; }
.socials img:hover { opacity: 1; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 { font-family: var(--font-display); margin-bottom: 15px; }
.footer-links a { color: var(--text-gray); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--dafoy-volt); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    color: var(--text-gray);
    font-size: 14px;
}

/* --- Animations --- */
.fade-in { opacity: 0; animation: fadeIn 1s forwards; }
.fade-in:nth-child(1) { animation-delay: 0.2s; }
.fade-in:nth-child(2) { animation-delay: 0.4s; }
.fade-in:nth-child(3) { animation-delay: 0.6s; }
.fade-in:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Micro interactions: 3D tilt targets --- */
.tilt-card{
    transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateZ(0);
    transition: transform 140ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.tilt-card.tilting{ transition: transform 40ms linear; }

/* --- Game modal --- */
.game-modal{
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}
.game-modal.open{ display:block; }
.game-modal-backdrop{
    position:absolute;
    inset:0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
}
.warp-canvas{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    pointer-events:none;
    opacity: 1;
}
.game-modal-shell{
    position: relative;
    width: min(1100px, calc(100vw - 28px));
    height: min(720px, calc(100vh - 28px));
    margin: 14px auto;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    overflow: hidden;
    background: rgba(10,10,15,0.72);
    box-shadow: 0 0 0 1px rgba(204,255,0,0.12), 0 0 80px rgba(0,240,255,0.14);
}
.game-frame{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
    opacity: 0;
    transform: scale(0.985);
    transition: opacity 200ms ease, transform 220ms ease;
    background: #000;
}
.game-modal.ready .game-frame{
    opacity: 1;
    transform: scale(1);
}
.game-close{
    position:absolute;
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff;
    font-size: 26px;
    line-height: 40px;
    cursor:pointer;
    z-index: 2;
    box-shadow: 0 0 40px rgba(0,240,255,0.12);
}
.game-close:hover{ box-shadow: 0 0 0 1px rgba(0,240,255,0.35), 0 0 48px rgba(204,255,0,0.14); }

@media (max-width: 768px){
  .game-modal-shell{ width: calc(100vw - 16px); height: calc(100vh - 16px); margin: 8px auto; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .headline { font-size: 42px; }
    .nav-links, .nav-actions { display: none; }
    .mobile-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
    
    /* Mobile Menu Active State */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px; left: 0; width: 100%;
        background: var(--deep-space);
        padding: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}