/* ============================================================
   HOLYTICS — Landing redesign
   Design system. Palette & gradient preserved from brand:
   mint #08FFB5 · blue #50C9F8 · gradient 135deg mint→blue
   ============================================================ */

:root {
  /* Brand */
  --mint: #08ffb5;
  --blue: #50c9f8;
  --grad-angle: 135deg;
  --grad: linear-gradient(var(--grad-angle), var(--mint), var(--blue));
  --grad-soft: linear-gradient(var(--grad-angle), rgba(8,255,181,.16), rgba(80,201,248,.16));

  /* Background */
  --bg-top: #393e4e;
  --bg-bottom: #05070b;

  /* Ink */
  --ink-0: #ffffff;
  --ink-1: #e8edf5;
  --ink-2: #b7c0cf;   /* slate-300-ish */
  --ink-3: #8a93a3;   /* slate-400-ish */
  --ink-4: #5c6473;

  /* Surfaces (glass) */
  --surface-1: rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.06);
  --surface-3: rgba(255,255,255,.09);
  --line-1: rgba(255,255,255,.10);
  --line-2: rgba(255,255,255,.16);
  --line-mint: rgba(8,255,181,.32);

  /* Type */
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Rhythm */
  --section-y: clamp(72px, 9vw, 132px);
  --gutter: clamp(20px, 5vw, 48px);
  --maxw: 1240px;
  --radius: 20px;
  --radius-lg: 26px;
  --radius-sm: 13px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* density tweak */
[data-density="compact"] { --section-y: clamp(52px, 6vw, 92px); }
[data-density="airy"]    { --section-y: clamp(96px, 12vw, 184px); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-1);
  background: var(--bg-bottom);
  line-height: 1.55;
  overflow-x: hidden;
}

/* Layered background: vertical gradient + two soft brand glows, fixed */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(80,201,248,.14), transparent 60%),
    radial-gradient(900px 650px at 8% 12%, rgba(8,255,181,.10), transparent 58%),
    linear-gradient(to bottom, var(--bg-top), var(--bg-bottom) 62%);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(1200px 800px at 50% 0%, #000, transparent 80%);
          mask-image: radial-gradient(1200px 800px at 50% 0%, #000, transparent 80%);
  pointer-events: none;
}

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

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: clamp(40px, 5vw, 72px); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 12px rgba(8,255,181,.7);
}
.eyebrow--plain::before { display: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.06; color: var(--ink-0); }
.display { font-size: clamp(40px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -.035em; }
.h2 { font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -.03em; }
.h3 { font-size: clamp(21px, 2.4vw, 28px); letter-spacing: -.02em; }
.lede { font-size: clamp(17px, 1.55vw, 21px); color: var(--ink-2); font-weight: 400; line-height: 1.6; }
.muted { color: var(--ink-3); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.measure { max-width: 56ch; }
.measure-sm { max-width: 44ch; }

/* ---------- Buttons ---------- */
.btn {
  --bh: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--bh); padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), opacity .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad); color: #04201a;
  box-shadow: 0 10px 30px -10px rgba(8,255,181,.55), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -12px rgba(8,255,181,.7), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost {
  background: var(--surface-2); color: var(--ink-0);
  border-color: var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--surface-3); border-color: var(--line-mint); transform: translateY(-2px); }
.btn-sm { --bh: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { --bh: 58px; padding: 0 30px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

/* store buttons */
.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  height: 54px; padding: 0 20px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2);
  color: var(--ink-0); text-decoration: none;
  transition: background .25s var(--ease), border-color .25s, transform .25s var(--ease);
}
.store-btn:hover { background: rgba(255,255,255,.08); border-color: var(--line-mint); transform: translateY(-2px); }
.store-btn svg { width: 22px; height: 22px; flex: none; }
.store-btn > span { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.store-btn .sb-top { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); line-height: 1.1; }
.store-btn .sb-main { font-size: 15px; font-weight: 600; line-height: 1.15; }

/* ---------- Glass card ---------- */
.card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--line-1);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.card-pad { padding: clamp(20px, 2.4vw, 30px); }
.card-hover:hover { background: var(--surface-2); border-color: var(--line-mint); transform: translateY(-4px); }

/* chip / badge */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid var(--line-mint);
  font-size: 13px; font-weight: 500; color: var(--ink-1);
}
.chip svg { width: 15px; height: 15px; color: var(--mint); }

/* icon tile */
.itile {
  width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center; flex: none;
  background: var(--grad-soft); border: 1px solid var(--line-mint);
  color: var(--mint);
}
.itile svg { width: 26px; height: 26px; }
.itile-solid { background: var(--grad); color: #04201a; border: none; box-shadow: 0 8px 22px -8px rgba(8,255,181,.6); }

/* divider hairline */
.hr { height: 1px; background: var(--line-1); border: 0; }

/* ---------- Reveal on scroll ----------
   Base state is ALWAYS visible (never hidden at rest), so content is
   guaranteed to paint even if CSS transitions don't advance.
   A gentle entrance plays only where the engine animates it. */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .anim-on .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .anim-on .reveal.in { opacity: 1; transform: none; }
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background .3s var(--ease), border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10,12,18,.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-1);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand span { font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--ink-0); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--ink-0); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* language switch */
.lang {
  display: inline-flex; align-items: center; padding: 3px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2);
}
.lang button {
  border: 0; background: transparent; color: var(--ink-3);
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em;
  padding: 6px 11px; border-radius: 999px; cursor: pointer; transition: color .2s, background .2s;
}
.lang button.active { color: #04201a; background: var(--grad); }

/* mobile menu button */
.menu-btn { display: none; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-0); width: 42px; height: 42px; border-radius: 12px; cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }

/* mobile drawer */
.drawer { display: none; }

@media (max-width: 940px) {
  .nav, .header-actions .btn, .header-actions .lang { display: none; }
  .menu-btn { display: grid; }
  .drawer {
    display: block; position: fixed; inset: 70px 0 auto 0; z-index: 55;
    background: rgba(10,12,18,.96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-1);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .drawer.open { transform: none; opacity: 1; pointer-events: auto; }
  .drawer-inner { padding: 18px var(--gutter) 26px; display: grid; gap: 6px; }
  .drawer a { color: var(--ink-1); text-decoration: none; font-size: 17px; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--line-1); }
  .drawer .row { display: flex; gap: 12px; margin-top: 14px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(120px, 16vh, 180px); padding-bottom: var(--section-y); position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-copy { display: grid; gap: 26px; }
.hero h1 { max-width: 14ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.hero-note svg { width: 16px; height: 16px; color: var(--mint); }

/* hero stat strip */
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 44px); padding-top: 8px; }
.hstat .n { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -.03em; }
.hstat .l { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }

/* hero visual — dashboard + phone composite */
.hero-visual { position: relative; }
.hv-glow { position: absolute; inset: -8% -6% -12% -6%; background: var(--grad); filter: blur(90px); opacity: .26; border-radius: 50%; z-index: 0; }
.hv-dash {
  position: relative; z-index: 1; width: 100%;
  border-radius: var(--radius); border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.7);
  overflow: hidden; background: #0a0d14;
}
.hv-phone {
  position: absolute; z-index: 2; width: 31%; right: -3%; bottom: -12%;
  border-radius: 24px; border: 1px solid var(--line-2); overflow: hidden;
  background: #0a0d14; box-shadow: 0 30px 56px -16px rgba(0,0,0,.72);
}
.hv-phone img { display: block; width: 100%; }
.hv-tag {
  position: absolute; z-index: 3; left: -14px; top: 16%;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 12px;
  background: rgba(10,13,20,.82); border: 1px solid var(--line-mint);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 12.5px; font-weight: 600; color: var(--ink-0);
  box-shadow: 0 16px 36px -16px rgba(0,0,0,.7);
}
.hv-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }

/* hero variants (tweakable) */
[data-hero="app"] .hv-dash { display: none; }
[data-hero="app"] .hv-phone { position: relative; width: 64%; right: auto; bottom: auto; margin: 0 auto; }
[data-hero="app"] .hv-tag { left: 4%; }
[data-hero="centered"] .hero-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
[data-hero="centered"] .hero h1, [data-hero="centered"] .hero .lede { max-width: 22ch; }
[data-hero="centered"] .hero-cta, [data-hero="centered"] .hero-stats { justify-content: center; }
[data-hero="centered"] .hero-visual { margin-top: 40px; max-width: 760px; }

/* logos / trust row */
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.trust .lbl { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.trust .logo-slot {
  height: 30px; min-width: 96px; padding: 0 14px; border-radius: 8px;
  display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 7px, rgba(255,255,255,.02) 7px 14px);
  border: 1px dashed var(--line-2);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; color: var(--ink-4);
}

/* ============================================================
   STAT BAND
   ============================================================ */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-1); border: 1px solid var(--line-1); border-radius: var(--radius); overflow: hidden; }
.statband .cell { background: rgba(10,13,20,.5); padding: clamp(22px,2.6vw,34px); }
.statband .n { font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; letter-spacing: -.03em; }
.statband .n .grad-text { display: inline; }
.statband .l { color: var(--ink-3); font-size: 14px; margin-top: 6px; max-width: 24ch; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.sec-head { display: grid; gap: 16px; max-width: 60ch; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ============================================================
   ECOSYSTEM
   ============================================================ */
.eco {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(18px, 3vw, 36px); align-items: stretch;
}
.eco-col { display: flex; }
.eco-card { padding: clamp(22px,2.6vw,32px); display: flex; flex-direction: column; gap: 18px; width: 100%; }
.eco-kicker { display: flex; align-items: center; gap: 12px; }
.eco-kicker .itile { width: 46px; height: 46px; border-radius: 13px; }
.eco-kicker .itile svg { width: 22px; height: 22px; }
.eco-kicker .role { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.eco-kicker .who { font-size: 18px; font-weight: 700; color: var(--ink-0); white-space: nowrap; }
.eco-shot { border-radius: 14px; border: 1px solid var(--line-1); overflow: hidden; background: #0a0d14; flex: 1; min-height: 232px; }
.eco-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.eco-list { margin-top: 4px; }
.eco-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.eco-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 14.5px; }
.eco-list svg { width: 18px; height: 18px; color: var(--mint); flex: none; margin-top: 2px; }
.eco-flow { display: grid; place-items: center; gap: 10px; align-content: center; }
.eco-flow .pipe { width: 1px; flex: 1; background: linear-gradient(var(--mint), var(--blue)); opacity: .5; }
.eco-flow .node {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10,13,20,.7); border: 1px solid var(--line-mint); color: var(--mint);
}
.eco-flow .node svg { width: 22px; height: 22px; }
.eco-flow .flbl { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); writing-mode: vertical-rl; }

@media (max-width: 900px) {
  .eco { grid-template-columns: 1fr; }
  .eco-flow { transform: rotate(90deg); height: 60px; }
  .eco-flow .flbl { writing-mode: horizontal-tb; }
  /* A colonna singola le card non devono più stirarsi. */
  .eco-shot { flex: none; min-height: 0; }
  /* Screenshot telefono (verticale): mostriamo l'INTERA schermata (leggibile),
     centrata, dimensionata per larghezza con un tetto d'altezza — niente ritaglio. */
  .eco-shot--phone { height: auto; display: flex; align-items: center; justify-content: center; padding: 16px 0; }
  .eco-shot--phone img { width: auto; height: auto; max-width: clamp(210px, 62vw, 290px); max-height: 540px; object-fit: contain; }
  /* Screenshot dashboard (orizzontale): banda compatta, il ritaglio va bene. */
  .eco-shot:not(.eco-shot--phone) { height: clamp(200px, 42vw, 280px); }
}

/* ============================================================
   FEATURE SPLIT (app / console deep dives)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-copy { display: grid; gap: 22px; }
.feat-list { display: grid; gap: 16px; }
.feat {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 16px; border-radius: var(--radius-sm);
  background: var(--surface-1); border: 1px solid var(--line-1);
  transition: background .3s, border-color .3s;
}
.feat:hover { background: var(--surface-2); border-color: var(--line-mint); }
.feat .itile { width: 46px; height: 46px; border-radius: 12px; }
.feat .itile svg { width: 22px; height: 22px; }
.feat h4 { font-size: 16.5px; margin-bottom: 4px; color: var(--ink-0); }
.feat p { margin: 0; font-size: 14px; color: var(--ink-3); }
.split-media { position: relative; }
.media-frame {
  position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line-2);
  overflow: hidden; box-shadow: 0 40px 90px -36px rgba(0,0,0,.7); background: #0a0d14;
}
.media-glow { position: absolute; inset: 6% 6% 6% 6%; background: var(--grad); filter: blur(80px); opacity: .22; z-index: -1; border-radius: 40%; }
.phone-media { width: min(320px, 78%); margin-inline: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }

/* real app screens in device frames */
.phone-duo { position: relative; height: clamp(520px, 62vw, 680px); }
.phone { position: absolute; border-radius: 36px; border: 1px solid var(--line-2); background: #0a0d14; overflow: hidden; box-shadow: 0 44px 84px -34px rgba(0,0,0,.78); }
.phone img { display: block; width: 100%; }
.phone-front { width: 52%; left: 3%; bottom: 0; z-index: 2; }
.phone-back { width: 46%; right: 1%; top: 0; z-index: 1; transform: rotate(6deg); opacity: .96; }
@media (max-width: 560px) {
  .phone-duo { height: clamp(440px, 128vw, 600px); }
  .phone-front { width: 60%; left: 0; }
  .phone-back { width: 50%; right: 0; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

/* Tablet portrait (split impilato ma largo): senza vincoli i mockup telefono
   diventano enormi e sbordano sulla sezione precedente. Limitiamo la larghezza
   del duo e centriamolo; l'altezza segue la larghezza reale del contenitore.
   NB: range dedicato per non toccare il mobile (≤560px, che ha già le sue regole). */
@media (min-width: 561px) and (max-width: 860px) {
  .phone-duo { max-width: 380px; margin-inline: auto; height: clamp(440px, 74vw, 520px); }
}

/* ============================================================
   GENERIC CARD GRIDS
   ============================================================ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.benefit { padding: 24px; display: grid; gap: 14px; align-content: start; }
.benefit h4 { font-size: 17px; }
.benefit p { margin: 0; font-size: 14px; color: var(--ink-3); }

/* steps (how console works) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.step { padding: 24px; display: grid; gap: 12px; align-content: start; }
.step .num {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--mint);
  background: var(--grad-soft); border: 1px solid var(--line-mint);
}
.step h4 { font-size: 17px; }
.step p { margin: 0; font-size: 14px; color: var(--ink-3); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* KPI grid */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { padding: 18px; display: flex; align-items: center; gap: 14px; }
.kpi .dot { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-mint); color: var(--mint); flex: none; }
.kpi .dot svg { width: 20px; height: 20px; }
.kpi .kn { font-size: 15px; font-weight: 600; color: var(--ink-0); }
.kpi .kd { font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr 1fr; } }

/* compare table (vs wearables) */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare .col { padding: clamp(22px,2.4vw,30px); display: grid; gap: 14px; align-content: start; }
.compare .col.win { border-color: var(--line-mint); background: linear-gradient(180deg, rgba(8,255,181,.06), rgba(255,255,255,.02)); }
.compare .ttl { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.compare ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.compare li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.compare li svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.compare li .x { color: var(--ink-4); }
.compare li .ck { color: var(--mint); }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }

/* ============================================================
   PRICING
   ============================================================ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { padding: clamp(24px,2.6vw,32px); display: grid; gap: 20px; align-content: start; }
.plan.feature { border-color: var(--line-mint); background: linear-gradient(180deg, rgba(8,255,181,.07), rgba(255,255,255,.025)); box-shadow: 0 30px 70px -34px rgba(8,255,181,.4); }
.plan-top { display: grid; gap: 8px; }
.plan-name { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 18px; font-weight: 700; }
.plan-name .tag { white-space: nowrap; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--grad); color: #04201a; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price .amt { font-size: clamp(30px,3.4vw,42px); font-weight: 700; letter-spacing: -.03em; }
.plan-price .per { font-size: 13px; color: var(--ink-3); }
.plan-desc { font-size: 14px; color: var(--ink-3); min-height: 40px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.plan li svg { width: 18px; height: 18px; color: var(--mint); flex: none; margin-top: 1px; }
@media (max-width: 920px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.qa { border: 1px solid var(--line-1); border-radius: var(--radius-sm); background: var(--surface-1); overflow: hidden; transition: border-color .3s, background .3s; }
.qa[open] { border-color: var(--line-mint); background: var(--surface-2); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 16.5px; font-weight: 600; color: var(--ink-0); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ic { width: 24px; height: 24px; flex: none; display: grid; place-items: center; color: var(--mint); transition: transform .3s var(--ease); }
.qa[open] summary .ic { transform: rotate(45deg); }
.qa .ans { padding: 0 22px 22px; color: var(--ink-3); font-size: 15px; line-height: 1.65; max-width: 70ch; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.finalcta {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line-mint);
  padding: clamp(40px, 6vw, 80px);
  background: linear-gradient(180deg, rgba(8,255,181,.08), rgba(80,201,248,.05));
  text-align: center; display: grid; gap: 24px; justify-items: center;
}
.finalcta::before { content: ""; position: absolute; inset: -40% 20% auto 20%; height: 60%; background: var(--grad); filter: blur(90px); opacity: .3; z-index: 0; }
.finalcta > * { position: relative; z-index: 1; }
.finalcta .hero-cta { justify-content: center; }

/* ============================================================
   MUSE CTA
   ============================================================ */
.muse-cta {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: .85fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  border-radius: var(--radius-lg); border: 1px solid var(--line-2);
  padding: clamp(28px, 4vw, 56px);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
}
.muse-cta-media { position: relative; display: grid; place-items: center; min-height: 180px; }
.muse-cta-media .media-glow { inset: 12% 10% 12% 10%; opacity: .26; }
.muse-cta-media img { position: relative; z-index: 1; width: min(280px, 84%); height: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)); }
.muse-cta-copy { display: grid; gap: 14px; }
.muse-cta-copy p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 48ch; }
@media (max-width: 720px) {
  .muse-cta { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .muse-cta-media { min-height: 0; }
  .muse-cta-copy { justify-items: center; }
  .muse-cta .hero-cta { justify-content: center; }
}

/* ============================================================
   OWNED-BY / SPORTHYPE
   ============================================================ */
.ownedby { border-top: 1px solid var(--line-1); }
.ownedby-inner {
  display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
  padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg);
  border: 1px solid var(--line-1); background: var(--surface-1);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.ownedby-copy { display: grid; gap: 8px; max-width: 50ch; }
.ownedby-copy .kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ownedby-copy p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.ownedby-logo { display: inline-flex; align-items: center; gap: 18px; flex: none; }
.ownedby-logo .sep { width: 1px; height: 46px; background: var(--line-2); }
.ownedby-logo a { display: inline-flex; align-items: center; }
.ownedby-logo img { height: 26px; width: auto; opacity: .9; transition: opacity .25s var(--ease); }
.ownedby-logo a:hover img { opacity: 1; }
.ownedby-logo .ext {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 13.5px; font-weight: 600; color: var(--ink-1); text-decoration: none;
  padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.ownedby-logo .ext:hover { border-color: var(--line-mint); background: var(--surface-3); transform: translateY(-1px); }
.ownedby-logo .ext svg { width: 15px; height: 15px; color: var(--mint); }
@media (max-width: 720px) {
  .ownedby-inner { flex-direction: column; align-items: flex-start; }
  .ownedby-logo .sep { display: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line-1); padding-block: clamp(48px,6vw,72px) 36px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand { display: grid; gap: 16px; align-content: start; max-width: 34ch; }
.foot-brand .brand span { font-size: 20px; }
.foot-col h5 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); margin: 0 0 16px; font-weight: 500; }
.foot-col a { display: block; color: var(--ink-2); text-decoration: none; font-size: 14.5px; padding: 5px 0; transition: color .2s; }
.foot-col a:hover { color: var(--ink-0); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line-1); color: var(--ink-4); font-size: 13px; }
.foot-bottom .socials { display: flex; gap: 10px; }
.foot-bottom .socials a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-1); color: var(--ink-2); transition: color .2s, border-color .2s; }
.foot-bottom .socials a:hover { color: var(--mint); border-color: var(--line-mint); }
.foot-bottom .socials svg { width: 17px; height: 17px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* hero responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; margin-top: 30px; }
  .hv-phone { width: 26%; }
  .statband { grid-template-columns: 1fr 1fr; }
  .statband .cell:nth-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 600px) {
  .statband { grid-template-columns: 1fr; }
}

/* i18n: hide the inactive language. JS sets [data-lang] on <html> */
[data-lang="it"] [data-en], [data-lang="en"] [data-it] { display: none; }

/* ============================================================
   RECOGNITION BAND (Juventus Forward)
   ============================================================ */
.reco {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 18px 24px; border-radius: var(--radius);
  border: 1px solid var(--line-mint);
  background: linear-gradient(180deg, rgba(8,255,181,.07), rgba(255,255,255,.02));
}
.reco-badge {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .03em; color: var(--ink-0);
  padding-right: 20px; border-right: 1px solid var(--line-2);
}
.reco-badge svg { width: 18px; height: 18px; color: var(--mint); }
.reco-text { flex: 1; min-width: 280px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.reco-text strong { color: var(--ink-0); font-weight: 600; }
@media (max-width: 560px) { .reco-badge { border-right: 0; padding-right: 0; } }

/* ============================================================
   VIDEO SHOWCASE
   ============================================================ */
.video-wrap { position: relative; max-width: 1080px; margin-inline: auto; }
.video-glow { position: absolute; inset: -6% 4% -10% 4%; background: var(--grad); filter: blur(90px); opacity: .26; z-index: 0; border-radius: 50%; }
.video-frame {
  position: relative; z-index: 1; aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--radius-lg); border: 1px solid var(--line-2); overflow: hidden;
  background: #000; box-shadow: 0 50px 110px -34px rgba(0,0,0,.78);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   MUSE CUTOUT
   ============================================================ */
.muse-stage { position: relative; display: grid; place-items: center; padding: clamp(16px, 4vw, 48px); }
.muse-stage .media-glow { inset: 14% 8% 14% 8%; opacity: .26; }
.muse-img { position: relative; z-index: 1; max-width: 540px; width: 100%; filter: drop-shadow(0 34px 46px rgba(0,0,0,.6)); }

/* ============================================================
   DEMO REQUEST MODAL + FORM
   ============================================================ */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,6,10,.74); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.modal-card {
  position: relative; z-index: 1; width: 100%; max-width: 540px; max-height: 92vh; overflow: auto;
  border-radius: var(--radius-lg); border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #0e1322, #0a0d14);
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.82);
}
.modal-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-1); color: var(--ink-2); cursor: pointer; transition: color .2s, border-color .2s; }
.modal-x:hover { color: var(--ink-0); border-color: var(--line-mint); }
.modal-x svg { width: 18px; height: 18px; }
.modal-body { padding: clamp(24px, 4vw, 40px); display: grid; gap: 6px; }
.modal-body .h3 { margin-top: 8px; }
.modal-body .sub { color: var(--ink-3); font-size: 14.5px; }
.demo-form { display: grid; gap: 15px; margin-top: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.field label .req { color: var(--mint); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink-0);
  background: var(--surface-1); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 12px 14px; outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--line-mint); background: var(--surface-2); box-shadow: 0 0 0 3px rgba(8,255,181,.12); }
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238a93a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 6l4 4 4-4'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 38px;
}
.field select option { background: #0e1322; color: var(--ink-0); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ff6b5b; }
.field .err { font-size: 12px; color: #ff8f82; display: none; }
.field.invalid .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { display: flex; gap: 11px; align-items: flex-start; }
.consent.invalid { color: #ff8f82; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--mint); flex: none; cursor: pointer; }
.consent label { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.consent label a { color: var(--mint); }
.form-alt { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 2px; }
.form-alt a { color: var(--mint); }

/* Honeypot anti-bot: fuori schermo, invisibile e non focusabile via tab */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* Cloudflare Turnstile */
/* Turnstile in modalità interaction-only: nessun badge fisso, compare solo se
   serve un challenge. Niente min-height per non lasciare spazio vuoto. */
#turnstileWidget { display: flex; justify-content: center; }
#turnstileWidget:empty { display: none; }

/* Messaggio d'errore del form */
.form-error { display: none; font-size: 13px; color: #ff8f82; text-align: center; margin: 2px 0 0; }
.form-error.show { display: block; }

/* Label e stato loading del bottone submit: testo + icona sempre in linea */
.btn-label, .btn-loading { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
#demoForm .btn-loading { display: none; }
#demoForm.is-sending .btn-label { display: none; }
#demoForm.is-sending .btn-loading { display: inline-flex; }
#demoForm.is-sending button[type="submit"] { opacity: .7; cursor: progress; pointer-events: none; }

.form-success { display: none; gap: 14px; justify-items: center; text-align: center; padding: 16px 0 8px; }
.form-success.show { display: grid; }
.form-success .ok { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-mint); color: var(--mint); }
.form-success .ok svg { width: 30px; height: 30px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
