/* ==========================================================================
   M&M – Management & Maintenance
   Design system "Modern Atmospheric" (Superdesign)
   ========================================================================== */

/* ---------- Fonts (self-hosted, GDPR friendly) ---------- */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-wght-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Base palette */
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --gray-100: #f3f4f6;
  --surface: #f8f9fa;
  --white: #ffffff;

  /* Brand – cambiare qui per adattare l'accento (es. teal M&M #00B3BB) */
  --brand: #6366f1;
  --brand-600: #4f46e5;
  --brand-300: #a5b4fc;
  --brand-soft: rgba(99, 102, 241, .14);
  --purple: #a855f7;
  --pink: #ec4899;
  --glow: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);

  --border-white: rgba(255, 255, 255, .1);
  --border-light: #e5e7eb;

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Lora", ui-serif, Georgia, "Times New Roman", serif;
  --font-display: "Space Grotesk", var(--font-sans);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --nav-h: 76px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--slate-900); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: #fff; color: var(--slate-900); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 16px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-4xl { max-width: calc(56rem + 2 * var(--gutter)); }
.container-3xl { max-width: calc(48rem + 2 * var(--gutter)); }
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }
.bg-dark { background: var(--slate-900); color: var(--slate-300); isolation: isolate; overflow: hidden; }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }
.bg-surface { background: var(--surface); }
.bg-white { background: #fff; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: var(--stack, 1rem); }

/* ---------- Typography ---------- */
.serif { font-family: var(--font-serif); }
.display { font-family: var(--font-display); letter-spacing: -.02em; }
.h-xxl, .h-xl, .h-lg, .h-md {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.1;
  text-wrap: balance;
}
.h-xxl { font-size: clamp(2.6rem, 7vw, 4.5rem); }
.h-xl { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.h-lg { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
.h-md { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.h-xxl em, .h-xl em, .h-lg em, .h-md em {
  font-style: italic;
  background: linear-gradient(90deg, var(--brand-300), #d8b4fe, #f9a8d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bg-surface .h-xl em, .bg-surface .h-lg em, .bg-surface .h-md em,
.bg-white .h-xl em, .bg-white .h-lg em, .bg-white .h-md em {
  background: linear-gradient(90deg, var(--brand), var(--purple));
  -webkit-background-clip: text; background-clip: text;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.7; color: var(--slate-500); max-width: 62ch; }
.bg-dark .lead, .hero .lead { color: var(--slate-300); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.bg-dark .eyebrow { color: var(--brand-300); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.text-center { margin-inline: auto; }
.section-head .h-lg, .section-head .h-xl { margin-top: 14px; }
.section-head .lead { margin-top: 18px; }
.section-head.text-center .lead { margin-inline: auto; }
.prose p, .prose li { color: var(--slate-600); }
.bg-dark .prose p, .bg-dark .prose li { color: var(--slate-300); }
.prose strong { color: var(--slate-900); font-weight: 600; }
.bg-dark .prose strong { color: #fff; }
.prose a, .link { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bg-dark .prose a, .bg-dark .link { color: var(--brand-300); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--slate-900); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .95rem; line-height: 1; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover .i-arrow-right { transform: translateX(3px); }
.btn-white { --btn-bg: #fff; --btn-fg: var(--slate-900); box-shadow: 0 0 20px rgba(255, 255, 255, .2); }
.btn-white:hover { box-shadow: 0 0 32px rgba(255, 255, 255, .35); }
.btn-brand { --btn-bg: var(--brand); --btn-fg: #fff; box-shadow: 0 8px 30px -8px rgba(99, 102, 241, .6); }
.btn-brand:hover { --btn-bg: var(--brand-600); }
.btn-ghost { --btn-bg: rgba(255, 255, 255, .06); --btn-fg: #fff; border-color: var(--border-white); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost:hover { --btn-bg: rgba(255, 255, 255, .12); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--slate-900); border-color: var(--slate-300); }
.btn-outline:hover { border-color: var(--slate-900); }
.btn-sm { min-height: 38px; padding: 9px 16px; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Glass ---------- */
.glass {
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-white);
}
.glass-strong {
  background: rgba(30, 41, 59, .7);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-white);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .1);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px; border-radius: 999px;
  background: rgba(99, 102, 241, .12); border: 1px solid rgba(129, 140, 248, .3);
  color: var(--brand-300); font-size: .85rem; font-weight: 500;
  transition: background-color .3s var(--ease);
}
.badge:hover { background: rgba(99, 102, 241, .2); }
.badge-tag { padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.badge svg { width: 14px; height: 14px; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: background-color .5s ease-in-out, border-color .5s ease-in-out, backdrop-filter .5s ease-in-out, height .5s ease-in-out;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(15, 23, 42, .78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-white);
  --nav-h: 66px;
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; flex: none; }
.brand-mark { width: 44px; height: 30px; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(180deg); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.03em; line-height: 1; }
.brand-name small { display: block; font-size: .62rem; font-weight: 500; letter-spacing: .08em; text-transform: lowercase; color: var(--slate-400); margin-top: 3px; }

.nav-pill {
  display: flex; align-items: center; gap: 2px;
  padding: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-white);
}
.nav-pill > li { list-style: none; position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: 999px; border: 0; background: none;
  color: var(--slate-200); font-size: .9rem; font-weight: 500;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link.is-active { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%;
  width: 340px; padding: 10px; border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, .92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-white);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.dropdown::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; transition: background-color .2s; }
.dropdown a:hover { background: rgba(255, 255, 255, .06); }
.dropdown .dd-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(99, 102, 241, .15); color: var(--brand-300); }
.dropdown .dd-ico svg { width: 18px; height: 18px; }
.dropdown strong { display: block; color: #fff; font-size: .9rem; font-weight: 600; line-height: 1.3; }
.dropdown span.dd-desc { display: block; color: var(--slate-400); font-size: .8rem; line-height: 1.4; margin-top: 2px; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-white); background: rgba(255, 255, 255, .08); color: #fff; place-items: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(15, 23, 42, .97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: calc(var(--nav-h) + 16px) var(--gutter) 32px;
  overflow-y: auto; opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu details { border-bottom: 1px solid var(--border-white); }
.mobile-menu summary, .mobile-menu > nav > a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 4px; color: #fff; font-family: var(--font-serif); font-size: 1.5rem; list-style: none; cursor: pointer;
}
.mobile-menu > nav > a { border-bottom: 1px solid var(--border-white); }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary svg { width: 20px; height: 20px; transition: transform .3s; color: var(--slate-400); }
.mobile-menu details[open] summary svg { transform: rotate(180deg); }
.mobile-menu details a { display: block; padding: 9px 4px 9px 14px; color: var(--slate-300); font-size: 1rem; }
.mobile-menu details a:last-child { margin-bottom: 14px; }
.mobile-menu .btn { width: 100%; margin-top: 28px; }
body.menu-open { overflow: hidden; }

@media (max-width: 1080px) {
  .nav-pill, .nav-actions .btn { display: none; }
  .nav-toggle { display: grid; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: 110vh; min-height: 110svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 56px) 0 64px;
  background: var(--slate-900); color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99, 102, 241, .22), transparent 70%),
    linear-gradient(to bottom, rgba(15, 23, 42, .92) 0%, rgba(15, 23, 42, .55) 45%, rgba(15, 23, 42, .85) 80%, var(--slate-900) 100%);
}
.grid-overlay {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { color: #fff; margin-top: 28px; max-width: 16ch; }
.hero .typing { margin-top: 22px; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--slate-300); min-height: 1.7em; }
.typing-word { color: #fff; font-weight: 500; }
.typing-cursor { display: inline-block; width: 2px; height: 1.15em; margin-left: 3px; vertical-align: -.2em; background: var(--brand-300); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Compact hero (inner pages) */
.hero--page { min-height: 72vh; min-height: 72svh; padding-bottom: 88px; }
.hero--page .hero-inner { text-align: left; align-items: flex-start; }
.hero--page h1 { max-width: 20ch; margin-top: 22px; }
.hero--page .lead { margin-top: 20px; }
.hero--page .btn-row { margin-top: 32px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--slate-400); margin-top: 28px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* ---------- Vibe input box ---------- */
.vibe { position: relative; width: 100%; max-width: 760px; margin-top: 44px; text-align: left; }
.vibe-glow {
  position: absolute; inset: -4px; z-index: 0; border-radius: 22px;
  background: var(--glow); filter: blur(20px); opacity: .35;
  transition: opacity .5s var(--ease), filter .5s var(--ease);
}
.vibe:hover .vibe-glow, .vibe:focus-within .vibe-glow { opacity: .6; filter: blur(24px); }
.vibe-box { position: relative; z-index: 1; background: #fff; border-radius: var(--radius-lg); padding: 16px; color: var(--slate-900); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.vibe-box textarea {
  width: 100%; min-height: 84px; border: 0; outline: 0; resize: none; background: transparent;
  font-size: 1.25rem; line-height: 1.45; color: var(--slate-900); padding: 4px 4px 8px;
}
.vibe-box textarea::placeholder { color: var(--slate-400); }
.vibe-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--slate-100); }
.vibe-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.vibe-icon-btn {
  width: 38px; height: 38px; flex: none; border-radius: 10px; border: 0; display: grid; place-items: center;
  background: transparent; color: var(--slate-500); transition: background-color .2s, color .2s; position: relative;
}
.vibe-icon-btn:hover { background: var(--slate-100); color: var(--slate-900); }
.vibe-icon-btn svg { width: 20px; height: 20px; }
.vibe-icon-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip-group { display: flex; gap: 6px; flex-wrap: wrap; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--slate-200);
  font-size: .82rem; font-weight: 500; color: var(--slate-600); cursor: pointer; transition: all .2s var(--ease); user-select: none;
}
.chip span:hover { border-color: var(--slate-400); }
.chip input:checked + span { background: var(--slate-900); border-color: var(--slate-900); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.vibe-send {
  width: 42px; height: 42px; flex: none; border-radius: 12px; border: 0; display: grid; place-items: center;
  background: var(--slate-900); color: #fff; transition: transform .3s var(--ease), background-color .3s;
}
.vibe-send:hover { background: var(--brand); transform: translateY(-2px); }
.vibe-send svg { width: 20px; height: 20px; }
.vibe-file { display: none; align-items: center; gap: 8px; margin: 0 4px 10px; padding: 6px 10px; border-radius: 8px; background: var(--slate-100); font-size: .82rem; color: var(--slate-600); width: fit-content; max-width: 100%; }
.vibe-file.is-visible { display: inline-flex; }
.vibe-file button { border: 0; background: none; padding: 0; color: var(--slate-500); line-height: 1; font-size: 1.1rem; }
.vibe-extra { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s ease-in-out; }
.vibe-extra > div { overflow: hidden; }
.vibe.is-expanded .vibe-extra { grid-template-rows: 1fr; }
.vibe-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 4px 0 14px; }
.vibe-fields input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--slate-200); background: var(--surface); font-size: .95rem; }
.vibe-fields input:focus { outline: 0; border-color: var(--brand); background: #fff; }
.vibe-consent { font-size: .8rem; color: var(--slate-500); display: flex; gap: 10px; align-items: flex-start; padding-bottom: 12px; }
.vibe-consent input { margin-top: 3px; accent-color: var(--brand); }
.vibe-consent a { color: var(--brand-600); text-decoration: underline; }
.vibe-hint { margin-top: 14px; font-size: .82rem; color: var(--slate-400); text-align: center; }
@media (max-width: 640px) {
  .vibe-fields { grid-template-columns: 1fr; }
  .vibe-box textarea { font-size: 1.1rem; }
}

/* ---------- Integration bar ---------- */
.integration {
  position: relative; z-index: 2; width: 100%; max-width: 56rem; margin: 72px auto 0;
  display: grid; grid-template-columns: auto 1fr; border-radius: var(--radius-xl); overflow: hidden;
}
.integration > div { padding: 18px 24px; display: flex; align-items: center; gap: 18px; min-width: 0; }
.integration > div + div { border-left: 1px solid var(--border-white); }
.integration-label { flex: none; font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-400); }
.integration-logos { display: flex; align-items: center; gap: 14px; }
.integration-logos img { height: 34px; width: auto; filter: grayscale(1) brightness(1.8) contrast(.9); opacity: .7; transition: filter .4s var(--ease), opacity .4s var(--ease); }
.integration-logos img:hover { filter: none; opacity: 1; }
.marquee { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border-white); color: var(--slate-400); font-size: .85rem; white-space: nowrap; transition: color .3s, border-color .3s, background-color .3s; }
.marquee-item svg { width: 16px; height: 16px; }
.marquee-item:hover { color: #fff; border-color: rgba(129, 140, 248, .5); background: rgba(99, 102, 241, .12); }
@media (max-width: 760px) {
  .integration { grid-template-columns: 1fr; }
  .integration > div + div { border-left: 0; border-top: 1px solid var(--border-white); }
  .integration-logos { flex-wrap: wrap; gap: 10px; }
  .integration-logos img { height: 28px; }
}

/* ==========================================================================
   Feature scroll-spy
   ========================================================================== */
.spy > * { min-width: 0; }
.spy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.spy-nav { position: sticky; top: calc(var(--nav-h) + 32px); }
.spy-nav-title { font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-400); margin-bottom: 18px; }
.spy-nav ol { list-style: none; border-left: 1px solid var(--slate-200); }
.spy-nav li a {
  position: relative; display: block; padding: 8px 0 8px 22px;
  font-size: .92rem; font-weight: 500; color: var(--slate-400); line-height: 1.4;
  transition: color .5s ease-in-out, font-weight .5s ease-in-out;
}
.spy-nav li a::before {
  content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: #000; opacity: 0; transform: scale(.4);
  transition: opacity .5s ease-in-out, transform .5s ease-in-out;
}
.spy-nav li a:hover { color: var(--slate-600); }
.spy-nav li a.is-active { color: var(--slate-900); font-weight: 700; }
.spy-nav li a.is-active::before { opacity: 1; transform: scale(1); }
.spy-cta { margin-top: 28px; padding: 18px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border-light); }
.spy-cta p { font-size: .88rem; color: var(--slate-500); margin-bottom: 12px; }
.spy-main > section + section { margin-top: clamp(72px, 9vw, 120px); }
.spy-main > section { scroll-margin-top: calc(var(--nav-h) + 24px); }
@media (max-width: 960px) {
  .spy { grid-template-columns: minmax(0, 1fr); }
  .spy-nav { position: sticky; top: var(--nav-h); z-index: 20; margin-inline: calc(-1 * var(--gutter)); padding: 10px var(--gutter); background: rgba(248, 249, 250, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-light); }
  .spy-nav-title, .spy-cta { display: none; }
  .spy-nav ol { display: flex; gap: 6px; border: 0; overflow-x: auto; scrollbar-width: none; }
  .spy-nav ol::-webkit-scrollbar { display: none; }
  .spy-nav li a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; font-size: .85rem; }
  .spy-nav li a::before { display: none; }
  .spy-nav li a.is-active { background: var(--slate-900); color: #fff; font-weight: 600; }
}

/* Feature split (alternating Text vs Visual) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 7vw, 96px); }
.feature.is-reverse > :first-child { order: 2; }
.feature-text .h-md, .feature-text .h-lg { margin: 12px 0 16px; }
.feature-text .btn-row { margin-top: 26px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.is-reverse > :first-child { order: 0; }
}

/* Visual: grayscale blueprint with svg overlay */
.blueprint {
  position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--slate-800); border: 1px solid var(--border-light); box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .4);
}
.blueprint img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .8s var(--ease), transform .8s var(--ease); }
.blueprint:hover img { filter: grayscale(0); transform: scale(1.03); }
.blueprint::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 32px 32px; mix-blend-mode: overlay;
}
.blueprint svg.bp-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.bp-lines path, .bp-lines line, .bp-lines rect, .bp-lines circle { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bp-lines .dash { stroke-dasharray: 4 4; }
.bp-lines .dot { fill: var(--brand-300); stroke: none; }
.bp-tag {
  position: absolute; z-index: 2; left: 16px; bottom: 16px; padding: 8px 12px; border-radius: 10px;
  font-family: var(--font-display); font-size: .78rem; color: #fff; letter-spacing: .02em;
}
.blueprint--contain { background: #fff; }
.blueprint--contain img { object-fit: contain; padding: 24px; filter: none; }
.blueprint--contain::after { display: none; }
.blueprint--contain:hover img { transform: none; }

/* Visual: dark code / spec block */
.code {
  border-radius: var(--radius-xl); background: var(--slate-900); color: var(--slate-300);
  border: 1px solid var(--slate-800); box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .5); overflow: hidden;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace; font-size: .86rem; line-height: 1.8;
}
.code-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.code-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--slate-700); }
.code-bar span { margin-left: 8px; font-family: var(--font-display); font-size: .78rem; color: var(--slate-500); }
.code pre { margin: 0; padding: 20px 22px; white-space: pre-wrap; word-break: break-word; }
.code .k { color: var(--brand-300); }
.code .s { color: #86efac; }
.code .n { color: #fda4af; }
.code .c { color: var(--slate-500); }

/* ==========================================================================
   Cards & components
   ========================================================================== */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; padding: clamp(22px, 2.5vw, 30px); border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--border-light);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -24px rgba(15, 23, 42, .25); border-color: var(--slate-300); }
.card h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; margin-bottom: 10px; }
.card p, .card li { font-size: .95rem; color: var(--slate-500); }
.card-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-600); margin-bottom: 18px; }
.card-ico svg { width: 22px; height: 22px; }
.card-ico img { width: 26px; height: 26px; object-fit: contain; }
.card-num { font-family: var(--font-display); font-size: .8rem; font-weight: 600; color: var(--brand); letter-spacing: .08em; margin-bottom: 14px; display: block; }
.card ul.ticks { margin-top: 6px; }
.bg-dark .card, .card.is-dark { background: rgba(255, 255, 255, .04); border-color: var(--border-white); }
.bg-dark .card p, .bg-dark .card li { color: var(--slate-400); }
.bg-dark .card:hover { border-color: rgba(255, 255, 255, .2); }
.bg-dark .card-ico { background: rgba(99, 102, 241, .16); color: var(--brand-300); }

/* Ticks list */
ul.ticks { list-style: none; display: grid; gap: 10px; }
ul.ticks li { position: relative; padding-left: 30px; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.bg-dark ul.ticks li::before { background-color: rgba(99, 102, 241, .2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
ol.decimal { padding-left: 1.3em; display: grid; gap: 8px; }
ol.decimal li::marker { color: var(--brand); font-family: var(--font-display); font-weight: 600; }

/* Service tiles (image cards) */
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 340px; padding: 26px; border-radius: var(--radius-xl); overflow: hidden; isolation: isolate;
  color: #fff; background: var(--slate-800);
}
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(15, 23, 42, .95) 0%, rgba(15, 23, 42, .5) 50%, rgba(15, 23, 42, .1) 100%); }
.tile:hover img { transform: scale(1.06); }
.tile h3 { color: #fff; font-family: var(--font-serif); font-weight: 500; font-size: 1.55rem; line-height: 1.15; letter-spacing: -.02em; }
.tile p { color: var(--slate-300); font-size: .92rem; margin-top: 10px; max-width: 46ch; }
.tile-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .88rem; font-weight: 600; color: #fff; }
.tile-more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.tile:hover .tile-more svg { transform: translateX(4px); }
.tile .tile-kicker { position: absolute; top: 20px; left: 20px; padding: 5px 11px; border-radius: 999px; font-family: var(--font-display); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.tile--sm { min-height: 260px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; border-radius: var(--radius-xl); overflow: hidden; background: var(--border-light); border: 1px solid var(--border-light); }
.stat { background: #fff; padding: 28px 26px; }
.stat-value { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1; letter-spacing: -.04em; color: var(--slate-900); }
.stat-value small { font-size: .45em; margin-left: 4px; color: var(--brand); letter-spacing: 0; }
.stat-label { margin-top: 10px; font-size: .9rem; color: var(--slate-500); }
.bg-dark .stats { background: var(--border-white); border-color: var(--border-white); }
.bg-dark .stat { background: var(--slate-900); }
.bg-dark .stat-value { color: #fff; }
.bg-dark .stat-label { color: var(--slate-400); }

/* Steps / timeline */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 22px 18px 18px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border-light); font-weight: 600; color: var(--slate-900); font-size: .95rem; line-height: 1.35; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: .78rem; color: var(--brand); margin-bottom: 10px; letter-spacing: .08em; }
.timeline { list-style: none; position: relative; display: grid; gap: 16px; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 1px; background: var(--slate-200); }
.timeline > li { position: relative; padding-left: 60px; }
.timeline-dot { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--slate-900); color: #fff; font-family: var(--font-display); font-size: .8rem; font-weight: 600; }
.timeline .card { padding: 22px 24px; }
.timeline .card:hover { transform: none; }
.timeline h3 { margin-bottom: 4px; }
.timeline .meta { font-size: .85rem; color: var(--brand-600); font-weight: 500; margin-bottom: 12px; }
.timeline ol, .timeline ul { padding-left: 1.2em; display: grid; gap: 6px; font-size: .93rem; color: var(--slate-600); }
.timeline ol ol { list-style: lower-alpha; margin-top: 6px; }

/* Tabs (pure CSS radio + JS enhanced) */
.tabs { border-radius: var(--radius-xl); background: #fff; border: 1px solid var(--border-light); overflow: hidden; }
.tab-list { display: flex; gap: 4px; padding: 6px; background: var(--gray-100); border-bottom: 1px solid var(--border-light); overflow-x: auto; scrollbar-width: none; }
.tab-list button { flex: none; border: 0; background: transparent; padding: 10px 16px; border-radius: 10px; font-weight: 500; font-size: .92rem; color: var(--slate-500); transition: all .3s var(--ease); }
.tab-list button[aria-selected="true"] { background: #fff; color: var(--slate-900); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); font-weight: 600; }
.tab-panel { padding: clamp(22px, 3vw, 36px); }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 16px; }

/* Table */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-light); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.table thead th { background: var(--gray-100); font-family: var(--font-display); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-500); font-weight: 600; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 600; color: var(--slate-900); }
.table .center { text-align: center; }
.check { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-600); }
.check svg { width: 14px; height: 14px; }
.dash { color: var(--slate-300); }

/* Pricing / plans */
.plan { display: flex; flex-direction: column; }
.plan.is-featured { background: var(--slate-900); border-color: var(--slate-900); }
.plan.is-featured h3, .plan.is-featured .plan-name { color: #fff; }
.plan.is-featured p, .plan.is-featured li { color: var(--slate-300); }
.plan-name { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 500; color: var(--slate-900); }
.plan .btn { margin-top: auto; }
.plan ul.ticks { margin: 18px 0 26px; }
.plan ul.ticks small { display: block; color: var(--slate-400); font-size: .82rem; }

/* FAQ accordion */
.faq { display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius-lg); background: var(--gray-100); transition: background-color .3s var(--ease); }
.faq-item.is-open { background: #eef0f3; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; border: 0; background: none; text-align: left;
  font-weight: 600; font-size: 1.02rem; color: var(--slate-900); line-height: 1.4;
}
.faq-q svg { width: 20px; height: 20px; flex: none; color: var(--slate-500); transition: transform .4s var(--ease); }
.faq-item.is-open .faq-q svg { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a-inner { padding: 0 24px 22px; color: var(--slate-600); font-size: .96rem; }
.faq-a-inner a { color: var(--brand-600); text-decoration: underline; }
.faq-a-inner .btn { text-decoration: none; margin-top: 8px; }

/* Testimonials / results (masonry) */
.masonry { columns: 3 320px; column-gap: 20px; }
.masonry > * { break-inside: avoid; margin-bottom: 20px; }
.quote { border-radius: var(--radius-lg); padding: 26px; transition: transform .4s var(--ease), border-color .4s var(--ease); }
.quote:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .2); }
.quote-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.quote-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-white); }
.quote-head strong { display: block; color: #fff; font-size: .95rem; font-weight: 600; line-height: 1.3; }
.quote-head span { display: block; color: var(--slate-400); font-size: .82rem; font-family: var(--font-display); }
.quote p { font-size: 14px; line-height: 1.85; color: var(--slate-200); }
.quote-result { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-white); display: flex; flex-wrap: wrap; gap: 8px; }
.quote-result span { padding: 4px 10px; border-radius: 999px; background: rgba(99, 102, 241, .16); color: var(--brand-300); font-size: .8rem; font-weight: 500; }
.quote a.link { display: inline-block; margin-top: 14px; font-size: .88rem; }

/* Callout / CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-xl); padding: clamp(32px, 5vw, 56px); background: var(--slate-900); color: var(--slate-300); }
.cta-band::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -260px; border-radius: 50%; background: var(--glow); filter: blur(80px); opacity: .35; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: var(--slate-300); margin-top: 14px; }
.cta-band .btn-row { margin-top: 26px; }
.cta-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }

.highlight { padding: 22px 24px; border-radius: var(--radius-lg); background: var(--brand-soft); border: 1px solid rgba(99, 102, 241, .25); color: var(--slate-700); }
.highlight strong { color: var(--brand-600); }
.big-figure { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--slate-900); }

/* Logos grid */
.logos { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.logos img { height: 64px; width: auto; padding: 10px 16px; background: #fff; border-radius: 12px; border: 1px solid var(--border-light); filter: grayscale(1); opacity: .8; transition: filter .4s, opacity .4s; }
.logos img:hover { filter: none; opacity: 1; }

/* Certifications strip */
.certs { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 3vw, 36px); align-items: center; }
.certs img { height: 72px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .4s, opacity .4s; }
.certs img:hover { filter: none; opacity: 1; }

/* Downloads */
.downloads { display: grid; gap: 10px; }
.download { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-lg); border: 1px solid var(--border-light); background: #fff; transition: border-color .3s, transform .3s var(--ease); }
.download:hover { border-color: var(--brand); transform: translateX(3px); }
.download svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.download strong { display: block; color: var(--slate-900); font-size: .95rem; }
.download span { display: block; font-size: .82rem; color: var(--slate-400); }
.bg-dark .download { background: rgba(255, 255, 255, .04); border-color: var(--border-white); }
.bg-dark .download strong { color: #fff; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 7px; font-size: .85rem; font-weight: 500; color: var(--slate-700); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: var(--radius); border: 1px solid var(--slate-200);
  background: #fff; color: var(--slate-900); font-size: .97rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ef4444; }
.field-hint { font-size: .8rem; color: var(--slate-400); margin-top: 6px; }
.form-legend { font-family: var(--font-display); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-400); padding-top: 10px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .83rem; color: var(--slate-500); line-height: 1.55; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.consent a { color: var(--brand-600); text-decoration: underline; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius); font-size: .92rem; }
.form-status.is-success { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.is-error { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-xl); background: #fff; color: var(--slate-700); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5); }
.contact-info { display: grid; gap: 18px; margin-top: 32px; }
.contact-info a, .contact-info div.ci { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .ci-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--border-white); color: var(--brand-300); }
.contact-info .ci-ico svg { width: 20px; height: 20px; }
.contact-info small { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-500); font-family: var(--font-display); }
.contact-info strong { color: #fff; font-weight: 500; }
.map-consent { margin-top: 32px; position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--slate-800); border: 1px solid var(--border-white); }
.map-consent img { width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: grayscale(1); }
.map-consent .map-cover { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }
.map-consent p { font-size: .8rem; color: var(--slate-400); margin-top: 10px; max-width: 34ch; }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Multi-step wizard */
.wizard { max-width: 720px; margin-inline: auto; }
.wizard-progress { height: 4px; border-radius: 999px; background: var(--slate-200); overflow: hidden; margin-bottom: 28px; }
.wizard-progress span { display: block; height: 100%; width: 0; background: var(--glow); transition: width .5s var(--ease); }
.wizard-step { display: none; animation: stepIn .5s var(--ease); }
.wizard-step.is-active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } }
.wizard-step h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; margin-bottom: 22px; }
.wizard-meta { font-family: var(--font-display); font-size: .78rem; color: var(--slate-400); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.options { display: grid; gap: 10px; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--slate-200); background: #fff; cursor: pointer; font-weight: 500; color: var(--slate-700); transition: all .25s var(--ease); }
.option span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--slate-300); flex: none; transition: all .25s var(--ease); }
.option span:hover { border-color: var(--slate-400); }
.option input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--slate-900); }
.option input:checked + span::before { border-color: var(--brand); border-width: 6px; }
.option input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.wizard-error { display: none; margin-top: 14px; color: #b91c1c; font-size: .88rem; }
.wizard-error.is-visible { display: block; }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-radius: var(--radius-lg); overflow: hidden; background: var(--border-light); border: 1px solid var(--border-light); }
.results div { background: #fff; padding: 16px 18px; }
.results dt { font-size: .8rem; color: var(--slate-500); }
.results dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--slate-900); letter-spacing: -.02em; }
.results .is-key { grid-column: 1 / -1; background: var(--slate-900); }
.results .is-key dt { color: var(--slate-400); }
.results .is-key dd { color: #fff; font-size: 2rem; }
@media (max-width: 520px) { .results { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--slate-950); color: var(--slate-400); padding: clamp(64px, 8vw, 96px) 0 32px; font-size: .92rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 50%; top: 0; width: 60%; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(129, 140, 248, .6), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-about p { margin-top: 18px; max-width: 38ch; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; color: var(--slate-500); }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; }
.footer-certs { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-certs img { height: 44px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .55; transition: filter .4s, opacity .4s; }
.footer-certs img:hover { filter: none; opacity: 1; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--border-white); display: grid; place-items: center; color: #fff; background: rgba(15, 23, 42, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .4s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   Motion
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Legal pages */
.legal h2 { font-family: var(--font-serif); font-weight: 500; font-size: 1.5rem; letter-spacing: -.02em; margin: 2.2em 0 .6em; }
.legal h3 { font-size: 1.05rem; margin: 1.6em 0 .5em; }
.legal ul { padding-left: 1.2em; margin-bottom: 1em; display: grid; gap: 4px; }
.legal li, .legal p { color: var(--slate-600); }

/* 404 */
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 10rem); font-weight: 700; line-height: 1; letter-spacing: -.06em; background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Loghi certificazioni su fondo scuro: chip bianchi monocromatici */
.integration-logos img, .footer-certs img { background: #fff; border-radius: 8px; padding: 3px; filter: grayscale(1); opacity: .7; }
.integration-logos img:hover, .footer-certs img:hover { filter: none; opacity: 1; }

/* Logo ufficiale M&M */
.brand-logo { height: 34px; width: auto; transition: opacity .3s var(--ease), height .5s ease-in-out; }
.brand:hover .brand-logo { opacity: .85; }
.site-header.is-scrolled .brand-logo { height: 30px; }
.brand-logo--footer { height: 40px; }
@media (max-width: 520px) { .brand-logo { height: 28px; } }
.footer-bottom { padding-right: 60px; }

/* Foto a colori (impianti, incentivi) */
.blueprint--photo img { filter: none; }
.blueprint--photo::after { display: none; }
.blueprint--photo img[src*="conto-termico"] { object-position: 18% center; }

/* Titolo home su due livelli */
.hero h1.hero-title { max-width: 20ch; }
.hero-sub { display: block; margin-top: .25em; font-size: .55em; font-weight: 400; color: var(--slate-300); letter-spacing: -.015em; }
