/* Chibri Orbyx - sito orbyx.chibri.it, pagina principale ("esperienza").
   Tema scuro "spazio profondo", nucleo teal/ciano, accento ambra. Le altre pagine (attiva, legali) usano style.css. */
@font-face {
  font-family: 'Space Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(fonts/space-grotesk-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(fonts/space-grotesk-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #020d12;
  --bg-2: #04161c;
  --panel: rgba(8, 40, 46, 0.55);
  --line: rgba(94, 234, 212, 0.18);
  --line-2: rgba(94, 234, 212, 0.32);
  --ink: #e6fffb;
  --ink-2: #a7c7c3;
  --ink-3: #6f9591;
  --teal: #2dd4bf;
  --cyan: #22d3ee;
  --amber: #fbbf24;
  --grad: linear-gradient(90deg, #5eead4 0%, #22d3ee 50%, #fbbf24 100%);
  --display: 'Space Grotesk Variable', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 18px;
  --ok: #34d399;
  --err: #f87171;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body.xp {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; color: #fff; }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.note { color: var(--ink-3); font-size: .9rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 14px; border: 0;
  font: 700 1rem/1 var(--display); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .25s, background .25s, color .25s;
}
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .92rem; border-radius: 11px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-glow {
  position: relative; overflow: hidden; color: #022c2b;
  background: linear-gradient(90deg, #5eead4, #22d3ee);
  box-shadow: 0 10px 34px rgba(34, 211, 238, .35);
}
.btn-glow::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%);
  transform: translateX(-100%); animation: shine 3.4s ease-in-out infinite;
}
.btn-glow:hover { color: #022c2b; transform: translateY(-2px); box-shadow: 0 16px 46px rgba(34, 211, 238, .5); }
.btn-line { color: #fff; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); }
.btn-line:hover { color: #fff; background: rgba(94,234,212,.1); border-color: var(--teal); }
.btn:disabled { opacity: .7; cursor: progress; }

/* ---------- intestazione ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.topbar.scrolled { background: rgba(2, 13, 18, .78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand-orb { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ecfeff, #5eead4 35%, #0d9488 75%, #064e4b); box-shadow: 0 0 18px rgba(34,211,238,.7); position: relative; }
.brand-orb::after { content: ''; position: absolute; inset: -5px -9px; border: 1.5px solid rgba(165,243,252,.6); border-radius: 50%; transform: rotate(-24deg) scaleY(.38); }
.brand-name { font: 700 1.4rem/1 var(--display); display: flex; align-items: baseline; gap: 8px; }
.brand-name small { font: 500 .72rem/1 var(--font); color: var(--ink-3); letter-spacing: .04em; }
.nav { display: none; gap: 26px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: #fff; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.nav-login { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; display: none; }
.nav-login:hover { color: #fff; }
.menu-btn { width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: #fff; display: grid; place-items: center; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav { display: none; flex-direction: column; padding: 8px 20px 18px; background: rgba(2,13,18,.96); border-bottom: 1px solid var(--line); }
.mobile-nav.open { display: flex; }
.mobile-nav a { color: #fff; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
@media (min-width: 1000px) {
  .nav, .nav-login { display: flex; }
  .menu-btn { display: none; }
  .mobile-nav, .mobile-nav.open { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: radial-gradient(ellipse at 70% 40%, #06343a 0%, #031a20 42%, var(--bg) 78%); }
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(2,13,18,.97) 0%, rgba(2,13,18,.9) 46%, rgba(2,13,18,.3) 58%, rgba(2,13,18,0) 68%), linear-gradient(0deg, var(--bg) 0%, rgba(2,13,18,0) 30%); }
.hero-inner { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 12vh; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(2,13,18,.5); font-size: .82rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: #99f6e4; backdrop-filter: blur(8px); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); animation: blink 2s ease-in-out infinite; }
.hero-title { font-size: clamp(2.6rem, 6.6vw, 5.6rem); line-height: .98; letter-spacing: -.035em; margin: 22px 0 22px; max-width: 13ch; }
.hero-title .line { display: block; opacity: 0; transform: translateY(30px); animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-title .line + .line { animation-delay: .18s; }
.hero-lead { font-size: clamp(1.08rem, 1.9vw, 1.3rem); color: var(--ink-2); max-width: 36em; opacity: 0; animation: rise .9s .35s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-lead strong { color: #fff; }
.hero-rotator { color: var(--ink-3); font-family: var(--display); font-size: 1.05rem; margin-bottom: 26px; opacity: 0; animation: rise .9s .45s forwards; }
.hero-rotator b { color: #fff; display: inline-block; }
.hero-rotator b.swap { animation: word .5s ease both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: rise .9s .55s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-proof { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-size: .9rem; opacity: 0; animation: rise .9s .7s forwards; }
.hero-proof li::before { content: '◆'; color: var(--teal); font-size: .6rem; margin-right: 8px; vertical-align: 2px; }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--teal); animation: cue 1.8s ease-in-out infinite; }

/* ---------- sezioni ---------- */
.section { position: relative; padding: 110px 0; }
.kicker { font: 650 .82rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.big { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: 28px; }
.huge { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.lead-center { text-align: center; color: var(--ink-2); max-width: 680px; margin: 0 auto 44px; font-size: 1.1rem; }
.live .big, .live .kicker, .pricing .big, .pricing .kicker { text-align: center; }
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* manifesto */
.manifesto { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.split { display: grid; gap: 22px; margin-top: 20px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--panel); }
.split-card.after { border-color: var(--line-2); background: linear-gradient(160deg, rgba(13,148,136,.22), rgba(8,40,46,.55)); box-shadow: 0 30px 80px rgba(6,182,212,.12); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; }
.tag-muted { background: rgba(255,255,255,.06); color: var(--ink-3); }
.tag-glow { background: rgba(45,212,191,.16); color: #5eead4; box-shadow: 0 0 20px rgba(45,212,191,.25); }
.chaos, .order { position: relative; height: 230px; margin: 18px 0 22px; border-radius: 14px; background: rgba(0,0,0,.2); overflow: hidden; }
.chaos span, .order span { position: absolute; left: 50%; top: 50%; padding: 7px 13px; border-radius: 999px; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.chaos span { color: #cbd5d4; background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.2); transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)); animation: jitter 3.4s ease-in-out infinite alternate; }
.chaos span:nth-child(2n) { animation-delay: -1.2s; }
.chaos span:nth-child(3n) { animation-delay: -2.3s; }
.order-core { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ecfeff, #5eead4 35%, #0d9488 75%, #064e4b); box-shadow: 0 0 40px rgba(34,211,238,.6); }
.order::before { content: ''; position: absolute; left: 50%; top: 50%; width: 300px; height: 156px; margin: -78px 0 0 -150px; border: 1px solid var(--line); border-radius: 50%; }
.order span { color: #e6fffb; background: rgba(6,40,44,.9); border: 1px solid var(--line-2); transform: translate(-50%, -50%) scale(.4); opacity: 0; transition: transform 1.3s cubic-bezier(.2,.8,.2,1), opacity .8s; }
.split-card.after.in .order span { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))); opacity: 1; }
.split-card.after.in .order span:nth-of-type(2) { transition-delay: .08s; } .split-card.after.in .order span:nth-of-type(3) { transition-delay: .16s; } .split-card.after.in .order span:nth-of-type(4) { transition-delay: .24s; } .split-card.after.in .order span:nth-of-type(5) { transition-delay: .32s; } .split-card.after.in .order span:nth-of-type(6) { transition-delay: .4s; }
.order-core { animation: corepulse 2.6s ease-in-out infinite; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--ink-2); }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; }
.ticks.bad li::before { content: '✕'; background: rgba(248,113,113,.12); color: #fca5a5; }
.ticks.good li::before { content: '✓'; background: rgba(45,212,191,.16); color: #5eead4; }

/* centro operativo simulato */
.live { background: radial-gradient(ellipse at 50% 0%, rgba(13,148,136,.18), transparent 60%), var(--bg-2); }
.console { max-width: 1040px; margin: 0 auto; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(8,40,46,.8), rgba(4,22,28,.9)); box-shadow: 0 50px 120px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03) inset, 0 0 80px rgba(34,211,238,.12); overflow: hidden; transform-origin: 50% 0; }
.console.reveal { transform: perspective(1400px) rotateX(14deg) translateY(40px); }
.console.reveal.in { transform: perspective(1400px) rotateX(0) translateY(0); transition-duration: 1.3s; }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.25); }
.console-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.15); }
.console-bar i:first-child { background: #f87171; } .console-bar i:nth-child(2) { background: #fbbf24; } .console-bar i:nth-child(3) { background: #34d399; }
.console-bar span { margin-left: 12px; font-size: .8rem; color: var(--ink-3); font-family: ui-monospace, Consolas, monospace; }
.console-body { padding: 22px; display: grid; gap: 18px; }
.c-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .c-kpis { grid-template-columns: repeat(4, 1fr); } }
.c-kpi { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.c-kpi small, .c-chart small, .c-bars small { color: var(--ink-3); font-size: .78rem; font-weight: 600; }
.c-kpi b { font: 700 1.7rem/1.1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.c-kpi em { font-style: normal; font-size: .8rem; font-weight: 650; }
.c-kpi em.up, .c-kpi em.ok { color: var(--ok); } .c-kpi em.muted { color: var(--ink-3); }
.c-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .c-grid { grid-template-columns: 2fr 1fr; } }
.c-chart, .c-bars { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.c-chart svg { width: 100%; height: 170px; margin-top: 8px; }
.c-line { fill: none; stroke: #2dd4bf; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; vector-effect: non-scaling-stroke; }
.c-prev { fill: none; stroke: rgba(148,163,184,.55); stroke-width: 2; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; }
.c-area { fill: url(#cg); opacity: 0; }
.console.play .c-line { animation: draw 2.4s .3s cubic-bezier(.4,0,.2,1) forwards; }
.console.play .c-area { animation: fadein 1.4s 1.4s forwards; }
.bars { height: 170px; margin-top: 8px; display: flex; align-items: flex-end; gap: 8px; }
.bars i { flex: 1; height: 0; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #2dd4bf, #0d9488); transition: height 1.2s cubic-bezier(.2,.8,.2,1); }
.bars i.peak { background: linear-gradient(180deg, #fbbf24, #f97316); box-shadow: 0 0 22px rgba(251,191,36,.4); }
.console.play .bars i { height: var(--h); }
.console.play .bars i:nth-child(2) { transition-delay: .08s; } .console.play .bars i:nth-child(3) { transition-delay: .16s; } .console.play .bars i:nth-child(4) { transition-delay: .24s; } .console.play .bars i:nth-child(5) { transition-delay: .32s; } .console.play .bars i:nth-child(6) { transition-delay: .4s; } .console.play .bars i:nth-child(7) { transition-delay: .48s; }
.c-feed { display: grid; gap: 10px; }
@media (min-width: 760px) { .c-feed { grid-template-columns: 1fr 1fr; } }
.c-alert, .c-action { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); opacity: 0; transform: translateX(-20px); transition: all .7s cubic-bezier(.2,.8,.2,1); }
.c-action { transform: translateX(20px); }
.console.play .c-alert { opacity: 1; transform: none; transition-delay: 1.6s; border-color: rgba(248,113,113,.4); }
.console.play .c-action { opacity: 1; transform: none; transition-delay: 2.2s; border-color: rgba(52,211,153,.35); }
.c-alert b, .c-action b { display: block; color: #fff; font-size: .92rem; }
.c-alert small, .c-action small { color: var(--ink-3); font-size: .8rem; }
.c-action > div { flex: 1; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.crit { background: #f87171; box-shadow: 0 0 12px #f87171; animation: blink 1.4s infinite; }
.dot.ok { background: #34d399; box-shadow: 0 0 12px #34d399; }
.c-approve { padding: 8px 14px; border-radius: 10px; background: #10b981; color: #022c22; font-weight: 800; font-size: .85rem; animation: pulse 2s 3s infinite; }

/* numeri */
.stats-band { padding: 60px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat b { display: block; font: 700 clamp(2.8rem, 6vw, 4.2rem)/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--ink-2); font-size: .95rem; }

/* passi */
.steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: s; position: relative; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps::before { content: ''; position: absolute; top: 34px; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, transparent, var(--teal), var(--cyan), var(--amber), transparent); opacity: .5; } }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(6px); }
.step-n { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; font: 700 1rem/1 var(--display); color: #022c2b; background: linear-gradient(135deg, #5eead4, #22d3ee); box-shadow: 0 0 26px rgba(34,211,238,.45); margin-bottom: 16px; position: relative; z-index: 1; }
.step p { color: var(--ink-2); margin: 0; }
.step em { color: #fff; }
.steps .step:nth-child(2) { transition-delay: .1s; } .steps .step:nth-child(3) { transition-delay: .2s; } .steps .step:nth-child(4) { transition-delay: .3s; }

/* agenti */
.agents-sec { background: radial-gradient(ellipse at 20% 30%, rgba(167,139,250,.08), transparent 55%), radial-gradient(ellipse at 80% 70%, rgba(251,191,36,.06), transparent 55%), var(--bg-2); }
.agents { display: grid; gap: 18px; }
@media (min-width: 700px) { .agents { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .agents { grid-template-columns: repeat(4, 1fr); } }
.agent { position: relative; padding: 28px 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: transform .35s, border-color .35s, box-shadow .35s; }
.agent::before { content: ''; position: absolute; inset: -40% -40% auto auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%); opacity: .5; transition: opacity .35s; }
.agent:hover { transform: translateY(-6px); border-color: var(--c); box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 0 40px color-mix(in srgb, var(--c) 25%, transparent); }
.agent:hover::before { opacity: 1; }
.agent-orb { width: 46px; height: 46px; border-radius: 50%; margin-bottom: 18px; background: radial-gradient(circle at 35% 30%, #fff, var(--c) 45%, color-mix(in srgb, var(--c) 40%, #000)); box-shadow: 0 0 26px var(--c); position: relative; }
.agent-orb::after { content: ''; position: absolute; inset: -6px -12px; border: 1.5px solid var(--c); border-radius: 50%; transform: rotate(-20deg) scaleY(.36); opacity: .7; }
.agent h3 { position: relative; }
.agent p { color: var(--ink-2); margin: 0; position: relative; font-size: .97rem; }
.agents .agent:nth-child(2) { transition-delay: .08s; } .agents .agent:nth-child(3) { transition-delay: .16s; } .agents .agent:nth-child(4) { transition-delay: .24s; }
.rule { margin-top: 30px; padding: 18px 22px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(45,212,191,.07); color: var(--ink-2); }
.rule b { color: #fff; }

/* integrazioni */
.integ { padding-bottom: 80px; }
.marquee { display: flex; overflow: hidden; gap: 14px; margin: 10px 0 26px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex: none; animation: marquee 38s linear infinite; }
.marquee-track li { white-space: nowrap; padding: 13px 20px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.035); color: var(--ink); font-weight: 600; }
.marquee-track li.chibri { border-color: var(--line-2); background: rgba(45,212,191,.12); color: #5eead4; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ecosistema */
.eco { background: var(--bg-2); }
.eco-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .eco-grid { grid-template-columns: 1.1fr .9fr; } }
.eco-grid > div > p { color: var(--ink-2); }
.eco-list { display: grid; gap: 12px; margin-top: 20px; }
.eco-item { display: block; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; transition: border-color .25s, transform .25s, background .25s; }
.eco-item:hover { border-color: var(--teal); transform: translateX(6px); background: rgba(45,212,191,.08); }
.eco-item b { display: block; color: #fff; font-family: var(--display); font-size: 1.1rem; margin-bottom: 2px; }
.eco-item span { color: var(--ink-2); font-size: .95rem; }
.eco-item b::after { content: ' →'; color: var(--teal); }
.eco-site { border-color: rgba(251,191,36,.35); }
.eco-site b::after { color: var(--amber); }
.eco-visual { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin: 0 auto; }
.eco-core { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; display: grid; place-items: center; font: 700 1.15rem/1 var(--display); color: #022c2b; background: radial-gradient(circle at 35% 30%, #ecfeff, #5eead4 35%, #14b8a6 75%, #0f766e); box-shadow: 0 0 60px rgba(34,211,238,.6), 0 0 140px rgba(34,211,238,.25); z-index: 2; }
.eco-ring { position: absolute; left: 50%; top: 50%; border: 1px solid var(--line-2); border-radius: 50%; animation: spin linear infinite; }
.eco-ring::after { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #a5f3fc; box-shadow: 0 0 14px #22d3ee, 0 0 30px #22d3ee; }
.eco-ring.r1 { width: 46%; height: 46%; margin: -23% 0 0 -23%; animation-duration: 9s; }
.eco-ring.r2 { width: 64%; height: 64%; margin: -32% 0 0 -32%; animation-duration: 14s; animation-direction: reverse; }
.eco-ring.r3 { width: 82%; height: 82%; margin: -41% 0 0 -41%; animation-duration: 20s; }
.eco-ring.r4 { width: 100%; height: 100%; margin: -50% 0 0 -50%; animation-duration: 28s; animation-direction: reverse; border-style: dashed; border-color: rgba(251,191,36,.35); }
.eco-ring.r4::after { background: #fde68a; box-shadow: 0 0 14px #f59e0b, 0 0 30px #f59e0b; }
.eco-label { position: absolute; left: var(--lx); top: var(--ly); transform: translate(-50%, -50%); z-index: 3; padding: 8px 15px; border-radius: 999px; background: rgba(6,42,47,.92); border: 1px solid var(--line-2); color: #fff; font-weight: 650; font-size: .9rem; white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.eco-label--site { border-color: rgba(251,191,36,.55); color: #fde68a; }

/* sicurezza */
.sec-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .sec-grid { grid-template-columns: repeat(3, 1fr); } }
.sec-grid li { padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.sec-grid b { display: block; color: #fff; font-family: var(--display); font-size: 1.08rem; margin-bottom: 6px; }
.sec-grid span { color: var(--ink-2); font-size: .95rem; }

/* prezzi */
.pricing { background: radial-gradient(ellipse at 50% 100%, rgba(13,148,136,.2), transparent 60%), var(--bg-2); }
.toggle-wrap { display: flex; justify-content: center; margin-bottom: 32px; }
.toggle { display: inline-flex; padding: 5px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0,0,0,.25); }
.toggle button { border: 0; background: none; color: var(--ink-2); font: 650 .95rem/1 var(--font); padding: 11px 18px; border-radius: 10px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: linear-gradient(90deg, #5eead4, #22d3ee); color: #022c2b; }
.save { display: inline-block; margin-left: 6px; padding: 3px 7px; border-radius: 999px; background: rgba(251,191,36,.2); color: #fde68a; font-size: .72rem; font-weight: 700; }
.toggle button[aria-pressed="true"] .save { background: rgba(2,44,43,.15); color: #022c2b; }
.grid.g3 { display: grid; gap: 18px; }
@media (min-width: 900px) { .grid.g3 { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.price-card { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); }
.price-card.featured { border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, linear-gradient(135deg, #5eead4, #22d3ee, #fbbf24) border-box; border: 1.5px solid transparent; box-shadow: 0 30px 80px rgba(34,211,238,.18); }
@media (min-width: 900px) { .price-card.featured { transform: scale(1.04); } }
.price-card .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: linear-gradient(90deg, #fbbf24, #f97316); color: #1c1003; font-size: .78rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.price-card h3 { font-size: 1.5rem; margin-bottom: 2px; }
.price-card .tagline { color: var(--ink-3); font-size: .92rem; margin-bottom: 18px; }
.price { font: 700 2.6rem/1 var(--display); color: #fff; margin: 0 0 6px; }
.price small { font: 500 .9rem/1 var(--font); color: var(--ink-3); }
.price-note { color: var(--ink-3); font-size: .85rem; margin-bottom: 18px; }
.features { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; flex: 1; color: var(--ink-2); font-size: .95rem; }
.features li { padding-left: 26px; position: relative; }
.features li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 800; }
.price-card .btn-ghost { color: #fff; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); }
.price-card .btn-ghost:hover { background: rgba(94,234,212,.1); border-color: var(--teal); }
.price-card .btn-primary { color: #022c2b; background: linear-gradient(90deg, #5eead4, #22d3ee); box-shadow: 0 10px 34px rgba(34,211,238,.35); }
.price-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; margin: 34px 0 8px; color: var(--ink-2); font-weight: 600; }
.price-status { text-align: center; color: var(--ink-3); font-size: .8rem; }
.muted { color: var(--ink-3); } .small { font-size: .88rem; }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); transition: border-color .25s, background .25s; }
.faq details[open] { border-color: var(--line-2); background: rgba(45,212,191,.06); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font: 650 1.05rem/1.35 var(--display); color: #fff; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(45,212,191,.14); color: var(--teal); font-size: 1.2rem; transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-2); }

/* finale + modulo */
.final { overflow: hidden; background: radial-gradient(ellipse at 30% 50%, #06343a 0%, #031a20 45%, var(--bg) 80%); }
.final-scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.final-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .final-grid { grid-template-columns: 1.1fr .9fr; } }
.final-copy > p { color: var(--ink-2); font-size: 1.1rem; }
.glass { padding: 28px; border-radius: 22px; border: 1px solid var(--line-2); background: rgba(6,30,36,.72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.glass h3 { font-size: 1.5rem; }
.form { display: grid; gap: 14px; }
.row2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 650; color: #cdeae6; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(94,234,212,.25); background: rgba(2,13,18,.55); color: #fff; font: inherit; font-size: 1rem; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(94,234,212,.16); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); }
.check input { margin-top: 4px; accent-color: var(--teal); width: 18px; height: 18px; flex: none; }
.msg { display: none; padding: 12px 14px; border-radius: 12px; font-size: .92rem; }
.msg.show { display: block; }
.msg.ok { background: rgba(16,185,129,.15); border: 1px solid rgba(52,211,153,.45); color: #a7f3d0; }
.msg.err { background: rgba(127,29,29,.35); border: 1px solid rgba(248,113,113,.5); color: #fecaca; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 30px; color: var(--ink-3); font-size: .9rem; background: var(--bg); }
.footer .grid { display: grid; gap: 30px; }
@media (min-width: 860px) { .footer .grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 { font-size: 1rem; color: #fff; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: #fff; }
.family { margin: 34px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; }

/* animazioni */
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes word { from { opacity: 0; transform: translateY(10px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes shine { 0%, 62% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes jitter { from { margin-left: -6px; margin-top: 3px; } to { margin-left: 6px; margin-top: -4px; } }
@keyframes corepulse { 0%, 100% { box-shadow: 0 0 30px rgba(34,211,238,.5); } 50% { box-shadow: 0 0 60px rgba(34,211,238,.85); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.55); } 50% { box-shadow: 0 0 0 10px rgba(16,185,129,0); } }
@keyframes marquee { to { transform: translateX(calc(-100% - 14px)); } }

@media (max-width: 640px) {
  body.xp { font-size: 16px; }
  .section { padding: 80px 0; }
  .hero-fade { background: linear-gradient(0deg, var(--bg) 0%, rgba(2,13,18,.92) 52%, rgba(2,13,18,0) 64%); }
  .hero-inner { padding-top: 40vh; padding-bottom: 90px; }
  .brand-name small { display: none; }
  .btn-sm { white-space: nowrap; }
  .c-kpi b { font-size: 1.3rem; }
  .console-body { padding: 14px; }
  .chaos, .order { height: 200px; }
  .split-card.after.in .order span { transform: translate(calc(-50% + var(--dx) * .66), calc(-50% + var(--dy) * .9)); }
  .order::before { transform: scale(.66, .9); }
  .chaos span { transform: translate(calc(-50% + var(--x) * .72), calc(-50% + var(--y) * .9)) rotate(var(--r)); }
  .order span, .chaos span { font-size: .75rem; padding: 5px 10px; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line, .hero-lead, .hero-rotator, .hero-actions, .hero-proof { opacity: 1; transform: none; }
}

/* AI Orbyx nella sezione prezzi */
.ai-block { margin-top: 56px; padding: 32px; border-radius: 24px; border: 1px solid var(--line-2); background: radial-gradient(ellipse at 0% 0%, rgba(45,212,191,.14), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(251,191,36,.08), transparent 55%), rgba(4,22,28,.7); }
.ai-block__head { max-width: 760px; }
.ai-block__head h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.ai-block__head p:not(.kicker) { color: var(--ink-2); }
.ai-cards { display: grid; gap: 14px; margin: 22px 0 14px; }
@media (min-width: 800px) { .ai-cards { grid-template-columns: repeat(3, 1fr); } }
.ai-card { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
.ai-card h3 { font-size: 1.25rem; margin-bottom: 2px; }
.ai-card .price { font-size: 2rem; margin-top: 10px; }
.ai-card--main { border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, linear-gradient(135deg, #5eead4, #22d3ee, #fbbf24) border-box; border: 1.5px solid transparent; }
.ai-card--byok { background: rgba(255,255,255,.02); }
.ai-credit { color: #5eead4; font-weight: 650; margin: 0; }

/* ---------- telefono prima di tutto (27/09/2026) ---------- */
/* Niente scorrimento laterale: orbite e animazioni restano dentro lo schermo */
html, body.xp { overflow-x: hidden; }
@supports (overflow: clip) { html, body.xp { overflow-x: clip; } }
img, video, canvas, svg { max-width: 100%; }
.menu-btn { min-width: 44px; min-height: 44px; }
@media (max-width: 640px) {
  .hero-inner { padding-top: 44vh; padding-top: 44svh; padding-bottom: 72px; }
  .eyebrow { font-size: .72rem; letter-spacing: .08em; padding: 7px 12px; }
  .hero-title { font-size: clamp(2.3rem, 11vw, 2.9rem); }
  .section { padding: 64px 0; }
  .ai-block { margin-top: 40px; padding: 22px 16px; border-radius: 20px; }
  .ai-card { padding: 18px; }
  .price-card .badge { font-size: .75rem; }
  .scroll-cue { display: none; }
  input, select, textarea { font-size: 16px; } /* evita lo zoom automatico di iPhone */
  .btn { min-height: 48px; }
}
@media (max-width: 400px) {
  .btn-lg { padding: 0 18px; font-size: 1rem; }
}
