/* Forager — bold, sans, accenti scribble */

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

:root {
  --bg:        #f7f7f5;
  --surface:   #ffffff;
  --surface-2: #fafaf9;
  --line:      #e7e5e4;
  --line-soft: #f1efed;

  --ink-200: #e4e4e7;
  --ink-300: #d4d4d8;
  --ink-400: #a1a1aa;
  --ink-500: #71717a;
  --ink-600: #52525b;
  --ink-700: #3f3f46;
  --ink-800: #27272a;
  --ink-900: #18181b;

  --accent:   #18181b;
  --accent-h: #27272a;
  /* niente viola nel marketing: gli "accenti" scribble sono neri, l'highlighter è giallo */
  --violet:   #18181b;
  --violet-soft: #f4f4f5;
  --violet-line: #e4e4e7;
  --yellow:   #fde047;
  --pink:     #fde047;
}

* { box-sizing: border-box; -webkit-text-size-adjust: 100%; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-900);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
  letter-spacing: -0.005em;
  position: relative;
}

/* ============ GRADIENT MESH HERO ============ */
.mesh-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.mesh-bg::before, .mesh-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.mesh-bg::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #fde68a 0%, transparent 70%);
  top: -200px; left: -150px;
  animation: float-a 20s ease-in-out infinite;
}
.mesh-bg::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #fde047 0%, transparent 70%);
  top: 100px; right: -180px;
  opacity: 0.35;
  animation: float-b 25s ease-in-out infinite;
}
@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 50px) scale(1.1); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 80px) scale(0.95); }
}
.hero-mesh-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24,24,27,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,24,27,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 30%, black 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 50% at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
}

/* ============ FRECCE SCRIBBLE ============ */
.arrow-scribble {
  position: absolute;
  width: 110px; height: 70px;
  color: var(--violet);
  pointer-events: none;
}
.arrow-scribble path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arrow-scribble .line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 1.5s ease .3s;
}
.arrow-scribble .head {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset .8s ease 1.6s;
}
.js-on .arrow-scribble.in-view .line { stroke-dashoffset: 0; }
.js-on .arrow-scribble.in-view .head { stroke-dashoffset: 0; }

.arrow-hero {
  top: -20px; right: 12%;
  transform: rotate(15deg);
}
.arrow-cta-final {
  position: absolute;
  width: 130px; height: 80px;
  top: -50px; left: 50%;
  transform: translateX(-130%) rotate(20deg);
  color: var(--violet);
}
.arrow-features {
  position: relative;
  display: inline-block;
  width: 80px; height: 50px;
  margin-left: 12px;
  vertical-align: middle;
  color: var(--ink-700);
}

/* ============ GLOBO TERRESTRE — radar/research ============ */
.globe-section {
  position: relative;
  padding: clamp(60px, 8vw, 100px) 0;
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.globe-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 880px) { .globe-wrap { grid-template-columns: 1fr; } }
.globe-text h2 { margin-bottom: 16px; }
.globe-text .stats-mini {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 28px;
}
.globe-text .stats-mini > div {
  display: flex; align-items: center; gap: 10px;
}
.globe-text .stats-mini .dot {
  width: 8px; height: 8px; border-radius: 999px;
  position: relative;
}
.globe-text .stats-mini .dot::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 999px;
  background: inherit;
  animation: ping 2s ease-out infinite;
}
.globe-text .stats-mini .dot.v { background: var(--ink-900); }
.globe-text .stats-mini .dot.e { background: #facc15; }
.globe-text .stats-mini .dot.a { background: var(--ink-400); }
.globe-text .stats-mini > div span:not(.dot) { font-size: 13px; color: var(--ink-700); font-weight: 500; }
@keyframes ping {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(3); opacity: 0; }
}

/* === NETGRAPH: grafo prospect === */
.netgraph {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.netgraph svg {
  width: 100%; height: 100%;
  overflow: visible;
}
.netgraph .net-edge {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: edge-draw 1.2s cubic-bezier(.5,0,.2,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes edge-draw {
  to { stroke-dashoffset: 0; }
}
.netgraph .net-node {
  opacity: 0;
  transform-origin: center;
  animation: node-in .55s cubic-bezier(.34,1.56,.64,1) forwards;
}
.netgraph .net-node.center { animation-delay: 0s; }
.netgraph .net-node[data-d="0.4s"]  { animation-delay: 0.4s; }
.netgraph .net-node[data-d="0.55s"] { animation-delay: 0.55s; }
.netgraph .net-node[data-d="0.7s"]  { animation-delay: 0.7s; }
.netgraph .net-node[data-d="0.85s"] { animation-delay: 0.85s; }
.netgraph .net-node[data-d="1.0s"]  { animation-delay: 1.0s; }
.netgraph .net-node[data-d="1.15s"] { animation-delay: 1.15s; }
.netgraph .net-node[data-d="1.3s"]  { animation-delay: 1.3s; }
.netgraph .net-node[data-d="1.45s"] { animation-delay: 1.45s; }
@keyframes node-in {
  from { opacity: 0; transform: scale(0.3); }
  to   { opacity: 1; transform: scale(1); }
}
.netgraph .pulse-ring {
  opacity: 0;
  transform-origin: center;
  animation: pulse-ring 2.2s ease-out infinite;
  animation-delay: 2s;
}
@keyframes pulse-ring {
  0%   { opacity: .9; stroke-width: 2; transform: scale(1); }
  100% { opacity: 0; stroke-width: 0; transform: scale(2); }
}
.netgraph svg [class*="pulse-ring"] { transform-box: fill-box; }

/* === TICKER LIVE === */
.ticker {
  margin: clamp(36px, 5vw, 56px) 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  font-size: 13px;
}
.ticker-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--violet);
  padding-right: 16px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ticker-label::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--violet);
  animation: blink-fast 1.4s infinite;
}
@keyframes blink-fast { 0%, 60% { opacity: 1; } 70%, 100% { opacity: 0.2; } }
.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}
.ticker-row {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  padding-left: 28px;
}
.ticker-row span {
  color: var(--ink-700);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ticker-row span::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--ink-300);
  flex-shrink: 0;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ MAGNIFIER LENS sul mockup ============ */
.mockup-wrap { position: relative; cursor: zoom-in; }
.mockup-wrap { transition: transform .25s ease; transform-style: preserve-3d; will-change: transform; }

/* ============ SPOTLIGHT CURSOR ============ */
.spotlight {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity .3s;
  opacity: 0;
  mix-blend-mode: multiply;
}
.spotlight.on { opacity: 1; }
@media (hover: none) { .spotlight { display: none; } }
img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 640px) { .container { padding: 0 18px; } }

/* ============ NAV — DESKTOP ============ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247,247,245,.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s, background .2s;
}
.nav.scrolled {
  background: rgba(247,247,245,.92);
  box-shadow: 0 1px 0 var(--line), 0 4px 14px -8px rgba(0,0,0,.08);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 18px;
  text-decoration: none; color: var(--ink-900);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 70;
  transition: transform .2s;
}
.brand:hover { transform: translateY(-1px); }
.brand-mark {
  width: 30px; height: 30px;
  background: var(--ink-900); color: white;
  border-radius: 8px;
  display: grid; place-items: center;
  transition: transform .25s cubic-bezier(.4,1.5,.5,1);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-mark svg { width: 15px; height: 15px; }
.brand-plus {
  color: var(--ink-300);
  font-weight: 400;
  margin: 0 4px;
  font-size: 14px;
}
.brand-claude {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
  background: rgba(204,120,92,0.08);
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(204,120,92,0.25);
  transition: background .2s, border-color .2s;
}
.brand-claude svg { width: 14px; height: 14px; }
.brand:hover .brand-claude { background: rgba(204,120,92,0.16); border-color: rgba(204,120,92,0.4); }
@media (max-width: 540px) { .brand-plus, .brand-claude { display: none; } }

/* === Desktop links con pillola animata === */
.nav-mid {
  display: flex; align-items: center;
  margin: 0 auto;
  position: relative;
  background: rgba(24,24,27,0.03);
  border-radius: 999px;
  padding: 5px;
  border: 1px solid var(--line);
}
.nav-mid a {
  position: relative;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-600);
  text-decoration: none;
  border-radius: 999px;
  z-index: 2;
  transition: color .25s ease;
}
.nav-mid a:hover { color: var(--ink-900); }
.nav-mid a.active { color: var(--ink-900); font-weight: 600; }
/* sliding indicator */
.nav-mid .indicator {
  position: absolute;
  top: 5px; left: 5px;
  height: calc(100% - 10px);
  background: white;
  border-radius: 999px;
  z-index: 1;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), width .35s cubic-bezier(.34,1.56,.64,1), opacity .2s;
  opacity: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  pointer-events: none;
}
.nav-mid:hover .indicator { opacity: 1; }

.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: white !important;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 13.5px; font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.nav-cta:hover { background: var(--accent-h); transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgba(0,0,0,.3); }
.nav-cta:hover::before { transform: translateX(100%); }

/* === Hamburger button === */
.nav-burger {
  display: none;
  width: 38px; height: 38px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  position: relative;
  z-index: 70;
  transition: background .15s;
}
.nav-burger:hover { background: var(--surface-2); }
.nav-burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1.8px;
  background: var(--ink-900);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .35s cubic-bezier(.55,0,.45,1), opacity .25s ease;
}
.nav-burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 5px)); }
.nav-burger span:nth-child(3) { transform: translate(-50%, calc(-50% + 5px)); }
.nav-burger.open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: translate(-50%, -50%) scale(0); }
.nav-burger.open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* === MOBILE OVERLAY MENU === */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 90px 28px 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.16,.84,.44,1), visibility .35s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu-mesh {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.mobile-menu-mesh::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, #fde68a 0%, transparent 70%);
  filter: blur(60px);
  opacity: .5;
  top: -100px; right: -100px;
  animation: float-a 20s ease-in-out infinite;
}
.mobile-menu-mesh::after {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, #fde047 0%, transparent 70%);
  filter: blur(60px);
  opacity: .4;
  bottom: -80px; left: -80px;
  animation: float-b 25s ease-in-out infinite;
}

.mobile-menu nav {
  display: flex; flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 2;
}
.mobile-menu nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 9vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color .2s, padding-left .3s cubic-bezier(.16,.84,.44,1);
  transform: translateY(20px);
  opacity: 0;
}
.mobile-menu.open nav a {
  transform: translateY(0);
  opacity: 1;
  transition: transform .5s cubic-bezier(.16,.84,.44,1), opacity .5s ease, padding-left .3s cubic-bezier(.16,.84,.44,1), color .2s;
}
.mobile-menu.open nav a:nth-child(1) { transition-delay: .12s; }
.mobile-menu.open nav a:nth-child(2) { transition-delay: .18s; }
.mobile-menu.open nav a:nth-child(3) { transition-delay: .24s; }
.mobile-menu.open nav a:nth-child(4) { transition-delay: .30s; }
.mobile-menu.open nav a:nth-child(5) { transition-delay: .36s; }
.mobile-menu nav a:hover, .mobile-menu nav a:active {
  color: var(--violet);
  padding-left: 12px;
}
.mobile-menu nav a .arr {
  font-size: 0.6em;
  color: var(--ink-300);
  font-weight: 400;
  transition: transform .25s, color .2s;
}
.mobile-menu nav a:hover .arr, .mobile-menu nav a:active .arr {
  color: var(--violet);
  transform: translateX(8px);
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 32px;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-500);
  transform: translateY(20px);
  opacity: 0;
  transition: transform .5s cubic-bezier(.16,.84,.44,1) .45s, opacity .5s ease .45s;
}
.mobile-menu.open .mobile-menu-footer { transform: translateY(0); opacity: 1; }
.mobile-menu-footer .mm-cta {
  background: var(--ink-900);
  color: white;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.menu-open { overflow: hidden; }

/* === Responsive nav === */
@media (max-width: 880px) {
  .nav-mid { display: none; }
  .nav-right .nav-cta { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
}
@media (min-width: 881px) {
  .mobile-menu { display: none; }
}

/* ============ TITOLI GIGANTI ============ */
h1, h2, h3, h4 {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--ink-900);
}
h1 { font-size: clamp(60px, 12vw, 140px); letter-spacing: -0.055em; line-height: 0.92; font-weight: 700; }
h2 { font-size: clamp(48px, 9vw, 100px); letter-spacing: -0.05em; }
h3 { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.025em; font-weight: 600; }

/* ============ EFFETTI SCRIBBLE ============ */
/* Highlight giallo dietro testo */
.hl {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hl::before {
  content: '';
  position: absolute;
  left: -4px; right: -4px;
  bottom: 0.05em; top: 30%;
  background: var(--yellow);
  z-index: -1;
  transform: skew(-3deg) rotate(-1deg);
  border-radius: 4px;
}
.hl.pink::before { background: var(--pink); }
.hl.violet::before { background: var(--violet-soft); border: 1px solid var(--violet-line); }

/* Cerchio disegnato a mano intorno a una parola */
.circ {
  position: relative;
  display: inline-block;
  padding: 0 12px;
}
.circ::before {
  content: '';
  position: absolute;
  left: -8px; right: -8px;
  top: -8%; bottom: -8%;
  border: 3px solid var(--violet);
  border-radius: 50%;
  transform: rotate(-3deg);
  pointer-events: none;
}

/* Sottolineatura ondulata scribble */
.uwave {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}
.uwave::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 8' preserveAspectRatio='none'><path d='M0 4 Q 10 0 20 4 T 40 4 T 60 4 T 80 4' stroke='%2318181b' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: repeat-x;
  background-size: 80px 8px;
}
.uwave.black::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 8' preserveAspectRatio='none'><path d='M0 4 Q 10 0 20 4 T 40 4 T 60 4 T 80 4' stroke='%2318181b' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>");
}

/* Underline retta semplice tipo penna */
.uline {
  background-image: linear-gradient(transparent calc(100% - 6px), var(--violet) calc(100% - 6px), var(--violet) calc(100% - 3px), transparent calc(100% - 3px));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding-bottom: 4px;
}

/* Freccia disegnata */
.arrow-cta {
  display: inline-block;
  position: relative;
  transition: transform .25s ease;
}
.arrow-cta::after {
  content: '→';
  margin-left: 8px;
  font-weight: 400;
  transition: transform .25s ease;
  display: inline-block;
}
.arrow-cta:hover::after { transform: translateX(6px); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  padding: 14px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s, transform .12s, box-shadow .2s;
  font-family: inherit;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--accent); color: white;
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 18px -8px rgba(0,0,0,.25);
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-2px); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 22px -8px rgba(0,0,0,.35); }
.btn-ghost { background: white; color: var(--ink-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-700); transform: translateY(-1px); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ============ HERO ============ */
.hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }

/* ============ TRUST BAR — Claude + GitHub ============ */
.trust-bar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
  padding: 10px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-700);
}
.trust-bar .tb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: color .2s;
}
.trust-bar .tb-item:hover { color: var(--ink-900); }
.trust-bar .tb-item strong { font-weight: 700; color: var(--ink-900); }
.trust-bar .sep {
  width: 1px; height: 18px;
  background: var(--line);
}
.claude-logo {
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.gh-logo {
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,.18);
  animation: blink-fast 1.8s infinite;
  flex-shrink: 0;
}
@media (max-width: 540px) {
  .trust-bar { padding: 8px 14px; font-size: 12.5px; gap: 12px; }
  .trust-bar .sep { display: none; }
}

/* === BUILT-ON STACK BAND === */
.built-on {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
  text-align: center;
}
.built-on .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.built-on .item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-800);
}
.built-on .item svg { width: 18px; height: 18px; }
.hero h1 {
  margin-bottom: 32px;
  max-width: 18ch;
}
.hero p.lead {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
  color: var(--ink-700);
  max-width: 64ch;
  margin: 0 0 36px;
  font-weight: 400;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

/* ============ MOCKUP (hero card) ============ */
.mockup {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 50px -28px rgba(0,0,0,.18);
}
.mockup-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.mockup-bar .dot { width: 11px; height: 11px; border-radius: 999px; }
.mockup-bar .dot.r { background: #ff5f57; }
.mockup-bar .dot.y { background: #febc2e; }
.mockup-bar .dot.g { background: #28c840; }
.mockup-bar .url {
  margin-left: 14px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--ink-500);
  background: white;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.mockup-body { display: grid; grid-template-columns: 220px 1fr; min-height: 460px; }
.mockup-sb {
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
}
.mockup-sb-section { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-400); margin: 18px 6px 6px; }
.mockup-sb-section:first-child { margin-top: 0; }
.mockup-sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  color: var(--ink-600);
  border-radius: 7px;
  font-weight: 500; font-size: 12.5px;
}
.mockup-sb-item.active { background: white; color: var(--ink-900); font-weight: 600; border: 1px solid var(--line); }
.mockup-sb-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.mockup-main { padding: 28px 32px; }
.mockup-name { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.mockup-role { font-size: 14px; color: var(--ink-500); margin-top: 4px; margin-bottom: 14px; }
.mockup-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 11px; font-weight: 600;
}
.pill.violet  { background: #fff; color: var(--ink-700); border-color: var(--ink-300); }
.pill.amber   { background: #fff; color: var(--ink-700); border-color: var(--ink-300); }
.pill.emerald { background: var(--yellow); color: var(--ink-900); border-color: #facc15; }
.mockup-scores {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.mockup-scores > div { padding: 14px 4px; text-align: center; border-right: 1px solid var(--line-soft); }
.mockup-scores > div:last-child { border-right: 0; }
.mockup-scores .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); font-weight: 700; margin-bottom: 6px; }
.mockup-scores .val { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.mockup-scores .val .u { color: var(--ink-400); font-size: 12px; font-weight: 500; }
.mockup-scores .stars { color: var(--ink-900); font-size: 15px; letter-spacing: 1.5px; line-height: 1; }
.mockup-scores .stars .o { color: var(--ink-200); }
.mockup-summary {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 13.5px;
  color: var(--ink-700);
  line-height: 1.55;
  margin-bottom: 12px;
}
.mockup-next {
  background: var(--ink-900);
  border: 1px solid var(--ink-900);
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 13px;
  color: rgba(255,255,255,.88);
}
.mockup-next .lb { font-size: 10px; color: var(--yellow); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px; }
@media (max-width: 720px) {
  .mockup-body { grid-template-columns: 1fr; min-height: 0; }
  .mockup-sb { display: none; }
  .mockup-main { padding: 22px 20px; }
}

/* ============ SECTIONS ============ */
section { padding: clamp(56px, 8vw, 110px) 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { max-width: 22ch; }

/* ============ FEATURE GRID ============ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.feat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  transition: border-color .15s, transform .15s, box-shadow .2s;
}
.feat-card:hover {
  border-color: var(--ink-700);
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 14px 30px -16px rgba(0,0,0,.18);
}
.feat-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.feat-card p {
  font-size: 14px;
  color: var(--ink-600);
  line-height: 1.5;
  margin: 0;
}

/* ============ METHOD ============ */
.method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.method-step { padding: 20px 0 0; border-top: 3px solid var(--ink-900); }
.method-step .n {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700;
  color: var(--violet);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.method-step h3 { font-size: 22px; margin-bottom: 8px; }
.method-step p { font-size: 14.5px; color: var(--ink-600); margin: 0; line-height: 1.5; }
@media (max-width: 720px) { .method { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 480px) { .method { grid-template-columns: 1fr; } }

/* ============ INSTALL ============ */
.code-block {
  background: var(--ink-900);
  color: white;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 14px;
  line-height: 1.9;
  padding: 22px 26px;
  margin: 24px 0;
  white-space: pre;
  overflow-x: auto;
  border-radius: 12px;
  position: relative;
}
.code-block .prompt { color: #8a8a8a; user-select: none; }
.code-block .cmt    { color: #8a8a8a; }
.code-block .copy {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,.1);
  border: 0; color: white;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
.code-block .copy:hover { background: rgba(255,255,255,.2); }
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.req-grid .ttl { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 4px; letter-spacing: -0.015em; }
.req-grid .d { font-size: 13.5px; color: var(--ink-600); line-height: 1.5; }

/* ============ NUMBERS ============ */
.nums {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.nums > div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
}
.nums .n {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.nums .l {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 8px;
  line-height: 1.45;
}
@media (max-width: 640px) { .nums { grid-template-columns: 1fr 1fr; } }

/* ============ MANIFESTO (fascia scura) ============ */
.manifesto {
  background: var(--ink-900);
  color: #fff;
  padding: clamp(64px, 9vw, 120px) 0;
  margin: clamp(40px, 6vw, 80px) 0;
}
.manifesto h2 {
  color: #fff;
  margin: 0 0 20px;
}
.manifesto h2 .hl { color: var(--ink-900); }
.manifesto h2 .hl::before { background: var(--yellow); }
.manifesto p {
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.55;
  color: rgba(255,255,255,.72);
  max-width: 60ch;
  margin: 0;
}

/* ============ FAQ ============ */
.faq details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 10px;
  transition: border-color .15s;
}
.faq details[open] { border-color: var(--ink-700); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
  display: flex; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--ink-500);
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
}
.faq details[open] summary::after { content: '−'; }
.faq details p {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--ink-600);
  line-height: 1.55;
}

/* ============ FINAL CTA ============ */
.final {
  text-align: center;
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}
.final h2 { margin: 0 auto 32px; max-width: 18ch; }
.final-actions { display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ============ FOOTER ============ */
footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-500);
}
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink-900); }

/* ============ REVEAL (fail-safe) ============ */
.js-on .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.16,.84,.44,1), transform .8s cubic-bezier(.16,.84,.44,1);
}
.js-on .reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { transition: none !important; opacity: 1 !important; transform: none !important; }
}
/* stagger children */
.stagger > * { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 60ms; }
.stagger > *:nth-child(3) { transition-delay: 120ms; }
.stagger > *:nth-child(4) { transition-delay: 180ms; }
.stagger > *:nth-child(5) { transition-delay: 240ms; }
.stagger > *:nth-child(6) { transition-delay: 300ms; }
.stagger > *:nth-child(7) { transition-delay: 360ms; }
.stagger > *:nth-child(8) { transition-delay: 420ms; }

/* ============ EFFETTI SCRIBBLE — ANIMATI ALL'ENTRATA ============ */
.js-on .hl::before {
  transform-origin: left center;
  transform: skew(-3deg) rotate(-1deg) scaleX(0);
  transition: transform .9s cubic-bezier(.5, 0, .2, 1) .2s;
}
.js-on .hl.in-view::before {
  transform: skew(-3deg) rotate(-1deg) scaleX(1);
}
.js-on .circ::before {
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 1.2s cubic-bezier(.5,0,.2,1) .3s;
}
.js-on .circ.in-view::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.js-on .uwave::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(.5,0,.2,1) .25s;
}
.js-on .uwave.in-view::after { transform: scaleX(1); }

/* ============ MAGNETIC BUTTON (handled in JS) ============ */
.btn { will-change: transform; }

/* ============ TILT 3D CARD ============ */
.feat-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.feat-card.tilt-glow {
  position: relative;
}
.feat-card.tilt-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%), rgba(124,58,237,0.08), transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.feat-card.tilt-glow:hover::before { opacity: 1; }

/* ============ NUMBER COUNT-UP ============ */
.nums .n { transition: opacity .4s; }

/* ============ MOCKUP PARALLAX ============ */
.mockup-wrap { perspective: 1500px; }
.mockup {
  transition: transform .8s cubic-bezier(.16,.84,.44,1);
  transform-origin: center top;
}
.js-on .mockup-wrap.reveal .mockup {
  transform: perspective(1500px) rotateX(8deg);
}
.js-on .mockup-wrap.reveal.in .mockup {
  transform: perspective(1500px) rotateX(0deg);
}

/* ============ SCROLL BUTTON IN NAV (logo scale) ============ */
.nav.scrolled { box-shadow: 0 1px 3px rgba(0,0,0,.04); }

/* selettore lingua nav (i18n + hreflang) */
.nav-lang{font:600 12px/1 'Inter',system-ui,sans-serif;color:#71717a;text-decoration:none;padding:6px 8px;border-radius:6px;letter-spacing:.04em;transition:color .15s,background .15s}
.nav-lang:hover{color:#18181b;background:rgba(0,0,0,.05)}
