:root {
  --primary: #fcfc03;
  --primary-hover: #e6e600;
  --secondary: #03c2fc;
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-section: #181a23;
  --bg-raised: #23263a;
  --text: #ffffff;
  --text-2: #cccccc;
  --muted: #888888;
  --border: #222222;
  --nav-h: 70px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --hero: 4.5rem;
  --section: 3.5rem;
  --radius: 12px;
}
@media (max-width: 768px) {
  :root { --hero: 3rem; --section: 2.5rem; --nav-h: 60px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-width: thin; scrollbar-color: var(--bg-raised) var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  padding-top: var(--nav-h); overflow-x: hidden;
  font-family: var(--font); line-height: 1.6; background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; }

/* Nav */
.navbar {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 1000;
  background: rgba(10, 10, 10, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-weight: 800; letter-spacing: 1px; text-decoration: none; color: var(--text); }
.nav-logo:hover { color: var(--primary); }
.nav-menu { display: flex; gap: 32px; }
.nav-link {
  color: var(--text-2); text-decoration: none; font-size: .95rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; transition: color .2s;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--secondary); }
.nav-toggle { display: none; background: none; border: 0; color: var(--primary); font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(10, 10, 10, .98); border-bottom: 1.5px solid rgba(252, 252, 3, .18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .45); animation: menuPop .22s cubic-bezier(.4, 0, .2, 1);
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 14px 20px; border-bottom: 1px solid var(--bg-raised); }
  .nav-link:last-child { border-bottom: 0; }
}
@keyframes menuPop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* Hero */
.hero {
  position: relative; min-height: calc(100vh - var(--nav-h)); overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero-bg {
  position: absolute; inset: -10%; z-index: 0; opacity: .3; pointer-events: none;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(3, 194, 252, .55), transparent 70%),
    radial-gradient(35% 45% at 80% 70%, rgba(252, 252, 3, .35), transparent 70%),
    radial-gradient(45% 55% at 60% 20%, rgba(134, 54, 199, .5), transparent 70%),
    #000;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
@keyframes drift { from { transform: translate(-2%, -2%) scale(1); } to { transform: translate(2%, 2%) scale(1.08); } }
.hero-content { position: relative; z-index: 1; max-width: 1200px; padding: 80px 24px; display: flex; flex-direction: column; align-items: center; }
.hero-tagline { color: var(--muted); font-size: .95rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; animation: fadeIn 1s both; }
.hero h1 { font-size: var(--hero); font-weight: 800; letter-spacing: -3px; line-height: 1.1; margin-bottom: 24px; animation: fadeDown 1s both; }
.hero p { font-size: 1.4rem; color: var(--text-2); max-width: 900px; margin: 0 0 40px; animation: fadeIn 1.5s both; }
@media (max-width: 600px) { .hero h1 { letter-spacing: -1.5px; } .hero p { font-size: 1.05rem; } }

/* Buttons */
.cta-btn, .section-link, .submit-btn {
  display: inline-block; text-decoration: none; cursor: pointer; border: 0; font: inherit; font-weight: 700;
  border-radius: 8px; transition: background .2s, color .2s, transform .2s;
}
.cta-btn { background: var(--primary); color: #000; padding: 16px 32px; text-transform: uppercase; letter-spacing: .5px; animation: fadeUp 1.2s both; }
.cta-btn:hover { background: var(--primary-hover); transform: translateY(-2px); }
.section-link, .submit-btn { background: var(--secondary); color: var(--bg-section); padding: 14px 36px; font-size: 1.1rem; }
.section-link:hover, .submit-btn:hover { background: var(--primary); transform: translateY(-2px); }

/* Home sections */
.home-section {
  min-height: 100vh; padding: 80px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; background: linear-gradient(135deg, var(--bg-raised) 0%, var(--bg-section) 60%, #1b1d29 100%);
}
.home-section:nth-of-type(odd) { background: linear-gradient(135deg, #1b1d29 0%, var(--bg-section) 40%, var(--bg-raised) 100%); }
.section-title { font-size: 2.8rem; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 18px; }
.section-desc { font-size: 1.3rem; color: var(--text-2); max-width: 900px; margin: 0 auto 32px; }
@media (max-width: 700px) {
  .home-section { min-height: 80vh; }
  .section-title { font-size: 2rem; }
  .section-desc { font-size: 1.05rem; }
}

/* Page header */
.section-header { max-width: 1200px; margin: 0 auto; padding: 100px 16px 80px; text-align: center; }
.section-header h1, .section-header h2 { font-size: var(--section); font-weight: 800; letter-spacing: -2px; line-height: 1.1; margin-bottom: 32px; }
.section-header p { font-size: 1.3rem; color: var(--text-2); max-width: 700px; margin: 0 auto; }
@media (max-width: 600px) { .section-header { padding: 60px 12px 40px; } .section-header p { font-size: 1.1rem; } }

/* Games */
.game-list { max-width: 1200px; margin: 0 auto 80px; padding: 0 16px; display: flex; flex-direction: column; gap: 48px; }
.game {
  display: flex; align-items: stretch; background: var(--bg-raised); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 2px 16px rgba(0, 0, 0, .13);
}
.game.reverse { flex-direction: row-reverse; }
.game-art { flex: 0 0 500px; height: 450px; background: var(--bg-section); }
.game-art img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.game-body { flex: 1; padding: 40px 32px; display: flex; flex-direction: column; justify-content: center; }
.game-title { font-size: 2.2rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.game-genre { font-size: 1.1rem; color: var(--text-2); font-weight: 600; text-transform: uppercase; margin-bottom: 16px; }
.game-desc { color: var(--text-2); font-size: 1.1rem; margin: 0 0 20px; }
.platforms { display: flex; flex-wrap: wrap; gap: 12px; }
.platform {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 24px;
  border-radius: 10px; border: 2.5px solid; color: #fff; text-decoration: none; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  transition: background .2s, color .2s, transform .15s;
}
.platform img { width: 26px; height: 26px; }
.platform.steam { background: #1b2838; border-color: #1b2838; }
.platform.epic { background: #313131; border-color: #313131; }
.platform:hover { background: var(--secondary); border-color: var(--secondary); color: var(--bg-raised); transform: translateY(-2px) scale(1.04); }
@media (max-width: 900px) {
  .game, .game.reverse { flex-direction: column; }
  .game-art { flex-basis: auto; height: 280px; }
  .game-body { padding: 28px 18px; }
}
@media (max-width: 600px) { .game-art { height: 190px; } .game-title { font-size: 1.8rem; } }

/* Cards */
.cards { max-width: 1200px; margin: 0 auto; padding: 0 16px 40px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; }
.card {
  flex: 1 1 300px; max-width: 360px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 32px; color: var(--text-2);
}
.card h3 { font-size: 1.3rem; font-weight: 700; color: var(--secondary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }
.card p { margin: 0; }
@media (max-width: 900px) { .card { max-width: 100%; } }

.feature { max-width: 1200px; margin: 40px auto 100px; padding: 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature h2 { font-size: 2.6rem; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 20px; }
.feature p { color: var(--text-2); font-size: 1.15rem; margin: 0 0 16px; }
.feature-art {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; position: relative;
  background:
    radial-gradient(50% 60% at 25% 30%, rgba(252, 252, 3, .35), transparent 70%),
    radial-gradient(50% 60% at 75% 70%, rgba(3, 194, 252, .4), transparent 70%),
    var(--bg-raised);
  border: 1px solid var(--border);
}
.feature-art span {
  position: absolute; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .5);
  animation: float 6s ease-in-out infinite alternate;
}
.feature-art span:nth-child(1) { width: 90px; height: 90px; left: 14%; top: 18%; }
.feature-art span:nth-child(2) { width: 140px; height: 140px; right: 12%; top: 32%; border-color: var(--primary); animation-delay: -2s; border-radius: 28px; }
.feature-art span:nth-child(3) { width: 60px; height: 60px; left: 38%; bottom: 14%; border-color: var(--secondary); animation-delay: -4s; }
@keyframes float { from { transform: translateY(-8px) rotate(-6deg); } to { transform: translateY(8px) rotate(6deg); } }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature h2 { font-size: 2rem; } }

/* Contact */
.contact-form { max-width: 520px; margin: 0 auto 100px; padding: 0 16px; display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; color: #111; background: #fff; border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form .submit-btn { align-self: center; margin-top: 8px; text-transform: uppercase; letter-spacing: .5px; }
.form-note { text-align: center; color: var(--secondary); min-height: 1.6em; margin: 0; }

/* Footer */
footer { flex-shrink: 0; background: #000; color: #666; text-align: center; padding: 60px 16px 40px; font-size: .95rem; border-top: 1px solid var(--border); }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; margin-bottom: 16px; }
footer a { color: var(--secondary); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Motion */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .7s cubic-bezier(.4, 0, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
