/* =========================================================
   HelixManager — Landing page
   ========================================================= */

:root {
  --bg: #0b0d09;
  --bg-2: #10130d;
  --bg-3: #161a12;
  --panel: #12150e;
  --line: rgba(236, 232, 214, 0.08);
  --line-2: rgba(236, 232, 214, 0.14);
  --text: #efeadb;
  --muted: #a3a191;
  --dim: #6f6e61;
  --lime: #c8f54a;
  --lime-d: #9fc92a;
  --amber: #f2a65a;
  --blue: #7cc4f2;
  --violet: #b79cff;
  --red: #ff7a6b;

  --f-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --container: 1240px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; scrollbar-color: #2c3226 var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
em { font-style: normal; }

svg use { pointer-events: none; }
svg:not([fill]) { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

::selection { background: var(--lime); color: var(--bg); }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }

/* Grana pellicola */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 3%); }
  40% { transform: translate(3%, -6%); }
  60% { transform: translate(-7%, 2%); }
  80% { transform: translate(4%, 5%); }
}

/* ---------- Tipografia ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.h2 em, .h3 em, .hero__title em, .final__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--lime);
  letter-spacing: -0.01em;
}
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.3vw, 1.18rem); max-width: 620px; margin: 0; }
.lead a { color: var(--lime); border-bottom: 1px solid currentColor; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}
.eyebrow span { color: var(--lime); margin-right: 6px; }
.eyebrow--sm { font-size: 0.72rem; margin-bottom: 10px; }
.eyebrow--center { text-align: center; }

/* ---------- Bottoni ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s, border-color 0.25s, color 0.25s;
}
.btn svg { width: 18px; height: 18px; stroke-width: 2.2; }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 0.88rem; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--lime); color: #0b0d09;
  box-shadow: 0 0 0 0 rgba(200, 245, 74, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -8px rgba(200, 245, 74, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.15); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: rgba(200, 245, 74, 0.5); color: var(--lime); transform: translateY(-2px); }
.btn:focus-visible, .feature:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(11, 13, 9, 0.72); backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.03em; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--lime); color: #0b0d09; display: grid; place-items: center; }
.brand__mark svg { width: 26px; height: 26px; }
.brand__name span { color: var(--muted); font-weight: 500; }

.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: 0.92rem; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__login { font-size: 0.92rem; color: var(--muted); }
.nav__login:hover { color: var(--text); }

.nav__burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease), top 0.3s; }
.nav__burger span:first-child { top: 15px; }
.nav__burger span:last-child { top: 23px; }
.nav.is-open .nav__burger span:first-child { top: 19px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 19px; transform: rotate(-45deg); }
.nav__mobile { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 160px 0 40px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__spiral {
  position: absolute; left: 50%; top: 38%; width: 1500px; height: 1500px;
  transform: translate(-50%, -50%);
  opacity: 0.55;
  animation: spin 160s linear infinite;
  mask-image: radial-gradient(circle at center, #000 0%, rgba(0, 0, 0, 0.6) 35%, transparent 65%);
}
.hero__spiral path, .final__bg path { fill: none; stroke: rgba(200, 245, 74, 0.16); stroke-width: 1; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero__glow {
  position: absolute; left: 50%; top: 62%; width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(200, 245, 74, 0.16), rgba(200, 245, 74, 0.04) 60%, transparent);
  filter: blur(20px);
}

.hero__content { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
  font-size: 0.86rem; color: var(--muted); margin-bottom: 34px;
  transition: border-color 0.2s, color 0.2s;
}
.pill:hover { border-color: rgba(200, 245, 74, 0.5); color: var(--text); }
.pill__tag { background: var(--lime); color: #0b0d09; font-weight: 600; font-size: 0.74rem; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.pill__arrow { width: 15px; height: 15px; transition: transform 0.2s; }
.pill:hover .pill__arrow { transform: translateX(3px); }

.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 10vw, 8.6rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  margin: 0 0 30px;
}
.hero__title em { padding-right: 0.04em; }
.hero__lead { max-width: 640px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.22rem); margin: 0 0 38px; }
.hero__lead strong { color: var(--text); font-weight: 600; }

.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero__meta { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 6px 0; flex-wrap: wrap; justify-content: center; font-family: var(--f-mono); font-size: 0.78rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.hero__meta li { display: flex; align-items: center; }
.hero__meta li + li::before { content: ""; width: 4px; height: 4px; background: var(--lime); border-radius: 1px; margin: 0 16px; }

.hero__visual { position: relative; margin-top: 80px; perspective: 1800px; }

/* Chip flottanti */
.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 14px;
  background: rgba(22, 26, 18, 0.82); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  font-size: 0.82rem; line-height: 1.3;
  animation: bob 6s ease-in-out infinite;
}
.float-chip strong { display: block; font-weight: 600; }
.float-chip small { color: var(--muted); }
.float-chip__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(124, 196, 242, 0.14); color: var(--blue); }
.float-chip__icon--amber { background: rgba(242, 166, 90, 0.14); color: var(--amber); }
.float-chip__icon svg { width: 18px; height: 18px; }
.float-chip--a { left: 6%; top: -34px; }
.float-chip--b { right: 6%; bottom: -30px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Finestra app (mockup) ---------- */
.window {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #171b13, #10130d);
  border: 1px solid var(--line-2);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 50px 120px -30px rgba(0, 0, 0, 0.9),
    0 0 120px -40px rgba(200, 245, 74, 0.25);
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
}
.window--hero { transform: rotateX(14deg) scale(0.96); transform-origin: center top; transition: transform 0.8s var(--ease); }
.window--hero.is-in { transform: rotateX(0) scale(1); }
.window__bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2f24; }
.dots i:first-child { background: #ff6159; } .dots i:nth-child(2) { background: #ffbd2e; } .dots i:nth-child(3) { background: #28c941; }
.window__title { flex: 1; text-align: center; color: var(--dim); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window__status { display: flex; align-items: center; gap: 6px; color: var(--muted); font-family: var(--f-mono); font-size: 10.5px; white-space: nowrap; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(200, 245, 74, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(200, 245, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 245, 74, 0); } }

.app { display: grid; grid-template-columns: 58px 1fr; min-height: 520px; text-align: left; }
.app__side { border-right: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.app__logo { width: 32px; height: 32px; border-radius: 9px; background: var(--lime); color: #0b0d09; display: grid; place-items: center; margin-bottom: 12px; }
.app__logo svg { width: 24px; height: 24px; }
.app__side a { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--dim); }
.app__side a svg { width: 17px; height: 17px; }
.app__side a.is-active { background: rgba(200, 245, 74, 0.12); color: var(--lime); }
.app__main { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.app__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.app__head small { color: var(--dim); font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.app__head h4 { margin: 2px 0 0; font-family: var(--f-display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.app__search { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--dim); min-width: 280px; }
.app__search svg { width: 14px; height: 14px; }
.app__search kbd { margin-left: auto; font-family: var(--f-mono); font-size: 10px; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); display: flex; flex-direction: column; gap: 3px; }
.kpi small { color: var(--dim); font-size: 11px; }
.kpi strong { font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.kpi span { font-size: 10.5px; color: var(--muted); }
.up { color: var(--lime) !important; }
.warn { color: var(--amber) !important; }

.app__grid { display: grid; grid-template-columns: 1.25fr 1fr 0.9fr; gap: 12px; flex: 1; }
.card { border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 600; font-size: 12px; }
.card header small { color: var(--dim); font-weight: 400; font-size: 10.5px; }
.card--flat { padding: 10px 12px; }
.card--flat .chart { height: 120px; }

/* Recinti */
.parcels { display: grid; grid-template-columns: repeat(var(--cols, 6), 1fr); gap: 5px; flex: 1; }
.parcel {
  position: relative; border-radius: 5px; aspect-ratio: 1.25; min-height: 22px;
  background: var(--c); opacity: 0.88;
  font-family: var(--f-mono); font-size: 9px; color: rgba(11, 13, 9, 0.72); font-weight: 500;
  display: flex; align-items: flex-end; padding: 3px 4px;
  transition: transform 0.2s var(--ease), opacity 0.2s, box-shadow 0.2s;
}
.parcel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 55%); }
.parcel[data-s="repro"] { --c: var(--amber); }
.parcel[data-s="grow"] { --c: var(--lime); }
.parcel[data-s="rest"] { --c: #2c3226; color: var(--dim); }
.parcel[data-s="warn"] { --c: var(--red); }
.parcels[data-interactive] .parcel { cursor: pointer; }
.parcels[data-interactive] .parcel:hover { transform: scale(1.06); opacity: 1; }
.parcel.is-selected { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--text); z-index: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 10.5px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.st-repro { background: var(--amber); } .st-grow { background: var(--lime); } .st-rest { background: #3a4132; } .st-warn { background: var(--red); }
.ph-dep { background: var(--amber); } .ph-hat { background: var(--blue); } .ph-grow { background: var(--lime); } .ph-pur { background: var(--violet); }

/* Grafici */
.chart { width: 100%; height: 100%; min-height: 110px; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.chart .area { stroke: none; }
.chart .line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart__axis { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 9.5px; color: var(--dim); }

/* Feed */
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.feed li { display: flex; gap: 10px; align-items: flex-start; }
.feed strong { display: block; font-weight: 500; font-size: 11.5px; }
.feed small { color: var(--dim); font-size: 10.5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; flex: none; }
.dot--lime { background: var(--lime); } .dot--amber { background: var(--amber); } .dot--blue { background: var(--blue); }

/* ---------- Ticker ---------- */
.ticker {
  position: relative; overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; margin-top: 60px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker__track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.ticker__track span { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -0.02em; white-space: nowrap; color: var(--muted); }
.ticker__track span:nth-child(3n + 1) { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { padding: 80px 0 20px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 34px 30px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.6rem, 4.5vw, 3.6rem); letter-spacing: -0.04em; line-height: 1; color: var(--lime); }
.stat p { margin: 14px 0 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Sezioni ---------- */
.section { padding: clamp(100px, 13vw, 160px) 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { margin-bottom: clamp(48px, 6vw, 80px); max-width: 860px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }

/* ---------- Showcase funzionalità ---------- */
.showcase { display: grid; grid-template-columns: minmax(300px, 0.8fr) 1.5fr; gap: 40px; align-items: start; }
.showcase__list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.feature {
  position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 6px; text-align: left;
  padding: 22px 6px 22px 0; border-bottom: 1px solid var(--line);
  color: var(--dim); transition: color 0.3s;
}
.feature:hover { color: var(--muted); }
.feature.is-active { color: var(--text); }
.feature__num { font-family: var(--f-mono); font-size: 0.8rem; padding-top: 6px; }
.feature.is-active .feature__num { color: var(--lime); }
.feature__body { display: flex; flex-direction: column; }
.feature__tag { font-family: var(--f-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7; }
.feature__title { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.025em; line-height: 1.2; margin-top: 2px; }
.feature__desc { display: block; max-height: 0; overflow: hidden; color: var(--muted); font-size: 0.95rem; transition: max-height 0.5s var(--ease), margin 0.5s var(--ease), opacity 0.4s; opacity: 0; }
.feature.is-active .feature__desc { max-height: 180px; margin-top: 10px; opacity: 1; }
.feature__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; overflow: hidden; }
.feature__progress i { display: block; height: 100%; width: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.feature.is-active .feature__progress i { animation: progress var(--dur, 7s) linear forwards; }
.showcase.is-paused .feature.is-active .feature__progress i { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }

.showcase__stage { position: sticky; top: 100px; }
.window--stage { min-height: 520px; }
.window--stage::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 80%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(200, 245, 74, 0.1), transparent);
}

.panel { display: none; padding: 20px 22px 22px; flex-direction: column; gap: 16px; animation: panelIn 0.5s var(--ease); }
.panel.is-active { display: flex; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel__head small { color: var(--dim); font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.panel__head h4 { margin: 2px 0 0; font-family: var(--f-display); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }

.seg { display: inline-flex; padding: 3px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.seg span { padding: 5px 10px; border-radius: 6px; color: var(--dim); font-size: 11px; }
.seg span.is-on { background: rgba(255, 255, 255, 0.07); color: var(--text); }

.mini-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 8px; background: rgba(200, 245, 74, 0.12); color: var(--lime); font-size: 11.5px; font-weight: 600; }
.mini-btn svg { width: 13px; height: 13px; stroke-width: 2.4; }

.tag { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 500; background: rgba(255, 255, 255, 0.06); color: var(--muted); white-space: nowrap; }
.tag--lime { background: rgba(200, 245, 74, 0.13); color: var(--lime); }
.tag--amber { background: rgba(242, 166, 90, 0.14); color: var(--amber); }
.tag--blue { background: rgba(124, 196, 242, 0.14); color: var(--blue); }
.tag--red { background: rgba(255, 122, 107, 0.14); color: var(--red); }
.tag--muted { background: rgba(255, 255, 255, 0.06); color: var(--dim); }

/* Pannello recinti */
.panel__map { display: grid; grid-template-columns: 1fr 210px; gap: 16px; }
.parcels--big { gap: 6px; align-content: start; }
.parcels--big .parcel { aspect-ratio: 1.1; font-size: 9.5px; }
.parcel-detail { border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.parcel-detail small { color: var(--dim); font-size: 10.5px; }
.parcel-detail h5 { margin: -6px 0 0; font-family: var(--f-display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.parcel-detail dl { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.parcel-detail dl div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 7px; }
.parcel-detail dt { color: var(--dim); }
.parcel-detail dd { margin: 0; text-align: right; font-weight: 500; }
.meter, .purge, .bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.meter span, .purge span, .bar span { display: block; height: 100%; width: var(--v); background: var(--lime); border-radius: inherit; transition: width 0.6s var(--ease); }

/* Pannello lotti (gantt) */
.gantt { display: flex; flex-direction: column; gap: 8px; }
.gantt__months { display: grid; grid-template-columns: 82px repeat(9, 1fr); font-family: var(--f-mono); font-size: 9.5px; color: var(--dim); text-transform: uppercase; margin-bottom: 14px; }
.gantt__row { display: grid; grid-template-columns: 82px 1fr; align-items: center; }
.gantt__row > span { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }
.gantt__track { position: relative; height: 26px; border-radius: 7px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 9 - 1px), var(--line) calc(100% / 9 - 1px) calc(100% / 9)); }
.gantt__seg { position: absolute; top: 4px; bottom: 4px; border-radius: 5px; background: var(--c); opacity: 0.9; }
.gantt__today { position: absolute; top: -6px; bottom: -6px; width: 1.5px; background: var(--text); left: var(--x); }
.gantt__today.is-sub { opacity: 0.35; }
.gantt__today.is-sub::before { display: none; }
.gantt__today::before { content: "oggi"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: 9px; color: var(--text); }
.alert-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: rgba(242, 166, 90, 0.08); border: 1px solid rgba(242, 166, 90, 0.22); color: var(--muted); }
.alert-row svg { width: 16px; height: 16px; color: var(--amber); flex: none; margin-top: 1px; }
.alert-row strong { color: var(--amber); }

/* Pannello clima */
.gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gauge { --c: var(--lime); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--muted); }
.gauge--amber { --c: var(--amber); } .gauge--blue { --c: var(--blue); }
.gauge__ring {
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background:
    radial-gradient(closest-side, #141810 78%, transparent 79% 100%),
    conic-gradient(var(--c) calc(var(--v) * 1%), rgba(255, 255, 255, 0.06) 0);
}
.gauge__ring strong { font-family: var(--f-display); font-size: 20px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.zone { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.toggle { width: 30px; height: 17px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); position: relative; flex: none; transition: background 0.25s; cursor: pointer; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--text); transition: transform 0.25s var(--ease); }
.toggle.is-on { background: var(--lime); }
.toggle.is-on::after { transform: translateX(13px); background: #0b0d09; }

/* Pannello raccolta */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 500; color: var(--dim); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; padding: 0 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td:first-child { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.table td:last-child { width: 130px; }
.table td small { color: var(--dim); font-size: 10px; display: block; margin-top: 4px; }
.purge span { background: var(--violet); }
.calibers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.calibers > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); }
.calibers small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.calibers strong { font-family: var(--f-display); font-size: 15px; }
.bar--amber span { background: var(--amber); } .bar--muted span { background: var(--dim); }

/* Pannello tracciabilità */
.trace { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; }
.label-card { border-radius: 14px; background: #f3efe1; color: #1a1c15; padding: 16px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); transform: rotate(-1.5deg); }
.label-card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1.5px dashed rgba(26, 28, 21, 0.25); margin-bottom: 14px; }
.label-card__brand { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: -0.02em; }
.label-card__brand svg { width: 20px; height: 20px; color: #3d6b00; }
.label-card__top small { font-family: var(--f-mono); font-size: 9.5px; text-transform: uppercase; color: #5a5c50; }
.label-card__body { display: grid; grid-template-columns: 108px 1fr; gap: 14px; align-items: center; }
.label-card .qr { width: 108px; height: 108px; fill: #1a1c15; stroke: none; shape-rendering: crispEdges; }
.label-card dl { margin: 0; display: flex; flex-direction: column; gap: 5px; }
.label-card dl div { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; }
.label-card dt { color: #6a6c5e; }
.label-card dd { margin: 0; font-weight: 600; text-align: right; }
.chain { list-style: none; margin: 0; padding: 0 0 0 4px; display: flex; flex-direction: column; }
.chain li { position: relative; padding: 0 0 16px 24px; }
.chain li::before { content: ""; position: absolute; left: 0; top: 3px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--dim); background: var(--bg-3); }
.chain li::after { content: ""; position: absolute; left: 5.5px; top: 16px; bottom: -1px; width: 1px; background: var(--line-2); }
.chain li:last-child::after { display: none; }
.chain li.done::before { background: var(--lime); border-color: var(--lime); }
.chain li.now::before { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(200, 245, 74, 0.18); }
.chain strong { display: block; font-weight: 500; }
.chain small { color: var(--dim); font-size: 10.5px; }

/* Pannello vendite */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.product { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); display: flex; flex-direction: column; gap: 2px; }
.product small { color: var(--dim); }
.product strong { font-family: var(--f-display); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.product span { font-size: 10.5px; color: var(--muted); }
.orders { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.order { display: grid; grid-template-columns: 52px 1.6fr 1fr auto 86px; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.order__id { font-family: var(--f-mono); color: var(--dim); font-size: 11px; }
.order > span:nth-child(3) { color: var(--muted); }
.order strong { text-align: right; font-weight: 600; }

/* ---------- Altri moduli ---------- */
.modules { margin-top: clamp(80px, 10vw, 130px); }
.modules__head { display: flex; flex-direction: column; margin-bottom: 36px; }
.modules__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.module { background: var(--bg); padding: 28px 26px 30px; transition: background 0.3s; }
.module:hover { background: var(--bg-3); }
.module svg { width: 24px; height: 24px; color: var(--lime); margin-bottom: 22px; stroke-width: 1.6; }
.module h4 { margin: 0 0 8px; font-family: var(--f-display); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em; }
.module p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Ciclo ---------- */
.cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.cycle::before {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px;
  background: linear-gradient(90deg, var(--lime), var(--amber) 50%, var(--violet));
  opacity: 0.6;
}
.cycle__step { position: relative; padding: 0 22px 0 0; }
.cycle__idx {
  position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 0.8rem; color: var(--lime);
  margin-bottom: 28px; transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.cycle__step:hover .cycle__idx { background: var(--lime); color: #0b0d09; transform: scale(1.1); }
.cycle__time { display: block; font-family: var(--f-mono); font-size: 0.72rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.cycle__step h3 { margin: 0 0 10px; font-family: var(--f-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.03em; }
.cycle__step p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ---------- On-premise ---------- */
.own { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.own__card {
  position: relative; padding: 34px 30px 36px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-3), var(--bg));
  overflow: hidden; transition: border-color 0.3s, transform 0.4s var(--ease);
}
.own__card:hover { border-color: rgba(200, 245, 74, 0.35); transform: translateY(-4px); }
.own__letter { position: absolute; right: 22px; top: 6px; font-family: var(--f-serif); font-style: italic; font-size: 6.5rem; line-height: 1; color: rgba(200, 245, 74, 0.09); }
.own__icon { width: 30px; height: 30px; color: var(--lime); margin-bottom: 48px; stroke-width: 1.5; }
.own__card h3 { margin: 0 0 10px; font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; }
.own__card p { margin: 0; color: var(--muted); }

.topology { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: clamp(70px, 9vw, 120px); }
.topology__text p { color: var(--muted); margin: 0 0 26px; max-width: 480px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 12px; }
.checklist svg, .plan__list svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: rgba(200, 245, 74, 0.14); color: var(--lime); stroke-width: 3; flex: none; }

.topology__diagram { position: relative; aspect-ratio: 1; max-width: 480px; width: 100%; justify-self: center; }
.topology__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.topology__lines path { stroke: rgba(200, 245, 74, 0.45); stroke-width: 1.2; stroke-dasharray: 4 6; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.node {
  position: absolute; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  width: 150px; padding: 16px 12px; border-radius: 16px; border: 1px solid var(--line-2);
  background: rgba(22, 26, 18, 0.92); backdrop-filter: blur(8px); transform: translate(-50%, -50%);
}
.node svg { width: 22px; height: 22px; color: var(--lime); margin-bottom: 8px; }
.node strong { font-size: 0.88rem; font-weight: 600; }
.node small { color: var(--dim); font-size: 0.74rem; font-family: var(--f-mono); }
.node--core { left: 50%; top: 50%; width: 200px; padding: 22px 14px; border-color: rgba(200, 245, 74, 0.5); box-shadow: 0 0 80px -10px rgba(200, 245, 74, 0.35); }
.node--core svg { width: 30px; height: 30px; }
.node--tl { left: 17.5%; top: 17.5%; } .node--tr { left: 82.5%; top: 17.5%; }
.node--bl { left: 17.5%; top: 82.5%; } .node--br { left: 82.5%; top: 82.5%; }

/* ---------- Prezzi ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 26px; padding: 34px 30px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg); }
.plan header h3 { margin: 0 0 6px; font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; }
.plan header p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.plan__price { display: flex; align-items: flex-start; gap: 6px; }
.plan__cur { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; margin-top: 8px; color: var(--muted); }
.plan__amount { font-family: var(--f-display); font-weight: 700; font-size: 4rem; line-height: 1; letter-spacing: -0.05em; }
.plan__note { font-family: var(--f-mono); font-size: 0.7rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.4; margin-top: 12px; margin-left: 6px; }
.plan__list { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 0.94rem; }
.plan__list li { display: flex; gap: 12px; align-items: center; }
.plan--featured {
  border-color: rgba(200, 245, 74, 0.45);
  background: radial-gradient(120% 70% at 50% 0%, rgba(200, 245, 74, 0.13), transparent 60%), var(--bg-3);
  box-shadow: 0 40px 100px -40px rgba(200, 245, 74, 0.35);
}
.plan__badge { position: absolute; top: -13px; left: 30px; padding: 5px 12px; border-radius: 999px; background: var(--lime); color: #0b0d09; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

.pricing__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; margin-top: 40px; color: var(--muted); font-size: 0.9rem; }
.pricing__foot span { display: inline-flex; align-items: center; gap: 10px; }
.pricing__foot svg { width: 18px; height: 18px; color: var(--lime); }

.reqs { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 50px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.reqs div { padding: 20px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.reqs div:last-child { border-right: 0; }
.reqs small { font-family: var(--f-mono); font-size: 0.72rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.reqs strong { font-weight: 500; font-size: 0.95rem; }

/* ---------- Testimonianze ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { margin: 0; padding: 32px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; gap: 22px; }
.quote__stars { display: flex; gap: 3px; }
.quote__stars svg { width: 15px; height: 15px; fill: var(--lime); stroke: none; }
.quote blockquote { margin: 0; flex: 1; font-family: var(--f-serif); font-size: 1.45rem; line-height: 1.3; letter-spacing: -0.005em; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption strong { display: block; font-weight: 600; font-size: 0.95rem; }
.quote figcaption small { color: var(--dim); font-size: 0.82rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--lime), var(--lime-d)); color: #0b0d09; font-weight: 700; font-size: 0.85rem; flex: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.faq .section__head { position: sticky; top: 110px; margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em;
  transition: color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--lime); }
.faq__icon { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.35s var(--ease); }
.faq__item[open] .faq__icon { background: var(--lime); border-color: var(--lime); color: #0b0d09; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__item p { margin: -6px 0 26px; color: var(--muted); max-width: 640px; }

/* ---------- CTA finale ---------- */
.final { position: relative; padding: clamp(120px, 16vw, 200px) 0; overflow: hidden; text-align: center; }
.final__bg { position: absolute; inset: 0; pointer-events: none; }
.final__bg svg { position: absolute; left: 50%; top: 50%; width: 1400px; height: 1400px; transform: translate(-50%, -50%); animation: spin 200s linear infinite reverse; mask-image: radial-gradient(circle, #000 10%, transparent 60%); }
.final__bg::after { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 500px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(200, 245, 74, 0.14), transparent); }
.final__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.final__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 8.5vw, 7.4rem); line-height: 0.92; letter-spacing: -0.05em; margin: 0 0 26px; }
.final .lead { margin: 0 auto 38px; text-align: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 30px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer__brand p { color: var(--muted); max-width: 320px; margin: 18px 0 14px; font-size: 0.94rem; }
.footer__mail { color: var(--lime); font-size: 0.94rem; }
.footer h4 { font-family: var(--f-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); font-weight: 500; margin: 6px 0 18px; }
.footer__grid > div:not(.footer__brand) { display: flex; flex-direction: column; gap: 10px; }
.footer__grid a:not(.brand):not(.footer__mail) { color: var(--muted); font-size: 0.94rem; transition: color 0.2s; width: fit-content; }
.footer__grid a:not(.brand):not(.footer__mail):hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.85rem; }

/* ---------- Checkout ---------- */
.checkout {
  width: min(520px, 100% - 32px); max-height: calc(100dvh - 32px); padding: 0; border-radius: 22px;
  border: 1px solid var(--line-2); background: var(--bg-3); color: var(--text);
  box-shadow: 0 60px 140px -30px rgba(0, 0, 0, 0.9), 0 0 120px -40px rgba(200, 245, 74, 0.3);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #2c3226 transparent;
}
.checkout[open] { animation: dialogIn 0.4s var(--ease); }
.checkout::backdrop { background: rgba(5, 6, 4, 0.72); backdrop-filter: blur(6px); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.checkout__form, .checkout__done { padding: 26px 28px; display: flex; flex-direction: column; gap: 18px; }
.checkout__head { display: flex; justify-content: space-between; align-items: flex-start; }
.checkout__head h3, .checkout__done h3 { margin: 0; font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; }
.checkout__close { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); transition: color 0.2s, border-color 0.2s; flex: none; }
.checkout__close:hover { color: var(--text); border-color: var(--text); }
.checkout__close svg { width: 16px; height: 16px; }
.checkout fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.checkout legend { font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin-bottom: 8px; padding: 0; }
.opt { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-radius: 14px; border: 1px solid var(--line-2); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.opt:hover { border-color: rgba(200, 245, 74, 0.35); }
.opt input { appearance: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--dim); margin: 0; flex: none; display: grid; place-items: center; }
.opt input:checked { border-color: var(--lime); }
.opt input:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.opt:has(input:checked) { border-color: var(--lime); background: rgba(200, 245, 74, 0.06); }
.opt span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.opt strong { font-weight: 600; }
.opt small { color: var(--dim); font-size: 0.82rem; }
.opt em { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; }
.checkout__os { flex-direction: row !important; flex-wrap: wrap; }
.checkout__os legend { width: 100%; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.9rem; color: var(--muted); transition: all 0.2s; }
.chip input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.checkout__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout__fields .field:first-child { grid-column: 1 / -1; }
@media (max-width: 480px) { .checkout__fields { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.field em { color: var(--dim); }
.field input { height: 44px; min-width: 0; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s; }
.field input::placeholder { color: var(--dim); }
.field input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(200, 245, 74, 0.15); }
.field input.is-invalid { border-color: var(--red); }
.checkout__summary { display: grid; gap: 8px; padding: 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.checkout__summary div { display: flex; justify-content: space-between; }
.checkout__summary strong { color: var(--text); font-weight: 600; }
.checkout__total { padding-top: 10px; border-top: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 1.05rem; }
.checkout__error { margin: -8px 0 0; color: var(--red); font-size: 0.88rem; }
.checkout__fine { margin: -8px 0 0; text-align: center; color: var(--dim); font-size: 0.8rem; }
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading svg { animation: spin2 0.9s linear infinite; }
@keyframes spin2 { to { transform: rotate(360deg); } }

.checkout__done { align-items: center; text-align: center; position: relative; padding-top: 44px; }
.checkout__done .checkout__close { position: absolute; top: 20px; right: 20px; }
.checkout__done p { margin: 0; color: var(--muted); }
.checkout__done p strong { color: var(--text); }
.checkout__ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: #0b0d09; box-shadow: 0 0 0 10px rgba(200, 245, 74, 0.12); }
.checkout__ok svg { width: 30px; height: 30px; stroke-width: 3; }
.license { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px dashed var(--line-2); text-align: left; }
.license small { grid-column: 1; color: var(--dim); font-size: 0.75rem; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.license code { grid-column: 1; font-family: var(--f-mono); font-size: 1rem; color: var(--lime); letter-spacing: 0.04em; }
.license .mini-btn { grid-column: 2; grid-row: 1 / 3; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase__stage { position: relative; top: 0; order: -1; }
  .showcase__list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 30px; }
  .modules__grid { grid-template-columns: repeat(2, 1fr); }
  .cycle { grid-template-columns: repeat(3, 1fr); row-gap: 50px; }
  .cycle::before { display: none; }
  .app__grid { grid-template-columns: 1fr 1fr; }
  .card--feed { display: none; }
}

@media (max-width: 900px) {
  .nav__links, .nav__login { display: none; }
  .nav__burger { display: block; }
  .nav__mobile {
    display: flex; flex-direction: column; padding: 0 24px; max-height: 0; overflow: hidden;
    background: rgba(11, 13, 9, 0.96); backdrop-filter: blur(16px); transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  }
  .nav__mobile a { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; }
  .nav.is-open { background: rgba(11, 13, 9, 0.96); }
  .nav.is-open .nav__mobile { max-height: 420px; padding: 8px 24px 24px; }

  .stats__grid, .reqs { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2), .reqs div:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2), .reqs div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .own, .pricing, .quotes { grid-template-columns: 1fr; }
  .pricing { max-width: 480px; margin-inline: auto; }
  .plan--featured { order: -1; }
  .topology, .faq { grid-template-columns: 1fr; gap: 50px; }
  .faq .section__head { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .window { font-size: 11px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .app__search { display: none; }
  .panel__map { grid-template-columns: 1fr; }
  .trace { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .order { grid-template-columns: 44px 1fr auto; }
  .order > span:nth-child(3), .order .tag { display: none; }
}

@media (max-width: 640px) {
  .container { width: min(var(--container), 100% - 32px); }
  .nav__actions .btn { display: none; }
  .hero { padding-top: 130px; }
  .hero__meta { gap: 8px 18px; }
  .hero__meta li + li::before { display: none; }
  .float-chip { display: none; }
  .window--hero { transform: none; }
  .app { grid-template-columns: 1fr; min-height: 0; }
  .app__side { display: none; }
  .app__main { padding: 14px; }
  .app__grid { grid-template-columns: 1fr; }
  .card--chart { display: none; }
  .window__status { display: none; }
  .showcase__list { grid-template-columns: 1fr; }
  .gauges, .zones, .calibers { grid-template-columns: 1fr; }
  .gauges { grid-template-columns: repeat(3, 1fr); }
  .gauge { padding: 10px 4px; }
  .gauge__ring { width: 68px; height: 68px; }
  .gauge__ring strong { font-size: 15px; }
  .table th:nth-child(2), .table td:nth-child(2), .table th:nth-child(4), .table td:nth-child(4) { display: none; }
  .modules__grid { grid-template-columns: 1fr; }
  .cycle { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 20px; }
  .reqs { grid-template-columns: 1fr; }
  .reqs div { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .reqs div:last-child { border-bottom: 0; }
  .node { width: 100px; padding: 10px 6px; }
  .node svg { width: 18px; height: 18px; margin-bottom: 4px; }
  .node strong { font-size: 0.76rem; line-height: 1.2; }
  .node small { font-size: 0.62rem; }
  .node--core { width: 124px; padding: 14px 8px; }
  .node--core svg { width: 22px; height: 22px; }
  .node--tl { left: 14%; top: 13%; } .node--tr { left: 86%; top: 13%; }
  .node--bl { left: 14%; top: 87%; } .node--br { left: 86%; top: 87%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
