/* ===== PeppePadua · Sito 2026 ===== */
:root {
  --bg: #05060b; --bg-2: #0a0b14; --surface: rgb(255 255 255 / .04); --surface-2: rgb(255 255 255 / .07);
  --line: rgb(255 255 255 / .09); --line-2: rgb(255 255 255 / .16);
  --text: #eef0fa; --muted: #9aa0bd; --violet: #8b6dff; --cyan: #2ad4ff; --pink: #ff5cd6; --lime: #b6ff5c;
  --grad: linear-gradient(100deg, var(--violet), var(--cyan) 55%, var(--lime));
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --display: 'Space Grotesk', var(--font);
  --ease: cubic-bezier(.2, .8, .2, 1); --gutter: max(16px, env(safe-area-inset-left));
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.site { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.site::before { content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.025em; line-height: 1.08; margin: 0; }
p { margin: 0; }
.wrap { width: min(1220px, 100% - var(--gutter) * 2); margin-inline: auto; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shine 8s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
::selection { background: var(--violet); color: #fff; }

/* ---- Progress & cursor ---- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgb(139 109 255 / .13), transparent 60%); transform: translate3d(-999px, -999px, 0); transition: opacity .3s; }
@media (hover: none) { .cursor-glow { display: none; } }

/* ---- Bottoni ---- */
.btn-glow, .btn-line { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; font: 600 15px var(--font); text-decoration: none; cursor: pointer; border: 0; transition: transform .25s var(--ease), box-shadow .25s, background .25s; white-space: nowrap; }
.btn-glow { color: #05060b; background: linear-gradient(100deg, #fff, #dcd6ff 40%, #b9f2ff); box-shadow: 0 0 0 1px rgb(255 255 255 / .3) inset, 0 10px 40px -10px rgb(139 109 255 / .8); position: relative; isolation: isolate; }
.btn-glow::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; background: var(--grad); filter: blur(14px); opacity: .55; z-index: -1; transition: opacity .25s; }
.btn-glow:hover { transform: translateY(-2px); }
.btn-glow:hover::after { opacity: .9; }
.btn-line { color: var(--text); background: var(--surface); box-shadow: 0 0 0 1px var(--line-2) inset; backdrop-filter: blur(10px); }
.btn-line:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }
.play { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 10px; }

/* ---- Nav ---- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 14px 0; transition: padding .3s, background .3s, backdrop-filter .3s; }
.nav.scrolled { padding: 8px 0; background: rgb(5 6 11 / .7); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line); }
.nav-inner { width: min(1220px, 100% - var(--gutter) * 2); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 19px var(--display); text-decoration: none; letter-spacing: -.02em; }
.logo b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #05060b; background: var(--grad); box-shadow: 0 6px 24px -6px var(--violet); }
.logo-mark svg { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; padding: 5px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; backdrop-filter: blur(12px); }
.nav-links a { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links .nav-login { color: var(--text); }
.nav-cta { padding: 10px 18px; font-size: 14px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---- Hero ---- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; isolation: isolate; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.aurora { position: absolute; inset: -20%; z-index: -3; filter: blur(90px); opacity: .55; }
.aurora i { position: absolute; border-radius: 50%; animation: drift 22s var(--ease) infinite alternate; }
.aurora i:nth-child(1) { width: 46vmax; height: 46vmax; background: #4b2bd6; left: 45%; top: 5%; }
.aurora i:nth-child(2) { width: 34vmax; height: 34vmax; background: #0a7fa8; left: 65%; top: 40%; animation-delay: -7s; }
.aurora i:nth-child(3) { width: 26vmax; height: 26vmax; background: #8a1f7a; left: 10%; top: 60%; animation-delay: -14s; opacity: .6; }
@keyframes drift { to { transform: translate(-8%, 6%) scale(1.15) rotate(20deg); } }
.grid-bg { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); opacity: .5; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2) inset; font-size: 13px; color: var(--muted); backdrop-filter: blur(10px); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgb(182 255 92 / .15), 0 0 12px var(--lime); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgb(182 255 92 / 0), 0 0 12px var(--lime); } }
.hero-title { font-size: clamp(40px, 6.4vw, 86px); font-weight: 600; margin: 22px 0 18px; max-width: 13ch; }
.hero-rotator { font: 500 clamp(19px, 2.2vw, 26px) var(--display); color: var(--text); }
.rotator { display: inline-block; min-width: 6ch; color: var(--cyan); position: relative; transition: opacity .35s, transform .35s var(--ease), filter .35s; }
.rotator.out { opacity: 0; transform: translateY(-40%); filter: blur(6px); }
.rotator::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--grad); border-radius: 2px; }
.hero-sub { color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); max-width: 54ch; margin-top: 18px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border-radius: 14px; box-shadow: 0 0 0 1.5px var(--line-2) inset; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: wheel 1.8s infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* Console */
.console { position: relative; border-radius: 22px; padding: 18px; background: linear-gradient(160deg, rgb(20 22 40 / .72), rgb(8 9 18 / .78)); box-shadow: 0 0 0 1px var(--line-2) inset, 0 40px 120px -30px rgb(80 50 220 / .55); backdrop-filter: blur(22px) saturate(1.3); transform: perspective(1200px) rotateY(-8deg) rotateX(4deg); transition: transform .6s var(--ease); }
.console:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.console::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgb(139 109 255 / .8), transparent 35%, transparent 65%, rgb(42 212 255 / .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.console-head { display: flex; align-items: center; gap: 10px; font: 12px ui-monospace, monospace; color: var(--muted); margin-bottom: 16px; }
.lights { display: flex; gap: 6px; } .lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.tag { margin-left: auto; padding: 2px 8px; border-radius: 99px; background: rgb(182 255 92 / .12); color: var(--lime); font-size: 11px; }
.phases { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.phases li { padding: 10px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; font-size: 12.5px; color: var(--muted); transition: all .5s var(--ease); }
.phases b { display: block; font: 600 11px ui-monospace, monospace; opacity: .7; }
.phases li.active { color: var(--text); background: linear-gradient(140deg, rgb(139 109 255 / .28), rgb(42 212 255 / .12)); box-shadow: 0 0 0 1px rgb(139 109 255 / .6) inset, 0 8px 30px -10px var(--violet); }
.phase-bar { height: 3px; border-radius: 3px; background: var(--surface-2); margin: 14px 0; overflow: hidden; }
.phase-bar span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.metrics div { padding: 12px; border-radius: 12px; background: rgb(0 0 0 / .25); box-shadow: 0 0 0 1px var(--line) inset; }
.metrics small { display: block; font-size: 11px; color: var(--muted); }
.metrics strong { font: 600 clamp(17px, 1.6vw, 22px) var(--display); font-variant-numeric: tabular-nums; transition: color .4s; }
.metrics strong.good { color: var(--lime); }
.terminal { margin: 12px 0 0; min-height: 96px; padding: 12px 14px; border-radius: 12px; background: rgb(0 0 0 / .45); font: 12.5px/1.7 ui-monospace, Menlo, monospace; color: #c9cee6; white-space: pre-wrap; overflow: hidden; }
.terminal .ok { color: var(--lime); } .terminal .warn { color: #ffb86b; } .terminal .cmd { color: var(--cyan); }
.terminal .caret { display: inline-block; width: 7px; height: 14px; background: var(--cyan); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- Marquee ---- */
.marquee { border-block: 1px solid var(--line); padding: 20px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font: 500 clamp(18px, 2vw, 24px) var(--display); color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: '✦'; color: var(--violet); font-size: .7em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Sezioni ---- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .16em; color: var(--cyan); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--cyan); }
.section-head h2 { font-size: clamp(32px, 4.6vw, 58px); font-weight: 600; }
.lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); margin-top: 18px; max-width: 60ch; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* Compare */
.compare { position: relative; border-radius: 28px; overflow: hidden; min-height: 440px; box-shadow: 0 0 0 1px var(--line-2) inset; user-select: none; touch-action: pan-y; }
.compare-pane { position: absolute; inset: 0; padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.compare-pane h3 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 26px; display: flex; gap: 12px; align-items: center; }
.compare-pane ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 460px; font-size: clamp(15px, 1.3vw, 17px); position: relative; z-index: 1; }
.compare-pane li { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; }
.compare-pane li b { font-size: 18px; }
.before { background: repeating-linear-gradient(-45deg, #0d0d12 0 12px, #101016 12px 24px); color: #b8b8c4; }
.before li { background: rgb(255 80 90 / .07); box-shadow: 0 0 0 1px rgb(255 80 90 / .2) inset; filter: grayscale(.6); }
.before li:nth-child(odd) { transform: rotate(-.6deg); } .before li:nth-child(even) { transform: rotate(.5deg) translateX(10px); }
.after { background: radial-gradient(90% 120% at 100% 0%, rgb(139 109 255 / .35), transparent 60%), radial-gradient(80% 100% at 100% 100%, rgb(42 212 255 / .25), transparent 60%), #080a18; align-items: flex-end; text-align: left; clip-path: inset(0 0 0 50%); }
.after ul, .after h3 { width: min(460px, 100%); }
.after li { background: rgb(42 212 255 / .08); box-shadow: 0 0 0 1px rgb(42 212 255 / .25) inset; }
.chaos { position: absolute; right: 6%; top: 50%; translate: 0 -50%; width: 30%; height: 70%; }
.chaos i { position: absolute; width: 90px; height: 116px; border-radius: 8px; background: #e9e6dc; opacity: .12; animation: jitter 3s ease-in-out infinite alternate; }
.chaos i:nth-child(1) { left: 0; top: 0; rotate: -14deg; } .chaos i:nth-child(2) { left: 40%; top: 10%; rotate: 9deg; animation-delay: -1s; } .chaos i:nth-child(3) { left: 15%; top: 45%; rotate: 22deg; animation-delay: -2s; }
.chaos i:nth-child(4) { left: 55%; top: 50%; rotate: -6deg; animation-delay: -.5s; } .chaos i:nth-child(5) { left: 30%; top: 70%; rotate: -20deg; animation-delay: -1.5s; } .chaos i:nth-child(6) { left: 70%; top: 20%; rotate: 15deg; animation-delay: -2.5s; }
@keyframes jitter { to { transform: translate(6px, -8px) rotate(4deg); } }
.flow { position: absolute; left: 6%; top: 50%; translate: 0 -50%; width: 32%; height: 60%; }
.flow i { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: stream 2.4s linear infinite; opacity: .8; }
.flow i:nth-child(1) { top: 15%; } .flow i:nth-child(2) { top: 40%; animation-delay: -.6s; } .flow i:nth-child(3) { top: 65%; animation-delay: -1.2s; } .flow i:nth-child(4) { top: 90%; animation-delay: -1.8s; }
@keyframes stream { from { background-position: -100% 0; } to { background-position: 200% 0; } }
.compare-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; box-shadow: 0 0 20px var(--cyan); pointer-events: none; z-index: 3; }
.compare-handle span { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #05060b; font-size: 20px; box-shadow: 0 10px 40px rgb(42 212 255 / .6); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.tile, .sector { position: relative; border-radius: 24px; padding: 28px; background: linear-gradient(170deg, rgb(255 255 255 / .05), rgb(255 255 255 / .015)); box-shadow: 0 0 0 1px var(--line) inset; overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), box-shadow .3s; --x: 50%; --y: 50%; }
.tile::before, .sector::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--x) var(--y), rgb(139 109 255 / .22), transparent 45%); }
.tile::after, .sector::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .3s; background: radial-gradient(300px circle at var(--x) var(--y), rgb(42 212 255 / .9), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.tile:hover::before, .tile:hover::after, .sector:hover::before, .sector:hover::after { opacity: 1; }
.tile h3 { font-size: 22px; margin: 18px 0 10px; } .tile p { color: var(--muted); font-size: 15px; }
.tile-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-2) inset; color: var(--cyan); }
.tile-xl { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.tile-xl h3 { font-size: clamp(26px, 2.6vw, 34px); }
.tile-tall { grid-row: span 2; }
.tile-wide { grid-column: span 2; }
.code-snip { margin-top: auto; padding: 20px; border-radius: 16px; background: rgb(0 0 0 / .45); box-shadow: 0 0 0 1px var(--line) inset; font: 14px/1.8 ui-monospace, Menlo, monospace; color: #c9cee6; }
.code-snip .k { color: var(--pink); } .code-snip .f { color: var(--cyan); } .code-snip .s { color: var(--lime); }
.orb { width: 160px; height: 160px; margin: 30px auto 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--violet) 30%, #1b0f5c 70%); box-shadow: 0 0 80px var(--violet), inset -20px -20px 60px rgb(42 212 255 / .5); animation: orb 6s ease-in-out infinite; }
@keyframes orb { 50% { transform: translateY(-12px) scale(1.04); box-shadow: 0 0 120px var(--cyan), inset -20px -20px 60px rgb(139 109 255 / .6); } }
.spark { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: 22px; }
.spark i { flex: 1; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, var(--cyan), rgb(139 109 255 / .3)); height: 20%; animation: grow 3s var(--ease) infinite alternate; }
.spark i:nth-child(2n) { animation-delay: -.4s; } .spark i:nth-child(3n) { animation-delay: -1.1s; } .spark i:nth-child(5n) { animation-delay: -1.7s; }
.spark i:nth-child(1) { height: 25% } .spark i:nth-child(2) { height: 35% } .spark i:nth-child(3) { height: 30% } .spark i:nth-child(4) { height: 48% } .spark i:nth-child(5) { height: 42% } .spark i:nth-child(6) { height: 58% }
.spark i:nth-child(7) { height: 55% } .spark i:nth-child(8) { height: 70% } .spark i:nth-child(9) { height: 66% } .spark i:nth-child(10) { height: 82% } .spark i:nth-child(11) { height: 78% } .spark i:nth-child(12) { height: 96% }
@keyframes grow { to { transform: scaleY(.7); } }
.spark i { transform-origin: bottom; }

/* AI hub */
.ai-section { background: radial-gradient(60% 60% at 70% 50%, rgb(139 109 255 / .12), transparent 70%); }
.ai-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; color: var(--text); }
.checks li::before { content: '✓'; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #05060b; background: var(--grad); }
.hub-svg { width: 100%; height: auto; overflow: visible; }
.hub-svg .links path { fill: none; stroke: url(#g1); stroke-width: 1.6; stroke-dasharray: 6 10; opacity: .7; animation: dash 1.6s linear infinite; }
.hub-svg .links path.out { animation-duration: 1.2s; stroke-width: 2; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.hub-svg .nodes rect { fill: rgb(18 20 36 / .9); stroke: rgb(255 255 255 / .16); }
.hub-svg .nodes text { fill: #eef0fa; font: 500 13px var(--font); text-anchor: middle; }
.hub-svg .nodes.outn rect { stroke: rgb(42 212 255 / .5); }
.hub-svg .core-t { fill: #fff; font: 700 22px var(--display); }
.hub-svg .core-s { fill: var(--muted); font: 600 9px ui-monospace, monospace; letter-spacing: .3em; }
.hub-svg .ring { transform-origin: 260px 210px; animation: spin 14s linear infinite; }
.hub-svg .core-glow { transform-origin: 260px 210px; animation: breathe 3.2s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .7; } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 64px; display: grid; gap: 22px; position: relative; max-width: 860px; }
.timeline li { display: flex; gap: 22px; padding: 24px 26px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; position: relative; }
.timeline .step { position: absolute; left: -64px; top: 22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 600 13px ui-monospace, monospace; background: var(--bg); box-shadow: 0 0 0 1px var(--line-2) inset; z-index: 1; transition: all .5s var(--ease); }
.timeline li.lit .step { background: var(--grad); color: #05060b; box-shadow: 0 0 30px -4px var(--violet); }
.timeline h3 { font-size: 21px; margin-bottom: 6px; } .timeline p { color: var(--muted); }
.timeline-line { position: absolute; left: 21px; top: 30px; bottom: 30px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline-line span { display: block; width: 100%; height: 100%; background: var(--grad); transform-origin: top; transform: scaleY(0); }

/* Stats */
.stats-section { padding-top: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 32px 26px; border-radius: 24px; background: linear-gradient(170deg, rgb(139 109 255 / .1), transparent); box-shadow: 0 0 0 1px var(--line) inset; }
.stat strong { font: 600 clamp(44px, 5vw, 68px) var(--display); letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat span { font: 600 24px var(--display); color: var(--muted); margin-left: 4px; }
.stat p { color: var(--muted); margin-top: 6px; }

/* Settori */
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sector b { font-size: 30px; } .sector h3 { font-size: 20px; margin: 14px 0 6px; } .sector p { color: var(--muted); font-size: 15px; }

/* CTA band */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(28px, 5vw, 56px); border-radius: 32px;
  background: radial-gradient(80% 140% at 0% 0%, rgb(139 109 255 / .4), transparent 60%), radial-gradient(70% 120% at 100% 100%, rgb(42 212 255 / .3), transparent 60%), #0b0c1a; box-shadow: 0 0 0 1px var(--line-2) inset; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 42px); } .cta-band p { color: var(--muted); max-width: 56ch; margin-top: 10px; }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.ref-note { margin-top: 22px; display: inline-block; padding: 10px 16px; border-radius: 14px; background: rgb(182 255 92 / .08); box-shadow: 0 0 0 1px rgb(182 255 92 / .3) inset; color: var(--lime); }
.contact-form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 36px); border-radius: 28px; background: linear-gradient(170deg, rgb(255 255 255 / .06), rgb(255 255 255 / .02)); box-shadow: 0 0 0 1px var(--line-2) inset, 0 40px 120px -40px rgb(139 109 255 / .5); backdrop-filter: blur(16px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; display: block; }
.field input, .field textarea, .field select { width: 100%; padding: 22px 16px 10px; border-radius: 14px; border: 0; background: rgb(0 0 0 / .3); box-shadow: 0 0 0 1px var(--line-2) inset; color: var(--text); font: 15px var(--font); transition: box-shadow .2s, background .2s; resize: vertical; }
.field select { padding: 16px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: #12131f; }
.field span { position: absolute; left: 16px; top: 16px; color: var(--muted); font-size: 15px; pointer-events: none; transition: all .2s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: 0 0 0 1.5px var(--violet) inset, 0 0 0 5px rgb(139 109 255 / .15); background: rgb(0 0 0 / .45); }
.field input:focus + span, .field input:not(:placeholder-shown) + span, .field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { top: 6px; font-size: 11.5px; color: var(--cyan); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--violet); width: 16px; height: 16px; flex-shrink: 0; }
.consent a { color: var(--cyan); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { padding: 12px 16px; border-radius: 12px; font-size: 14.5px; }
.note-success { background: rgb(182 255 92 / .1); color: var(--lime); box-shadow: 0 0 0 1px rgb(182 255 92 / .3) inset; }
.note-error, .note-warning { background: rgb(255 92 110 / .1); color: #ff8a98; box-shadow: 0 0 0 1px rgb(255 92 110 / .3) inset; }

/* Legal */
.legal { padding-top: 140px; }
.narrow-wrap { max-width: 780px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p { color: #c3c7dc; margin-bottom: 12px; }
.legal a { color: var(--cyan); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 64px 0 28px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid > div { display: grid; gap: 10px; align-content: start; }
.footer-grid h4 { font-size: 14px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-family: ui-monospace, monospace; }
.footer-grid a { text-decoration: none; color: var(--text); opacity: .85; }
.footer-grid a:hover { opacity: 1; color: var(--cyan); }
.footer-grid p { max-width: 36ch; font-size: 14.5px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .hero-inner, .ai-grid, .contact-grid { grid-template-columns: 1fr; }
  .console { transform: none; max-width: 560px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-xl { grid-row: span 1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-cta { display: none; }
  .burger { display: block; }
  .nav-links { position: fixed; inset: 70px 16px auto; flex-direction: column; padding: 12px; border-radius: 22px; background: rgb(10 11 20 / .96); backdrop-filter: blur(20px); box-shadow: 0 0 0 1px var(--line-2) inset, 0 30px 80px rgb(0 0 0 / .6);
    opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; transition: all .3s var(--ease); }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; font-size: 17px; }
  .sectors { grid-template-columns: 1fr 1fr; }
  .compare { min-height: 620px; }
  .compare-pane { justify-content: flex-start; padding-top: 32px; }
  .after { align-items: flex-start; }
  .chaos, .flow { top: auto; bottom: 0; translate: none; height: 30%; width: 70%; left: 15%; right: auto; }
}
@media (max-width: 600px) {
  .hero { padding: 104px 0 72px; }
  .hero-title { margin-top: 18px; }
  .hero-ctas a { width: 100%; justify-content: center; }
  .bento, .sectors, .stats, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .tile-xl, .tile-wide { grid-column: span 1; }
  .tile-tall { grid-row: span 1; }
  .metrics { grid-template-columns: 1fr 1fr 1fr; }
  .metrics div { padding: 10px 8px; }
  .phases li { padding: 8px 6px; font-size: 11px; }
  .timeline { padding-left: 52px; }
  .timeline .step { left: -52px; width: 38px; height: 38px; }
  .timeline-line { left: 18px; }
  .timeline li { padding: 18px; }
  .scroll-hint { display: none; }
  .compare-pane li { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
