/* ==========================================================================
   Fidarca — Portale di presentazione
   Design system derivato dall'app (UI.md): Glassmorphism Neurale,
   temi "Deep Vault" (default sito) e "Ice Atmosphere".
   ========================================================================== */

:root,
:root[data-theme="deep"] {
  --bg: #04070d;
  --bg-atmo: radial-gradient(circle at 60% 35%, #13243a 0%, #0c1829 40%, #070e19 75%, #04070d 100%);
  --glass: rgba(18, 30, 48, 0.52);
  --glass-2: rgba(24, 38, 60, 0.58);
  --glass-hover: rgba(32, 50, 78, 0.7);
  --edge: rgba(160, 200, 240, 0.16);
  --edge-inset: rgba(160, 200, 240, 0.08);
  --shadow: rgba(0, 0, 0, 0.45);
  --ink: #e8f0fa;
  --muted: #a9b8cc;
  --subtle: #8496ad;
  --core-1: #ff2a05;
  --core-2: #ff8800;
  --core-ink: #ff9a3c;
  --ok: #34d399;
  --alert: #f43f5e;
  --btn: #e8f0fa;
  --btn-fg: #0b1422;
  --ice-accent: #7cc4ff;
  --section-alt: rgba(8, 14, 24, 0.6);
  --menu-bg: rgba(10, 18, 30, 0.96);
  --brand-1: #e0fbff;
  --brand-2: #5fdcf5;
  color-scheme: dark;
}

:root[data-theme="ice"] {
  --bg: #dce9f8;
  --bg-atmo: radial-gradient(circle at 60% 35%, #b8d2eb 0%, #c8dcf0 35%, #d6e5f5 70%, #dce9f8 100%);
  --glass: rgba(255, 255, 255, 0.48);
  --glass-2: rgba(255, 255, 255, 0.62);
  --glass-hover: rgba(255, 255, 255, 0.78);
  --edge: rgba(255, 255, 255, 0.75);
  --edge-inset: rgba(255, 255, 255, 0.45);
  --shadow: rgba(50, 75, 110, 0.14);
  --ink: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --core-1: #ff1e00;
  --core-2: #ff7700;
  --core-ink: #c2410c;
  --ok: #047857;
  --alert: #e11d48;
  --btn: #0f172a;
  --btn-fg: #ffffff;
  --ice-accent: #1a4fd6;
  --section-alt: rgba(255, 255, 255, 0.25);
  --menu-bg: rgba(240, 246, 252, 0.97);
  --brand-1: #0e7490;
  --brand-2: #0284c7;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s ease, color .5s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; font-weight: 800; }
p { margin: 0; }
.mono { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; }
.muted { color: var(--muted); }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }

.bg-atmo {
  position: fixed; inset: 0; z-index: -2; background: var(--bg-atmo);
  transition: opacity .5s ease;
}
.bg-atmo::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(160, 200, 240, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}

.grad {
  background: linear-gradient(100deg, var(--core-1) 0%, var(--core-2) 60%, #ffc070 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Glass primitives (UI.md §2.1) ---------- */
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--edge);
  box-shadow: 0 16px 36px -12px var(--shadow), inset 0 1px 0 0 var(--edge-inset);
  border-radius: 24px;
}
.glass-card {
  background: var(--glass-2);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--edge);
  box-shadow: 0 8px 24px -8px var(--shadow), inset 0 1px 0 0 var(--edge-inset);
  border-radius: 20px;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), background .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; }
.scroll-progress span {
  display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--sp, 0));
  background: linear-gradient(90deg, var(--core-1), var(--core-2));
  box-shadow: 0 0 12px var(--core-2);
}

/* ---------- Dock (menu) ---------- */
.dock-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding-inline: 16px; }
.dock {
  max-width: 1240px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 12px 10px 14px; border-radius: 22px;
  transition: padding .3s ease, background .3s ease;
}
.dock-wrap.scrolled .dock { padding-block: 7px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon {
  width: 40px; height: 40px; border-radius: 11px; flex: none; overflow: hidden;
  box-shadow: 0 6px 18px -4px rgba(14, 165, 233, .45);
}
.brand-icon img { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-wrap: wrap; line-height: 1; }
.brand-text b {
  font-size: 19px; font-weight: 800; letter-spacing: .08em;
  background: linear-gradient(180deg, var(--brand-1), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-text small { flex-basis: 100%; white-space: nowrap; margin-top: 5px; font: 500 10.5px/1 "JetBrains Mono", monospace; color: var(--subtle); letter-spacing: .04em; }

.menu { list-style: none; display: flex; gap: 6px; margin: 0; padding: 4px; border-radius: 16px; }
.menu a {
  display: block; padding: 10px 20px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 15px;
  color: var(--muted); transition: color .2s, background .2s;
}
.menu a:hover { color: var(--ink); background: var(--glass-hover); }
.menu a.active { background: var(--btn); color: var(--btn-fg); }
.dock-tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  background: var(--glass); border: 1px solid var(--edge); color: var(--ink); font: 700 14px "Plus Jakarta Sans", sans-serif;
}
.theme-toggle .dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); border: 1.5px solid var(--ink); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--edge); background: var(--glass); cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, top .3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 8px 8px 8px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15.5px;
  border: 1px solid var(--edge); cursor: pointer; font-family: inherit;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease;
}
.btn-pill .pill-icon {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  transition: transform .2s ease;
}
.btn-pill .pill-icon svg { width: 17px; height: 17px; }
.btn-pill:hover .pill-icon { transform: translateX(3px); }
.btn-pill.primary { background: var(--btn); color: var(--btn-fg); border-color: transparent; box-shadow: 0 10px 30px -10px rgba(255, 119, 0, .55); }
.btn-pill.primary .pill-icon { background: linear-gradient(145deg, var(--core-2), var(--core-1)); color: #fff; }
.btn-pill.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(255, 119, 0, .7); }
.btn-pill.ghost { background: var(--glass); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn-pill.ghost .pill-icon { background: var(--btn); color: var(--btn-fg); }
.btn-pill.ghost:hover { background: var(--glass-hover); transform: translateY(-2px); }
.btn-pill.full { width: 100%; }
.btn-pill:focus-visible, .menu a:focus-visible, .theme-toggle:focus-visible, summary:focus-visible { outline: 3px solid var(--core-2); outline-offset: 3px; }

.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; font-size: 12.5px;
  background: var(--glass); border: 1px solid var(--edge); color: var(--muted);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); flex: none; animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .45; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden;
  padding: 130px 0 90px;
}
.brain-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  transform: scale(calc(1 + var(--hp, 0) * .35)); opacity: calc(1 - var(--hp, 0) * .9);
}
.hero-inner {
  width: min(1160px, 100% - 32px); text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 26px;
  transform: translateY(calc(var(--hp, 0) * -80px)); opacity: calc(1 - var(--hp, 0) * 1.3);
}
.hero-title { font-size: clamp(38px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 720px; text-wrap: pretty; }
.omnibar {
  width: min(640px, 100%); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 119, 0, .25), 0 0 40px -6px rgba(255, 119, 0, .35), 0 16px 36px -12px var(--shadow);
  text-align: left;
}
.omnibar .ico { width: 20px; height: 20px; color: var(--subtle); flex: none; }
.typed { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.caret { width: 2px; height: 20px; background: var(--core-2); animation: blink 1s steps(2) infinite; flex: none; margin-right: auto; }
.omni-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 700; flex: none;
  background: var(--btn); color: var(--btn-fg);
}
.omni-btn i { width: 9px; height: 9px; border-radius: 50%; background: var(--core-2); box-shadow: 0 0 8px var(--core-2); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; padding: 0; margin: 4px 0 0; font-size: 12.5px; color: var(--subtle); }
.trust li::before { content: "◆"; color: var(--core-2); margin-right: 8px; font-size: 9px; vertical-align: 2px; }
.scroll-cue {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px;
  font-size: 11px; color: var(--subtle); text-decoration: none; letter-spacing: .2em; text-transform: uppercase;
}
.scroll-cue span { width: 22px; height: 36px; border: 2px solid var(--subtle); border-radius: 12px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; background: var(--core-2); border-radius: 2px; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Manifesto ---------- */
.manifesto { height: 220vh; position: relative; }
.manifesto-sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; }
.manifesto-text {
  width: min(1100px, 100% - 32px); font-size: clamp(30px, 5vw, 64px); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance;
}
.manifesto-text .w { color: var(--ink); opacity: .14; transition: opacity .25s ease, color .25s ease; }
.manifesto-text .w.on { opacity: 1; }
.manifesto-text .w.hot { color: var(--core-2); }

/* ---------- Section heads ---------- */
section { position: relative; }
.sec-head { display: grid; gap: 16px; margin-bottom: 56px; max-width: 860px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 58px); text-wrap: balance; }
.eyebrow { color: var(--core-ink); font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.lead { color: var(--muted); font-size: 18px; max-width: 680px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 40px 0 140px; }
.stat { padding: 28px 26px; }
.stat .num { font-size: clamp(40px, 4.4vw, 58px); font-weight: 700; line-height: 1; display: flex; align-items: baseline; gap: 6px; }
.stat .num small { font-size: 15px; color: var(--core-ink); font-weight: 600; }
.stat p { color: var(--muted); margin-top: 14px; font-size: 15px; }

/* ---------- Story ---------- */
.story { padding-bottom: 120px; }
.story-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: start; }
.story-visual { position: sticky; top: 110px; }
.device { padding: 10px; border-radius: 22px; }
.device-bar { display: flex; align-items: center; gap: 7px; padding: 6px 8px 12px; }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--subtle); opacity: .5; }
.device-bar i:first-child { background: var(--core-1); opacity: .9; }
.device-bar i:nth-child(2) { background: var(--core-2); opacity: .9; }
.device-bar span { margin-left: 10px; font-size: 12px; color: var(--subtle); }
.device-screen { position: relative; aspect-ratio: 1440 / 900; border-radius: 14px; overflow: hidden; background: #070e19; }
.device-screen .shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); filter: blur(6px);
  transition: opacity .7s ease, transform 1.1s cubic-bezier(.16, 1, .3, 1), filter .7s ease;
}
.device-screen .shot.is-on { opacity: 1; transform: none; filter: none; }
.story-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.story-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--subtle); opacity: .4; transition: all .4s ease; }
.story-dots i.on { width: 30px; opacity: 1; background: linear-gradient(90deg, var(--core-1), var(--core-2)); }
.story-steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: .3; transition: opacity .5s ease; }
.step:first-child { min-height: 55vh; justify-content: flex-start; padding-top: 40px; }
.step.is-active { opacity: 1; }
.step-n { font-size: 14px; color: var(--core-ink); font-weight: 700; }
.step h3 { font-size: clamp(26px, 3vw, 38px); }
.step p { color: var(--muted); font-size: 17.5px; }

/* ---------- Bento ---------- */
.features { padding-bottom: 140px; }
.bento { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(230px, auto); gap: 18px; }
.tile { padding: 26px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; position: relative; }
.tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 119, 0, .14), transparent 45%);
}
.tile:hover::before { opacity: 1; }
.tile:hover { border-color: rgba(255, 119, 0, .45); background: var(--glass-hover); }
.tile h3 { font-size: 21px; }
.tile p { color: var(--muted); font-size: 15px; }
.tile img { border-radius: 12px; border: 1px solid var(--edge); margin-top: auto; box-shadow: 0 12px 30px -12px var(--shadow); }
.t-wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 22px; }
.t-wide .tile-txt { display: grid; gap: 12px; flex: 1 1 45%; align-content: start; }
.t-wide img { flex: 1 1 55%; width: 55%; margin: 0; }
.t-tall { grid-row: span 2; }
.ico-badge {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--core-ink);
  background: rgba(255, 119, 0, .12); border: 1px solid rgba(255, 119, 0, .3);
}
.ico-badge svg { width: 22px; height: 22px; }

/* ---------- Forensic ---------- */
.forensic { padding: 0 0 140px; background: linear-gradient(180deg, transparent, var(--section-alt) 20%, var(--section-alt) 80%, transparent); }
.marquee { overflow: hidden; padding: 22px 0; margin-bottom: 110px; border-block: 1px solid var(--edge); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; font-size: 14px; color: var(--subtle); font-weight: 600; letter-spacing: .1em; }
.marquee-track span::before { content: "◆"; color: var(--core-2); margin-right: 48px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.forensic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.f-card { padding: 28px 24px; display: grid; gap: 12px; align-content: start; position: relative; overflow: hidden; }
.f-card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--core-1), var(--core-2)); transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.16, 1, .3, 1) .3s; }
.f-card.in::after { transform: scaleX(1); }
.f-k { font-size: 12px; color: var(--core-ink); font-weight: 600; }
.f-card h3 { font-size: 22px; }
.f-card p { color: var(--muted); font-size: 15px; }
.lockline { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-top: 90px; }
.lock-shot { border-radius: 20px; overflow: hidden; border: 1px solid var(--edge); box-shadow: 0 40px 80px -30px rgba(255, 90, 0, .35), 0 20px 50px -20px var(--shadow); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.checks li { padding-left: 36px; position: relative; color: var(--muted); }
.checks li b { color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(52, 211, 153, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat;
  border: 1px solid rgba(52, 211, 153, .4);
}

/* ---------- Horizontal gallery ---------- */
.hgallery { height: 380vh; }
.hg-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 40px; }
.hg-head h2 { font-size: clamp(26px, 3.4vw, 44px); margin-top: 10px; }
.hg-track { display: flex; gap: 28px; padding-left: max(16px, calc((100vw - 1240px) / 2)); will-change: transform; transform: translateX(var(--hx, 0)); }
.hg-item { margin: 0; flex: none; width: min(60vw, 860px, (100svh - 290px) * 1.6); }
.hg-item img { border-radius: 18px; border: 1px solid var(--edge); box-shadow: 0 30px 60px -24px var(--shadow); aspect-ratio: 1440/900; object-fit: cover; width: 100%; background: #070e19; }
.hg-item figcaption { margin-top: 14px; font-size: 13px; color: var(--subtle); }
.hg-item figcaption::before { content: "▸ "; color: var(--core-2); }

/* ---------- Audience ---------- */
.audience { padding: 120px 0 140px; }
.aud-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.aud { padding: 24px 20px; display: grid; gap: 10px; align-content: start; }
.aud b { font-size: 18px; }
.aud span { color: var(--muted); font-size: 14.5px; }
.aud:hover { transform: translateY(-4px); }

/* ---------- Pricing ---------- */
.pricing { padding-bottom: 140px; }
.trial-banner { display: flex; align-items: center; gap: 16px; padding: 18px 24px; margin: 0 auto 36px; max-width: 900px; flex-wrap: wrap; justify-content: center; text-align: center; }
.trial-banner p { color: var(--muted); }
.trial-banner b { color: var(--ink); }
.link-core { color: var(--core-ink); font-weight: 700; text-decoration: none; }
.link-core:hover { text-decoration: underline; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { padding: 34px 30px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan:hover { transform: translateY(-6px); }
.plan-name { font-size: 14px; font-weight: 700; color: var(--core-ink); text-transform: uppercase; letter-spacing: .06em; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price .cur { font-size: 26px; font-weight: 700; }
.plan-price .amt { font-size: 58px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan-price .per { color: var(--subtle); font-weight: 600; }
.plan-for { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--edge); display: grid; gap: 11px; font-size: 15px; flex: 1; align-content: start; }
.plan li { padding-left: 26px; position: relative; color: var(--muted); }
.plan li b { color: var(--ink); }
.plan li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 7px; border-left: 2.5px solid var(--core-2); border-bottom: 2.5px solid var(--core-2); transform: rotate(-45deg); }
.plan.featured { border-color: rgba(255, 119, 0, .7); box-shadow: 0 0 0 3px rgba(255, 119, 0, .16), 0 40px 80px -30px rgba(255, 90, 0, .45); }
.price-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-inline: auto; }
.included { max-width: 860px; margin: 22px auto 0; padding: 26px 30px; }
.included h3 { font-size: 18px; margin-bottom: 16px; }
.included ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; font-size: 15px; }
.included li { padding-left: 26px; position: relative; color: var(--muted); }
.included li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 7px; border-left: 2.5px solid var(--core-2); border-bottom: 2.5px solid var(--core-2); transform: rotate(-45deg); }
.ribbon { position: absolute; top: -13px; left: 30px; padding: 5px 14px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(90deg, var(--core-1), var(--core-2)); text-transform: uppercase; letter-spacing: .05em; }
.fine { text-align: center; margin-top: 26px; font-size: 12.5px; color: var(--subtle); }

/* ---------- Downloads ---------- */
.downloads { padding-bottom: 140px; }
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.dl { padding: 22px; display: flex; gap: 24px; align-items: center; }
.dl-demo { grid-column: 1 / -1; padding: 28px; border-color: rgba(255, 119, 0, .45); }
.dl-body { display: grid; gap: 12px; justify-items: start; }
.dl h3 { font-size: 26px; }
.dl p { color: var(--muted); font-size: 15.5px; }
.dl-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.req { font-size: 12px; color: var(--subtle) !important; }
.tag { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; color: var(--core-ink); background: rgba(255, 119, 0, .12); border: 1px solid rgba(255, 119, 0, .3); text-transform: uppercase; }
.dl-art { flex: none; width: 360px; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px -20px rgba(0, 160, 255, .45); border: 1px solid var(--edge); }
.dl-art img { width: 100%; height: auto; }
.dl-cover {
  flex: none; width: 150px; aspect-ratio: 210/297; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 6px;
  background: radial-gradient(circle at 70% 25%, #13243a, #04070d); color: #e8f0fa; position: relative; overflow: hidden;
  border: 1px solid rgba(160, 200, 240, .2); box-shadow: 0 20px 40px -18px var(--shadow); transform: rotate(-3deg); transition: transform .4s ease;
}
.dl:hover .dl-cover { transform: rotate(0) scale(1.04); }
.dl-cover.cover-deck { aspect-ratio: 16/10; width: 190px; transform: rotate(2deg); }
.dl-cover .cv-ic { width: 30px; height: 30px; border-radius: 8px; margin-bottom: 4px; position: relative; z-index: 1; }
.dl-cover span { font-size: 9px; letter-spacing: .14em; color: #ff8800; }
.dl-cover b { font-size: 17px; line-height: 1.1; }
.dl-cover i { position: absolute; width: 120px; height: 120px; right: -30px; bottom: -30px; border-radius: 50%; background: radial-gradient(circle, #ffd27a, #ff8800 30%, #ff2a05 55%, transparent 70%); filter: blur(4px); }

/* ---------- FAQ ---------- */
.faq { padding-bottom: 140px; }
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font: 600 24px "JetBrains Mono", monospace; color: var(--core-ink); transition: transform .3s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding-bottom: 140px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy { display: grid; gap: 20px; }
.contact-copy h2 { font-size: clamp(34px, 4.6vw, 58px); }
.contact-points { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 14px; }
.contact-points li { display: flex; gap: 16px; align-items: baseline; color: var(--muted); }
.contact-points span { width: 90px; font-size: 12px; color: var(--subtle); text-transform: uppercase; }
.contact-points a { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-points a:hover { color: var(--core-ink); }
.contact-form { padding: 30px; display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 500 15.5px "Plus Jakarta Sans", sans-serif; color: var(--ink); background: var(--glass-2);
  border: 1px solid var(--edge); border-radius: 14px; padding: 13px 15px; width: 100%; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form select option { color: #0f172a; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: rgba(255, 119, 0, .8); box-shadow: 0 0 0 3px rgba(255, 119, 0, .18); }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 13px; }
.contact-form .consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: #ff7700; }
.contact-form button { justify-self: start; }
.hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-status { font-size: 13px; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--alert); }

/* ---------- Dialog richiesta email (download materiale) ---------- */
.lead-dialog {
  width: min(520px, 100% - 32px); max-height: calc(100svh - 32px); overflow: auto; padding: 0; color: var(--ink);
  background: var(--menu-bg); border-radius: 24px;
}
.lead-dialog::backdrop { background: rgba(4, 7, 13, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lead-dialog[open] { animation: dlgIn .35s cubic-bezier(.16, 1, .3, 1); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.lead-form { position: relative; padding: 30px; display: grid; gap: 14px; }
.lead-form h3 { font-size: 26px; }
.lead-sub { color: var(--muted); font-size: 15px; }
.lead-form label { display: grid; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.lead-form input:not([type=checkbox]) {
  font: 500 15.5px "Plus Jakarta Sans", sans-serif; color: var(--ink); background: var(--glass-2);
  border: 1px solid var(--edge); border-radius: 14px; padding: 12px 14px; width: 100%;
}
.lead-form input:focus { outline: none; border-color: rgba(255, 119, 0, .8); box-shadow: 0 0 0 3px rgba(255, 119, 0, .18); }
.lead-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 13px; }
.lead-form .consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: #ff7700; }
.lead-form button[type=submit] { justify-self: start; }
.lead-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--edge); background: var(--glass); color: var(--ink); font-size: 22px; line-height: 1;
}
@media (max-width: 560px) { .lead-form .row2 { grid-template-columns: 1fr; } .lead-form { padding: 24px 20px; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--edge); padding: 40px 0; }
.foot-in { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 12.5px; color: var(--subtle); }
.brand.small .brand-icon { width: 32px; height: 32px; border-radius: 9px; }
.brand.small b { font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-tall { grid-row: auto; }
  .forensic-grid { grid-template-columns: repeat(2, 1fr); }
  .aud-row { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  body { font-size: 16px; }
  .burger { display: block; }
  .menu {
    position: absolute; top: calc(100% + 10px); left: 16px; right: 16px; flex-direction: column; padding: 10px;
    background: var(--menu-bg); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--edge); border-radius: 20px; box-shadow: 0 20px 40px -12px var(--shadow);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .menu a { padding: 14px 18px; font-size: 17px; }
  .brand-text small { display: none; }
  .theme-toggle .lbl { display: none; }
  .story-grid { grid-template-columns: 1fr; gap: 24px; }
  .story-visual { top: 84px; z-index: 2; }
  .step, .step:first-child { min-height: 60vh; justify-content: flex-end; padding: 0 0 24px; }
  .step p { background: var(--glass-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--edge); border-radius: 16px; padding: 14px 16px; }
  .t-wide { flex-direction: column; align-items: stretch; }
  .t-wide img { width: 100%; }
  .lockline, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .price-grid, .price-grid.two { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .included ul { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .dl, .dl-demo { flex-direction: column; align-items: flex-start; }
  .dl-art { width: 100%; max-width: 360px; }
  .aud-row { grid-template-columns: 1fr 1fr; }
  .hg-item { width: 82vw; }
}
@media (max-width: 560px) {
  .bento, .forensic-grid, .stats, .aud-row { grid-template-columns: 1fr; }
  .bento { grid-auto-rows: auto; }
  .t-wide, .t-tall { grid-column: auto; grid-row: auto; }
  .tile { padding: 22px; }
  .contact-form .row2 { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .omni-btn { padding: 9px 12px; }
  .hero-cta .btn-pill { width: 100%; }
  .stats { padding-bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .led, .caret, .scroll-cue span::after { animation: none; }
  .manifesto { height: auto; }
  .manifesto-sticky { position: static; height: auto; padding: 120px 0; }
  .manifesto-text .w { opacity: 1; }
  .hgallery { height: auto; }
  .hg-sticky { position: static; height: auto; padding: 100px 0; }
  .hg-track { overflow-x: auto; transform: none !important; padding-bottom: 16px; }
}
