/* ════════════════════════════════════════════════════════════
   GeniusEdu — Redesign prototype
   Design system: refined dark, liquid glass, editorial type
   ════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Sora:wght@300;400;500;600;700&display=swap');

/* ─── Tokens ─── */
:root {
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Sora', sans-serif;

  /* warm near-black, intentional (not default #000) */
  --bg: #0b0b0d;
  --bg-2: #0f0f12;
  --ink: #f5f4f2;
  --ink-dim: rgba(245, 244, 242, 0.60);
  --ink-faint: rgba(245, 244, 242, 0.40);
  --hair: rgba(255, 255, 255, 0.085);
  --hair-2: rgba(255, 255, 255, 0.14);

  /* brand */
  --yellow: #f9d523;
  --yellow-deep: #e6b800;
  --green: #3ecb7a;     /* Trade */
  --purple: #c065f0;    /* Social */
  --on-yellow: #100d02;

  /* glass */
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bg-2: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-blur: 22px;
  --nav-bg: rgba(16, 16, 20, 0.58);
  --nav-bg-scrolled: rgba(14, 14, 18, 0.72);

  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 13px;

  --shadow-soft: 0 1px 2px rgba(0,0,0,.3), 0 12px 40px -12px rgba(0,0,0,.55);
  --shadow-card: 0 1px 0 rgba(255,255,255,.04) inset, 0 1px 2px rgba(0,0,0,.4), 0 20px 50px -24px rgba(0,0,0,.7);

  --maxw: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ─── Light theme (tweakable) ─── */
[data-theme="light"] {
  --bg: #e9e7e0;
  --bg-2: #e0ddd4;
  --ink: #15140d;
  --ink-dim: rgba(21, 20, 13, 0.74);
  --ink-faint: rgba(21, 20, 13, 0.54);
  --hair: rgba(0, 0, 0, 0.13);
  --hair-2: rgba(0, 0, 0, 0.20);
  --glass-bg: rgba(255, 255, 255, 0.86);
  --glass-bg-2: rgba(255, 255, 255, 1);
  --glass-border: rgba(0, 0, 0, 0.12);
  --nav-bg: rgba(255, 255, 255, 0.74);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.88);
  --shadow-card: 0 1px 0 rgba(255,255,255,.7) inset, 0 1px 2px rgba(0,0,0,.08), 0 22px 48px -26px rgba(0,0,0,.30);
  --shadow-soft: 0 1px 2px rgba(0,0,0,.07), 0 16px 40px -16px rgba(0,0,0,.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Sfondo anche su <html> (non solo body): l'app imposta html #fafafa e in light
   creava una "cornice"/fasce attorno al body cream. Stesso var → switch uniforme. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle film grain for tactility (anti-flat) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .04;
  will-change: transform;
  transform: translateZ(0);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5' /%3E%3C/svg%3E");
}

::selection { background: var(--yellow); color: var(--on-yellow); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ─── Layout helpers ─── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }
section { position: relative; z-index: 2; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.022em; line-height: 1.06; }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.accent { color: var(--yellow); filter: drop-shadow(0 2px 18px rgba(249,213,35,.32)); }
.italic-ser { font-style: normal; }

/* ─── Glass primitive ─── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  position: relative;
}
/* top highlight (liquid edge) */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 38%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: 13px;
  transition: transform .18s var(--ease), background .2s, box-shadow .25s, opacity .2s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--yellow);
  color: var(--on-yellow);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 8px 22px -8px rgba(249,213,35,.5);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 12px 28px -8px rgba(249,213,35,.6); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--glass-bg-2); transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 15px; }
.btn-sm { padding: 9px 15px; font-size: 13.5px; border-radius: 11px; }

/* ─── Nav ─── */
.nav-spacer { height: 96px; }
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  padding: 18px 20px;
  transition: padding .4s var(--ease);
}
/* ── Liquid-glass bubble ── */
.nav-inner {
  width: 100%; max-width: 1060px;
  display: flex; align-items: center; gap: 16px;
  padding: 9px 10px 9px 22px;
  border-radius: 999px;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 1px 0 rgba(255,255,255,.16) inset,
    0 14px 40px -14px rgba(0,0,0,.5);
  position: relative;
  transform: translateZ(0);
  will-change: max-width;
  contain: layout paint;
  transition: max-width .42s var(--ease), padding .42s var(--ease), background .35s;
}
/* specular sheen — the liquid reflection */
.nav-inner::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background:
    radial-gradient(130% 90% at 10% -20%, rgba(255,255,255,.20), transparent 55%),
    radial-gradient(90% 70% at 105% 130%, rgba(255,255,255,.07), transparent 55%);
}
.nav-inner > * { position: relative; z-index: 1; }
.nav.scrolled .nav-inner {
  max-width: 880px;
  padding: 7px 9px 7px 20px;
  background: var(--nav-bg-scrolled);
}
.nav .btn { border-radius: 999px; }
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* brand logo image (uppercase wordmark + bulb) */
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 30px; width: auto; flex-shrink: 0; max-width: none; display: block; }
.brand-logo-lg { height: 36px; }
.brand .on-light { display: none; }
[data-theme="light"] .brand .on-dark { display: none; }
[data-theme="light"] .brand .on-light { display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 6px; position: relative; }
/* sliding liquid bubble behind nav links */
.nav-ind {
  position: absolute; top: 50%; left: 0; height: 34px; margin-top: -17px;
  border-radius: 999px; width: 0;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  opacity: 0; pointer-events: none; z-index: 0;
  will-change: transform, width;
  transition: transform .4s var(--ease), width .4s var(--ease), opacity .25s var(--ease);
}
[data-theme="light"] .nav-ind { background: rgba(0,0,0,.07); border-color: rgba(0,0,0,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 12px rgba(0,0,0,.08); }
.nav-link {
  font-size: 14.5px; font-weight: 500; color: var(--ink-dim);
  padding: 8px 14px; border-radius: 999px; transition: color .2s;
  position: relative; white-space: nowrap; z-index: 1;
}
.nav-link:hover { color: var(--ink); }
.nav-link .ws-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.lang-pill {
  font-size: 13px; font-weight: 600; color: var(--ink-dim);
  height: 38px; padding: 0 12px; border: 0; background: transparent; cursor: pointer;
  border-radius: 999px; transition: color .2s, background .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  line-height: 1;
}
.lang-pill svg { width: 15px; height: 15px; flex: none; }
.lang-pill .lc { display: inline-block; min-width: 18px; text-align: center; letter-spacing: .02em; }
.lang-pill:hover { color: var(--ink); background: rgba(255,255,255,.07); }
.lang-pill:focus { outline: none; }
.lang-pill:focus-visible { outline: none; background: rgba(255,255,255,.10); }
[data-theme="light"] .lang-pill:hover, [data-theme="light"] .nav-link:hover { background: rgba(0,0,0,.05); }
[data-theme="light"] .lang-pill:focus-visible { background: rgba(0,0,0,.07); }

/* theme toggle (sun/moon) */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center;
  color: var(--ink-dim); transition: color .2s, background .2s;
}
.theme-toggle:hover { color: var(--ink); background: rgba(255,255,255,.07); }
[data-theme="light"] .theme-toggle:hover { background: rgba(0,0,0,.05); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ic-sun { display: none; }
[data-theme="light"] .theme-toggle .ic-moon { display: none; }
[data-theme="light"] .theme-toggle .ic-sun { display: block; }

/* ─── Light-mode contrast: yellow text → deeper amber on light bg ─── */
[data-theme="light"] .num-cell:nth-child(1) .num-big,
[data-theme="light"] .flow-step .fn,
[data-theme="light"] .gc-pill,
[data-theme="light"] .tag-y,
[data-theme="light"] .mock-title .ic,
[data-theme="light"] .panel-pane[data-ws="lab"] .panel-tag,
[data-theme="light"] .panel-pane[data-ws="lab"] .tool-row .ti,
[data-theme="light"] .tcard .quote::before { color: #9a7400; }
[data-theme="light"][data-ws="lab"],
[data-theme="light"][data-ws="about"],
[data-theme="light"][data-ws="careers"],
[data-theme="light"][data-ws="partner"] { --ws: #9a7400; }
/* light-mode: darker accents so coloured text stays readable on the pale bg */
[data-theme="light"][data-ws="career"] { --ws: #1b5cc0; }
[data-theme="light"][data-ws="social"] { --ws: #b12fd0; }
/* light-mode: darken the cyan "founding / equity" accents so they're readable */
[data-theme="light"] .equity { --cy: #0e7ba0; }
[data-theme="light"] .track-tag.founding,
[data-theme="light"] .role.cy .ric,
[data-theme="light"] .role.cy .rcta,
[data-theme="light"] .role.cy .hot { color: #0e7ba0 !important; }
[data-theme="light"] .track-tag.founding { border-color: rgba(14,123,160,.4); }
[data-theme="light"] .gc-pill .coin,
[data-theme="light"] .eyebrow .dot { background: #c79a00; }
/* light-mode accent — true palette yellow, lifted with a dark shadow + thin contour */
/* hero rotating post-it word — works in dark & light (yellow bg, dark text) */
.rot{ display:inline-block; background:var(--yellow); color:var(--on-yellow); -webkit-text-fill-color:var(--on-yellow); padding:.04em .26em .1em; border-radius:13px; transform:rotate(-1.8deg); box-shadow:0 8px 22px -8px rgba(249,213,35,.5),0 1px 0 rgba(255,255,255,.4) inset; will-change:transform,opacity; }
[data-theme="light"] .rot{ box-shadow:0 8px 22px -10px rgba(180,140,0,.4),0 1px 0 rgba(255,255,255,.5) inset; }
.rot-out{ animation:rotOut .3s cubic-bezier(.4,0,1,1) forwards; }
.rot-in{ animation:rotIn .5s cubic-bezier(.34,1.42,.5,1) forwards; }
.accent-ws[data-rot]{ display:inline-block; transform:rotate(-1.8deg); will-change:transform,opacity; }
@keyframes rotOut{ to{ opacity:0; transform:translateY(-16px) rotate(-1.8deg); } }
@keyframes rotIn{ from{ opacity:0; transform:translateY(18px) rotate(-1.8deg); } to{ opacity:1; transform:translateY(0) rotate(-1.8deg); } }
[data-theme="light"] .mock-progress .bar,
[data-theme="light"] .switch-tabs { background: rgba(0,0,0,.06); }
[data-theme="light"] .nav.scrolled .nav-inner { box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 8px 30px -10px rgba(0,0,0,.18); }
.nav-toggle { display: none; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(9,9,12,.92);
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  padding: 16px 22px 28px;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
  overflow-y: auto;
}
[data-theme="light"] .mobile-menu { background: rgba(246,245,242,.95); }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mm-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 14px; }
.mm-head .brand-logo { height: 26px; }
.mm-close { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--ink); }
.mm-close svg { width: 22px; height: 22px; }
.mm-group { display: flex; flex-direction: column; margin-top: 12px; }
.mm-label { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); padding: 8px 4px 4px; }
.mobile-menu a.mm-link {
  font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 13px; padding: 13px 4px; border-bottom: 1px solid var(--hair);
}
.mobile-menu a.mm-link .d { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.mobile-menu a.mm-link .ar { margin-left: auto; width: 17px; height: 17px; color: var(--ink-faint); transition: transform .2s var(--ease); }
.mobile-menu a.mm-link:active .ar { transform: translateX(3px); }
.mm-foot { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.mm-foot .btn { width: 100%; }

/* ═══ HERO ═══ */
.hero { padding: 70px 0 60px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 3.7vw, 2.75rem);
  margin: 22px 0 0;
  line-height: 1.12;
}
.hero h1 .soft { color: var(--ink-dim); }
.hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  color: var(--ink-dim);
  max-width: 30ch;
  margin: 24px 0 0;
  line-height: 1.5;
}
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust { margin-top: 26px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-trust .tline { font-size: 13.5px; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; }
.hero-trust .tline svg { width: 15px; height: 15px; color: var(--green); }

/* hero product mock */
.hero-visual { position: relative; }
.mock-card {
  padding: 18px; border-radius: var(--radius-lg);
}
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mock-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 9px; }
.mock-title .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(249,213,35,.14); color: var(--yellow); }
.mock-title .ic svg { width: 15px; height: 15px; }
.gc-pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 20px; background: rgba(249,213,35,.12); color: var(--yellow); border: 1px solid rgba(249,213,35,.2); }
.gc-pill .coin { width: 13px; height: 13px; border-radius: 50%; background: var(--yellow); }
.mock-rows { display: flex; flex-direction: column; gap: 9px; }
.mock-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 13px; border-radius: 13px;
  background: rgba(255,255,255,.035); border: 1px solid var(--hair);
}
[data-theme="light"] .mock-row { background: rgba(0,0,0,.025); }
.mock-row .chk { width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid var(--hair-2); flex-shrink: 0; display: grid; place-items: center; }
.mock-row.done .chk { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.mock-row.done .chk svg { width: 12px; height: 12px; }
.mock-row .txt { flex: 1; min-width: 0; }
.mock-row .txt b { font-size: 13.5px; font-weight: 600; display: block; }
.mock-row.done .txt b { color: var(--ink-faint); text-decoration: line-through; }
.mock-row .txt span { font-size: 11.5px; color: var(--ink-faint); }
.mock-row .tag { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 7px; flex-shrink: 0; }
.tag-y { background: rgba(249,213,35,.14); color: var(--yellow); }
.tag-p { background: rgba(192,101,240,.16); color: var(--purple); }
.tag-g { background: rgba(62,203,122,.15); color: var(--green); }
.mock-progress { margin-top: 16px; }
.mock-progress .bar { height: 7px; border-radius: 20px; background: rgba(255,255,255,.07); overflow: hidden; }
.mock-progress .bar i { display: block; height: 100%; width: 68%; border-radius: 20px; background: linear-gradient(90deg, var(--yellow-deep), var(--yellow)); }
.mock-progress .pl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-faint); margin-top: 8px; }

/* floating mini badge near mock */
.float-badge {
  position: absolute; left: -26px; bottom: 40px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px;
}
.float-badge .av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--yellow)); flex-shrink: 0; }
.float-badge b { font-size: 13px; font-family: var(--font-display); display: block; }
.float-badge span { font-size: 11px; color: var(--ink-faint); }

/* ═══ Trust / atenei ═══ */
.atenei { padding: 18px 0 8px; }
.atenei .lbl { text-align: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 22px; }
.atenei-mask { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.atenei-track { display: flex; align-items: center; gap: 42px; width: max-content; animation: ateneiScroll 60s linear infinite; }
.atenei-mask:hover .atenei-track { animation-play-state: paused; }
.atenei-track .uni { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink-dim); opacity: .72; white-space: nowrap; flex-shrink: 0; transition: opacity .2s, color .2s; }
.atenei-track .uni:hover { opacity: 1; color: var(--ink); }
@keyframes ateneiScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .atenei-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; } }

/* ═══ Numbers band ═══ */
.numbers { padding: 80px 0; }
.numbers-head { max-width: 620px; margin-bottom: 52px; }
.numbers-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.numbers-head p { color: var(--ink-dim); margin-top: 16px; font-size: 1.08rem; max-width: 52ch; }
.numbers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.num-cell { padding: 4px 32px; border-left: 1px solid var(--hair); }
.num-cell:first-child { border-left: none; padding-left: 0; }
.num-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.8rem, 5vw, 3.9rem); letter-spacing: -0.04em; line-height: 1; }
.num-cell:nth-child(1) .num-big { color: var(--yellow); }
.num-cell:nth-child(2) .num-big { color: var(--purple); }
.num-cell:nth-child(3) .num-big { color: var(--green); }
.num-desc { margin-top: 14px; font-size: 14.5px; color: var(--ink-dim); line-height: 1.45; max-width: 26ch; }
.num-src { margin-top: 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }

/* ═══ Trinity switcher ═══ */
.trinity { padding: 96px 0; }
.sec-head { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-top: 16px; }
.sec-head p { color: var(--ink-dim); margin-top: 16px; font-size: 1.08rem; }

.switch-tabs {
  display: inline-flex; gap: 4px; padding: 5px;
  border-radius: 16px; margin: 0 auto 40px; position: relative;
}
.switch-tabs { background: var(--glass-bg); border: 1px solid var(--glass-border); }
.switch-tab {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 22px; border-radius: 12px;
  white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--ink-dim); transition: color .25s; position: relative; z-index: 2;
}
.switch-tab .sw-dot { width: 8px; height: 8px; border-radius: 50%; }
.switch-tab[data-ws="lab"] .sw-dot { background: var(--yellow); }
.switch-tab[data-ws="social"] .sw-dot { background: var(--purple); }
.switch-tab[data-ws="trade"] .sw-dot { background: var(--green); }
.switch-tab[data-ws="career"] .sw-dot { background: #2f80ed; }
.switch-tab.active { color: var(--ink); }
.switch-ind {
  position: absolute; top: 5px; left: 5px; z-index: 1;
  border-radius: 12px; background: var(--glass-bg-2);
  border: 1px solid var(--glass-border);
  transition: transform .4s var(--ease), width .4s var(--ease);
}
.tabs-center { display: flex; justify-content: center; }

.panel { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.panel-wrap { position: relative; }
.panel-pane { display: none; }
.panel-pane.active { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.panel-pane.anim { animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.panel-tag { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
.panel-tag svg { width: 16px; height: 16px; flex-shrink: 0; }
.panel-pane[data-ws="lab"] .panel-tag { background: rgba(249,213,35,.12); color: var(--yellow); border: 1px solid rgba(249,213,35,.22); }
.panel-pane[data-ws="social"] .panel-tag { background: rgba(192,101,240,.14); color: var(--purple); border: 1px solid rgba(192,101,240,.24); }
.panel-pane[data-ws="trade"] .panel-tag { background: rgba(62,203,122,.13); color: var(--green); border: 1px solid rgba(62,203,122,.24); }
.panel-pane[data-ws="career"] .panel-tag { background: rgba(47,128,237,.14); color: #2f80ed; border: 1px solid rgba(47,128,237,.26); }
.panel-text .panel-tag { margin-bottom: 6px; }
.panel h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 46px 0 0; line-height: 1.1; }
.panel-desc { color: var(--ink-dim); margin: 16px 0 24px; font-size: 1.05rem; line-height: 1.5; max-width: 40ch; }
.panel-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.tool-row { display: flex; align-items: flex-start; gap: 13px; padding: 13px 15px; border-radius: 14px; background: var(--glass-bg); border: 1px solid var(--hair); transition: background .2s, transform .2s; }
.tool-row:hover { background: var(--glass-bg-2); transform: translateX(3px); }
.tool-row .ti { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.tool-row .ti svg { width: 17px; height: 17px; }
.panel-pane[data-ws="lab"] .tool-row .ti { background: rgba(249,213,35,.12); color: var(--yellow); }
.panel-pane[data-ws="social"] .tool-row .ti { background: rgba(192,101,240,.13); color: var(--purple); }
.panel-pane[data-ws="trade"] .tool-row .ti { background: rgba(62,203,122,.12); color: var(--green); }
.panel-pane[data-ws="career"] .tool-row .ti { background: rgba(47,128,237,.13); color: #2f80ed; }
.tool-row b { font-size: 14.5px; font-weight: 600; display: block; }
.tool-row span { font-size: 12.5px; color: var(--ink-faint); }
.panel-cta { display: inline-flex; }
.panel-pane[data-ws="lab"] .panel-cta { background: var(--yellow); color: var(--on-yellow); }
.panel-pane[data-ws="social"] .panel-cta { background: var(--purple); color: #fff; }
.panel-pane[data-ws="trade"] .panel-cta { background: var(--green); color: #06210f; }
.panel-pane[data-ws="career"] .panel-cta { background: #2f80ed; color: #fff; }

/* panel visuals */
.pv { padding: 22px; border-radius: var(--radius-lg); min-height: 380px; display: flex; flex-direction: column; }
.pv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.pv-chip { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 18px; background: var(--glass-bg-2); border: 1px solid var(--hair); color: var(--ink-dim); }

/* lab visual: generation cards */
.gen-list { display: flex; flex-direction: column; gap: 11px; }
.gen-item { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--hair); }
[data-theme="light"] .gen-item { background: rgba(0,0,0,.025); }
.gen-item .gh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.gen-item .gh b { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.gen-item .gh b svg { width: 15px; height: 15px; color: var(--yellow); }
.gen-item .lines { display: flex; flex-direction: column; gap: 6px; }
.gen-item .lines i { display: block; height: 7px; border-radius: 6px; background: rgba(255,255,255,.08); }
[data-theme="light"] .gen-item .lines i { background: rgba(0,0,0,.07); }
.gen-item .lines i:nth-child(1) { width: 100%; } .gen-item .lines i:nth-child(2) { width: 82%; } .gen-item .lines i:nth-child(3) { width: 64%; }

/* social visual: feed */
.feed-item { display: flex; gap: 12px; padding: 13px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--hair); margin-bottom: 10px; }
[data-theme="light"] .feed-item { background: rgba(0,0,0,.025); }
.feed-item .fav { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--purple), #7d3fd6); }
.feed-item .fb b { font-size: 13px; font-weight: 600; } .feed-item .fb .meta { font-size: 11px; color: var(--ink-faint); }
.feed-item .fb p { font-size: 12.5px; color: var(--ink-dim); margin-top: 6px; line-height: 1.4; }
.feed-item .react { display: flex; gap: 12px; margin-top: 9px; font-size: 11.5px; color: var(--ink-faint); }
.feed-item .react span { display: inline-flex; align-items: center; gap: 4px; } .feed-item .react svg { width: 13px; height: 13px; }

/* trade visual: chart */
.chart-card { flex: 1; display: flex; flex-direction: column; }
.chart-stat { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.chart-stat .v { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; letter-spacing: -.03em; }
.chart-stat .d { font-size: 13px; font-weight: 600; color: var(--green); }
.chart-sub { font-size: 12px; color: var(--ink-faint); margin-bottom: 18px; }
.spark { flex: 1; min-height: 130px; }
.holds { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.hold { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 11px; background: rgba(255,255,255,.04); border: 1px solid var(--hair); }
[data-theme="light"] .hold { background: rgba(0,0,0,.025); }
.hold .hi { width: 28px; height: 28px; border-radius: 8px; background: rgba(62,203,122,.14); color: var(--green); display: grid; place-items: center; font-size: 12px; font-weight: 700; font-family: var(--font-display); }
.hold b { font-size: 13px; flex: 1; } .hold .hv { font-size: 12.5px; color: var(--ink-dim); } .hold .hd { font-size: 12px; font-weight: 600; color: var(--green); }

/* ═══ Bento ═══ */
.bento-sec { padding: 30px 0 96px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 188px; gap: 16px; }
.tile { padding: 22px; border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; position: relative; transition: transform .25s var(--ease), background .25s; }
.tile:hover { transform: translateY(-3px); }
.tile .t-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(249,213,35,.12); color: var(--yellow); margin-bottom: auto; }
.tile .t-ic svg { width: 20px; height: 20px; }
.tile h4 { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-top: 16px; }
.tile p { font-size: 13px; color: var(--ink-dim); margin-top: 6px; line-height: 1.45; }
.tile.span2 { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.tile-feature { grid-column: span 2; grid-row: span 2; background: linear-gradient(155deg, rgba(249,213,35,.10), var(--glass-bg) 55%); }
.tile-feature h4 { font-size: 23px; margin-top: 20px; }
.tile-feature p { font-size: 14.5px; max-width: 34ch; }
.tile-feature .est { margin-top: 18px; display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--hair); font-size: 13px; font-weight: 600; align-self: flex-start; }
.tile-feature .est .coin { width: 15px; height: 15px; border-radius: 50%; background: var(--yellow); }
.tile-feature .est b { color: var(--yellow); }

/* ═══ Accessibility ═══ */
.a11y { padding: 96px 0; }
.a11y-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.a11y h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 16px 0; }
.a11y p.lead { color: var(--ink-dim); font-size: 1.08rem; line-height: 1.55; }
.a11y-partner { margin-top: 16px; font-size: 13.5px; color: var(--ink-dim); }
.a11y-partner svg { display: inline-block; width: 16px; height: 16px; color: var(--ink-faint); vertical-align: -3px; margin-right: 6px; }
.a11y-partner a { color: var(--yellow); font-weight: 600; }
[data-theme="light"] .a11y-partner a { color: var(--yellow-deep); }
.a11y-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 32px; margin-top: 28px; }
.af { padding: 22px 2px 4px; border-top: 1px solid var(--hair); }
.af .afi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 13px; }
.af .afi svg { width: 17px; height: 17px; }
.af b { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; display: block; }
.af span { font-size: 12.5px; color: var(--ink-faint); line-height: 1.4; display: block; margin-top: 4px; }

/* live DSA demo */
.dsa-demo { padding: 26px; border-radius: var(--radius-lg); }
.dsa-toggle-row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--hair); }
.dsa-toggle-row b { font-family: var(--font-display); font-size: 15px; display: flex; align-items: center; gap: 9px; }
.dsa-toggle-row b svg { width: 18px; height: 18px; color: var(--yellow); }
.tgl { width: 46px; height: 27px; border-radius: 20px; background: var(--hair-2); position: relative; transition: background .25s; flex-shrink: 0; }
.tgl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.tgl.on { background: var(--yellow); }
.tgl.on::after { transform: translateX(19px); }
.dsa-sample h5 { font-family: var(--font-display); font-size: 16px; margin-bottom: 10px; transition: all .3s; }
.dsa-sample p { font-size: 14.5px; color: var(--ink-dim); transition: all .3s; }
.dsa-sample.dsa-on { font-family: 'Comic Sans MS', 'Hanken Grotesk', sans-serif; letter-spacing: 0.06em; word-spacing: 0.16em; }
.dsa-sample.dsa-on p { line-height: 2.0; color: var(--ink); }
.dsa-sample.dsa-on h5 { letter-spacing: 0.05em; }
.dsa-note { font-size: 12px; color: var(--ink-faint); margin-top: 16px; }

/* ═══ Why / editorial info (no cards) ═══ */
.why { padding: 90px 0; }
.why-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 64px; align-items: center; }
.why-lead h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 16px 0 20px; }
.why-lead p { color: var(--ink-dim); font-size: 1.08rem; line-height: 1.6; margin-bottom: 28px; max-width: 46ch; }
.why-list { display: flex; flex-direction: column; }
.erow { display: flex; gap: 20px; padding: 24px 0; border-top: 1px solid var(--hair); align-items: flex-start; }
.erow:first-child { border-top: none; padding-top: 0; }
.erow:last-child { padding-bottom: 0; }
.erow .eic { width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center; }
.erow .eic svg { width: 22px; height: 22px; }
.erow h4 { font-family: var(--font-display); font-weight: 700; font-size: 18.5px; margin-bottom: 7px; letter-spacing: -.01em; }
.erow p { font-size: 14.5px; color: var(--ink-dim); line-height: 1.55; max-width: 46ch; }
.erow .etag { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--ink-faint); }
@media (max-width: 1000px) {
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ═══ Testimonials ═══ */
.testi { padding: 30px 0 96px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard { padding: 26px; border-radius: var(--radius); display: flex; flex-direction: column; }
.tcard .quote { font-size: 16px; line-height: 1.55; color: var(--ink); flex: 1; letter-spacing: -.012em; }
.tcard .quote::before { content: "“"; font-family: var(--font-display); font-size: 44px; color: var(--yellow); line-height: 0; display: block; height: 22px; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.tcard .who .av { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; }
.tcard .who b { font-family: var(--font-display); font-size: 14px; display: block; }
.tcard .who span { font-size: 12.5px; color: var(--ink-faint); }
.tcard .stars { display: flex; gap: 2px; margin-bottom: 14px; }
.tcard .stars svg { width: 15px; height: 15px; color: var(--yellow); }

/* ═══ Partner band ═══ */
.partner { padding: 0 0 96px; }
.partner-card { padding: 56px; border-radius: var(--radius-lg); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; overflow: hidden; position: relative; }
.partner-card .eyebrow .dot { background: var(--purple); }
.partner-card h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin: 16px 0; }
.partner-card p { color: var(--ink-dim); font-size: 1.05rem; line-height: 1.55; margin-bottom: 26px; max-width: 44ch; }
.partner-stats { display: flex; flex-direction: column; gap: 14px; }
.pstat { padding: 18px 22px; border-radius: 16px; background: var(--glass-bg); border: 1px solid var(--hair); }
.pstat .pv2 { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; letter-spacing: -.03em; }
.pstat .pl2 { font-size: 13px; color: var(--ink-dim); margin-top: 2px; }

/* ═══ Final CTA ═══ */
.cta { padding: 60px 0 110px; }
.cta-card { padding: 72px 48px; border-radius: var(--radius-lg); text-align: center; overflow: hidden; position: relative; }
.cta-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(249,213,35,.14), transparent 70%); pointer-events: none; }
.cta-card h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); position: relative; }
.cta-card p { color: var(--ink-dim); font-size: 1.12rem; margin: 20px auto 32px; max-width: 46ch; position: relative; }
.cta-card .hero-cta { justify-content: center; }
.cta-fine { font-size: 13px; color: var(--ink-faint); margin-top: 20px; position: relative; }

/* ═══ Footer ═══ */
footer { border-top: 1px solid var(--hair); padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.foot-brand img { height: 26px; margin-bottom: 18px; }
.foot-brand p { font-size: 14px; color: var(--ink-dim); max-width: 30ch; line-height: 1.55; }
.foot-soc { display: flex; gap: 10px; margin-top: 20px; }
.foot-soc a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--glass-bg); border: 1px solid var(--hair); color: var(--ink-dim); transition: color .2s, background .2s; }
.foot-soc a:hover { color: var(--ink); background: var(--glass-bg-2); }
.foot-soc svg { width: 17px; height: 17px; }
.foot-col h6 { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.foot-col a { display: block; font-size: 14px; color: var(--ink-dim); padding: 6px 0; transition: color .2s; }
.foot-col a:hover { color: var(--ink); }
.foot-col a .wd { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 7px; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hair); flex-wrap: wrap; gap: 14px; }
.foot-bottom p { font-size: 13px; color: var(--ink-faint); }
.foot-bottom .fl { display: flex; gap: 22px; }
.foot-bottom .fl a { font-size: 13px; color: var(--ink-faint); transition: color .2s; }
.foot-bottom .fl a:hover { color: var(--ink); }

/* ═══ Workflow (editorial 6-step) ═══ */
.flow { padding: 20px 0 96px; }
.flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 30px; }
.flow-step { padding: 28px 0 26px; border-top: 1px solid var(--hair); }
.flow-step .fn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: .82rem; letter-spacing: .14em; color: var(--yellow); }
.flow-step .fn::after { content: ""; flex: 1; height: 1px; background: var(--hair); min-width: 18px; }
.flow-step h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; margin: 16px 0 9px; letter-spacing: -.01em; }
.flow-step p { font-size: 14px; color: var(--ink-dim); line-height: 1.55; max-width: 32ch; }
@media (max-width: 900px) { .flow-grid { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
@media (max-width: 560px) { .flow-grid { grid-template-columns: 1fr; } }

/* ═══ Minimal footer ═══ */
.fmin-top { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid var(--hair); }
.fmin-logo img { height: 26px; width: auto; display: block; }
.fmin-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.fmin-nav a { font-family: var(--font-body); font-size: 14.5px; font-weight: 500; color: var(--ink-dim); transition: color .2s; }
.fmin-nav a:hover { color: var(--ink); }
.fmin-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.fmin-bottom .cc { font-size: 13px; color: var(--ink-faint); }
.fmin-soc { display: flex; gap: 10px; }
.fmin-soc a { width: 38px; height: 38px; border-radius: 50%; background: var(--glass-bg); border: 1px solid var(--hair); display: grid; place-items: center; color: var(--ink-dim); transition: color .2s, background .2s, border-color .2s, transform .2s var(--ease); }
.fmin-soc a:hover { color: var(--on-yellow); background: var(--yellow); border-color: var(--yellow); transform: translateY(-2px); }
.fmin-soc svg { width: 17px; height: 17px; }
.fmin-legal { display: flex; gap: 20px; }
.fmin-legal a { font-size: 13px; color: var(--ink-faint); transition: color .2s; }
.fmin-legal a:hover { color: var(--ink); }
@media (max-width: 700px) { .fmin-top { flex-direction: column; align-items: flex-start; gap: 16px; } .fmin-bottom { flex-direction: column; align-items: flex-start; } }

/* ═══ Reveal animation — visible by default, hidden only when JS active ═══ */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto; }
}

/* ════ Responsive ════ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; }
  .panel-pane.active, .panel { grid-template-columns: 1fr; gap: 32px; }
  .a11y-grid { grid-template-columns: 1fr; gap: 36px; }
  .partner-card { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .tile-feature { grid-column: span 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: span 2; }
}
@media (max-width: 960px) {
  .nav-links, .nav-right .lang-pill, .nav-right .btn-ghost { display: none; }
  .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; }
  .nav-toggle svg { width: 22px; height: 22px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .numbers-grid { grid-template-columns: 1fr; gap: 28px; }
  .num-cell { border-left: none; border-top: 1px solid var(--hair); padding: 24px 0 0; }
  .num-cell:first-child { border-top: none; padding-top: 0; }
  .testi-grid { grid-template-columns: 1fr; }
  .a11y-feats { grid-template-columns: 1fr; }
  .cta-card { padding: 48px 26px; }
  .partner-card { padding: 30px; }
  /* Mobile: nasconde il prefisso "Genius" (text node → font-size:0) e mostra la
     label workspace (.lbl-long) + il pallino colorato, così i 4 tab restano distinti. */
  .switch-tab { padding: 10px 7px; font-size: 0; gap: 6px; }
  .switch-tab .lbl-long { display: inline; font-size: 13px; }
  .hero { padding: 40px 0; }
  .float-badge { left: 8px; }
}
@media (max-width: 480px) {
  .bento { grid-template-columns: 1fr; }
  .tile-feature, .tile.span2 { grid-column: span 1; }
  .switch-tab { padding: 9px 5px; gap: 5px; }
  .switch-tab .lbl-long { font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════
   Hero — minimal/modern · interactive particles · AI Lab mockup
   ═══════════════════════════════════════════════════════ */
.hero { overflow-x: clip; overflow-y: visible; padding-top: 84px; }
.hero-particles { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-aura { position: absolute; top: -180px; right: -140px; z-index: 0; pointer-events: none; width: 620px; height: 560px; background: radial-gradient(circle at 60% 40%, rgba(249,213,35,.14), transparent 60%); filter: blur(130px); }
.hero-aura::after { content: ""; position: absolute; width: 440px; height: 440px; left: -340px; top: 220px; background: radial-gradient(circle, rgba(192,101,240,.10), transparent 66%); filter: blur(130px); }
[data-theme="light"] .hero-aura { opacity: .4; }
.hero .hero-grid { position: relative; z-index: 2; }

/* refined entrance — blur-in stagger (delays set inline) */
.js .hero-rise { opacity: 0; transform: translateY(26px); filter: blur(10px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.js .hero-rise.in { opacity: 1; transform: none; filter: blur(0); }

.hero-tilt { position: relative; transform-style: preserve-3d; transition: transform .35s var(--ease); will-change: transform; }

/* shared spinner / keyframes */
.gc-spin { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid rgba(249,213,35,.25); border-top-color: var(--yellow); animation: gcspin .85s linear infinite; }
@keyframes gcspin { to { transform: rotate(360deg); } }
@keyframes gcsweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes gcblink { 50% { opacity: 0; } }

/* ── Genius Lab · AI card ── */
.lab-card { padding: 18px; border-radius: var(--radius-lg); }
.lab-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.lab-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.lab-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(249,213,35,.13); color: var(--yellow); }
.lab-ic svg { width: 16px; height: 16px; }

.lab-source { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--hair); margin-bottom: 14px; }
[data-theme="light"] .lab-source { background: rgba(0,0,0,.025); }
.lab-source .ls-ic { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--ink-dim); }
[data-theme="light"] .lab-source .ls-ic { background: rgba(0,0,0,.05); }
.lab-source .ls-ic svg { width: 16px; height: 16px; }
.lab-source .ls-meta { flex: 1; min-width: 0; }
.lab-source .ls-meta b { font-size: 13.5px; font-weight: 600; display: block; }
.lab-source .ls-meta span { font-size: 11.5px; color: var(--ink-faint); }
.lab-source .ls-tick { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--green); color: #04140b; }
.lab-source .ls-tick svg { width: 12px; height: 12px; }

.lab-outputs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.lab-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 11px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.04); border: 1px solid var(--hair); color: var(--ink-dim); }
[data-theme="light"] .lab-chip { background: rgba(0,0,0,.025); }
.lab-chip .lc-ic { width: 16px; height: 16px; border-radius: 5px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--ink-faint); }
.lab-chip .lc-ic svg { width: 10px; height: 10px; }
.lab-chip .lc-gc { font-size: 11px; color: var(--ink-faint); font-weight: 700; }
.lab-chip.on { background: rgba(249,213,35,.1); border-color: rgba(249,213,35,.28); color: var(--ink); }
.lab-chip.on .lc-ic { background: var(--yellow); color: var(--on-yellow); }
.lab-chip.on .lc-gc { color: var(--yellow); }
[data-theme="light"] .lab-chip.on .lc-gc { color: #9a7400; }

.lab-stream { padding: 14px; border-radius: 14px; background: rgba(249,213,35,.05); border: 1px solid rgba(249,213,35,.14); }
[data-theme="light"] .lab-stream { background: rgba(249,213,35,.12); }
.lab-stream-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.lsh-l { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.lsh-ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(249,213,35,.13); color: var(--yellow); flex: none; }
.lsh-ic svg { width: 12px; height: 12px; }
.lab-stream-head .gc-spin { display: none; margin-left: auto; }
.lab-done { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--green); }
.lab-done svg { width: 12px; height: 12px; }
.lab-typed { font-size: 12px; line-height: 1.55; color: var(--ink-dim); min-height: 1.5em; }
.lab-typed .cur { display: inline-block; width: 2px; height: 1em; background: var(--yellow); margin-left: 1px; vertical-align: -2px; animation: gcblink .9s step-end infinite; }
.lab-shimmer { display: none; flex-direction: column; gap: 6px; margin-top: 8px; }
.lab-shimmer i { height: 7px; border-radius: 5px; background: linear-gradient(90deg, rgba(255,255,255,.06) 25%, rgba(249,213,35,.20) 37%, rgba(255,255,255,.06) 63%); background-size: 300% 100%; animation: gcsweep 1.3s linear infinite; }
.lab-shimmer i:nth-child(1) { width: 90%; } .lab-shimmer i:nth-child(2) { width: 72%; }
[data-theme="light"] .lab-shimmer i { background: linear-gradient(90deg, rgba(0,0,0,.04) 25%, rgba(249,213,35,.32) 37%, rgba(0,0,0,.04) 63%); background-size: 300% 100%; }

/* floating XP chip */
.float-chip { position: absolute; left: -28px; bottom: -18px; display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 14px; }
.float-chip .fc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: fcpulse 2.2s ease-in-out infinite; }
@keyframes fcpulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.68); } }
.float-chip small { font-size: 12px; color: var(--ink-dim); white-space: nowrap; }
.float-chip small b { font-family: var(--font-display); font-weight: 800; color: var(--ink); }

@media (max-width: 760px) { .float-chip { left: 6px; } .hero-tilt { transform: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .gc-spin, .lab-shimmer i, .lab-typed .cur, .float-chip .fc-dot { animation: none !important; }
  .hero-tilt { transform: none !important; }
  .js .hero-rise { transition: none; }
}

/* ═══════════════════════════════════════════════════════
   Ecosystem mockups (Trinity) — app-faithful, animated
   ═══════════════════════════════════════════════════════ */
.pv .mk-kick { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 8px; }

/* Lab — flashcard flip + quiz */
.mk-flash { perspective: 1100px; margin-bottom: 12px; }
.mk-flash-in { position: relative; transform-style: preserve-3d; min-height: 120px; }
.mk-flash[data-flip] .mk-flash-in { animation: mkflip 7s ease-in-out infinite; }
@keyframes mkflip { 0%,38% { transform: rotateY(0); } 50%,88% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
.mk-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--hair); display: flex; flex-direction: column; }
[data-theme="light"] .mk-face { background: rgba(0,0,0,.025); }
.mk-front b { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.32; }
.mk-back { transform: rotateY(180deg); background: rgba(249,213,35,.07); border-color: rgba(249,213,35,.2); }
.mk-back p { font-size: 13.5px; color: var(--ink-dim); line-height: 1.5; }

.mk-quiz { padding: 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--hair); }
[data-theme="light"] .mk-quiz { background: rgba(0,0,0,.025); }
.mk-quiz > b { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; display: block; margin-bottom: 12px; }
.mk-opts { display: flex; flex-direction: column; gap: 7px; }
.mk-opt { display: flex; align-items: center; justify-content: space-between; padding: 10px 13px; border-radius: 11px; font-size: 13px; background: rgba(255,255,255,.03); border: 1px solid var(--hair); color: var(--ink-dim); }
.mk-opt svg { width: 14px; height: 14px; }
.mk-opt.ok { background: rgba(62,203,122,.12); border-color: rgba(62,203,122,.4); color: var(--green); font-weight: 600; }

/* Social — vote posts */
.mk-post { display: flex; gap: 12px; padding: 13px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--hair); margin-bottom: 10px; transition: border-color .2s, background .2s; }
[data-theme="light"] .mk-post { background: rgba(0,0,0,.025); }
.mk-post:hover { border-color: rgba(192,101,240,.28); }
.mk-vote { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: none; }
.mk-vote .mk-up, .mk-vote .mk-dn { width: 26px; height: 23px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-faint); background: rgba(255,255,255,.04); }
.mk-vote .mk-up svg, .mk-vote .mk-dn svg { width: 13px; height: 13px; }
.mk-vote .mk-up.on { background: rgba(192,101,240,.16); color: var(--purple); }
.mk-vote b { font-size: 12.5px; font-weight: 700; color: var(--ink-dim); }
.mk-vote b.up { color: var(--purple); }
.mk-pbody { flex: 1; min-width: 0; }
.mk-phead { display: flex; align-items: center; gap: 7px; }
.mk-phead b { font-size: 13px; font-weight: 600; }
.mk-av { width: 24px; height: 24px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--purple), #7d3fd6); }
.mk-av.anon { background: linear-gradient(135deg, #f9d523, #e08a2f); }
.mk-meta { font-size: 11px; color: var(--ink-faint); }
.mk-board { margin-left: auto; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; background: rgba(192,101,240,.12); color: var(--purple); }
.mk-pbody p { font-size: 13px; color: var(--ink-dim); line-height: 1.45; margin-top: 7px; }
.mk-foot { display: flex; gap: 14px; margin-top: 9px; font-size: 11.5px; color: var(--ink-faint); }
.mk-foot span { display: inline-flex; align-items: center; gap: 5px; }
.mk-foot svg { width: 13px; height: 13px; }
.mk-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: middle; box-shadow: 0 0 8px var(--green); animation: fcpulse 2s ease-in-out infinite; }

/* Career — completion ring + skill bars */
.mk-career-top { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.mk-ring { position: relative; width: 96px; height: 96px; flex: none; }
.mk-ring svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.mk-ring .rbg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 7; }
[data-theme="light"] .mk-ring .rbg { stroke: rgba(0,0,0,.08); }
.mk-ring .rfg { fill: none; stroke: #2f80ed; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 214; stroke-dashoffset: 60; animation: mkring 1.6s var(--ease) forwards; }
@keyframes mkring { from { stroke-dashoffset: 214; } to { stroke-dashoffset: 60; } }
.mk-ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mk-ring-c b { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1; }
.mk-ring-c b small { font-size: 12px; }
.mk-ring-c span { font-size: 10px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.mk-skills { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.mk-skill .mk-sk-l { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.mk-skill .mk-sk-l i.ok { width: 14px; height: 14px; border-radius: 50%; background: var(--green); color: #04140b; display: grid; place-items: center; }
.mk-skill .mk-sk-l i.ok svg { width: 9px; height: 9px; }
.mk-bar { display: block; height: 6px; border-radius: 20px; background: rgba(255,255,255,.08); overflow: hidden; }
[data-theme="light"] .mk-bar { background: rgba(0,0,0,.07); }
.mk-bar i { display: block; height: 100%; border-radius: 20px; background: #2f80ed; }
.mk-skill.gap .mk-sk-l { color: var(--ink-dim); }
.mk-skill.gap .mk-bar i { background: #f59e0b; }
.mk-interview { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-radius: 14px; background: rgba(47,128,237,.08); border: 1px solid rgba(47,128,237,.18); }
.mk-iv-l { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
.mk-iv-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(47,128,237,.14); color: #2f80ed; }
.mk-iv-ic svg { width: 15px; height: 15px; }
.mk-interview > b { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: #2f80ed; }
.mk-interview > b small { font-size: 12px; color: var(--ink-faint); }

/* Trade — sparkline draw + allocation bar */
.spark-line { stroke-dasharray: 360; stroke-dashoffset: 360; animation: mkdraw 1.8s var(--ease) forwards; }
@keyframes mkdraw { to { stroke-dashoffset: 0; } }
.mk-alloc { display: flex; gap: 2px; height: 10px; border-radius: 20px; overflow: hidden; margin: 14px 0 10px; }
.mk-alloc i { display: block; height: 100%; }
.mk-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.mk-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-dim); }
.mk-legend i { width: 9px; height: 9px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  .mk-flash[data-flip] .mk-flash-in, .mk-ring .rfg, .spark-line, .mk-live { animation: none !important; }
  .mk-ring .rfg { stroke-dashoffset: 60; }
  .spark-line { stroke-dashoffset: 0; }
}

/* typewriter cursor — generic [data-type] on any landing page */
[data-type].typing::after { content: "▍"; margin-left: 1px; color: var(--ws, var(--yellow)); animation: gcblink .9s step-end infinite; }

/* ════════════════════════════════════════════════
   HOME · revisione community-first (giugno 2026)
   ════════════════════════════════════════════════ */

/* Numeri del flow come "gancio": molto più grandi e leggibili */
.flow-step .fn { font-size: clamp(2.1rem, 3.4vw, 3rem); letter-spacing: -.02em; line-height: 1; gap: 14px; color: var(--yellow); }
.flow-step .fn::after { min-width: 22px; opacity: .5; }
.flow-step h4 { margin-top: 18px; }

/* ── accent per spazio (hub mock + card risposta) ── */
.hub-ic.lab, .ans-ic.lab { background: rgba(249,213,35,.13); color: var(--yellow); }
.hub-ic.social, .ans-ic.social { background: rgba(192,101,240,.14); color: var(--purple); }
.hub-ic.career, .ans-ic.career { background: rgba(47,128,237,.14); color: #2f80ed; }
.hub-ic.trade, .ans-ic.trade { background: rgba(62,203,122,.14); color: var(--green); }

/* ── Hero · mock "hub 360" ── */
.hub-card { padding: 18px; border-radius: var(--radius-lg); }
.hub-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hub-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.hub-logo { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 14px; color: var(--on-yellow, #15140d); background: linear-gradient(135deg, #fbe14e, var(--yellow)); }
.hub-pill { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 99px; background: rgba(249,213,35,.12); color: var(--yellow); }
[data-theme="light"] .hub-pill { color: #9a7400; }
.hub-rows { display: flex; flex-direction: column; gap: 9px; }
.hub-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 13px; background: rgba(255,255,255,.035); border: 1px solid var(--hair); animation: hubrise .5s var(--ease) both; }
.hub-row:nth-child(2) { animation-delay: .08s; }
.hub-row:nth-child(3) { animation-delay: .16s; }
.hub-row:nth-child(4) { animation-delay: .24s; }
[data-theme="light"] .hub-row { background: rgba(0,0,0,.025); }
.hub-ic { width: 33px; height: 33px; border-radius: 9px; flex: none; display: grid; place-items: center; }
.hub-ic svg { width: 16px; height: 16px; }
.hub-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hub-meta b { font-size: 13px; font-weight: 700; }
.hub-meta span { font-size: 11.5px; color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-tick { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #04140b; }
.hub-tick svg { width: 12px; height: 12px; }
.hub-badge { min-width: 20px; height: 20px; flex: none; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--purple); }
.hub-mini { width: 52px; height: 6px; flex: none; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
[data-theme="light"] .hub-mini { background: rgba(0,0,0,.08); }
.hub-mini i { display: block; height: 100%; border-radius: 99px; background: #2f80ed; transform-origin: left; animation: hubgrow 1.1s var(--ease) .3s both; }
.hub-up { font-family: var(--font-display); font-weight: 800; font-size: 12.5px; color: var(--green); }
@keyframes hubrise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes hubgrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── Mission · card "risposta" (accesso alle dashboard) ── */
.mission { padding: clamp(70px, 9vw, 120px) 0; }
.ans-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 46px; }
.ans-card { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius-lg); background: rgba(255,255,255,.02); border: 1px solid var(--hair); text-decoration: none; color: inherit; transition: transform .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease); }
[data-theme="light"] .ans-card { background: rgba(0,0,0,.018); }
.ans-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.035); }
[data-theme="light"] .ans-card:hover { border-color: rgba(0,0,0,.16); background: rgba(0,0,0,.03); }
.ans-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; }
.ans-ic svg { width: 22px; height: 22px; }
.ans-kick { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-dim); margin-bottom: 9px; }
.ans-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.01em; margin: 0 0 9px; }
.ans-card p { font-size: 14px; color: var(--ink-dim); line-height: 1.55; margin: 0 0 18px; flex: 1; }
.ans-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink); }
.ans-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.ans-card:hover .ans-link svg { transform: translateX(3px); }
@media (max-width: 680px) { .ans-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .hub-row, .hub-mini i { animation: none !important; }
}

/* ════════════════════════════════════════════════
   HOME · pass "professionale" (giugno 2026)
   animazioni, glow, mockup di supporto
   ════════════════════════════════════════════════ */

/* Hero hub · alone vivo */
.hub-card { position: relative; }
.hub-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; box-shadow: 0 0 70px -16px rgba(249,213,35,.22); animation: hubglow 5.5s ease-in-out infinite; }
@keyframes hubglow { 0%,100% { opacity: .45; } 50% { opacity: .9; } }

/* Card risposta · accento per spazio + glow on hover */
.ans-card.lab   { --acc: var(--yellow); }
.ans-card.social{ --acc: var(--purple); }
.ans-card.career{ --acc: #2f80ed; }
.ans-card.trade { --acc: var(--green); }
.ans-card { position: relative; overflow: hidden; }
.ans-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--acc); transform: scaleX(0); transform-origin: left; opacity: 0; transition: transform .4s var(--ease), opacity .4s var(--ease); }
.ans-card:hover::before { transform: scaleX(1); opacity: 1; }
.ans-card:hover { box-shadow: 0 22px 48px -28px var(--acc); }
.ans-ic { transition: transform .35s var(--ease); }
.ans-card:hover .ans-ic { transform: translateY(-2px) scale(1.05); }
.ans-card:hover .ans-link { color: var(--acc); }

/* Flow · linea che scorre + numero che reagisce */
.flow-grid { position: relative; }
.flow-grid::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--yellow), transparent); background-size: 38% 100%; background-repeat: no-repeat; opacity: .7; animation: flowsweep 4.5s linear infinite; }
@keyframes flowsweep { 0% { background-position: -38% 0; } 100% { background-position: 138% 0; } }
.flow-step .fn { transition: transform .3s var(--ease); }
.flow-step:hover .fn { transform: scale(1.06); }

/* ── SUPPORT · mockup "dal caos al piano" ── */
.support { padding: clamp(70px, 9vw, 120px) 0; }
.support-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.support-copy p { color: var(--ink-dim); max-width: 46ch; margin-top: 14px; line-height: 1.6; }
.support-list { list-style: none; margin: 22px 0 26px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.support-list li { display: flex; align-items: center; gap: 11px; font-size: 14.5px; }
.sl-ic { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(62,203,122,.14); color: var(--green); }
.sl-ic svg { width: 12px; height: 12px; }

.xform { padding: 22px; border-radius: var(--radius-lg); display: grid; grid-template-columns: 1fr auto 1.15fr; gap: 16px; align-items: center; }
.xform-lbl { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-dim); margin-bottom: 12px; }
.xfiles { display: flex; flex-wrap: wrap; gap: 8px; }
.xfile { padding: 8px 12px; border-radius: 10px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.05); border: 1px solid var(--hair); color: var(--ink-dim); animation: xfloat 3.4s ease-in-out infinite; }
[data-theme="light"] .xfile { background: rgba(0,0,0,.03); }
.xfile.f2 { animation-delay: .4s; } .xfile.f3 { animation-delay: .8s; } .xfile.f4 { animation-delay: 1.2s; }
@keyframes xfloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.xform-mid { display: grid; place-items: center; }
.xform-spark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(249,213,35,.14); color: var(--yellow); animation: xspark 2.4s ease-in-out infinite; }
.xform-spark svg { width: 18px; height: 18px; }
@keyframes xspark { 0%,100% { transform: scale(1) rotate(0); opacity: .85; } 50% { transform: scale(1.14) rotate(10deg); opacity: 1; } }
.xplan { display: flex; flex-direction: column; gap: 8px; }
.xrow { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 11px; background: rgba(255,255,255,.04); border: 1px solid var(--hair); opacity: 0; animation: xrise .5s var(--ease) forwards; }
[data-theme="light"] .xrow { background: rgba(0,0,0,.025); }
.xrow b { font-family: var(--font-display); font-weight: 800; font-size: 12px; color: var(--yellow); min-width: 28px; }
.xrow span { flex: 1; font-size: 12.5px; }
.xtick { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--green); color: #04140b; opacity: 0; transform: scale(.5); animation: xpop .4s var(--ease) forwards; }
.xtick svg { width: 11px; height: 11px; }
.xrow.r1 { animation-delay: .15s; } .xrow.r1 .xtick { animation-delay: .7s; }
.xrow.r2 { animation-delay: .55s; } .xrow.r2 .xtick { animation-delay: 1.1s; }
.xrow.r3 { animation-delay: .95s; } .xrow.r3 .xtick { animation-delay: 1.5s; }
@keyframes xrise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes xpop { to { opacity: 1; transform: scale(1); } }
.xbar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 5px; }
[data-theme="light"] .xbar { background: rgba(0,0,0,.07); }
.xbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--yellow), var(--green)); transform-origin: left; animation: xfill 1.8s var(--ease) .4s both; }
@keyframes xfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 880px) { .support-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .xform { grid-template-columns: 1fr; } .xform-mid { transform: rotate(90deg); } }

@media (prefers-reduced-motion: reduce) {
  .hub-card::after, .xfile, .xform-spark, .flow-grid::before { animation: none !important; }
  .xrow, .xtick, .xbar i { animation-duration: .01s !important; }
}

/* Hero · parola evidenziata su riga propria, mai a capo (niente layout shift) */
.hero h1 .rot { white-space: nowrap; }

/* ── Finale · citazione manifesto (sostituisce la card "scatolone") ── */
.quote { position: relative; max-width: 840px; margin: 0 auto; text-align: center; padding: 12px 0; }
.quote::before { content: ""; position: absolute; top: -40px; left: 50%; transform: translateX(-50%); width: min(620px, 86%); height: 280px; background: radial-gradient(ellipse 60% 65% at 50% 0%, rgba(249,213,35,.13), transparent 70%); pointer-events: none; z-index: -1; }
.quote-mark { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(4.5rem, 10vw, 7.5rem); line-height: .7; height: .5em; color: var(--yellow); }
.quote-text { margin: 0 auto; max-width: 58ch; font-family: var(--font-body); font-style: italic; font-weight: 300; font-size: clamp(1.35rem, 2.5vw, 1.95rem); line-height: 1.42; letter-spacing: -.01em; color: var(--ink); }
.quote-text::first-letter { font-style: italic; }
.quote-by { margin-top: 26px; display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-dim); }
.quote-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.quote-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.quote .cta-fine { margin-top: 22px; }

/* ════════════════════════════════════════════════
   HOME · studio di gruppo (funnel) + accessibilità seria
   ════════════════════════════════════════════════ */

/* ── Group study · funnel a 3 stadi ── */
.groupstudy { padding: clamp(70px, 9vw, 120px) 0; }
.funnel { position: relative; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; margin-top: 48px; }
.funnel::before { content: ""; position: absolute; top: 50%; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--purple), var(--yellow), var(--green)); opacity: .16; z-index: -1; }
.fn-stage { padding: 28px 24px; border-radius: var(--radius-lg); background: rgba(255,255,255,.02); border: 1px solid var(--hair); }
[data-theme="light"] .fn-stage { background: rgba(0,0,0,.018); }
.fn-step { font-family: var(--font-display); font-weight: 800; font-size: .78rem; letter-spacing: .16em; color: var(--ink-faint); }
.fn-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin: 14px 0 16px; }
.fn-ic svg { width: 22px; height: 22px; }
.fn-ic.social { background: rgba(192,101,240,.14); color: var(--purple); }
.fn-ic.lab { background: rgba(249,213,35,.13); color: var(--yellow); }
.fn-ic.trade { background: rgba(62,203,122,.14); color: var(--green); }
.fn-stage h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; margin-bottom: 8px; }
.fn-stage p { font-size: 14px; color: var(--ink-dim); line-height: 1.55; }
.fn-arrow { display: grid; place-items: center; color: var(--ink-faint); }
.fn-arrow svg { width: 22px; height: 22px; }
@media (max-width: 820px) { .funnel { grid-template-columns: 1fr; } .funnel::before { display: none; } .fn-arrow { transform: rotate(90deg); padding: 2px 0; } }

/* ── Accessibilità · intestazione + pannello di testing ── */
.a11y-head { max-width: 680px; margin: 0 auto clamp(38px, 5vw, 54px); text-align: center; }
.a11y-head .eyebrow { justify-content: center; }
.a11y-head h2 { margin: 16px 0; }
.a11y-head .lead { color: var(--ink-dim); font-size: 1.08rem; line-height: 1.55; }
.a11y-head .a11y-partner { margin-top: 16px; }
.a11y-grid { grid-template-columns: 0.82fr 1.18fr; align-items: start; }
.a11y-grid .a11y-feats { grid-template-columns: 1fr; gap: 0; margin-top: 0; }
.a11y-panel { padding: 24px; border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 22px; }
.ax-h { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.ax-h svg { width: 16px; height: 16px; color: var(--ink-dim); }
.ax-h span { margin-left: auto; font-family: var(--font-body); font-weight: 500; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); }
.cvd-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.cvd-row + .cvd-row { border-top: 1px solid var(--hair); }
.cvd-lbl { width: 100px; flex: none; font-size: 12px; color: var(--ink-dim); }
.cvd-swatches { display: flex; gap: 6px; }
.sw { width: 28px; height: 28px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.ax-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ax-chip { font-size: 11px; font-weight: 600; padding: 6px 11px; border-radius: 99px; background: rgba(255,255,255,.05); border: 1px solid var(--hair); color: var(--ink-dim); }
[data-theme="light"] .ax-chip { background: rgba(0,0,0,.03); }
@media (max-width: 540px) { .sw { width: 22px; height: 22px; } .cvd-lbl { width: 84px; } }

/* Hero H1 · su mobile resta entro 3 righe (font scala con la larghezza) */
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(1.3rem, 5.9vw, 2.3rem); line-height: 1.2; }
}

/* Evidenziatore "pennarello" per parole chiave nei titoli */
.mark { background: linear-gradient(180deg, transparent 56%, rgba(249,213,35,.40) 56%, rgba(249,213,35,.40) 92%, transparent 92%); padding: 0 .06em; border-radius: 2px; }
[data-theme="light"] .mark { background: linear-gradient(180deg, transparent 56%, rgba(249,213,35,.55) 56%, rgba(249,213,35,.55) 92%, transparent 92%); }

/* Support · titolo allineato alla scala delle altre sezioni a 2 colonne */
.support-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.1; margin: 16px 0 0; }
.support-copy p { font-size: 1.05rem; }

/* Support · intestazione centrata standard + spaziatura coerente */
.support .support-grid { margin-top: 46px; }
.support .support-list { margin-top: 0; }

/* Group study · intestazione più larga per stare su 3 righe pulite */
.groupstudy .sec-head { max-width: 860px; }
