:root {
  --bg: #0a0a0a; --surface: #0d0d0d; --line: #1e1e1e;
  --text: #fff; --text-2: #b6bec2; --text-3: #9fa8ad;
  --accent: #fff; --accent-2: #ddd; --glow: rgba(255,255,255,.06);
  --font: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.theme-customs { --accent: #5fb8c0; --accent-2: #78c6cd; --glow: rgba(95,184,192,.10); --grad: linear-gradient(90deg, #5fb8c0, #fff); }
.theme-games { --accent: #FF8C00; --accent-2: #FFB347; --glow: rgba(255,140,0,.12); --grad: linear-gradient(90deg, #FF8C00, #FFB347); }
.theme-customs { background-image: radial-gradient(ellipse at top left, var(--glow), transparent 60%); }
.theme-games {
  background-image:
    linear-gradient(rgba(255,140,0,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,140,0,.05) 1px, transparent 1px),
    radial-gradient(ellipse at bottom, var(--glow), transparent 60%);
  background-size: 48px 48px, 48px 48px, auto;
  background-attachment: fixed;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.6; overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: clamp(32px, 7vw, 64px); letter-spacing: -.02em; }
h2 { font-size: clamp(24px, 4vw, 36px); }
p { margin: 0 0 12px; overflow-wrap: anywhere; }
.muted { color: var(--text-3); }
.muted-2 { color: var(--text-2); }
.lead { color: var(--text-2); font-size: clamp(16px, 2.2vw, 20px); max-width: 640px; }
.grad {
  background: var(--grad, linear-gradient(90deg, #5fb8c0, #FFB347));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin-bottom: 6px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
  text-transform: uppercase; letter-spacing: .2em; font-size: 13px; color: var(--accent);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; flex: none; }

.btn {
  display: inline-block; padding: 12px 24px; border-radius: 4px; font-weight: 700;
  background: var(--accent); color: #0a0a0a; border: 1px solid var(--accent);
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn-secondary { background: transparent; color: var(--text); border-color: #3a3a3a; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); filter: none; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10,10,10,.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 18px; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--text-2); font-size: 15px; white-space: nowrap; }
.nav a:hover { color: var(--text); text-decoration: none; }
.progress { height: 2px; }
.progress span {
  display: block; height: 100%; width: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}

.hero { padding: 120px 20px 60px; }
.section { padding: 60px 20px 120px; }
.section + .section { padding-top: 0; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 320px;
  padding: 32px; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.tile:hover { text-decoration: none; transform: translateY(-4px); }
.tile-customs { --accent: #5fb8c0; --glow: rgba(95,184,192,.10); }
.tile-games { --accent: #FF8C00; --glow: rgba(255,140,0,.12); }
.tile:hover, .tile:focus-visible { border-color: var(--accent); background: radial-gradient(ellipse at top left, var(--glow), var(--surface) 70%); }
.tile-icon { width: 56px; height: 56px; color: var(--accent); margin-bottom: auto; }
.tile-title { font-size: clamp(24px, 3.5vw, 32px); font-weight: 800; }
.tile-text { color: var(--text-2); }
.tile-go { color: var(--accent); font-weight: 700; margin-top: 8px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts > div { background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.facts b { font-size: 22px; font-weight: 800; overflow-wrap: anywhere; }
.facts span { color: var(--text-3); font-size: 14px; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.copyright { margin-top: 40px; font-size: 14px; }

.js-reveal .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 80px; }
}
@media (max-width: 640px) {
  .header-row { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 10px; }
  .nav { gap: 8px; overflow-x: auto; max-width: 100%; padding: 8px 0 10px; scrollbar-width: none; }
  .nav a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 14px; }
  .hero { padding: 56px 20px 40px; }
  .section { padding: 40px 20px 80px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 240px; padding: 24px; }
  .facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* W4: Games */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.product-img { width: 72px; height: 72px; object-fit: contain; margin-bottom: auto; }
.hero-product { display: flex; align-items: center; gap: 32px; }
.hero-logo { width: 120px; height: 120px; object-fit: contain; flex: none; }
.facts-3 { grid-template-columns: repeat(3, 1fr); }
.notice { border: 1px solid var(--line); background: var(--surface); padding: 24px; border-radius: 4px; }
.notice p { margin: 0 0 12px; }
.btn-disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
@media (max-width: 960px) { .facts-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .hero-product { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-logo { width: 88px; height: 88px; }
  .facts-3 { grid-template-columns: 1fr; }
}

.facts-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .facts-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .facts-4 { grid-template-columns: 1fr; } }
