@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Exo+2:wght@300;400;500;600;700&display=swap');

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{
  --bg: hsl(220,20%,7%);
  --bg-card: hsl(220,18%,11%);
  --fg: hsl(210,20%,92%);
  --muted: hsl(215,15%,55%);
  --border: hsl(220,15%,20%);
  --primary: hsl(190,95%,50%);
  --primary-fg: hsl(220,20%,7%);
  --secondary: hsl(260,60%,55%);
  --accent: hsl(330,80%,55%);
  --neon-cyan: hsl(190,95%,50%);
  --neon-purple: hsl(260,60%,55%);
  --neon-pink: hsl(330,80%,55%);
  --neon-green: hsl(150,80%,45%);
  --radius: 0.75rem;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Exo 2', sans-serif;
}

html{scroll-behavior:smooth}
body{font-family:var(--font-body);background:var(--bg);color:var(--fg);line-height:1.6;min-height:100vh;display:flex;flex-direction:column}
h1,h2,h3,h4,h5,h6{font-family:var(--font-display)}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
ul{list-style:none}

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

/* Gradient text */
.gradient-text{background:linear-gradient(135deg,var(--neon-cyan),var(--neon-pink));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.gradient-bg{background:linear-gradient(135deg,var(--neon-cyan),var(--neon-purple))}

/* Header */
.header{position:sticky;top:0;z-index:50;border-bottom:1px solid var(--border);background:hsla(220,20%,7%,.8);backdrop-filter:blur(16px)}
.header .container{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{display:flex;align-items:center;gap:.5rem;font-family:var(--font-display);font-size:1.25rem;font-weight:700}
.logo svg{width:32px;height:32px;color:var(--primary)}
.nav{display:flex;align-items:center;gap:1.5rem}
.nav a{font-size:.875rem;font-weight:500;color:var(--muted);transition:color .2s}
.nav a:hover{color:var(--primary)}
.hamburger{display:none;background:none;border:none;color:var(--fg);cursor:pointer}
.hamburger svg{width:24px;height:24px}
.mobile-nav{display:none;flex-direction:column;gap:.75rem;padding:1rem;border-top:1px solid var(--border);background:var(--bg)}
.mobile-nav.open{display:flex}
.mobile-nav a{font-size:.875rem;color:var(--muted)}
.mobile-nav a:hover{color:var(--primary)}

@media(max-width:768px){
  .nav{display:none}
  .hamburger{display:block}
}

/* Footer */
.footer{border-top:1px solid var(--border);background:var(--bg-card)}
.footer .container{padding-top:3rem;padding-bottom:3rem}
.footer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.footer-col h4{font-family:var(--font-display);font-size:.875rem;font-weight:600;margin-bottom:1rem}
.footer-col ul{display:flex;flex-direction:column;gap:.5rem}
.footer-col a{font-size:.875rem;color:var(--muted);transition:color .2s}
.footer-col a:hover{color:var(--primary)}
.footer-col p{font-size:.875rem;color:var(--muted);line-height:1.7}
.footer-bottom{margin-top:2rem;padding-top:2rem;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}
.footer-bottom p{font-size:.75rem;color:var(--muted)}

@media(max-width:768px){
  .footer-grid{grid-template-columns:1fr}
}

/* Hero */
.hero{position:relative;overflow:hidden}
.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.4}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(to bottom,hsla(220,20%,7%,.6),hsla(220,20%,7%,.8),var(--bg))}
.hero-content{position:relative;padding:6rem 0;text-align:center}
.hero h1{font-size:2.5rem;font-weight:900;margin-bottom:1.5rem;line-height:1.15}
.hero p{font-size:1.125rem;color:var(--muted);max-width:640px;margin:0 auto 2rem}
.hero-buttons{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}
@media(min-width:768px){.hero h1{font-size:3.75rem}.hero-content{padding:9rem 0}}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;border-radius:var(--radius);font-family:var(--font-display);font-size:.875rem;font-weight:700;transition:opacity .2s;border:none;cursor:pointer}
.btn-primary{background:linear-gradient(135deg,var(--neon-cyan),var(--neon-purple));color:var(--primary-fg)}
.btn-primary:hover{opacity:.9}
.btn-outline{background:transparent;border:1px solid var(--border);color:var(--fg)}
.btn-outline:hover{border-color:var(--primary)}

/* Features */
.features{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;padding:4rem 0}
.feature-card{padding:1.5rem;border-radius:var(--radius);background:var(--bg-card);border:1px solid var(--border);text-align:center}
.feature-card svg{width:40px;height:40px;color:var(--primary);margin:0 auto 1rem}
.feature-card h3{font-family:var(--font-display);font-size:1.125rem;font-weight:600;margin-bottom:.5rem}
.feature-card p{font-size:.875rem;color:var(--muted)}
@media(max-width:768px){.features{grid-template-columns:1fr}}

/* Game cards grid */
.games-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
@media(max-width:1024px){.games-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.games-grid{grid-template-columns:1fr}}

.game-card{border-radius:var(--radius);overflow:hidden;background:var(--bg-card);border:1px solid var(--border);transition:border-color .2s,transform .2s}
.game-card:hover{border-color:var(--primary);transform:translateY(-4px)}
.game-card img{width:100%;height:200px;object-fit:cover}
.game-card-body{padding:1rem}
.game-card-body h3{font-family:var(--font-display);font-size:.875rem;font-weight:600;margin-bottom:.25rem}
.game-card-meta{display:flex;justify-content:space-between;font-size:.75rem;color:var(--muted);margin-bottom:.5rem}
.game-card-body p{font-size:.8125rem;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Section headers */
.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:2rem}
.section-header h2{font-size:1.5rem;font-weight:700}
.section-header a{font-size:.875rem;color:var(--primary)}
.section-header a:hover{text-decoration:underline}
@media(min-width:768px){.section-header h2{font-size:1.875rem}}

/* Categories */
.categories{display:flex;flex-wrap:wrap;gap:.75rem;padding-bottom:5rem}
.cat-link{padding:.625rem 1.25rem;border-radius:var(--radius);border:1px solid var(--border);background:var(--bg-card);font-size:.875rem;font-weight:500;transition:border-color .2s,color .2s}
.cat-link:hover{border-color:var(--primary);color:var(--primary)}

/* Page content (legal, about, etc.) */
.page-content{max-width:768px;padding:3rem 0}
.page-content h1{font-size:1.875rem;font-weight:700;margin-bottom:.5rem}
.page-content .date{font-size:.75rem;color:var(--muted);margin-bottom:2rem}
.page-content section{margin-bottom:1.5rem}
.page-content h2{font-family:var(--font-display);font-size:1.125rem;font-weight:600;margin-bottom:.5rem}
.page-content p,.page-content li{font-size:.875rem;color:var(--muted);line-height:1.7}
.page-content ul{padding-left:1.25rem}
.page-content ul li{list-style:disc;margin-bottom:.25rem}
.page-content strong{color:var(--fg)}

/* Contact form */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;padding:3rem 0;max-width:900px}
@media(max-width:768px){.contact-grid{grid-template-columns:1fr}}
.contact-info h1{font-size:1.875rem;font-weight:700;margin-bottom:1rem}
.contact-info p{font-size:.875rem;color:var(--muted);margin-bottom:1.5rem;line-height:1.7}
.contact-detail{display:flex;align-items:flex-start;gap:.75rem;margin-bottom:1rem}
.contact-detail svg{width:20px;height:20px;color:var(--primary);flex-shrink:0;margin-top:2px}
.contact-detail p{font-size:.875rem;color:var(--muted)}
.contact-form{display:flex;flex-direction:column;gap:1rem}
.form-group{display:flex;flex-direction:column;gap:.375rem}
.form-group label{font-size:.875rem;font-weight:500}
.form-group input,.form-group textarea,.form-group select{padding:.625rem .75rem;border-radius:var(--radius);border:1px solid var(--border);background:var(--bg-card);color:var(--fg);font-family:var(--font-body);font-size:.875rem}
.form-group input:focus,.form-group textarea:focus,.form-group select:focus{outline:none;border-color:var(--primary)}
.form-group textarea{min-height:120px;resize:vertical}

/* Game detail */
.game-detail{padding:3rem 0}
.game-detail-header{display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin-bottom:2rem}
@media(max-width:768px){.game-detail-header{grid-template-columns:1fr}}
.game-detail-header img{width:100%;border-radius:var(--radius);border:1px solid var(--border)}
.game-detail-info h1{font-size:1.875rem;font-weight:700;margin-bottom:.5rem}
.game-detail-info .meta{display:flex;gap:1rem;margin-bottom:1rem;font-size:.875rem;color:var(--muted)}
.game-detail-info .meta span{display:flex;align-items:center;gap:.25rem}
.game-detail-info p{font-size:.9375rem;color:var(--muted);line-height:1.7;margin-bottom:1.5rem}
.badge{display:inline-block;padding:.25rem .75rem;border-radius:var(--radius);background:var(--bg);border:1px solid var(--border);font-size:.75rem;font-weight:500;color:var(--primary);margin-right:.5rem}

/* Games page filter */
.filter-bar{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:2rem}
.filter-btn{padding:.5rem 1rem;border-radius:var(--radius);border:1px solid var(--border);background:var(--bg-card);font-size:.8125rem;font-weight:500;color:var(--muted);cursor:pointer;transition:all .2s;font-family:var(--font-body)}
.filter-btn:hover,.filter-btn.active{border-color:var(--primary);color:var(--primary);background:hsla(190,95%,50%,.08)}

/* Utility */
.text-center{text-align:center}
.mb-0{margin-bottom:0}
.pb-section{padding-bottom:4rem}
.pt-section{padding-top:4rem}
