:root {
  --bg: #121212;
  --bg-alt: #1a1a1a;
  --bg-card: #212121;
  --bg-footer: #262626;
  --accent: #ff9900;
  --accent-soft: #ffb340;
  --on-accent: #1a1200;
  --text: #ffffff;
  --text-muted: #c2c2c2;
  --text-dim: #9d9d9d;
  --line: rgba(255, 255, 255, 0.1);
  --radius: 12px;
  --max-width: 1200px;
  --measure: 68ch;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", system-ui, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Ubuntu", "Roboto", system-ui, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1, h2 { text-align: center; text-transform: uppercase; letter-spacing: 0.02em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.75rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { color: var(--text-muted); margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-soft); }

:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: var(--on-accent); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 30px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  line-height: 1.3;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  background: var(--accent-soft);
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 153, 0, 0.25);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: none; }

/* Header / nav */
.site-header {
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo img { height: 44px; width: auto; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle-label span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }
.nav-toggle:focus-visible ~ .nav-toggle-label { outline: 3px solid var(--accent-soft); outline-offset: 2px; }

.main-nav ul { display: flex; list-style: none; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  color: #e9e9e9;
  font-family: "Ubuntu", system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

.main-nav a.nav-cta {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  padding: 8px 18px;
  border-bottom: none;
}
.main-nav a.nav-cta:hover { background: var(--accent-soft); color: var(--on-accent); }
.nav-cta-icon { width: 15px; height: 15px; fill: currentColor; flex: none; }

/* Hero sections */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(64px, 10vw, 112px) 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.78));
}
.hero-compact { padding: 56px 0; }
.hero-dim::before { background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.88)); }
.hero .wrap { position: relative; z-index: 1; }
.hero-logo { width: 100%; max-width: 460px; margin: 0 auto 28px; }
.hero-text {
  max-width: 62ch;
  margin: 0 auto 28px;
  font-size: 1.1rem;
  color: #f0f0f0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.launcher-shot { width: 100%; max-width: 760px; margin: 36px auto 0; border-radius: var(--radius); }

.social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.social-row a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.social-row a:hover { background: var(--accent); transform: translateY(-2px); }
.social-row img { width: 22px; height: 22px; }
.social-row svg { width: 20px; height: 20px; fill: #fff; }

/* Sections */
section { padding: clamp(48px, 7vw, 80px) 0; }
.section-alt { background: var(--bg-alt); }

/* Games grid */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; margin-top: 36px; }
.game-card {
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 25%, rgba(0, 0, 0, 0.15));
}
.game-card-body { position: relative; z-index: 1; padding: 26px; width: 100%; }
.game-card-title { max-width: 260px; margin-bottom: 14px; }
.game-card p { color: #e4e4e4; max-width: 52ch; }
.game-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.icon-circle:hover { background: #fff; transform: translateY(-2px); }
.icon-circle img { width: 22px; height: 22px; }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 36px;
  text-align: center;
}
.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(255, 255, 255, 0.2);
}
.team-grid h3 { margin-bottom: 2px; }
.team-grid .role { font-size: 0.9rem; color: var(--accent); margin-bottom: 10px; }
.team-grid .social-row { margin-top: 0; }

/* App mockup (product preview) */
.mockup-wrap { margin-top: 44px; }
.app-mockup {
  max-width: 980px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #161616;
}
.app-mockup-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #1c1c1c;
  border-bottom: 1px solid var(--line);
}
.app-mockup-chrome span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.app-mockup-body { display: flex; min-height: 360px; font-family: system-ui, sans-serif; }
.app-mockup-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #161616;
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.app-mockup-brand { display: flex; align-items: center; gap: 8px; padding: 0 4px; font-size: 12px; font-weight: 700; color: #fff; }
.app-mockup-brand img { width: 16px; height: 16px; }
.app-mockup-studio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.app-mockup-studio-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--accent);
  color: #1a1200;
  font-size: 8px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-mockup-nav { display: flex; flex-direction: column; gap: 2px; }
.app-mockup-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 11px;
  color: var(--text-dim);
}
.app-mockup-nav a.active { background: rgba(255, 153, 0, 0.12); color: var(--accent); font-weight: 600; }
.app-mockup-nav a .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; flex: none; }
.app-mockup-games-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); padding: 6px 8px 0; }
.app-mockup-main { flex: 1; min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.app-mockup-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.app-mockup-stat {
  background: #1c1c1c;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.app-mockup-stat span { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.app-mockup-stat strong { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.2; }
.app-mockup-stat em { font-size: 9px; font-style: normal; color: #22c55e; }
.app-mockup-card { background: #1c1c1c; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.app-mockup-card h4 { margin: 0 0 12px; font-size: 12px; font-weight: 600; color: #f0f0f0; }
.app-mockup-chart-legend { display: flex; gap: 14px; margin-top: 8px; font-size: 9px; color: var(--text-dim); }
.app-mockup-chart-legend span { display: inline-flex; align-items: center; gap: 4px; }
.app-mockup-chart-legend i { width: 10px; height: 2px; background: currentColor; display: inline-block; }
.app-mockup-games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.app-mockup-game-card { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #1c1c1c; }
.app-mockup-game-banner { height: 64px; background-size: cover; background-position: center; }
.app-mockup-game-info { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; font-size: 10.5px; color: #f0f0f0; font-weight: 600; }
.app-mockup-online { display: flex; align-items: center; gap: 4px; font-size: 9.5px; color: var(--text-dim); font-weight: 400; }
.app-mockup-online i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; display: inline-block; }
@media (max-width: 640px) {
  .app-mockup-sidebar { display: none; }
  .app-mockup-games-grid { grid-template-columns: 1fr; }
  .app-mockup-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .app-mockup-stat { padding: 8px 9px; }
  .app-mockup-stat strong { font-size: 13px; }
}

/* Feature grid (product pages) */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 36px; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 153, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { text-align: left; margin-bottom: 8px; }
.feature-card p { font-size: 0.95rem; }

/* Steps (how it works) */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 36px; counter-reset: step; }
.step { text-align: center; }
.step-number {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Ubuntu", system-ui, sans-serif;
  font-weight: 700;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 0.95rem; max-width: 32ch; margin-left: auto; margin-right: auto; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band p { max-width: 52ch; margin: 0 auto 24px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 36px; }
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.blog-card:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.blog-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.blog-card-body { padding: 18px 20px 20px; }
.blog-card-body :is(h2, h3) { font-size: 1.05rem; text-align: left; text-transform: none; letter-spacing: -0.01em; margin-bottom: 6px; }
.blog-card-body .date { font-size: 0.85rem; color: var(--text-dim); margin: 0; }
.news-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.news-tag { padding: 2px 10px; border-radius: 999px; background: rgba(255, 153, 0, 0.14); color: var(--accent); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.blog-card-body .excerpt { color: var(--text-muted); font-size: 0.93rem; margin: 10px 0 0; }

/* Article pages */
.post-body { max-width: var(--measure); margin: 0 auto; }
.post-body h1 { margin-bottom: 0.3em; }
.post-body h2, .post-body h3 { text-align: left; text-transform: none; letter-spacing: -0.01em; margin-top: 1.6em; }
.post-meta { color: var(--text-dim); font-size: 0.9rem; text-align: center; margin-bottom: 28px; }
.post-nav { margin-top: 40px; text-align: center; }

.video-embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 28px 0;
  background: #000;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Legal pages */
.legal-body { max-width: var(--measure); margin: 0 auto; }
.legal-body h1 { text-align: left; }
.legal-body h2 { text-align: left; text-transform: none; letter-spacing: -0.01em; font-size: 1.3rem; margin-top: 2em; }
.legal-body p, .legal-body li { color: var(--text-muted); }
.legal-body ul { padding-left: 1.2em; }
.legal-body li { margin-bottom: 6px; }
.legal-body .updated { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 32px; }

/* Links page */
.links-list { display: flex; flex-direction: column; gap: 14px; max-width: 420px; margin: 0 auto 56px; }
.links-list .btn { width: 100%; text-align: center; }
.links-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--bg-footer);
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
  text-align: center;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  max-width: 640px;
  margin: 40px auto 0;
  gap: 24px;
  text-align: center;
}
.footer-cols h4 {
  font-family: "Ubuntu", system-ui, sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.footer-cols a { display: block; color: var(--text-muted); padding: 4px 0; font-size: 0.95rem; }
.footer-cols a:hover { color: var(--accent); }
.copyright { margin-top: 32px; color: var(--text-dim); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 860px) {
  .games-grid, .team-grid, .blog-grid, .footer-cols { grid-template-columns: 1fr; }
  .footer-cols { gap: 20px; }

  .nav-toggle-label { display: flex; }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 15px 24px; border-bottom: 1px solid var(--line); }
  .nav-toggle:checked ~ .main-nav { max-height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
