/* ==========================================================
   FOOTBALL INSIDER — Football Intelligence Platform
   ========================================================== */

:root {
  --black: #050605;
  --black-2: #0B0D0B;
  --panel: #141714;
  --yellow: #F5E900;
  --yellow-2: #D9D000;
  --green: #55E879;
  --green-dark: #102719;
  --red: #FF4D4D;
  --red-dark: #2A1111;
  --white: #F2F4EE;
  --grey: #858B85;

  --line: rgba(242, 244, 238, 0.09);
  --line-strong: rgba(242, 244, 238, 0.16);
  --yellow-glow: 0 0 18px rgba(245, 233, 0, 0.35);
  --green-glow: 0 0 18px rgba(85, 232, 121, 0.4);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 4px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  /* griglia tecnica di sfondo */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.5;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

a { color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--yellow); color: var(--black); }

/* Scrollbar globale */
* { scrollbar-width: thin; scrollbar-color: #2a2f2a transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2f2a; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--yellow-2); }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.mono { font-family: var(--font-mono); }

/* ---------------- Topbar ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 5, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.topbar__status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--grey);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo__mark {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--yellow);
  position: relative;
  box-shadow: var(--yellow-glow);
  flex-shrink: 0;
}
.logo__mark::before, .logo__mark::after {
  content: '';
  position: absolute;
  background: var(--yellow);
}
.logo__mark::before { width: 8px; height: 8px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.logo__mark::after { width: 1.5px; height: 6px; top: -7px; left: 50%; transform: translateX(-50%); }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-weight: 700; letter-spacing: 0.08em; font-size: 15px; }
.logo__name b { color: var(--yellow); font-weight: 700; }
.logo__sub { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em; color: var(--grey); }

/* ---------------- Utility ---------------- */

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
  flex-shrink: 0;
}
.dot--green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot--red { background: var(--red); box-shadow: 0 0 8px var(--red); }
.dot--grey { background: var(--grey); box-shadow: none; }
.dot--pulse { animation: pulse 2.2s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--grey);
  white-space: nowrap;
}
.tag--yellow { color: var(--yellow); border-color: rgba(245, 233, 0, 0.45); background: rgba(245, 233, 0, 0.06); }
.tag--green { color: var(--green); border-color: rgba(85, 232, 121, 0.45); background: rgba(85, 232, 121, 0.06); }
.tag--red { color: var(--red); border-color: rgba(255, 77, 77, 0.45); background: rgba(255, 77, 77, 0.06); }
.tag--solid { background: var(--yellow); color: var(--black); border-color: var(--yellow); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 26px;
  border: 1px solid var(--yellow);
  background: var(--yellow);
  color: var(--black);
  border-radius: 2px;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s, background 0.25s, color 0.25s;
}
.btn:hover { box-shadow: 0 0 28px rgba(245, 233, 0, 0.45); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--yellow); }
.btn--ghost:hover { background: rgba(245, 233, 0, 0.08); }
.btn--sm { padding: 10px 16px; font-size: 11px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn__arrow { transition: transform 0.25s; }
.btn:hover .btn__arrow { transform: translateY(3px); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}

/* angoli tecnici */
.corners::before, .corners::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--yellow);
  border-style: solid;
  pointer-events: none;
}
.corners::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.corners::after { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }

/* ---------------- Section ---------------- */

.section { padding: 120px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }

.section__head { margin-bottom: 56px; max-width: 820px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--yellow); box-shadow: var(--yellow-glow); }

.h2 {
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 20px;
  text-transform: uppercase;
}
.h2 em { font-style: normal; color: var(--yellow); }
.lead { color: #c4c8c0; font-size: 18px; max-width: 680px; margin: 0; }
.muted { color: var(--grey); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------- HERO ---------------- */

.hero {
  min-height: calc(100vh - 60px);
  min-height: calc(100svh - 60px);
  display: flex;
  align-items: center;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 64px;
  align-items: center;
}
/* Emblema + brand */
.hero__id {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 34px;
}
.hero__id .hero__brand { margin-bottom: 0; }
.emblem {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 50%;
  isolation: isolate;
}
.emblem__img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(245, 233, 0, 0.45);
  box-shadow: 0 0 0 5px var(--black), 0 0 34px rgba(245, 233, 0, 0.22), 0 18px 40px -12px rgba(0, 0, 0, 0.9);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s ease;
}
.emblem:hover .emblem__img {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 0 0 5px var(--black), 0 0 48px rgba(245, 233, 0, 0.4), 0 18px 40px -12px rgba(0, 0, 0, 0.9);
}
.emblem__ring {
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  border: 1px dashed rgba(245, 233, 0, 0.35);
  animation: spin 22s linear infinite;
}
.emblem__ring::before {
  /* tacca luminosa che orbita */
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow);
}
.emblem__live {
  position: absolute;
  z-index: 2;
  right: 4px;
  bottom: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--black);
  box-shadow: var(--green-glow);
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__glow {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 900px;
  height: 900px;
  top: -320px;
  right: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 233, 0, 0.07) 0%, rgba(85, 232, 121, 0.03) 35%, transparent 65%);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: 0.75; } }
.hero > .wrap { position: relative; z-index: 1; }

/* Ticker sotto l'hero */
.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 11, 0.85);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--grey);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  padding: 15px 0;
  animation: ticker 48s linear infinite;
}
.ticker__track span { white-space: nowrap; }
.ticker__track i { width: 5px; height: 5px; background: var(--yellow); transform: rotate(45deg); flex-shrink: 0; box-shadow: var(--yellow-glow); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(calc(-50% - 14px)); } }

.hero__brand {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--grey);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-bottom: 34px;
}
.hero__brand strong { color: var(--white); font-weight: 700; letter-spacing: 0.24em; }
.hero__brand span.sep { width: 1px; height: 14px; background: var(--line-strong); }

.hero__title {
  font-size: clamp(42px, 7.4vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 32px;
  text-transform: uppercase;
}
.hero__title .hl {
  color: var(--yellow);
  text-shadow: 0 0 34px rgba(245, 233, 0, 0.35);
  display: inline-block;
}
.hero__title .cursor {
  display: inline-block;
  width: 0.08em;
  height: 0.8em;
  background: var(--yellow);
  margin-left: 0.08em;
  vertical-align: -0.04em;
  animation: blink 1.1s steps(1) infinite;
  box-shadow: var(--yellow-glow);
}
@keyframes blink { 50% { opacity: 0; } }

.hero__copy p { color: #c4c8c0; font-size: 17.5px; margin: 0 0 16px; max-width: 620px; }
.hero__copy p:first-child { color: var(--white); }
.hero__cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Terminale hero */
.terminal {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: rgba(11, 13, 11, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(245, 233, 0, 0.04);
}
.terminal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--grey);
  font-size: 10.5px;
  letter-spacing: 0.16em;
}
.terminal__lights { display: flex; gap: 6px; }
.terminal__lights i { width: 8px; height: 8px; border-radius: 50%; background: #2a2f2a; }
.terminal__lights i:first-child { background: var(--yellow); }

.radar {
  position: relative;
  aspect-ratio: 1.6;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 18%, var(--line) 18% calc(18% + 1px), transparent calc(18% + 1px) 36%, var(--line) 36% calc(36% + 1px), transparent calc(36% + 1px) 54%, var(--line) 54% calc(54% + 1px), transparent calc(54% + 1px)),
    linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat;
}
.radar__sweep {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, rgba(245, 233, 0, 0.28), transparent 18%, transparent);
  border-radius: 50%;
  animation: sweep 5s linear infinite;
  mask-image: radial-gradient(circle, #000 0 38%, transparent 38.5%);
}
@keyframes sweep { to { transform: translate(-50%, -50%) rotate(360deg); } }
.radar__blip {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow);
  animation: pulse 2.6s ease-in-out infinite;
}
.radar__label {
  position: absolute;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--grey);
}

.terminal__body { padding: 16px 18px 18px; display: grid; gap: 9px; }
.tline { display: flex; justify-content: space-between; gap: 12px; color: var(--grey); }
.tline b { color: var(--white); font-weight: 500; text-align: right; }
.tline b.y { color: var(--yellow); }
.tline b.g { color: var(--green); }
.tline::before { content: '>'; color: var(--yellow); margin-right: -4px; }
.tline span { flex: 1; }

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--grey);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero__scroll::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--yellow), transparent);
  animation: drop 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes drop {
  0% { transform: scaleY(0); opacity: 1; }
  70% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------------- COSA FACCIAMO ---------------- */

.whatwedo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.whatwedo__text p { color: #c4c8c0; font-size: 17px; margin: 0 0 20px; }
.whatwedo__text p.strong { color: var(--white); border-left: 2px solid var(--yellow); padding-left: 18px; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checklist li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  transition: background 0.2s;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li:hover { background: rgba(245, 233, 0, 0.035); }
.checklist .idx { font-family: var(--font-mono); font-size: 11px; color: var(--yellow); }
.checklist .bar { width: 54px; height: 3px; background: #222622; position: relative; overflow: hidden; }
.checklist .bar::after { content: ''; position: absolute; inset: 0; width: var(--w, 50%); background: var(--yellow-2); }

.method { margin-top: 96px; }
.method__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.24em;
  margin: 0 0 24px;
  color: var(--white);
}
.method__title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.method__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mcard {
  padding: 28px 24px 30px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
  overflow: hidden;
}
.mcard:hover { border-color: rgba(245, 233, 0, 0.4); transform: translateY(-3px); background: #171a17; }
.mcard__num {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
  text-shadow: 0 0 22px rgba(245, 233, 0, 0.3);
  margin-bottom: auto;
}
.mcard__icon { position: absolute; top: 26px; right: 22px; color: var(--grey); opacity: 0.8; }
.mcard h3 { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.14em; margin: 40px 0 10px; }
.mcard p { margin: 0; color: var(--grey); font-size: 14.5px; line-height: 1.55; }
.mcard__line { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--yellow); box-shadow: var(--yellow-glow); transition: width 0.5s; }
.mcard:hover .mcard__line { width: 100%; }

/* ---------------- PERFORMANCE TERMINAL ---------------- */

.perf {
  background: linear-gradient(180deg, var(--black-2), var(--black));
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 1px rgba(245, 233, 0, 0.05), 0 50px 120px -40px rgba(245, 233, 0, 0.12);
}
.perf::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow) 30%, var(--green) 70%, transparent);
  box-shadow: 0 0 18px rgba(245, 233, 0, 0.6);
}
.perf__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--grey);
}
.perf__head { padding: 44px 32px 8px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: end; }
.perf__head .h2 { margin: 0 0 6px; font-size: clamp(26px, 3.8vw, 44px); }
.perf__head p { margin: 0; font-family: var(--font-mono); letter-spacing: 0.2em; color: var(--yellow); font-size: 13px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); margin: 32px 32px 0; border: 1px solid var(--line); }
.kpi { background: var(--black-2); padding: 26px 22px 24px; position: relative; overflow: hidden; }
.kpi__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--grey); display: flex; align-items: center; gap: 8px; }
.kpi__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1;
  margin: 18px 0 8px;
  letter-spacing: -0.03em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.kpi__value.y { color: var(--yellow); text-shadow: 0 0 26px rgba(245, 233, 0, 0.35); }
.kpi__value.g { color: var(--green); text-shadow: 0 0 26px rgba(85, 232, 121, 0.4); }
.kpi__desc { color: #a9aea6; font-size: 13.5px; }
.kpi::after { content: ''; position: absolute; left: 22px; right: 22px; bottom: 0; height: 1px; background: currentColor; opacity: 0; }
.kpi:hover { background: #0f120f; }

.perf__body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1px; background: var(--line); margin: 1px 32px 32px; border: 1px solid var(--line); border-top: 0; }
.perf__chart, .perf__calc { background: var(--black-2); padding: 24px; }
.chart__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--grey); }
.chart { width: 100%; height: 240px; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--grey); font-family: var(--font-mono); font-size: 10px; }
.chart .area { fill: url(#areaGrad); opacity: 0; transition: opacity 1.2s ease 0.8s; }
.chart .line { fill: none; stroke: var(--green); stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(85, 232, 121, 0.55)); }
.chart .endpoint { fill: var(--yellow); filter: drop-shadow(0 0 6px var(--yellow)); opacity: 0; transition: opacity 0.4s ease 2s; }
.chart.is-drawn .area, .chart.is-drawn .endpoint { opacity: 1; }

.ratio { margin-top: 18px; }
.ratio__bar { display: flex; height: 8px; border-radius: 1px; overflow: hidden; background: #1b1f1b; }
.ratio__won { background: var(--green); box-shadow: var(--green-glow); width: 0; transition: width 1.6s cubic-bezier(.2,.8,.2,1); }
.ratio__lost { background: var(--red); width: 0; transition: width 1.6s cubic-bezier(.2,.8,.2,1); }
.ratio__legend { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--grey); }
.ratio__legend b { color: var(--white); font-weight: 600; }

.calc { list-style: none; padding: 0; margin: 0; font-family: var(--font-mono); font-size: 13px; }
.calc li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--grey); }
.calc li b { color: var(--white); font-weight: 600; }
.calc li b.g { color: var(--green); }
.calc li b.y { color: var(--yellow); }
.calc__title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--yellow); margin: 0 0 8px; }
.calc__title + .calc { margin-bottom: 22px; }
.demo-note {
  margin: 0 32px 32px;
  padding: 14px 18px;
  border: 1px dashed rgba(245, 233, 0, 0.35);
  background: rgba(245, 233, 0, 0.03);
  font-size: 13.5px;
  color: #c4c8c0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.demo-note strong { color: var(--yellow); }

/* ---------------- MATCHES ---------------- */

.matches { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.matches__box { padding: 0; overflow: hidden; }
.matches__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--yellow);
}
.matches__top .muted { letter-spacing: 0.12em; }
.scroller {
  height: 560px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--yellow-2) transparent;
  mask-image: linear-gradient(#000 calc(100% - 40px), transparent);
}
.scroller::-webkit-scrollbar { width: 3px; }
.scroller::-webkit-scrollbar-thumb { background: var(--yellow-2); border-radius: 3px; }
.scroller::-webkit-scrollbar-track { background: rgba(242, 244, 238, 0.04); }
.scroller:focus-visible { outline: 1px solid var(--yellow); outline-offset: -1px; }

.match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  min-height: 82px;
  border: 1px solid #262a26;
  border-radius: 3px;
  background: linear-gradient(90deg, #121512, #0d0f0d);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.match:hover { transform: translateX(3px); border-color: rgba(245, 233, 0, 0.45); box-shadow: -3px 0 0 var(--yellow); }
.match__left { min-width: 0; }
.match__league {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--grey);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.match__code { color: var(--black); background: var(--grey); padding: 0 4px; font-weight: 700; border-radius: 1px; font-size: 9.5px; }
.match__teams { font-weight: 600; font-size: 16px; margin: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match__teams .dash { color: var(--grey); margin: 0 6px; }
.match__meta { font-family: var(--font-mono); font-size: 12px; color: var(--grey); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.match__meta b { color: var(--white); font-weight: 700; font-size: 13px; }
/* Multipla: elenco compatto delle partite */
.match__legs { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 3px; }
.match__legs li { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.match__legs .dash { color: var(--grey); margin: 0 2px; }
.match__legs b { font-family: var(--font-mono); font-size: 12px; color: var(--grey); font-weight: 700; }
.match__legodds { font-family: var(--font-mono); font-size: 12px; color: var(--yellow-2); }
.match__verify { color: var(--yellow-2); font-size: 10px; letter-spacing: 0.12em; }
.match__right { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.match__status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--grey);
}
.match__odds { font-family: var(--font-mono); font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--yellow); font-variant-numeric: tabular-nums; }
.match__otype { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--grey); }

.match--won { background: var(--green-dark); border-color: var(--green); }
.match--won .match__status { color: var(--green); }
.match--won .match__odds { color: var(--green); text-shadow: 0 0 16px rgba(85, 232, 121, 0.45); }
.match--won:hover { border-color: var(--green); box-shadow: -3px 0 0 var(--green), 0 0 24px -6px rgba(85, 232, 121, 0.4); }
.match--lost { background: var(--red-dark); border-color: var(--red); }
.match--lost .match__status { color: var(--red); }
.match--lost .match__odds { color: #ff8a8a; }
.match--lost:hover { border-color: var(--red); box-shadow: -3px 0 0 var(--red), 0 0 24px -6px rgba(255, 77, 77, 0.4); }
.match--pending .match__status { color: var(--white); }

.scroll-hint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.scroll-hint svg { color: var(--yellow); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }

.matches__side { display: grid; gap: 16px; }
.side { padding: 22px; }
.side h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--yellow); margin: 0 0 14px; font-weight: 600; }
.side p { color: #a9aea6; font-size: 13.5px; margin: 0 0 10px; }
.coverage { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.coverage li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.coverage li:last-child { border: 0; padding: 0; }
.coverage span { color: var(--grey); font-family: var(--font-mono); font-size: 11px; text-align: right; }
.coverage .n { color: var(--yellow); }

.legend { margin-top: 64px; }
.legend__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.legend__item { display: grid; gap: 12px; }
.legend__item p { margin: 0; font-size: 13.5px; color: var(--grey); }
.legend__item .match:hover { transform: none; }

/* ---------------- ARCHIVE / STATS ---------------- */

.archive-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.progress-panel { padding: 32px; }
.bignum { font-family: var(--font-mono); font-weight: 700; font-size: clamp(48px, 7vw, 84px); line-height: 1; letter-spacing: -0.04em; color: var(--white); }
.bignum small { font-size: 0.32em; color: var(--grey); letter-spacing: 0; font-weight: 500; }
.progress { height: 6px; background: #1d211d; margin: 22px 0 12px; position: relative; overflow: hidden; }
.progress__fill { height: 100%; background: var(--yellow); box-shadow: var(--yellow-glow); width: 0; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.progress__meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11.5px; color: var(--grey); gap: 10px; flex-wrap: wrap; }
.fields { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.fields-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--grey); margin: 26px 0 0; }
.archive-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.engine { padding: 32px; }
.formula { font-family: var(--font-mono); font-size: 13px; padding: 14px 16px; background: var(--black-2); border: 1px solid var(--line); border-left: 2px solid var(--yellow); margin-bottom: 10px; color: #cfd3cb; }
.formula b { color: var(--yellow); font-weight: 600; display: block; font-size: 10.5px; letter-spacing: 0.2em; margin-bottom: 4px; }
.official { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.official div { background: var(--black-2); padding: 12px; }
.official span { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; color: var(--grey); }
.official b { font-family: var(--font-mono); font-size: 18px; }

.markets { margin-top: 24px; padding: 28px 32px; display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: center; }
.markets h3 { margin: 0 0 6px; font-size: 20px; text-transform: uppercase; letter-spacing: 0.02em; }
.markets p { margin: 0; color: var(--grey); font-size: 14px; }
.markets__list { display: flex; flex-wrap: wrap; gap: 8px; }
.markets__list .tag { color: var(--white); font-size: 11.5px; letter-spacing: 0.08em; text-transform: none; padding: 7px 12px; }

/* ---------------- RADAR ---------------- */

.radar-section { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.types { display: grid; gap: 12px; margin-top: 30px; }
.type { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); background: var(--black-2); }
.type p { margin: 0; font-size: 14px; color: #a9aea6; }

.report { padding: 0; overflow: hidden; }
.report__head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.report__body { padding: 22px; display: grid; gap: 14px; }
.report__row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; font-size: 13.5px; align-items: center; }
.report__row > span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--grey); text-transform: uppercase; }
.skeleton { height: 10px; border-radius: 1px; background: linear-gradient(90deg, #1c201c 0%, #262b26 50%, #1c201c 100%); background-size: 200% 100%; animation: shimmer 2.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.locked {
  position: relative;
  padding: 22px;
  border-top: 1px solid var(--line);
  background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(245, 233, 0, 0.025) 8px 16px);
  text-align: center;
}
.locked__icon { color: var(--yellow); margin: 0 auto 10px; }
.locked p { margin: 0; font-size: 13.5px; color: #a9aea6; }
.locked strong { color: var(--white); display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; margin-bottom: 4px; }
.empty-state { margin-top: 16px; display: flex; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--grey); letter-spacing: 0.08em; }

/* ---------------- CASES ---------------- */

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case { overflow: hidden; display: flex; flex-direction: column; }
.case__media {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 120%, rgba(245, 233, 0, 0.09), transparent 60%), var(--black-2);
}
.crest { width: 58px; height: 58px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; color: var(--grey); }
.case__vs { font-family: var(--font-mono); color: var(--yellow); font-size: 12px; letter-spacing: 0.2em; }
.case__body { padding: 20px; display: grid; gap: 10px; flex: 1; }
.case__kind { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.case h3 { margin: 4px 0 0; font-size: 17px; }
.case dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.case dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--grey); text-transform: uppercase; padding-top: 3px; }
.case dd { margin: 0; color: #a9aea6; }

/* ---------------- MEMBERSHIP ---------------- */

.membership {
  position: relative;
  overflow: hidden;
  padding: 72px 56px;
  border: 1px solid rgba(245, 233, 0, 0.25);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(245, 233, 0, 0.1), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(85, 232, 121, 0.07), transparent 50%),
    var(--black-2);
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.membership .h2 { font-size: clamp(30px, 4.4vw, 52px); }
.price { padding: 32px; text-align: left; }
.price__amount { font-family: var(--font-mono); font-weight: 700; font-size: clamp(46px, 6vw, 68px); color: var(--yellow); line-height: 1; letter-spacing: -0.04em; text-shadow: 0 0 30px rgba(245, 233, 0, 0.35); }
.price__per { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.24em; color: var(--grey); margin: 10px 0 24px; }
.price ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-size: 14.5px; }
.price li { display: flex; gap: 10px; align-items: center; }
.price li::before { content: ''; width: 6px; height: 6px; background: var(--green); box-shadow: 0 0 6px var(--green); flex-shrink: 0; }
.price .btn { width: 100%; }
.price__note { font-size: 12px; color: var(--grey); margin: 14px 0 0; text-align: center; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 24px; }
.feature { background: var(--black-2); padding: 20px; display: grid; gap: 10px; align-content: start; }
.feature h4 { margin: 0; font-size: 15px; font-weight: 600; }
.feature p { margin: 0; font-size: 13px; color: var(--grey); }

/* ---------------- FOOTER ---------------- */

.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--black-2); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; }
.footer__rules { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--grey); counter-reset: r; }
.footer__rules li { counter-increment: r; display: flex; gap: 10px; }
.footer__rules li::before { content: counter(r, decimal-leading-zero); font-family: var(--font-mono); color: var(--yellow); font-size: 11px; padding-top: 2px; }
.footer__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--grey); }
.footer__legal a { color: var(--grey); text-decoration: none; font-family: var(--font-mono); letter-spacing: 0.1em; }
.footer__legal a:hover { color: var(--yellow); }

/* ---------------- DIALOG ---------------- */

dialog.modal {
  border: 1px solid rgba(245, 233, 0, 0.35);
  background: var(--black-2);
  color: var(--white);
  padding: 0;
  width: min(480px, 92vw);
  border-radius: var(--radius);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}
dialog.modal::backdrop { background: rgba(5, 6, 5, 0.75); backdrop-filter: blur(4px); }
.modal__body { padding: 30px; }
.modal__body h3 { margin: 12px 0 10px; font-size: 22px; text-transform: uppercase; }
.modal__body p { color: #a9aea6; font-size: 14.5px; margin: 0 0 12px; }
.modal__body ul { padding-left: 18px; color: #a9aea6; font-size: 14px; margin: 0 0 22px; }

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__side { max-width: 560px; }
  .method__grid { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .perf__body { grid-template-columns: 1fr; }
  .matches { grid-template-columns: 1fr; }
  .matches__side { grid-template-columns: 1fr 1fr; }
  .archive-grid, .radar-section { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr 1fr; }
  .membership { grid-template-columns: 1fr; padding: 48px 32px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .markets { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .wrap { width: calc(100% - 28px); }
  .topbar__status .long { display: none; }
  .hero { padding-top: 48px; }
  .hero__copy p { font-size: 16px; }
  .hero__id { gap: 18px; }
  .emblem { width: 72px; height: 72px; }
  .emblem__ring { inset: -8px; }
  .emblem__live { width: 12px; height: 12px; right: 2px; bottom: 4px; }
  .whatwedo { grid-template-columns: 1fr; gap: 32px; }
  .method { margin-top: 64px; }
  .method__grid { grid-template-columns: 1fr; }
  .mcard { min-height: 0; }
  .perf__head { padding: 30px 18px 4px; }
  .kpis { margin: 24px 14px 0; }
  .kpi { padding: 18px 14px; }
  .kpi__label { font-size: 9.5px; letter-spacing: 0.14em; }
  .kpi__value { font-size: clamp(22px, 7vw, 30px); margin: 12px 0 6px; }
  .kpi__desc { font-size: 12px; }
  .perf__body { margin: 1px 14px 14px; }
  .perf__chart, .perf__calc { padding: 18px 14px; }
  .chart { height: 180px; }
  .demo-note { margin: 0 14px 18px; font-size: 12.5px; }
  .scroller { height: 520px; padding: 10px; }
  .match { padding: 12px 14px; gap: 10px; }
  .match__teams { font-size: 14.5px; white-space: normal; }
  .match__odds { font-size: 22px; }
  .matches__side { grid-template-columns: 1fr; }
  .legend__grid { grid-template-columns: 1fr; }
  .progress-panel, .engine { padding: 22px; }
  .official { grid-template-columns: repeat(2, 1fr); }
  .type { grid-template-columns: 1fr; gap: 8px; }
  .report__row { grid-template-columns: 1fr; gap: 6px; }
  .cases { grid-template-columns: 1fr; }
  .membership { padding: 36px 20px; }
  .features { grid-template-columns: 1fr; }
  .footer__grid, .footer__rules { grid-template-columns: 1fr; }
}

/* ---------- Track record ultimi 3 mesi (vault) ---------- */
.vault {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 30px;
  color: inherit;
  text-decoration: none;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(85, 232, 121, 0.07), transparent 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(245, 233, 0, 0.05), transparent 60%),
    var(--panel);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.vault:hover { border-color: rgba(245, 233, 0, 0.45); box-shadow: 0 0 40px -12px rgba(245, 233, 0, 0.35); transform: translateY(-2px); }
.vault:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.vault__scan {
  position: absolute; left: 0; right: 0; top: -30%; height: 30%;
  background: linear-gradient(180deg, transparent, rgba(245, 233, 0, 0.06), transparent);
  pointer-events: none;
  animation: vaultScan 5.5s linear infinite;
}
@keyframes vaultScan { to { top: 110%; } }
.vault__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.vault__period {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--yellow);
  border: 1px solid rgba(245, 233, 0, 0.35); padding: 4px 10px;
}
.vault__title { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.18; font-weight: 600; letter-spacing: -0.02em; margin: 20px 0 24px; max-width: 30ch; }
.vault__title span { color: var(--yellow); font-family: var(--font-mono); }
.vault__title em { font-style: normal; color: var(--grey); }

.vault__core { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: center; }
.ring { position: relative; width: 150px; aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring__bg { stroke: #1d211d; }
.ring__lost { stroke: var(--red); opacity: 0.55; }
.ring__won {
  stroke: var(--green); stroke-linecap: butt;
  stroke-dasharray: 326.73; stroke-dashoffset: 326.73;
  filter: drop-shadow(0 0 6px rgba(85, 232, 121, 0.55));
  transition: stroke-dashoffset 1.8s cubic-bezier(.2,.8,.2,1);
}
.ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__label b { font-family: var(--font-mono); font-size: 25px; color: var(--green); letter-spacing: -0.03em; }
.ring__label span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.2em; color: var(--grey); }

.vault__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.vault__kpis div { background: var(--black-2); padding: 12px 14px; }
.vault__kpis span { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; color: var(--grey); }
.vault__kpis b { font-family: var(--font-mono); font-size: 19px; font-weight: 700; }
.vault b.g, .month .g { color: var(--green); }
.vault b.r, .month .r { color: var(--red); }
.vault b.y { color: var(--yellow); }

.months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.month { border: 1px solid var(--line); background: var(--black-2); padding: 12px; font-family: var(--font-mono); font-size: 11px; }
.month__head, .month__foot { display: flex; justify-content: space-between; gap: 8px; color: var(--grey); }
.month__head b { color: var(--white); letter-spacing: 0.16em; }
.month__bar { height: 5px; background: rgba(255, 77, 77, 0.35); margin: 10px 0 8px; overflow: hidden; }
.month__bar span { display: block; height: 100%; width: 0; background: var(--green); box-shadow: var(--green-glow); transition: width 1.4s cubic-bezier(.2,.8,.2,1) .3s; }
.vault.is-on .month__bar span { width: var(--w); }

.form-strip { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; margin-top: 12px; }
.pip { height: 22px; background: #1d211d; border: 1px solid var(--line); opacity: 0; transform: scaleY(0.2); transition: opacity .4s, transform .4s; }
.pip--won { background: var(--green-dark); border-color: var(--green); }
.pip--lost { background: var(--red-dark); border-color: var(--red); }
.vault.is-on .pip { opacity: 1; transform: none; }
.vault.is-on .pip:nth-child(1) { transition-delay: 0.04s; }
.vault.is-on .pip:nth-child(2) { transition-delay: 0.08s; }
.vault.is-on .pip:nth-child(3) { transition-delay: 0.12s; }
.vault.is-on .pip:nth-child(4) { transition-delay: 0.16s; }
.vault.is-on .pip:nth-child(5) { transition-delay: 0.20s; }
.vault.is-on .pip:nth-child(6) { transition-delay: 0.24s; }
.vault.is-on .pip:nth-child(7) { transition-delay: 0.28s; }
.vault.is-on .pip:nth-child(8) { transition-delay: 0.32s; }
.vault.is-on .pip:nth-child(9) { transition-delay: 0.36s; }
.vault.is-on .pip:nth-child(10) { transition-delay: 0.40s; }
.vault.is-on .pip:nth-child(11) { transition-delay: 0.44s; }
.vault.is-on .pip:nth-child(12) { transition-delay: 0.48s; }
.vault.is-on .pip:nth-child(13) { transition-delay: 0.52s; }
.vault.is-on .pip:nth-child(14) { transition-delay: 0.56s; }
.vault.is-on .pip:nth-child(15) { transition-delay: 0.60s; }
.vault.is-on .pip:nth-child(16) { transition-delay: 0.64s; }
.vault.is-on .pip:nth-child(17) { transition-delay: 0.68s; }
.vault.is-on .pip:nth-child(18) { transition-delay: 0.72s; }
.vault.is-on .pip:nth-child(19) { transition-delay: 0.76s; }
.vault.is-on .pip:nth-child(20) { transition-delay: 0.80s; }

.vault__cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.vault__arrow { display: inline-block; transition: transform .3s; }
.vault:hover .vault__arrow { transform: translateX(5px); }
.vault__note { font-family: var(--font-mono); font-size: 11px; color: var(--grey); letter-spacing: 0.08em; }

@media (max-width: 720px) {
  .vault { padding: 22px; }
  .vault__core { grid-template-columns: 1fr; justify-items: center; }
  .vault__kpis { width: 100%; grid-template-columns: repeat(2, 1fr); }
  .form-strip { grid-template-columns: repeat(10, 1fr); }
  .vault__cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Account link + piani di abbonamento ---------- */
.topbar__account {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--black); background: var(--yellow); padding: 8px 14px; text-decoration: none;
  border-radius: 2px; white-space: nowrap; transition: box-shadow .25s;
}
.topbar__account:hover { box-shadow: var(--yellow-glow); }
.topbar__actions { display: flex; gap: 8px; align-items: center; }
.topbar__subscribe {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--yellow); background: transparent; border: 1px solid var(--yellow); padding: 7px 13px;
  text-decoration: none; border-radius: 2px; white-space: nowrap; transition: background .25s, box-shadow .25s;
}
.topbar__subscribe:hover { background: rgba(245, 233, 0, 0.1); box-shadow: var(--yellow-glow); }
.topbar__subscribe:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.subscribe-strip {
  margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 24px 28px; background: var(--panel); border: 1px solid rgba(245, 233, 0, 0.45);
}
.subscribe-strip .eyebrow { margin: 0 0 8px; }
.subscribe-strip__text { margin: 0; font-size: 16px; }
.subscribe-strip__text b { color: var(--yellow); }
.topbar__account:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line-strong); padding: 28px 24px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.plan:hover { border-color: rgba(245, 233, 0, 0.45); transform: translateY(-3px); }
.plan--best { border-color: var(--yellow); box-shadow: 0 0 46px -14px rgba(245, 233, 0, 0.45); }
.plan__badge {
  position: absolute; top: -11px; left: 24px; background: var(--yellow); color: var(--black);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; padding: 4px 10px;
}
.plan__name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.24em; color: var(--grey); margin: 0 0 14px; }
.plan__price { font-family: var(--font-mono); font-weight: 700; font-size: clamp(36px, 4vw, 48px); line-height: 1; letter-spacing: -0.04em; color: var(--yellow); }
.plan--best .plan__price { text-shadow: 0 0 30px rgba(245, 233, 0, 0.35); }
.plan__per { font-family: var(--font-mono); font-size: 12px; color: var(--grey); margin: 10px 0 4px; }
.plan__per b { color: var(--white); font-weight: 600; }
.plan__note { font-size: 13px; color: var(--green); margin: 0 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 9px; font-size: 14px; }
.plan li { display: flex; gap: 10px; align-items: center; }
.plan li::before { content: ''; width: 6px; height: 6px; background: var(--green); box-shadow: 0 0 6px var(--green); flex-shrink: 0; }
.plan .btn { width: 100%; margin-top: auto; }
.plans__legal { font-size: 12.5px; color: var(--grey); text-align: center; margin: 0; }
.plans__legal a { color: var(--yellow); }

@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar__account { padding: 7px 10px; font-size: 10px; }
  .topbar__subscribe { padding: 6px 9px; font-size: 10px; letter-spacing: 0.1em; }
  .topbar__actions { gap: 6px; }
  .subscribe-strip { padding: 20px; }
  .subscribe-strip .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .vault__scan { display: none; }
  .pip { opacity: 1; transform: none; }
  .ticker__track { flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker__track > :nth-child(n+19) { display: none; }
}
