:root {
  --bg: #0b0b14;
  --bg-deep: #080810;
  --surface: #11111d;
  --surface-2: #171724;
  --surface-3: #1d1d2b;
  --ink: #ffffff;
  --ink-soft: #e5e5ec;
  --muted: #9d9daa;
  --accent: #f50046;
  --accent-hot: #ff265f;
  --accent-violet: #8d28ff;
  --accent-coral: #ff5b72;
  --accent-soft: rgba(245, 0, 70, 0.14);
  --line: rgba(255, 255, 255, 0.1);
  --line-hot: rgba(245, 0, 70, 0.38);
  --ok: #d9d9e2;
  --max: 1180px;
  --reading: 790px;
  --header: 76px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --shadow-hot: 0 18px 58px rgba(245, 0, 70, .22);
  --gradient-brand: linear-gradient(110deg, #ff7898 0%, #ff285f 38%, #f50046 68%, #a72aff 100%);
  --gradient-panel: linear-gradient(150deg, rgba(31, 25, 47, .98), rgba(13, 12, 26, .98));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(1000px 620px at 86% -8%, rgba(167, 42, 255, .15), transparent 63%),
    radial-gradient(900px 580px at 8% 16%, rgba(245, 0, 70, .13), transparent 66%),
    radial-gradient(900px 700px at 52% 105%, rgba(255, 38, 95, .08), transparent 68%),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

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

a {
  color: var(--ink);
  text-decoration-color: rgba(245, 0, 70, 0.65);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--accent-hot);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

::selection {
  color: #fff;
  background: var(--gradient-brand);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 15px;
  color: #fff;
  background: var(--accent);
  border-radius: 10px;
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.announce {
  overflow: hidden;
  color: #fff;
  background: var(--accent);
  border-bottom: 1px solid rgba(255,255,255,.2);
}

.announce-track {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.announce span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 7px 30px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.announce span::after {
  content: "◆";
  font-size: 7px;
  opacity: .8;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header);
  background: rgba(11, 11, 20, .8);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 120, 152, .38);
  box-shadow: 0 8px 28px rgba(245, 0, 70, .3);
}

.brand-word {
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -.055em;
  line-height: 1;
  background: linear-gradient(100deg, #fff 10%, #ffbdcc 52%, #ff426f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.main-nav > a:not(.button) {
  padding: 9px 13px;
  color: var(--muted);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.main-nav > a:not(.button):hover,
.main-nav > a[aria-current="page"]:not(.button) {
  color: #fff;
  background: rgba(255,255,255,.055);
}

.main-nav > a[aria-current="page"]:not(.button) {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  color: #fff;
  background: var(--gradient-brand);
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(245, 0, 70, .22);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.button:hover {
  color: #fff;
  background: linear-gradient(110deg, #ff8da7, #ff245b 52%, #b93cff);
  box-shadow: 0 16px 40px rgba(245, 0, 70, .32);
  transform: translateY(-2px);
}

.button.secondary {
  color: #fff;
  background: rgba(255,255,255,.055);
  border-color: rgba(255, 120, 152, .28);
  box-shadow: none;
}

.button.secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--line-hot);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 2px;
}

.header-actions .button {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 12px;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.header-login { min-width: 92px; }
.header-register { min-width: 112px; }

.mobile-nav-actions {
  display: none;
}

.menu-button {
  position: relative;
  z-index: 78;
  display: none;
  width: 44px;
  height: 44px;
  margin-left: 4px;
  padding: 0;
  color: #fff;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 74;
  display: block;
  padding: 0;
  visibility: hidden;
  opacity: 0;
  background: rgba(3, 3, 10, .68);
  border: 0;
  backdrop-filter: blur(3px);
  transition: opacity .25s ease, visibility .25s ease;
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  display: block;
  width: 19px;
  height: 2px;
  margin: auto;
  content: "";
  background: currentColor;
  border-radius: 4px;
  transition: transform .2s ease;
}

.menu-button span {
  position: relative;
}

.menu-button span::before { position: absolute; top: -6px; left: 0; }
.menu-button span::after { position: absolute; top: 6px; left: 0; }

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(42px, 6vw, 76px) 0 64px;
}

.hero::before {
  position: absolute;
  inset: -40% -10%;
  z-index: -2;
  content: "";
  background: conic-gradient(from 30deg at 58% 50%, transparent 0 18deg, rgba(245,0,70,.12) 26deg, transparent 43deg 140deg, rgba(141,40,255,.1) 153deg, transparent 170deg 270deg, rgba(255,91,114,.1) 282deg, transparent 302deg);
  animation: hero-beam 34s linear infinite;
  pointer-events: none;
}

.hero-lights {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-lights span {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(28px);
}

.hero-lights span:first-child {
  top: -260px;
  left: -120px;
  background: radial-gradient(circle, rgba(245,0,70,.25), transparent 68%);
}

.hero-lights span:last-child {
  right: -170px;
  bottom: -290px;
  background: radial-gradient(circle, rgba(141,40,255,.2), transparent 68%);
}

@keyframes hero-beam { to { transform: rotate(360deg); } }

.hero-stage {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(23, 20, 38, .94), rgba(9, 9, 19, .97));
  border: 1px solid rgba(255, 120, 152, .26);
  border-radius: 32px;
  box-shadow: 0 30px 90px rgba(0,0,0,.5), var(--shadow-hot);
}

.hero-stage::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(680px 370px at 15% 0%, rgba(245,0,70,.14), transparent 70%),
    radial-gradient(500px 330px at 92% 16%, rgba(141,40,255,.14), transparent 72%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(390px, .78fr);
  gap: clamp(28px, 4.5vw, 58px);
  align-items: center;
  padding: clamp(30px, 5vw, 62px);
}

.hero-content {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent-hot);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  content: "";
  background: var(--gradient-brand);
  border-radius: 99px;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: #fff;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  max-width: 950px;
  margin-bottom: 24px;
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 900;
  letter-spacing: -.045em;
  word-spacing: .025em;
  line-height: .98;
  background: linear-gradient(105deg, #fff 0%, #fff 42%, #ffb3c6 74%, #ff3f70 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 32px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(0,0,0,.22);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.trust-chip::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(245,0,70,.12);
}

.signal-panel {
  position: relative;
  min-height: 500px;
  padding: 24px;
  overflow: hidden;
  background: var(--gradient-panel);
  border: 1px solid rgba(255, 120, 152, .22);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 22px 52px rgba(0,0,0,.36);
}

.signal-panel::before,
.signal-panel::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(245,0,70,.28);
  border-radius: 50%;
}

.signal-panel::before { width: 300px; height: 300px; right: -120px; top: -110px; }
.signal-panel::after { width: 190px; height: 190px; right: -65px; top: -50px; }

.panel-orbit {
  position: absolute;
  right: -34px;
  top: -38px;
  display: grid;
  width: 180px;
  height: 180px;
  place-items: center;
  border: 1px solid rgba(255, 120, 152, .22);
  border-radius: 50%;
}

.panel-orbit::before,
.panel-orbit::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(141,40,255,.25);
  border-radius: 50%;
}

.panel-orbit::before { inset: 22px; }
.panel-orbit::after { inset: 47px; }
.panel-orbit span {
  color: rgba(255,255,255,.08);
  font-size: 76px;
  font-weight: 950;
  line-height: 1;
}

.signal-logo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.signal-logo img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.signal-logo b { display: block; font-size: 23px; letter-spacing: -.04em; }
.signal-logo span { display: block; color: var(--muted); font-size: 12px; }

.signal-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.signal-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 67px;
  padding: 9px;
  background: linear-gradient(100deg, rgba(255,255,255,.055), rgba(245,0,70,.035));
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.signal-item:hover {
  background: rgba(255,255,255,.075);
  border-color: rgba(255, 120, 152, .3);
  transform: translateX(3px);
}

.signal-item i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, rgba(245,0,70,.25), rgba(141,40,255,.16));
  border: 1px solid rgba(255, 120, 152, .2);
  border-radius: 50%;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.signal-item b,
.signal-item small { display: block; }
.signal-item b { font-size: 12px; line-height: 1.15; }
.signal-item small { color: var(--muted); font-size: 9px; line-height: 1.25; }

.card-machine {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.lever-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
}

.lever-control {
  position: relative;
  width: 70px;
  height: 190px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

.lever-control:disabled { cursor: wait; }

.lever-halo {
  position: absolute;
  top: 0;
  left: 50%;
  width: 72px;
  height: 72px;
  background: radial-gradient(circle, rgba(255, 38, 95, .42), rgba(141,40,255,.14) 50%, transparent 72%);
  border-radius: 50%;
  filter: blur(5px);
  transform: translateX(-50%);
  animation: lever-glow 2.6s ease-in-out infinite;
}

.lever-arm {
  position: absolute;
  top: 4px;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 58px;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
}

.lever-knob {
  position: relative;
  z-index: 2;
  display: block;
  width: 52px;
  height: 52px;
  background:
    radial-gradient(circle at 32% 25%, #fff 0 7%, #ffb7c8 15%, #ff315f 44%, #b51649 72%, #4b0926 100%);
  border: 3px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(0,0,0,.5), 0 0 28px rgba(245,0,70,.45), inset -5px -6px 10px rgba(60,0,25,.5);
}

.lever-knob::after {
  position: absolute;
  top: 9px;
  left: 12px;
  width: 14px;
  height: 8px;
  content: "";
  background: rgba(255,255,255,.72);
  border-radius: 50%;
  filter: blur(1px);
  transform: rotate(-22deg);
}

.lever-rod {
  display: block;
  width: 12px;
  height: 98px;
  margin-top: -4px;
  background: linear-gradient(90deg, #4e4f5c, #f2f2f6 35%, #8d8e99 62%, #34343f);
  border-radius: 8px;
  box-shadow: 0 8px 14px rgba(0,0,0,.45);
}

.lever-base {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: 48px;
  background: linear-gradient(145deg, #29243a, #0c0b15);
  border: 1px solid rgba(255,120,152,.34);
  border-radius: 16px 16px 9px 9px;
  box-shadow: 0 13px 20px rgba(0,0,0,.45), inset 0 2px 0 rgba(255,255,255,.06);
}

.lever-base::before {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  content: "Y";
  color: var(--accent-hot);
  border: 1px solid rgba(245,0,70,.2);
  border-radius: 9px;
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
  line-height: 26px;
  text-align: center;
}

.lever-control.is-pulling .lever-arm {
  animation: lever-pull .58s cubic-bezier(.4,0,.2,1);
}

.lever-control.is-pulling .lever-knob {
  box-shadow: 0 14px 24px rgba(0,0,0,.55), 0 0 42px rgba(245,0,70,.72), inset -5px -6px 10px rgba(60,0,25,.5);
}

.lever-label {
  color: var(--accent-hot);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.lever-label small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: none;
}

.card-status {
  position: relative;
  z-index: 2;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .08em;
  text-align: right;
  text-transform: uppercase;
}

@keyframes lever-glow {
  0%, 100% { opacity: .55; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.12); }
}

@keyframes lever-pull {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  42% { transform: translateX(-50%) translateY(68px) scaleY(.92); }
  70% { transform: translateX(-50%) translateY(-4px); }
}

.hero-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: rgba(6, 6, 15, .64);
}

.hero-strip span {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 12px;
  color: var(--muted);
  border-right: 1px solid var(--line);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.hero-strip span:last-child { border-right: 0; }
.hero-strip b { color: var(--accent-hot); font-size: 13px; }

.article-shell {
  position: relative;
  padding: 34px 0 96px;
}

.article-shell::before {
  position: absolute;
  inset: 18% 0 auto;
  height: 520px;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(245,0,70,.055), transparent 68%);
}

.article-grid {
  display: grid;
  grid-template-columns: 245px minmax(0, var(--reading));
  gap: clamp(34px, 5vw, 68px);
  justify-content: center;
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header) + 24px);
  padding: 20px;
  background: linear-gradient(160deg, rgba(27,24,40,.88), rgba(13,13,24,.9));
  border: 1px solid rgba(255,120,152,.18);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.toc-label {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-hot);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.toc-label::before {
  display: inline-block;
  width: 20px;
  height: 2px;
  margin: 0 8px 3px 0;
  content: "";
  background: var(--gradient-brand);
  border-radius: 99px;
}

.toc ol {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  list-style: none;
}

.toc li { counter-increment: toc; }

.toc a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 5px;
  padding: 7px 8px;
  color: var(--muted);
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
}

.toc a:hover {
  color: #fff;
  background: rgba(255,255,255,.05);
}

.prose {
  min-width: 0;
  counter-reset: section;
}

.prose h2 {
  margin: 74px 0 20px;
  padding-top: 2px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 880;
  letter-spacing: -.045em;
  counter-increment: section;
}

.prose > h2::before {
  display: block;
  margin-bottom: 11px;
  color: var(--accent-hot);
  content: "Sezione " counter(section, decimal-leading-zero);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h2::after {
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 16px;
  content: "";
  background: var(--gradient-brand);
  border-radius: 99px;
}

.prose h3 {
  margin: 38px 0 14px;
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 820;
  letter-spacing: -.025em;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  font-size: 16px;
}

.prose p {
  margin: 0 0 22px;
}

.prose strong { color: #fff; }

.prose ul,
.prose ol {
  display: grid;
  gap: 10px;
  margin: 12px 0 28px;
  padding-left: 0;
  list-style: none;
}

.prose li {
  position: relative;
  padding: 13px 16px 13px 43px;
  background: rgba(255,255,255,.032);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.prose li::before {
  position: absolute;
  top: 14px;
  left: 16px;
  color: var(--accent);
  content: "◆";
  font-size: 10px;
}

.content-figure {
  margin: 40px 0 50px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255,120,152,.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .5s ease, filter .5s ease;
}

.content-figure:hover img { transform: scale(1.018); filter: saturate(1.06); }

.content-figure figcaption {
  padding: 13px 17px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.context-card {
  margin: 34px 0;
  padding: 19px 21px;
  color: var(--ink-soft);
  background: linear-gradient(100deg, rgba(245,0,70,.11), rgba(255,255,255,.025));
  border: 1px solid var(--line-hot);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.context-card p { margin: 0; }
.context-card a { color: #fff; font-weight: 800; }

.table-wrap {
  max-width: 100%;
  margin: 28px 0 38px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #fff;
  background: rgba(245,0,70,.12);
  font-size: 13px;
  font-weight: 850;
}

tr:last-child td { border-bottom: 0; }

.faq-group {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.faq-item {
  overflow: hidden;
  background: rgba(255,255,255,.032);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.faq-item[open] { border-color: var(--line-hot); }

.faq-item summary {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 17px 19px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  width: 28px;
  height: 28px;
  margin-left: auto;
  color: var(--accent-hot);
  content: "+";
  font-size: 22px;
  line-height: 26px;
  text-align: center;
  background: var(--accent-soft);
  border-radius: 50%;
  transition: transform .2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 19px 18px;
}

.faq-answer p { margin: 0; color: var(--muted); }

.final-cta {
  position: relative;
  margin-top: 76px;
  padding: clamp(28px, 5vw, 48px);
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, rgba(245,0,70,.22), rgba(22,18,36,.97) 58%, rgba(141,40,255,.13));
  border: 1px solid var(--line-hot);
  border-radius: var(--radius-lg);
}

.final-cta::before {
  position: absolute;
  top: -80px;
  left: 50%;
  width: 300px;
  height: 180px;
  content: "";
  background: rgba(245,0,70,.18);
  filter: blur(75px);
  transform: translateX(-50%);
}

.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); }
.final-cta h2::before { display: none; }
.final-cta h2::after { display: none; }
.final-cta p { max-width: 580px; margin: 0 auto 24px; color: var(--muted); }

.site-footer {
  padding: 54px 0 94px;
  background:
    radial-gradient(620px 260px at 14% 0%, rgba(245,0,70,.08), transparent 72%),
    var(--bg-deep);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 42px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand img { width: 38px; height: 38px; border-radius: 10px; }
.footer-brand b { font-size: 24px; }
.footer-copy { max-width: 620px; margin: 0; color: var(--muted); font-size: 13px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
}

.footer-nav a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-nav a:hover { color: #fff; }

.legal-line {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.footer-badges span {
  padding: 7px 11px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.age {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-weight: 900;
}

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  display: none;
  gap: 12px;
  align-items: center;
  padding: 10px 18px max(10px, env(safe-area-inset-bottom));
  background: rgba(11,11,20,.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(15px);
}

.sticky-cta span {
  min-width: 0;
  flex: 1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.sticky-cta span b { display: block; color: #fff; font-size: 13px; }
.sticky-cta .button { min-height: 42px; padding: 10px 16px; }

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  :root { --header: 72px; }
  .site-header {
    background: rgba(11,11,20,.98);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .header-inner { gap: 12px; }
  .main-nav {
    position: fixed;
    top: var(--header);
    right: 0;
    bottom: 0;
    z-index: 76;
    display: flex;
    width: min(86vw, 360px);
    margin: 0;
    padding: 28px 22px;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    background: linear-gradient(180deg, #191525, #0b0b14 68%);
    border-left: 1px solid rgba(255,120,152,.2);
    box-shadow: -24px 0 70px rgba(0,0,0,.55);
    transform: translateX(104%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
  }
  .nav-open .main-nav { transform: translateX(0); }
  .nav-scrim { top: var(--header); right: min(86vw, 360px); }
  .nav-open .nav-scrim { visibility: visible; opacity: 1; }
  .main-nav > a:not(.button) {
    padding: 13px 14px;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 14px;
  }
  .main-nav > a:not(.button):hover,
  .main-nav > a[aria-current="page"]:not(.button) {
    background: rgba(255,255,255,.055);
    border-color: var(--line);
    box-shadow: none;
  }
  .header-actions {
    position: relative;
    z-index: 78;
    gap: 6px;
    margin-left: auto;
  }
  .header-actions .button {
    display: inline-flex;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 10px;
  }
  .header-login { min-width: 76px; }
  .header-register { min-width: 94px; }
  .menu-button { display: grid; place-items: center; }
  .nav-open .menu-button span { background: transparent; }
  .nav-open .menu-button span::before { top: 0; transform: rotate(45deg); }
  .nav-open .menu-button span::after { top: 0; transform: rotate(-45deg); }
  .hero-grid { grid-template-columns: 1fr; }
  .signal-panel { min-height: 0; }
  .hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-strip span:nth-child(2) { border-right: 0; }
  .hero-strip span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .article-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .announce span { padding-inline: 22px; font-size: 10px; }
  .brand { gap: 0; }
  .brand-word { display: none; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 4px; }
  .header-actions .button { min-height: 36px; padding: 8px 9px; font-size: 9px; }
  .header-login { min-width: 66px; }
  .header-register { min-width: 82px; }
  .menu-button { width: 38px; height: 38px; margin-left: 0; }
  .hero { padding: 30px 0 48px; }
  .hero-stage { border-radius: 24px; }
  .hero-grid { padding: 27px 20px 24px; }
  h1 { font-size: clamp(39px, 13.5vw, 58px); }
  .hero-copy { font-size: 16px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .signal-panel { padding: 18px; border-radius: 22px; }
  .card-machine { grid-template-columns: minmax(0, 1fr) 66px; gap: 8px; }
  .signal-list { gap: 7px; }
  .signal-item { grid-template-columns: 28px minmax(0, 1fr); min-height: 63px; padding: 7px; }
  .signal-item i { width: 28px; height: 28px; font-size: 9px; }
  .signal-item b { font-size: 10.5px; }
  .signal-item small { font-size: 8px; }
  .lever-control { width: 62px; height: 176px; }
  .lever-label { font-size: 7.5px; }
  .hero-strip span { min-height: 54px; padding: 9px 7px; font-size: 10.5px; }
  .toc ol { grid-template-columns: 1fr; }
  .prose h2 { margin-top: 58px; font-size: 30px; }
  .prose h3 { font-size: 22px; }
  .content-figure { margin-inline: -2px; border-radius: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
  .sticky-cta { display: flex; }
  .site-footer { padding-bottom: 120px; }
}

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