:root {
  --bg: #0b0d0a;
  --bg-elev: #121510;
  --panel: #171b14;
  --line: rgba(198, 240, 0, 0.14);
  --ink: #f2f4ec;
  --dim: #9aa392;
  --volt: #c6f000;
  --volt-ink: #101408;
  --copper: #d4a574;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); margin-bottom: 0.9rem; }
h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
p { color: var(--dim); }
em { color: var(--ink); font-style: normal; font-weight: 600; }
a { color: inherit; text-decoration: none; }
code, .mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

#fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.85;
}

.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 1; pointer-events: none;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 240, 0, 0.14), transparent 68%);
  opacity: 0; transition: opacity 0.4s ease;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }

.page { position: relative; z-index: 3; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.logo.small { color: var(--dim); font-size: 1rem; }
.dot { color: var(--volt); }
.logo-mark {
  width: 1.65em; height: 1.65em; flex-shrink: 0;
  object-fit: cover; border-radius: 7px;
}

.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 13, 10, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.95rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-links {
  display: flex; align-items: center; gap: 1.4rem;
  list-style: none; font-size: 0.82rem; color: var(--dim);
}
.nav-links a:hover { color: var(--ink); }
@media (max-width: 720px) {
  .nav-links { display: none; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn[data-magnetic] { transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease); }
.btn-primary {
  background: var(--volt);
  color: var(--volt-ink);
  box-shadow: 0 12px 40px rgba(198, 240, 0, 0.22);
}
.btn-primary:hover { box-shadow: 0 16px 48px rgba(198, 240, 0, 0.32); }
.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--ink);
}
.btn-ghost:hover { border-color: rgba(198, 240, 0, 0.35); }
.btn-nav {
  padding: 0.5rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  border-radius: 999px;
}
.btn-nav:hover { border-color: rgba(198, 240, 0, 0.4); }

/* —— HERO —— */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: grid;
  align-items: center;
  padding: 5.5rem 1.5rem 4rem;
  overflow: hidden;
}
.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  color: var(--volt);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: 1.1rem;
  color: var(--ink);
}
.hero h1 .dot { color: var(--volt); }
.hero-sub {
  font-size: 1.08rem;
  max-width: 34rem;
  margin-bottom: 1.8rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.stage-wrap {
  perspective: 1400px;
  min-height: 420px;
  display: grid;
  place-items: center;
}
.stage {
  position: relative;
  width: min(100%, 440px);
  height: 380px;
  transform-style: preserve-3d;
  transform: rotateX(12deg) rotateY(-18deg);
  transition: transform 0.35s var(--ease);
  will-change: transform;
}
.panel3d {
  position: absolute;
  border-radius: 14px;
  border: 1px solid rgba(198, 240, 0, 0.18);
  background: linear-gradient(160deg, #1c2218 0%, #12150f 100%);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform-style: preserve-3d;
}
.panel3d .chrome {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.68rem;
  color: var(--dim);
  font-family: "IBM Plex Mono", monospace;
}
.panel3d .dotrow span {
  width: 7px; height: 7px; border-radius: 50%;
  display: inline-block; background: #3a4034;
}
.panel3d .dotrow span:nth-child(1) { background: #ff5c5c; }
.panel3d .dotrow span:nth-child(2) { background: #ffc14d; }
.panel3d .dotrow span:nth-child(3) { background: #6bd968; }
.panel3d .body { padding: 0.85rem 0.95rem; font-size: 0.72rem; line-height: 1.55; }
.panel3d .body .kw { color: var(--volt); }
.panel3d .body .str { color: var(--copper); }
.panel3d .body .cmt { color: #5f6758; }
.p-code {
  width: 78%; height: 72%;
  left: 0; top: 8%;
  z-index: 1;
  animation: floatA 7s ease-in-out infinite;
}
.p-sheet {
  width: 62%; height: 58%;
  right: 0; bottom: 4%;
  z-index: 2;
  animation: floatB 8s ease-in-out infinite;
}
.p-web {
  width: 54%; height: 48%;
  left: 22%; bottom: 18%;
  z-index: 3;
  border-color: rgba(212, 165, 116, 0.35);
  animation: floatC 6.5s ease-in-out infinite;
}
.sheet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
.sheet-grid i {
  display: block; height: 14px; border-radius: 3px;
  background: rgba(198, 240, 0, 0.08);
}
.sheet-grid i.on { background: rgba(198, 240, 0, 0.35); }
.sheet-grid i.mid { background: rgba(212, 165, 116, 0.35); }
.web-bar {
  height: 10px; border-radius: 999px;
  background: rgba(255,255,255,0.06); margin-bottom: 0.55rem;
}
.web-bar::after {
  content: ""; display: block; width: 42%; height: 100%;
  border-radius: inherit; background: rgba(198, 240, 0, 0.45);
}
.web-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.web-blocks b {
  display: block; height: 42px; border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
}
@keyframes floatA {
  0%, 100% { transform: translateZ(20px) translateY(0); }
  50% { transform: translateZ(28px) translateY(-10px); }
}
@keyframes floatB {
  0%, 100% { transform: translateZ(40px) translateY(0) rotateY(-4deg); }
  50% { transform: translateZ(52px) translateY(-8px) rotateY(-2deg); }
}
@keyframes floatC {
  0%, 100% { transform: translateZ(60px) translateY(0); }
  50% { transform: translateZ(72px) translateY(-12px); }
}

.gallery-wrap {
  position: relative;
  margin-top: 1.5rem;
  height: min(560px, 72vh);
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(198, 240, 0, 0.07), transparent 70%);
  cursor: grab;
  touch-action: none;
}
.gallery-wrap.fallback::after {
  content: "Apri su un browser aggiornato per la galleria 3D";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--dim);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}
#gallery3d { width: 100%; height: 100%; display: block; }
.gallery-hint {
  position: absolute; left: 0; right: 0; bottom: 0.9rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--dim);
  pointer-events: none;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
}
.offer-note { margin-top: 1.2rem; max-width: 40rem; }
.pc-visual {
  display: block;
  width: min(100%, 480px);
  height: auto;
  aspect-ratio: 942 / 526;
  object-fit: contain;
  margin: 1.75rem auto 0;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

.strip {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(198, 240, 0, 0.04), transparent);
}
.strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.strip-item strong {
  display: block;
  font-family: "Syne", sans-serif;
  color: var(--volt);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.strip-item span { color: var(--dim); font-size: 0.9rem; }

.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(198, 240, 0, 0.03);
  padding: 0.85rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 2.4rem; width: max-content;
  animation: marquee 32s linear infinite;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.marquee-track span { white-space: nowrap; }
.marquee-track span::before {
  content: "◆";
  color: var(--volt);
  margin-right: 2.4rem;
  font-size: 0.55rem;
  vertical-align: middle;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section { padding: 5.2rem 1.5rem; }
.section.alt {
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(198, 240, 0, 0.06), transparent 60%),
    var(--bg-elev);
}
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-inner.narrow { max-width: 720px; }
.section-inner.center { text-align: center; }
.lead { font-size: 1.05rem; margin-bottom: 1rem; }
.kicker {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--volt);
  margin-bottom: 0.85rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.45rem;
  transition: transform 0.3s var(--ease), border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 240, 0, 0.3);
}
.card-open { border-style: dashed; }
.card-icon {
  width: 36px; height: 36px;
  color: var(--volt);
  margin-bottom: 0.85rem;
}
.card-icon svg { width: 100%; height: 100%; }
.card p { font-size: 0.9rem; }

.no-limit {
  background:
    linear-gradient(180deg, transparent, rgba(198, 240, 0, 0.05)),
    var(--bg);
  border-block: 1px solid var(--line);
}
.no-limit h2 { color: var(--volt); }
.section-visual {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 2.2rem auto 0;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.steps { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.steps li { display: flex; gap: 1.1rem; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 2.3rem; height: 2.3rem;
  border-radius: 10px;
  background: rgba(198, 240, 0, 0.1);
  border: 1px solid rgba(198, 240, 0, 0.35);
  color: var(--volt);
  display: grid; place-items: center;
  font-family: "Syne", sans-serif;
  font-weight: 700;
}
.steps p { font-size: 0.92rem; }

.cta-final {
  padding: 6rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(198, 240, 0, 0.12), transparent 65%);
}
.cta-final h2 { margin-bottom: 0.55rem; }
.cta-final .btn { margin-top: 1.4rem; }

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
}
.footer .section-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer a { color: var(--dim); font-size: 0.9rem; }
.footer a:hover { color: var(--volt); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage-wrap { order: -1; min-height: 340px; }
  .stage { height: 320px; transform: rotateX(10deg) rotateY(-12deg) scale(0.92); }
  .gallery-wrap { height: min(420px, 62vh); }
  .strip-inner { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .pc-visual { width: min(100%, 320px); }
}
@media (max-width: 640px) {
  .hero { padding: 4rem 1.2rem 3rem; min-height: auto; }
  .section { padding: 3.5rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .grain, .cursor-glow { display: none; }
  .marquee-track { animation: none; }
}

.legal h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.6rem;
}
.legal p, .legal li { margin-bottom: 0.75rem; }
.legal-list {
  padding-left: 1.2rem;
  color: var(--dim);
}
.legal a { color: var(--volt); text-decoration: underline; text-underline-offset: 2px; }
.legal code {
  font-size: 0.85em;
  color: var(--ink);
  background: var(--panel);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
