/* ==========================================================================
   Sito pubblico — tema "tactical": rosso su blu notte, tagli angolari, HUD.
   Font self-hosted (nessuna chiamata esterna).
   ========================================================================== */
@font-face { font-family: "Oswald"; src: url("fonts/oswald.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #0a0e13;
  --bg-2: #0f1923;
  --panel: #111c27;
  --panel-2: #16232f;
  --line: rgba(236, 232, 225, .09);
  --line-2: rgba(236, 232, 225, .18);
  --bone: #ece8e1;
  --text: #ece8e1;
  --text-2: #b5bcc4;
  --muted: #7a8894;
  --red: #ff4655;
  --red-2: #ff6d79;
  --red-deep: #bd3944;
  --mint: #2de2b0;
  --gold: #f5c451;
  --bad: #ff4655;
  --cut: 14px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Oswald", "Impact", "Arial Narrow", sans-serif;
  --hud: "Chakra Petch", "Oswald", ui-monospace, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 40px 90px -30px rgba(0, 0, 0, .85);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: #fff; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: .98; margin: 0; text-transform: uppercase; letter-spacing: -.005em; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.hud { font-family: var(--hud); text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; }
.red { color: var(--red); }

/* ---------- sfondo ---------- */
.bg { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.bg-base {
  background:
    radial-gradient(70vw 50vw at 85% -10%, rgba(255, 70, 85, .16), transparent 60%),
    radial-gradient(60vw 50vw at -10% 30%, rgba(30, 60, 90, .45), transparent 60%),
    linear-gradient(180deg, #0c131a 0%, var(--bg) 60%);
}
.bg-stripes {
  opacity: .5;
  background-image: repeating-linear-gradient(-45deg, rgba(236,232,225,.022) 0 2px, transparent 2px 14px);
  mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.bg-grid {
  background-image: linear-gradient(rgba(236,232,225,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(236,232,225,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 55% at 60% 10%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 60% 10%, #000 20%, transparent 75%);
}
.bg-noise {
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
#embers { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-image { position: absolute; inset: 0; background-size: cover; background-position: center top; opacity: .22; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
section { position: relative; padding: 120px 0; }
.sec-label { display: flex; align-items: center; gap: 14px; color: var(--red); margin-bottom: 22px; }
.sec-label::after { content: ""; flex: 0 0 60px; height: 1px; background: var(--red); }
.sec-label span { color: var(--muted); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 60px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 760px; }
.section-head p { color: var(--text-2); max-width: 420px; font-size: 1.04rem; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .sec-label { justify-content: center; }
.section-head.center .sec-label::before { content: ""; flex: 0 0 60px; height: 1px; background: var(--red); }
.outline-text {
  position: absolute; z-index: -1; pointer-events: none; white-space: nowrap; user-select: none;
  font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .8;
  font-size: clamp(8rem, 22vw, 22rem); color: transparent; -webkit-text-stroke: 1px rgba(236,232,225,.06);
}

/* ---------- navbar ---------- */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.scrolled { background: rgba(10, 14, 19, .82); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 30px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: .06em; text-transform: uppercase; }
.brand-mark { width: 34px; height: 34px; color: var(--red); filter: drop-shadow(0 0 12px rgba(255, 70, 85, .55)); transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(90deg); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 10px 16px; font-family: var(--hud); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  color: var(--text-2); transition: color .2s;
}
.nav-links a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--bone); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); padding: 9px; cursor: pointer; }

/* ---------- bottoni (angoli tagliati) ---------- */
.btn {
  --c: var(--cut);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border: 0; cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate;
  font: 600 .82rem/1 var(--hud); text-transform: uppercase; letter-spacing: .16em; color: var(--bone);
  background: rgba(236, 232, 225, .06);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  transition: color .3s, background .3s, transform .3s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bone); transform: translateX(-101%); transition: transform .45s var(--ease); }
.btn:hover::before { transform: translateX(0); }
.btn:hover { color: var(--bg); }
.btn:active { transform: scale(.98); }
.btn-ghost { box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary::before { background: var(--bone); }
.btn-primary:hover { color: var(--bg); }
.btn-primary .icon { transition: transform .35s var(--ease); }
.btn-primary:hover .icon { transform: translateX(4px); }
.btn-lg { padding: 20px 34px; font-size: .9rem; --c: 18px; }
.btn-sm { padding: 11px 16px; font-size: .72rem; --c: 10px; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- badge / pill ---------- */
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; box-shadow: 0 0 0 0 rgba(45, 226, 176, .6); animation: pulse 2s infinite; }
.dot.warn { background: var(--gold); animation-name: pulse-warn; }
.dot.bad { background: var(--red); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(45,226,176,.55); } 70% { box-shadow: 0 0 0 9px rgba(45,226,176,0); } 100% { box-shadow: 0 0 0 0 rgba(45,226,176,0); } }
@keyframes pulse-warn { 0% { box-shadow: 0 0 0 0 rgba(245,196,81,.55); } 70% { box-shadow: 0 0 0 9px rgba(245,196,81,0); } 100% { box-shadow: 0 0 0 0 rgba(245,196,81,0); } }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line-2);
  background: rgba(15, 25, 35, .6); backdrop-filter: blur(8px); color: var(--text-2);
  font-family: var(--hud); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; white-space: nowrap;
  font-family: var(--hud); text-transform: uppercase; letter-spacing: .12em; font-size: .66rem;
  background: rgba(10, 14, 19, .75); border: 1px solid; backdrop-filter: blur(8px);
}
.badge.ok { color: var(--mint); border-color: rgba(45,226,176,.35); }
.badge.warn { color: var(--gold); border-color: rgba(245,196,81,.35); }
.badge.bad { color: var(--red-2); border-color: rgba(255,70,85,.4); }
.badge .dot { width: 6px; height: 6px; }
.announcement {
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 11px 16px; text-align: center;
  background: var(--red); color: #fff; font-family: var(--hud); text-transform: uppercase; letter-spacing: .12em; font-size: .74rem;
}

/* ---------- hero ---------- */
.hero { padding: 80px 0 110px; overflow: hidden; }
.hero .outline-text { right: -4vw; top: 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(3.6rem, 9vw, 8.4rem); margin: 28px 0 26px; letter-spacing: -.01em; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero h1 .accent { color: var(--red); }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-2); max-width: 540px; animation: fade-up 1s var(--ease) .5s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; animation: fade-up 1s var(--ease) .65s both; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 52px; animation: fade-up 1s var(--ease) .8s both; }
.hero-meta div { display: grid; gap: 4px; padding-left: 16px; border-left: 2px solid var(--red); }
.hero-meta b { font-family: var(--display); font-size: 1.9rem; line-height: 1; text-transform: uppercase; }
.hero-meta small { color: var(--muted); font-family: var(--hud); text-transform: uppercase; letter-spacing: .14em; font-size: .64rem; }

/* glitch sul titolo */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0;
}
.glitch::before { color: #2de2e6; transform: translate(-3px, 0); clip-path: inset(0 0 60% 0); }
.glitch::after { color: var(--red); transform: translate(3px, 0); clip-path: inset(55% 0 0 0); }
.glitch.run::before { animation: glitch-a .7s steps(2) 1; }
.glitch.run::after { animation: glitch-b .7s steps(2) 1; }
@keyframes glitch-a { 0% { opacity: .9; clip-path: inset(10% 0 70% 0); } 25% { clip-path: inset(50% 0 20% 0); transform: translate(-6px, 2px); } 50% { clip-path: inset(80% 0 5% 0); } 75% { clip-path: inset(25% 0 55% 0); transform: translate(4px, -2px); } 100% { opacity: 0; } }
@keyframes glitch-b { 0% { opacity: .9; clip-path: inset(70% 0 10% 0); } 25% { clip-path: inset(15% 0 65% 0); transform: translate(6px, -1px); } 50% { clip-path: inset(40% 0 40% 0); } 75% { clip-path: inset(60% 0 15% 0); transform: translate(-4px, 2px); } 100% { opacity: 0; } }

/* visual destro: gameplay reale + mockup loader */
.visual { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin-left: auto; animation: fade-up 1.2s var(--ease) .3s both; }
.mock {
  --c: 22px;
  position: absolute; left: 50%; top: 50%; width: min(78%, 400px); translate: -50% -50%;
  background: rgba(13, 21, 30, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .6s var(--ease);
}
.mock-wrap { position: absolute; inset: 0; filter: drop-shadow(0 40px 60px rgba(0,0,0,.6)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.mock-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mock-bar .brand { font-size: 1rem; gap: 8px; }
.mock-bar .brand-mark { width: 18px; height: 18px; }
.mock-body { padding: 18px; display: grid; gap: 10px; }
.mock-user { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.mock-user .avatar { width: 34px; height: 34px; display: grid; place-items: center; background: var(--red); font-family: var(--display); font-weight: 700; clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); }
.mock-user b { display: block; font-family: var(--display); text-transform: uppercase; font-size: 1rem; letter-spacing: .04em; }
.mock-user small { color: var(--muted); font-size: .66rem; }
.mock-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(236,232,225,.03); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s; }
.mock-row.sel { background: rgba(255,70,85,.1); box-shadow: inset 3px 0 0 var(--red), inset 0 0 0 1px rgba(255,70,85,.3); }
.mock-row .t { flex: 1; min-width: 0; }
.mock-row .t b { display: block; font-family: var(--display); text-transform: uppercase; font-size: .95rem; letter-spacing: .03em; }
.mock-row .t small { color: var(--muted); font-size: .68rem; }
.mock-load { margin-top: 4px; padding: 13px; background: var(--red); text-align: center; color: #fff; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.mock-progress { height: 3px; background: rgba(236,232,225,.08); overflow: hidden; }
.mock-progress span { display: block; height: 100%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: progress 3.4s var(--ease) infinite; }
@keyframes progress { 0% { width: 0; } 70% { width: 100%; opacity: 1; } 100% { width: 100%; opacity: 0; } }
.mock-log { font-family: var(--mono); font-size: .66rem; color: var(--muted); line-height: 1.85; }
.mock-log .ok { color: var(--mint); }

.corner { position: absolute; width: 22px; height: 22px; border-color: var(--red); border-style: solid; border-width: 0; }
.corner.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- ticker ---------- */
.ticker { position: relative; padding: 18px 0; background: var(--red); transform: rotate(-1.4deg) scale(1.02); overflow: hidden; box-shadow: 0 20px 60px -20px rgba(255,70,85,.6); }
.ticker-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; color: #fff; white-space: nowrap; letter-spacing: .02em; }
.ticker span::after { content: ""; width: 12px; height: 12px; background: var(--bg); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { position: relative; padding: 36px 30px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; transition: background .4s; }
.feature::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.feature:hover { background: rgba(255,70,85,.04); }
.feature:hover::before { transform: scaleX(1); }
.feature .num { position: absolute; right: 24px; top: 26px; color: var(--muted); }
.feature-ico { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 30px; color: var(--red); background: rgba(255,70,85,.08); box-shadow: inset 0 0 0 1px rgba(255,70,85,.3); clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); transition: transform .5s var(--ease); }
.feature:hover .feature-ico { transform: rotate(-8deg) scale(1.08); }
.feature-ico .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 1.45rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: .94rem; }

/* ---------- product cards ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 26px; }
.card {
  --accent: var(--red); --mx: 50%; --my: 0%; --c: 26px;
  position: relative; display: flex; flex-direction: column; isolation: isolate;
  background: linear-gradient(180deg, var(--panel), #0d151d);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%);
  transition: transform .55s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .4s;
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; pointer-events: none;
  background: radial-gradient(480px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 20%, transparent), transparent 45%);
}
.card:hover { transform: translateY(-8px); }
.card:hover::before { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.card:hover::after { opacity: 1; }
.card-media { position: relative; height: 250px; overflow: hidden; display: grid; place-items: center; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.9); }
.card:hover .card-media img { transform: scale(1.1); filter: saturate(1.15); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(13,21,29,.95)); }
.card-media .art {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(-45deg, rgba(236,232,225,.035) 0 2px, transparent 2px 12px),
    radial-gradient(90% 80% at 70% 110%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 60%),
    linear-gradient(135deg, #18242f, #0d151d);
}
.card-media .glyph {
  position: relative; z-index: 1; font-family: var(--display); font-weight: 700; font-size: 9rem; line-height: 1; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--accent) 85%, white); opacity: .9;
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 60%, transparent)); transition: transform .9s var(--ease), color .5s;
}
.card:hover .card-media .glyph { transform: scale(1.08) rotate(-3deg); color: color-mix(in srgb, var(--accent) 25%, transparent); }
.card-media .badge { position: absolute; z-index: 2; top: 18px; left: 18px; }
.card-media .idx { position: absolute; z-index: 2; top: 18px; right: 20px; color: var(--bone); opacity: .7; }
.card-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 6px 28px 30px; margin-top: -40px; z-index: 1; }
.card-body h3 { font-size: 2.3rem; }
.card-body .tag { margin-top: 8px; color: var(--text-2); font-size: .95rem; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: .92rem; }
.checks li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 8px; background: var(--accent); transform: rotate(45deg); }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 28px; }
.price small { display: block; color: var(--muted); margin-bottom: 4px; }
.price b { font-family: var(--display); font-size: 2rem; line-height: 1; text-transform: uppercase; }
.card-actions { display: flex; gap: 8px; }
.card .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); z-index: 3; }
.card:hover .bar { transform: scaleX(1); }

.empty { padding: 70px 24px; text-align: center; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); background: repeating-linear-gradient(-45deg, rgba(236,232,225,.02) 0 2px, transparent 2px 12px); }
.empty h3 { font-size: 2rem; color: var(--bone); margin-bottom: 10px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 28px 0 0; }
.step-top { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.step-num {
  width: 64px; height: 64px; flex: none; display: grid; place-items: center; color: var(--red); background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255,70,85,.4); clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  transition: background .4s, color .4s;
}
.step:hover .step-num { background: var(--red); color: #fff; }
.step-num .icon { width: 26px; height: 26px; }
.step-top::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.step:last-child .step-top::after { display: none; }
.step .hud { color: var(--red); display: block; margin-bottom: 10px; }
.step .hud::before { counter-increment: step; content: "0" counter(step) " // "; }
.step h3 { font-size: 1.6rem; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: .94rem; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.faq-wrap .section-head { margin: 0; position: sticky; top: 110px; }
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); transition: background .3s; }
.faq details[open] { background: linear-gradient(90deg, rgba(255,70,85,.06), transparent); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 18px; cursor: pointer; list-style: none; font-family: var(--display); text-transform: uppercase; font-size: 1.25rem; letter-spacing: .01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; width: 16px; height: 16px; flex: none; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--red); transition: transform .4s var(--ease); }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus::after { transform: rotate(0); }
.faq .answer { padding: 0 18px 26px; color: var(--text-2); font-size: .97rem; max-width: 640px; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 90px 60px; overflow: hidden; background: var(--red); --c: 40px; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))); }
.cta::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(0,0,0,.08) 0 2px, transparent 2px 16px); }
.cta .outline-text { left: -2%; bottom: -16%; -webkit-text-stroke: 1px rgba(255,255,255,.18); font-size: clamp(7rem, 18vw, 16rem); z-index: 0; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.8rem, 7vw, 5.6rem); color: #fff; max-width: 900px; }
.cta p { margin: 20px 0 38px; max-width: 520px; color: rgba(255,255,255,.88); font-size: 1.08rem; }
.cta .btn { background: var(--bg); color: var(--bone); }
.cta .btn::before { background: var(--bone); }
.cta .btn:hover { color: var(--bg); }
.cta .btn-ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); color: #fff; }

/* ---------- footer ---------- */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-grid p { max-width: 380px; margin-top: 18px; }
.footer h4 { font-family: var(--hud); font-weight: 600; font-size: .7rem; letter-spacing: .18em; color: var(--red); margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--bone); }
.legal { margin-top: 56px; padding: 22px 0 0; border-top: 1px solid var(--line); font-size: .76rem; color: #5d6b77; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 18px; font-size: .8rem; }

/* ---------- pagina prodotto ---------- */
.page-hero { padding: 64px 0 20px; }
.crumbs { display: flex; gap: 10px; align-items: center; color: var(--muted); margin-bottom: 30px; }
.crumbs a:hover { color: var(--bone); }
.crumbs .sep { color: var(--red); }
.product-layout { display: grid; grid-template-columns: 1fr 400px; gap: 44px; align-items: start; }
.product-hero {
  --accent: var(--red); --c: 34px; position: relative; overflow: hidden; height: 420px; display: grid; place-items: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%);
  background: #0d151d;
}
.product-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.product-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,14,19,.8)); }
.product-hero .art { position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(236,232,225,.035) 0 2px, transparent 2px 12px), radial-gradient(80% 90% at 70% 110%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 60%), linear-gradient(135deg, #18242f, #0d151d); }
.product-hero .glyph { position: relative; z-index: 1; font-family: var(--display); font-size: 15rem; font-weight: 700; line-height: 1; text-transform: uppercase; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--accent) 85%, white); filter: drop-shadow(0 0 40px color-mix(in srgb, var(--accent) 60%, transparent)); }
.product-hero .corner { z-index: 2; width: 30px; height: 30px; margin: 18px; }
.product-title { margin: 40px 0 14px; font-size: clamp(3rem, 7vw, 5.6rem); }
.product-tag { color: var(--text-2); font-size: 1.15rem; max-width: 640px; }
.prose { color: var(--text-2); font-size: 1.02rem; line-height: 1.85; }
.prose h2 { color: var(--bone); font-size: 2rem; margin: 48px 0 16px; }
.prose h3 { color: var(--bone); font-size: 1.35rem; margin: 30px 0 10px; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--red-2); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: var(--mono); font-size: .86em; padding: 2px 7px; background: rgba(236,232,225,.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--bone); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 22px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-grid div { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--text-2); transition: background .3s; }
.feature-grid div:hover { background: rgba(255,70,85,.04); }
.feature-grid div::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; background: var(--accent, var(--red)); transform: rotate(45deg); }
.buy-box {
  --accent: var(--red); --c: 24px; position: sticky; top: 100px; padding: 32px; background: linear-gradient(180deg, var(--panel-2), var(--panel));
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); box-shadow: inset 0 0 0 1px var(--line-2);
}
.buy-box::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--accent); }
.buy-box .price b { font-size: 3rem; }
.buy-box hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.buy-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 13px; font-size: .93rem; color: var(--text-2); }
.buy-list li { display: flex; align-items: center; gap: 12px; }
.buy-list .icon { color: var(--red); }
.buy-note { margin-top: 16px; font-size: .8rem; color: var(--muted); text-align: center; }

/* ---------- guida ---------- */
.timeline { max-width: 960px; margin: 0 auto; display: grid; gap: 0; }
.tl-item { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 36px; padding: 44px 0; border-top: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-num { font-family: var(--display); font-size: 5rem; line-height: .85; color: transparent; -webkit-text-stroke: 1px var(--red); transition: color .4s; }
.tl-item:hover .tl-num { color: var(--red); }
.tl-card h3 { font-size: 2rem; margin-bottom: 14px; }
.tl-card p { color: var(--text-2); max-width: 640px; }
.tl-card p + p { margin-top: 10px; }
.tip { display: flex; gap: 14px; margin-top: 22px; padding: 16px 18px; font-size: .92rem; max-width: 680px; background: rgba(236,232,225,.03); box-shadow: inset 3px 0 0 var(--bone), inset 0 0 0 1px var(--line); color: var(--text-2); }
.tip.warn { box-shadow: inset 3px 0 0 var(--gold), inset 0 0 0 1px rgba(245,196,81,.2); color: #f3dfaa; }
.tip.red { box-shadow: inset 3px 0 0 var(--red), inset 0 0 0 1px rgba(255,70,85,.2); color: #ffc3c8; }
.tip .icon { margin-top: 3px; }
.mini-ui { margin-top: 24px; padding: 20px; max-width: 440px; display: grid; gap: 10px; background: rgba(13,21,30,.9); box-shadow: inset 0 0 0 1px var(--line-2); --c: 16px; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); }
.mini-ui .field { padding: 12px 14px; background: rgba(236,232,225,.04); box-shadow: inset 0 0 0 1px var(--line); font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.mini-ui .field b { color: var(--bone); font-weight: 500; font-family: var(--mono); font-size: .8rem; }
.mini-ui .tabs { display: flex; gap: 0; box-shadow: inset 0 0 0 1px var(--line); }
.mini-ui .tabs span { flex: 1; text-align: center; padding: 10px; font-family: var(--hud); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; color: var(--muted); }
.mini-ui .tabs span.on { background: var(--red); color: #fff; }
.mini-ui .go { padding: 13px; background: var(--red); text-align: center; color: #fff; font-family: var(--hud); text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; }
kbd { font-family: var(--mono); font-size: .82em; padding: 2px 8px; background: rgba(236,232,225,.07); box-shadow: inset 0 -2px 0 rgba(0,0,0,.4), inset 0 0 0 1px var(--line-2); }

/* ---------- download ---------- */
.dl-card { --c: 34px; position: relative; max-width: 820px; margin: 0 auto; padding: 60px; text-align: center; overflow: hidden; background: linear-gradient(180deg, var(--panel-2), var(--panel)); clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))); box-shadow: inset 0 0 0 1px var(--line-2); }
.dl-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 0%, rgba(255,70,85,.18), transparent 70%); }
.dl-card > * { position: relative; }
.dl-card h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); margin-bottom: 12px; }
.dl-icon { width: 92px; height: 92px; margin: 0 auto 30px; display: grid; place-items: center; background: var(--red); color: #fff; clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%); box-shadow: 0 0 60px rgba(255,70,85,.5); animation: float 5s ease-in-out infinite; }
.dl-icon .icon { width: 40px; height: 40px; }
.dl-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 24px 0 34px; }
.hash { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding: 14px 16px; text-align: left; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--mono); font-size: .74rem; color: var(--muted); word-break: break-all; }
.hash button { flex: none; background: rgba(236,232,225,.06); border: 0; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); padding: 8px; cursor: pointer; transition: color .2s, background .2s; }
.hash button:hover { color: #fff; background: var(--red); }
.req { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 820px; margin: 26px auto 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.req div { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--text-2); }
.req b { display: block; color: var(--bone); margin-bottom: 6px; font-family: var(--display); text-transform: uppercase; font-size: 1.15rem; font-weight: 600; }

/* ---------- stato ---------- */
.status-list { max-width: 880px; margin: 0 auto; box-shadow: inset 0 0 0 1px var(--line); background: var(--panel); }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; border-top: 1px solid var(--line); }
.status-row:first-child { border-top: 0; }
.status-row b { font-family: var(--display); text-transform: uppercase; font-size: 1.4rem; font-weight: 600; }
.status-row small { display: block; color: var(--muted); font-size: .84rem; }
.status-banner { max-width: 880px; margin: 0 auto 26px; padding: 22px 28px; display: flex; align-items: center; gap: 14px; font-family: var(--display); text-transform: uppercase; font-size: 1.3rem; }
.status-banner.ok { background: rgba(45,226,176,.08); box-shadow: inset 3px 0 0 var(--mint), inset 0 0 0 1px rgba(45,226,176,.25); color: #a7f3d0; }
.status-banner.warn { background: rgba(245,196,81,.08); box-shadow: inset 3px 0 0 var(--gold), inset 0 0 0 1px rgba(245,196,81,.25); color: #fde68a; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 120px 0 100px; }
.notfound h1 { font-size: clamp(8rem, 26vw, 18rem); color: transparent; -webkit-text-stroke: 2px var(--red); line-height: .9; }
.notfound p { color: var(--text-2); margin: 20px 0 34px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.wipe { position: relative; }
.wipe::after { content: ""; position: absolute; inset: 0; background: var(--red); transform-origin: right; transform: scaleX(1); transition: transform .9s var(--ease); transition-delay: var(--d, 0s); z-index: 4; }
.wipe.in::after { transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .wipe::after { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .visual { margin: 0 auto; max-width: 520px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .step:nth-child(2) .step-top::after { display: none; }
  .product-layout { grid-template-columns: 1fr; }
  .buy-box { position: relative; top: 0; }
  .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .faq-wrap .section-head { position: static; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  section { padding: 80px 0; }
  .hero { padding: 40px 0 70px; }
  .hero h1 { font-size: clamp(3.2rem, 15vw, 5rem); }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open { background: rgba(10,14,19,.97); }
  .nav.open .nav-inner { flex-wrap: wrap; height: auto; padding: 16px 0; }
  .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; order: 3; margin: 8px 0 0; }
  .nav.open .nav-links a { padding: 14px 4px; }
  .nav.open .nav-links a::after { left: 4px; right: auto; width: 40px; }
  .nav.open .nav-cta { display: flex; width: 100%; order: 4; padding-bottom: 6px; }
  .nav.open .nav-cta .btn { flex: 1; }
  .features, .steps, .feature-grid, .req { grid-template-columns: 1fr; }
  .step { padding: 0; }
  .step-top::after { display: none; }
  .products { grid-template-columns: 1fr; }
  .card-body h3 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta { padding: 56px 24px; --c: 24px; }
  .dl-card { padding: 40px 20px; }
  .tl-item { grid-template-columns: 1fr; gap: 10px; padding: 34px 0; }
  .tl-num { font-size: 3.6rem; }
  .status-row { padding: 18px; }
  .hero-actions .btn { flex: 1; }
  .product-hero { height: 280px; }
  .product-hero .glyph { font-size: 9rem; }
  .ticker span { font-size: 1.2rem; }
  .section-head { margin-bottom: 40px; }
}

/* ==========================================================================
   Aggiunte: link estesi, galleria prodotto, slide HUD, piani, auth, account
   ========================================================================== */
.link { color: var(--red-2); text-decoration: underline; text-underline-offset: 3px; }
.kbd { font-family: var(--hud); text-transform: uppercase; letter-spacing: .12em; font-size: .78em; padding: 3px 9px; background: rgba(236,232,225,.07); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--bone); }
.kbd-key { letter-spacing: .06em; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .card-actions, .card .btn { position: relative; z-index: 3; }
.card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media .cycle-item { opacity: 0; transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.card-media .cycle-item.on { opacity: 1; }
.media-hint { position: absolute; z-index: 2; right: 18px; bottom: 54px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: rgba(10,14,19,.7); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(8px); color: var(--bone); font-size: .62rem; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); }
.media-hint .icon { width: 11px; height: 11px; color: var(--red); }
.card:hover .media-hint { opacity: 1; transform: none; }
.sub-h { font-size: 2rem; margin: 52px 0 6px; }
.footer-discord { margin-top: 22px; }

/* ---------- galleria ---------- */
.gallery { --accent: var(--red); }
.g-stage {
  --c: 30px; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0b121a;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%);
}
.g-stage .corner { z-index: 6; width: 26px; height: 26px; margin: 14px; }
.g-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s .8s; }
.g-slide.on { opacity: 1; visibility: visible; transition: opacity .8s var(--ease); z-index: 1; }
.g-slide img, .g-slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-slide.on img { animation: kenburns 9s ease-out both; }
.g-slide figcaption {
  position: absolute; z-index: 3; left: 26px; bottom: 30px; display: flex; align-items: baseline; gap: 14px; max-width: 70%;
  font-family: var(--display); text-transform: uppercase; font-size: clamp(1.2rem, 2.6vw, 2rem); line-height: 1; color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.6); transform: translateY(14px); opacity: 0; transition: transform .8s var(--ease) .2s, opacity .8s .2s;
}
.g-slide.on figcaption { transform: none; opacity: 1; }
.g-slide::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(10,14,19,.25), transparent 30%, transparent 55%, rgba(10,14,19,.85)); }
.g-ui { position: absolute; z-index: 5; top: 18px; left: 26px; right: 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.g-count { color: var(--text-2); }
.g-count b { color: #fff; font-weight: 600; }
.g-btns { display: flex; gap: 6px; }
.g-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 0; cursor: pointer; color: var(--bone); background: rgba(10,14,19,.6); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(8px); transition: background .25s, color .25s; }
.g-btn:hover { background: var(--red); color: #fff; }
.g-btn .icon { width: 17px; height: 17px; }
.g-progress { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(236,232,225,.1); }
.g-progress span { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.g-thumbs { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 1fr); gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.g-thumbs::-webkit-scrollbar { display: none; }
.g-thumb {
  position: relative; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; overflow: hidden; background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line); opacity: .55; transition: opacity .3s, box-shadow .3s;
}
.g-thumb img, .g-thumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.g-thumb:hover { opacity: .85; }
.g-thumb.on { opacity: 1; box-shadow: inset 0 0 0 2px var(--accent); }
.g-thumb.on::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent); }
.g-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.25); }
.g-play .icon { width: 18px; height: 18px; }

/* lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5,8,11,.94); color: var(--bone); }
.lightbox::backdrop { background: rgba(5,8,11,.9); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; }
.lb-stage { position: relative; height: min(84vh, 56.25vw); aspect-ratio: 16 / 9; max-width: 100%; justify-self: center; overflow: hidden; }
.lb-stage > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lb-close { position: absolute; top: 18px; right: 18px; z-index: 2; }
.lb-close, .lb-nav { width: 46px; height: 46px; display: grid; place-items: center; border: 0; cursor: pointer; color: var(--bone); background: rgba(236,232,225,.06); box-shadow: inset 0 0 0 1px var(--line-2); justify-self: center; transition: background .25s; }
.lb-close:hover, .lb-nav:hover { background: var(--red); }

/* ---------- piani ---------- */
.plan-pick { display: grid; gap: 10px; margin: 18px 0 18px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: rgba(236,232,225,.03); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .25s, box-shadow .25s; }
.pick-body b { font-family: var(--display); text-transform: uppercase; font-size: 1.3rem; letter-spacing: .02em; }
.pick-body em { display: inline-block; margin-left: 10px; padding: 3px 8px; font-style: normal; font-size: .58rem; background: var(--red); color: #fff; vertical-align: middle; }
.pick-price { display: grid; justify-items: end; }
.pick-price small { color: var(--muted); font-size: .76rem; }
.pick:hover .pick-body { background: rgba(236,232,225,.06); }
.pick input:checked + .pick-body { background: rgba(255,70,85,.1); box-shadow: inset 3px 0 0 var(--red), inset 0 0 0 1px rgba(255,70,85,.45); }
.pick input:focus-visible + .pick-body { outline: 2px solid var(--red); outline-offset: 2px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; max-width: 900px; margin: 0 auto; }
.plan { --c: 26px; position: relative; display: flex; flex-direction: column; padding: 38px 34px 34px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .5s var(--ease); }
.plan:hover { transform: translateY(-6px); }
.plan.best { background: radial-gradient(90% 70% at 50% 0%, rgba(255,70,85,.2), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: inset 0 0 0 1px rgba(255,70,85,.5); }
.plan.best::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--red); }
.plan-flag { position: absolute; top: 18px; right: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; background: var(--red); color: #fff; font-size: .62rem; }
.plan-flag .icon { width: 12px; height: 12px; }
.plan-name { color: var(--red); }
.plan-price { margin: 14px 0 6px; }
.plan-price b { display: block; font-family: var(--display); font-size: 4rem; line-height: 1; }
.plan-price small { color: var(--muted); }
.plan .checks { margin-bottom: 30px; }
.plan .btn { margin-top: auto; }

/* ---------- docs ---------- */
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-nav a { padding: 10px 14px; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); transition: color .2s, background .2s, box-shadow .2s; }
.doc-nav a:hover { color: #fff; background: rgba(255,70,85,.1); box-shadow: inset 0 0 0 1px rgba(255,70,85,.45); }
.tl-card code { font-family: var(--mono); font-size: .86em; padding: 2px 7px; background: rgba(236,232,225,.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--bone); }
.tl-item { scroll-margin-top: 90px; }

/* ---------- toast ---------- */
.toasts { position: fixed; z-index: 80; top: 90px; right: 20px; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: rgba(17,28,39,.96); backdrop-filter: blur(10px); box-shadow: inset 3px 0 0 var(--mint), inset 0 0 0 1px var(--line-2), var(--shadow); animation: toast-in .6s var(--ease) both; font-size: .92rem; }
.toast.bad { box-shadow: inset 3px 0 0 var(--red), inset 0 0 0 1px rgba(255,70,85,.35), var(--shadow); }
.toast .icon { margin-top: 3px; color: var(--mint); }
.toast.bad .icon { color: var(--red); }
.toast span { flex: 1; }
.toast button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px; }
.toast button .icon { color: var(--muted); margin: 0; }
.toast.out { animation: toast-out .4s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }

/* ---------- auth ---------- */
.auth { padding: 70px 0 110px; }
.auth-grid { display: grid; grid-template-columns: 1fr 480px; gap: 70px; align-items: center; }
.auth-side h1 { font-size: clamp(3.4rem, 8vw, 7rem); margin-bottom: 24px; }
.auth-side p { color: var(--text-2); max-width: 460px; font-size: 1.06rem; }
.auth-points { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; color: var(--text-2); }
.auth-points li { display: flex; align-items: center; gap: 12px; }
.auth-points .icon { color: var(--red); }
.auth-card { --c: 26px; position: relative; display: grid; gap: 16px; padding: 34px; background: rgba(17,28,39,.88); backdrop-filter: blur(14px); clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))); box-shadow: inset 0 0 0 1px var(--line-2); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; box-shadow: inset 0 0 0 1px var(--line-2); margin-bottom: 6px; }
.auth-tabs a { padding: 13px; text-align: center; font-family: var(--hud); text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; color: var(--muted); transition: color .2s, background .2s; }
.auth-tabs a.on { background: var(--red); color: #fff; }
.auth-tabs a:not(.on):hover { color: var(--bone); }
.field { display: grid; gap: 8px; }
.field > .hud { color: var(--text-2); font-size: .66rem; }
.field em { font-style: normal; color: var(--muted); text-transform: none; letter-spacing: 0; }
.input { display: flex; align-items: center; gap: 12px; padding: 0 14px; background: rgba(10,14,19,.6); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .25s, background .25s; }
.input:focus-within { box-shadow: inset 0 0 0 1px var(--red), 0 0 0 3px rgba(255,70,85,.15); background: rgba(10,14,19,.85); }
.input .icon { color: var(--muted); }
.input:focus-within .icon { color: var(--red); }
.input input { flex: 1; min-width: 0; padding: 14px 0; border: 0; outline: 0; background: transparent; color: var(--bone); font: 500 .96rem var(--font); }
.input input.mono { font-family: var(--mono); font-size: .86rem; letter-spacing: .04em; }
.input input::placeholder { color: #55626d; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--text-2); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--red); width: 16px; height: 16px; }
.check a { color: var(--red-2); text-decoration: underline; text-underline-offset: 3px; }
.form-error { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; font-size: .9rem; color: #ffc3c8; background: rgba(255,70,85,.1); box-shadow: inset 3px 0 0 var(--red), inset 0 0 0 1px rgba(255,70,85,.3); }
.form-error .icon { margin-top: 3px; color: var(--red); }
.auth-alt { text-align: center; font-size: .88rem; color: var(--muted); }
.auth-alt a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- account ---------- */
.acc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.acc-user { display: flex; align-items: center; gap: 22px; }
.acc-avatar { width: 84px; height: 84px; display: grid; place-items: center; font-family: var(--display); font-size: 2.6rem; color: #fff; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%); box-shadow: 0 0 50px rgba(255,70,85,.45); }
.acc-user h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 4px 0; }
.acc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: start; }
.acc-grid > div { display: grid; gap: 26px; }
.panel { --c: 20px; position: relative; padding: 28px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); box-shadow: inset 0 0 0 1px var(--line); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.panel-head h2 { font-size: 1.7rem; }
.lic-list { display: grid; gap: 10px; }
.lic { display: flex; align-items: center; gap: 18px; padding: 16px 18px; background: rgba(10,14,19,.45); box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 1px var(--line); }
.lic.expired { opacity: .65; box-shadow: inset 3px 0 0 var(--muted), inset 0 0 0 1px var(--line); }
.lic-ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; font-family: var(--display); font-size: 1.5rem; color: #fff; background: color-mix(in srgb, var(--accent) 80%, black); clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); }
.lic-main { flex: 1; min-width: 0; }
.lic-main b { display: block; font-family: var(--display); text-transform: uppercase; font-size: 1.3rem; letter-spacing: .02em; }
.lic-main small { color: var(--muted); font-size: .84rem; }
.lic-bar { height: 3px; margin-top: 10px; background: rgba(236,232,225,.08); }
.lic-bar span { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.lic-left { display: grid; justify-items: end; text-align: right; }
.lic-left b { font-family: var(--display); font-size: 1.6rem; line-height: 1; }
.lic-left small { color: var(--muted); font-size: .6rem; }
.inline-form { display: flex; gap: 10px; }
.inline-form .input { flex: 1; }
.stack-form { display: grid; gap: 14px; }
.hint { margin-top: 14px; color: var(--muted); font-size: .86rem; }
.hint a { color: var(--red-2); text-decoration: underline; }
.kv { display: grid; gap: 0; box-shadow: inset 0 0 0 1px var(--line); }
.kv div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); }
.kv div:first-child { border-top: 0; }
.kv .hud { color: var(--muted); font-size: .64rem; }
.kv b { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.kv b.mono { font-family: var(--mono); font-weight: 500; font-size: .82rem; }
.ok-t { color: var(--mint); }

@media (max-width: 1080px) {
  .auth-grid { grid-template-columns: 1fr; gap: 40px; }
  .auth-card { max-width: 520px; width: 100%; }
  .acc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .g-stage { aspect-ratio: 4 / 3; --c: 18px; }
  .g-ui { left: 14px; right: 14px; top: 12px; }
  .g-btn { width: 34px; height: 34px; }
  .g-slide figcaption { left: 16px; bottom: 20px; max-width: 85%; }
  .g-thumbs { grid-auto-columns: 110px; }
  .lightbox[open] { grid-template-columns: 44px 1fr 44px; }
  .lb-nav { width: 38px; height: 38px; }
  .plan { padding: 32px 24px 26px; }
  .plan-price b { font-size: 3.2rem; }
  .auth { padding: 40px 0 80px; }
  .auth-card { padding: 26px 20px; }
  .inline-form { flex-direction: column; }
  .lic { flex-wrap: wrap; }
  .lic-left { width: 100%; justify-items: start; text-align: left; }
  .toasts { top: 84px; right: 16px; }
}

/* fix: le colonne grid non devono allargarsi oltre il viewport per colpa del contenuto */
.hero-grid > *, .product-layout > *, .faq-wrap > *, .auth-grid > *, .acc-grid > * { min-width: 0; }
@media (max-width: 760px) {
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-meta { gap: 20px; }
  .hero-meta b { font-size: 1.5rem; }
  .visual { max-width: 100%; }
  .mock { width: min(88%, 400px); }
}

/* niente scroll orizzontale da testi decorativi e ticker ruotato (clip non rompe lo sticky della nav) */
main { overflow-x: clip; }

/* un solo prodotto: card orizzontale in evidenza */
.products.single { grid-template-columns: 1fr; }
.products.single .card { flex-direction: row; min-height: 440px; }
.products.single .card-media { flex: 1.25; height: auto; }
.products.single .card-media::after { background: linear-gradient(90deg, transparent 55%, rgba(13,21,29,.9)); }
.products.single .card-body { flex: 1; margin-top: 0; padding: 44px 44px 40px; justify-content: center; }
.products.single .card-body h3 { font-size: clamp(2.6rem, 4.5vw, 3.8rem); }
.products.single .media-hint { bottom: 18px; }
@media (max-width: 900px) {
  .products.single .card { flex-direction: column; }
  .products.single .card-media { height: 260px; flex: none; }
  .products.single .card-media::after { background: linear-gradient(180deg, transparent 35%, rgba(13,21,29,.95)); }
  .products.single .card-body { padding: 6px 24px 28px; margin-top: -40px; }
}
@media (max-width: 760px) { .visual { margin-top: 24px; } }

/* ==========================================================================
   Gameplay reale (hero), YouTube, accesso su invito, verifica email
   ========================================================================== */
.rec-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* hero: riquadro gameplay 16:9 con il mockup del loader che galleggia davanti */
.hero-grid:has(.reel) { grid-template-columns: .92fr 1.08fr; gap: 50px; }
.visual:has(.reel) { aspect-ratio: auto; max-width: 700px; padding-bottom: 150px; }
.reel {
  --c: 34px; position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; background: #070b10;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow);
}
.reel .corner { z-index: 6; margin: 12px; }
.reel-stage, .reel-item { position: absolute; inset: 0; }
.reel-item { opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 0s 1s; }
.reel-item.on { opacity: 1; visibility: visible; transition: opacity 1s var(--ease); z-index: 1; }
.reel-item img, .reel-item video, .reel-item iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.reel-item.on img { animation: kenburns 7s ease-out both; }
.reel-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,11,16,.45), transparent 26%, transparent 66%, rgba(7,11,16,.75)),
              repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 1px, transparent 1px 3px);
}
.reel.playing .reel-stage::after, .reel.playing .reel-top, .reel.playing .reel-play, .reel.playing .reel-bars, .reel.playing .reel-cap { display: none; }
.reel-cap { position: absolute; z-index: 3; left: 22px; bottom: 30px; max-width: 70%; font-family: var(--display); text-transform: uppercase; font-size: clamp(.95rem, 1.6vw, 1.25rem); line-height: 1.1; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.7); }
.reel-top { position: absolute; z-index: 4; top: 16px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; font-size: .66rem; color: var(--text-2); }
.reel-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; color: #fff; background: rgba(7,11,16,.6); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(6px); }
.reel-count b { color: #fff; }
.reel-play {
  position: absolute; z-index: 4; left: 50%; top: 50%; translate: -50% -50%; width: 78px; height: 78px; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 8px rgba(255,70,85,.18), 0 12px 40px rgba(255,70,85,.45);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.reel-play .icon { width: 28px; height: 28px; margin-left: 4px; fill: currentColor; }
.reel-play:hover { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(255,70,85,.22), 0 12px 50px rgba(255,70,85,.6); }
.rp-ring { position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255,70,85,.6); animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.reel-bars { position: absolute; z-index: 4; left: 22px; right: 22px; bottom: 14px; display: flex; gap: 6px; }
.reel-bars button { flex: 1; height: 14px; padding: 6px 0; border: 0; background: none; cursor: pointer; }
.reel-bars span { display: block; height: 2px; background: rgba(236,232,225,.25); position: relative; overflow: hidden; }
.reel-bars button.on span::after { content: ""; position: absolute; inset: 0; background: var(--red); transform-origin: left; animation: reel-fill var(--reel-ms, 5200ms) linear both; }
.reel-bars button.done span { background: rgba(236,232,225,.7); }
.reel.paused .reel-bars button.on span::after { animation-play-state: paused; }
@keyframes reel-fill { from { transform: scaleX(0); } to { transform: none; } }

.mock-wrap.floating { inset: auto; left: -40px; bottom: 0; width: min(52%, 300px); height: auto; z-index: 7; }
.mock-wrap.floating .mock { position: relative; left: auto; top: auto; translate: none; width: 100%; }
.mock-wrap.floating .mock-body { padding: 12px; gap: 8px; }
.mock-wrap.floating .mock-log { display: none; }
.mock-wrap.floating .mock-bar { padding: 10px 14px; }

/* slide YouTube nella galleria: anteprima + play (il player si carica solo al clic) */
.g-slide iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }
.g-slide.playing::after, .g-slide.playing figcaption, .g-slide.playing .yt-play, .g-slide.playing .yt-tag { display: none; }
.yt-play {
  position: absolute; z-index: 4; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px 14px 16px; border: 0; cursor: pointer; color: #fff; background: rgba(10,14,19,.55); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background .3s, transform .3s var(--ease);
}
.yt-play .icon { width: 30px; height: 30px; padding: 8px; box-sizing: content-box; background: var(--red); fill: currentColor; }
.yt-play:hover { background: var(--red); transform: scale(1.04); }
.yt-play:hover .icon { background: rgba(0,0,0,.25); }
.yt-tag { position: absolute; z-index: 4; right: 26px; bottom: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: .62rem; color: #fff; background: rgba(10,14,19,.6); box-shadow: inset 0 0 0 1px var(--line-2); }
.g-ui { pointer-events: none; }
.g-ui > * { pointer-events: auto; }
.g-empty { display: grid; place-items: center; background: repeating-linear-gradient(-45deg, rgba(236,232,225,.03) 0 2px, transparent 2px 12px), var(--panel); }
.g-empty div { display: grid; gap: 8px; text-align: center; }
.g-empty b { font-family: var(--display); text-transform: uppercase; font-size: 1.8rem; }
.lb-stage iframe { border: 0; }
.credit { margin-top: 18px; font-size: .6rem; color: var(--muted); }

/* box acquisto con client su invito */
.invite-note { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; padding: 13px 14px; font-size: .86rem; color: var(--text-2); background: rgba(88,101,242,.08); box-shadow: inset 3px 0 0 #5865f2, inset 0 0 0 1px rgba(88,101,242,.25); }
.invite-note .icon { flex: none; margin-top: 2px; color: #8c96ff; }
.invite-note b { color: var(--bone); }

/* pagina apply */
.apply-hero { overflow: hidden; padding-bottom: 60px; }
.apply-hero .outline-text { right: -3vw; top: 60px; }
.apply-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; margin-top: 30px; }
.apply-title { font-size: clamp(3rem, 7vw, 6rem); margin: 26px 0 22px; }
.apply-grid .lead { color: var(--text-2); font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 600px; }
.apply-grid .lead b { color: var(--bone); }
.apply-status { --c: 24px; position: relative; display: grid; gap: 14px; padding: 30px; background: rgba(17,28,39,.88); backdrop-filter: blur(14px); clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))); box-shadow: inset 0 0 0 1px var(--line-2); }
.apply-status p { margin: 0; color: var(--text-2); font-size: .94rem; }
.as-state { display: flex; align-items: center; gap: 14px; padding: 14px; background: rgba(236,232,225,.04); box-shadow: inset 3px 0 0 var(--muted), inset 0 0 0 1px var(--line); }
.as-state .icon { width: 26px; height: 26px; color: var(--muted); }
.as-state b { display: block; font-family: var(--display); text-transform: uppercase; font-size: 1.25rem; letter-spacing: .03em; }
.as-state small { color: var(--muted); }
.as-state.warn { box-shadow: inset 3px 0 0 var(--gold), inset 0 0 0 1px rgba(245,196,81,.25); }
.as-state.warn .icon { color: var(--gold); }
.as-state.ok { box-shadow: inset 3px 0 0 var(--mint), inset 0 0 0 1px rgba(45,226,176,.25); }
.as-state.ok .icon { color: var(--mint); }
.as-copy { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; background: rgba(10,14,19,.6); box-shadow: inset 0 0 0 1px var(--line-2); }
.as-copy code { font-size: .95rem; color: var(--bone); }
.auth-alt-link { text-align: center; font-size: .86rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.apply-steps { grid-template-columns: repeat(3, 1fr); }
.step.done .step-num { background: var(--mint); color: #06241b; }

/* account: stato accesso */
.access-panel.pending { box-shadow: inset 3px 0 0 var(--gold), inset 0 0 0 1px var(--line); }
.access-panel.ok { box-shadow: inset 3px 0 0 var(--mint), inset 0 0 0 1px var(--line); }

/* registrazione: passaggi + verifica codice */
.auth-steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 4px; max-width: 420px; }
.auth-steps li { display: flex; align-items: center; gap: 16px; padding: 12px 14px; color: var(--muted); box-shadow: inset 2px 0 0 var(--line-2); }
.auth-steps li > .hud { font-size: .8rem; color: var(--muted); }
.auth-steps b { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--text-2); }
.auth-steps small { font-size: .8rem; }
.auth-steps li.on { background: rgba(255,70,85,.07); box-shadow: inset 2px 0 0 var(--red); }
.auth-steps li.on b, .auth-steps li.on > .hud { color: var(--bone); }
.auth-steps li.done { box-shadow: inset 2px 0 0 var(--mint); }
.auth-steps li.done > .hud { color: var(--mint); }
.reveal-pw { display: grid; place-items: center; padding: 6px; border: 0; background: none; cursor: pointer; color: var(--muted); }
.reveal-pw:hover, .reveal-pw.on { color: var(--bone); }
.reveal-pw .icon { color: inherit; }
.auth-legal { margin: 0; text-align: center; font-size: .78rem; color: var(--muted); }
.auth-legal a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.verify-ico { width: 56px; height: 56px; display: grid; place-items: center; color: #fff; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); }
.verify-ico .icon { width: 26px; height: 26px; }
.verify-title { margin: 0; font-size: 1.9rem; }
.auth-card form { display: grid; gap: 16px; }
.code-input {
  width: 100%; padding: 16px 0 16px 0.6em; border: 0; outline: 0; text-align: center; font-size: clamp(1.8rem, 6vw, 2.4rem); font-weight: 700;
  letter-spacing: .6em; color: var(--bone); background: rgba(10,14,19,.6); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 -2px 0 var(--red);
  transition: box-shadow .25s;
}
.code-input:focus { box-shadow: inset 0 0 0 1px var(--red), inset 0 -2px 0 var(--red), 0 0 0 3px rgba(255,70,85,.15); }
.code-input::placeholder { color: #2c3742; }
.verify-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.verify-foot form { display: contents; }
.link-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: none; cursor: pointer; font: 500 .86rem var(--font); color: var(--text-2); }
.link-btn .icon { width: 15px; height: 15px; }
.link-btn:hover:not(:disabled) { color: var(--bone); }
.link-btn:disabled { cursor: default; opacity: .5; }

@media (max-width: 1080px) {
  .hero-grid:has(.reel) { grid-template-columns: 1fr; }
  .visual:has(.reel) { max-width: 680px; margin: 0 auto; }
  .mock-wrap.floating { left: 0; }
  .apply-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .visual:has(.reel) { padding-bottom: 0; }
  .mock-wrap.floating { display: none; }   /* su telefono il gameplay ha la precedenza */
  .reel-play { width: 62px; height: 62px; }
  .reel-cap { bottom: 28px; left: 16px; font-size: .9rem; }
  .yt-play { padding: 10px 16px 10px 10px; }
  .yt-play .hud { display: none; }
  .yt-play { padding: 10px; }
  .yt-tag { display: none; }
  .apply-steps { grid-template-columns: 1fr; }
  .apply-status { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-item.on img, .rp-ring { animation: none; }
}

/* setup 2FA: QR code */
.qr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.qr-box { display: grid; place-items: center; padding: 18px; background: var(--bone); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
.qr-box svg { width: min(220px, 100%); height: auto; display: block; }
.qr-manual { font-size: .86rem; color: var(--text-2); }
.qr-manual summary { cursor: pointer; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.qr-manual[open] summary { margin-bottom: 10px; }
.qr-manual small { display: block; margin-top: 8px; color: var(--muted); }
.qr-manual code { font-size: .82rem; letter-spacing: .06em; word-break: break-all; }
