/* VyperGame - design system
   Direzione: nero caldo, un solo accento rosso, titoli angolosi (Chakra Petch),
   testo in Inter, bagliori rossi sottili al posto delle ombre nere. */

:root {
  --bg: #0b0809;
  --bg-2: #110c0e;
  --surface: #160f11;
  --surface-2: #1d1316;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eceaee;
  --muted: #a8a1a8;
  --subtle: #82798a;
  --red: #e3191f;
  --red-hot: #ff3b3b;
  --red-deep: #8e0f14;
  --glow: rgba(227, 25, 31, 0.35);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Chakra Petch', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --maxw: 1160px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.eyebrow {
  font: 600 0.8125rem/1 var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-hot);
  margin-bottom: 16px;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.01em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }

/* Navigazione */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 8, 9, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font: 700 1.25rem var(--font-display); letter-spacing: 0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.brand b { color: var(--red-hot); font-weight: 700; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 8px 14px; border-radius: 8px; font-size: 0.9375rem; font-weight: 500; color: var(--muted);
  transition: color 150ms var(--ease), background-color 150ms var(--ease);
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__links a[aria-current='page'] { color: var(--text); }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 10px; border: 1px solid transparent;
  font: 600 0.9375rem/1 var(--font-body); cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background-color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 6px 24px -6px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn--primary:hover { transform: translateY(-2px); background: #f0262c; box-shadow: 0 12px 32px -6px rgba(227, 25, 31, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn--ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 0.875rem; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(50% 70% at 78% 45%, rgba(227, 25, 31, 0.32), transparent 70%),
    radial-gradient(40% 50% at 8% 0%, rgba(142, 15, 20, 0.35), transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 70% 40%, #000, transparent 75%);
  mask-image: radial-gradient(70% 80% at 70% 40%, #000, transparent 75%);
}
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 112px 0 104px; }
.hero h1 span { color: var(--red-hot); }
.hero .lead { margin: 24px 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: flex; gap: 28px; margin-top: 44px; font-size: 0.875rem; color: var(--subtle); }
.hero__meta strong { display: block; color: var(--text); font: 600 1.25rem var(--font-display); }
.hero__art { position: relative; justify-self: center; width: min(460px, 100%); }
.hero__art::before { content: ''; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(227, 25, 31, 0.38), transparent 68%); filter: blur(30px); }
.hero__art img { position: relative; width: 100%; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Schede */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px;
  transition: transform 250ms var(--ease), border-color 250ms var(--ease), box-shadow 250ms var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 59, 59, 0.35); box-shadow: 0 18px 40px -18px var(--glow); }
.card__icon {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; margin-bottom: 20px;
  background: rgba(227, 25, 31, 0.12); border: 1px solid rgba(227, 25, 31, 0.3); color: var(--red-hot);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.9688rem; }

.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section__head p { max-width: 52ch; color: var(--muted); margin-top: 12px; }

/* Giochi */
.game { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.game__cover {
  aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative;
  background: radial-gradient(70% 90% at 50% 100%, rgba(227, 25, 31, 0.35), transparent 70%), var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.game__cover img { width: 100%; height: 100%; object-fit: cover; }
.game__cover span { font: 700 3.5rem var(--font-display); color: rgba(255, 255, 255, 0.14); letter-spacing: 0.04em; }
.game__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font: 500 0.75rem/1 var(--font-body); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.tag--live { color: #7ee2a0; border-color: rgba(126, 226, 160, 0.35); background: rgba(126, 226, 160, 0.07); }
.empty { padding: 56px 32px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted); }
.empty strong { display: block; font: 600 1.25rem var(--font-display); color: var(--text); margin-bottom: 6px; }

/* Passi */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 28px 28px 28px 28px; border-left: 1px solid var(--line-strong); }
.step::before {
  counter-increment: step; content: '0' counter(step);
  display: block; font: 700 2.5rem/1 var(--font-display); color: var(--red-hot); margin-bottom: 14px; font-variant-numeric: tabular-nums;
}
.step p { color: var(--muted); font-size: 0.9688rem; margin-top: 6px; }

/* Banda finale */
.band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 64px 48px; text-align: center;
  background: radial-gradient(80% 140% at 50% 120%, rgba(227, 25, 31, 0.4), transparent 70%), var(--surface);
  border: 1px solid rgba(255, 59, 59, 0.25);
}
.band p { color: var(--muted); max-width: 52ch; margin: 14px auto 28px; }

/* Pagina interna */
.page-head { padding: 88px 0 56px; border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 80% 0%, rgba(227, 25, 31, 0.16), transparent 70%); }
.page-head .lead { margin-top: 16px; }

/* Download */
.dl { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; align-items: start; }
.dl__main { display: flex; flex-direction: column; gap: 20px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: 0.9688rem; }
.kv dt { color: var(--subtle); }
.kv dd { color: var(--text); font-variant-numeric: tabular-nums; }
.changelog { list-style: none; padding: 0; display: grid; gap: 10px; }
.changelog li { padding-left: 22px; position: relative; color: var(--muted); }
.changelog li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 200ms var(--ease); }
.faq details[open] { border-color: rgba(255, 59, 59, 0.35); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 1.5rem/1 var(--font-display); color: var(--red-hot); transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* Testo legale */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 48px 0 12px; }
.prose p, .prose li { color: var(--muted); margin-bottom: 12px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--red-hot); text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 32px; margin-top: 96px; }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { font: 600 0.8125rem var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--subtle); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--muted); font-size: 0.9375rem; transition: color 150ms var(--ease); }
.footer a:hover { color: var(--text); }
.footer p.small { color: var(--subtle); font-size: 0.875rem; max-width: 36ch; margin-top: 14px; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--subtle); font-size: 0.8125rem; }

/* Comparsa allo scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; padding: 72px 0; }
  .hero__art { order: -1; width: min(260px, 70%); justify-self: start; }
  .grid--3, .steps, .grid--2, .dl, .footer__in { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .nav__toggle { display: grid; place-items: center; }
  .nav__links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 24px 20px; background: rgba(11, 8, 9, 0.97); border-bottom: 1px solid var(--line); }
  .nav__links.open { display: flex; }
  .nav__cta { margin: 8px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
