/* ==========================================================================
   BECA Intelligence — Design system "Synthetic Matrix"
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #1E183E;
  --bg-deep: #130d33;
  --bg-lowest: #0e072e;
  --container-low: #1c163c;
  --container: #201a40;
  --container-high: #2a254b;
  --container-highest: #352f57;
  --card: #26204D;
  --card-elev: #2D265B;

  /* Text */
  --text: #FFFFFF;
  --on-surface: #e5deff;
  --soft: #B4B1C5;
  --muted: #8F8C9F;

  /* Accents */
  --cyan: #00F2FE;
  --cyan-bright: #00E5FF;
  --cyan-deep: #06B6D4;
  --primary: #e0fdff;
  --violet: #dbb8ff;
  --violet-deep: #6807ba;
  --violet-glow: #7928CA;
  --error: #ffb4ab;
  --error-container: #93000a;

  --stroke: rgba(143, 140, 159, 0.25);
  --grad-cta: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-deep) 100%);
  --grad-rule: linear-gradient(90deg, var(--cyan), var(--cyan-deep), var(--violet));

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --r-sm: 6px;
  --r: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --gutter: 16px;
  --header-h: 80px;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(143, 140, 159, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 140, 159, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--on-surface);
  font: 400 15px/24px var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: var(--cyan); color: var(--bg); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.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: 100; padding: 10px 16px; border-radius: var(--r); background: var(--cyan); color: var(--bg); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 16px; }

.material-symbols-outlined { font-size: 20px; line-height: 1; user-select: none; flex-shrink: 0; }
.i-16 { font-size: 16px; } .i-18 { font-size: 18px; } .i-22 { font-size: 22px; } .i-24 { font-size: 24px; } .i-26 { font-size: 26px; } .i-30 { font-size: 30px; } .i-32 { font-size: 32px; }

/* ---------- Typography ---------- */
.display { font: 700 38px/44px var(--font-display); letter-spacing: -0.02em; color: var(--text); }
.h-lg { font: 600 28px/36px var(--font-display); letter-spacing: -0.01em; color: var(--text); }
.h-md { font: 600 24px/32px var(--font-display); letter-spacing: -0.01em; color: var(--text); }
.h-sm { font: 600 20px/28px var(--font-display); color: var(--text); }
.metric { font: 700 36px/40px var(--font-display); letter-spacing: -0.02em; color: var(--text); }
@media (min-width: 768px) {
  .display { font-size: 56px; line-height: 64px; letter-spacing: -0.03em; }
  .h-lg { font-size: 40px; line-height: 48px; letter-spacing: -0.02em; }
  .h-md { font-size: 28px; line-height: 36px; }
}
.body-lg { font-size: 16px; line-height: 26px; }
@media (min-width: 768px) { .body-lg { font-size: 18px; line-height: 28px; letter-spacing: -0.01em; } }
.body-sm { font-size: 13px; line-height: 20px; letter-spacing: .01em; }
.label { font: 600 14px/20px var(--font-display); letter-spacing: .05em; }
.label-md { font: 500 12px/16px var(--font-display); letter-spacing: .04em; }
.mono { font: 500 11px/14px var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.mono--bold { font-weight: 600; }

.t-white { color: var(--text); }
.t-soft { color: var(--soft); }
.t-muted { color: var(--muted); }
.t-on { color: var(--on-surface); }
.t-cyan { color: var(--cyan); }
.t-cyan-b { color: var(--cyan-bright); }
.t-cyan-d { color: var(--cyan-deep); }
.t-primary { color: var(--primary); }
.t-violet { color: var(--violet); }
.t-error { color: var(--error); }
.grad-text {
  background: linear-gradient(90deg, var(--primary), var(--cyan) 45%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-text--cyan { background-image: linear-gradient(90deg, var(--cyan), var(--cyan-bright) 50%, var(--violet)); }
strong { color: var(--text); font-weight: 600; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.container--md { max-width: 1152px; }
.container--sm { max-width: 1024px; }
.section { position: relative; padding-block: 64px; }
.section--tight { padding-block: 24px; }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 768px; margin: 0 auto 40px; }
.section-head .mono { margin-bottom: 8px; }
.section-head p { margin-top: 12px; max-width: 640px; }
.section-head--left { align-items: flex-start; text-align: left; margin-inline: 0; }

.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--lg-2 { grid-template-columns: repeat(2, 1fr); }
}

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-auto { margin-top: auto; }

/* Ambient glows */
.glow-wrap { position: relative; overflow: clip; }
.glow { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(130px); }
.glow--cyan { background: rgba(0, 242, 254, 0.10); }
.glow--violet { background: rgba(104, 7, 186, 0.22); }
.glow-wrap > :not(.glow) { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(30, 24, 62, 0.82);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: rgba(143, 140, 159, 0.15); background: rgba(30, 24, 62, 0.92); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: var(--gutter); max-width: 1440px; margin-inline: auto; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark { width: auto; height: 36px; }
.footer-logo { display: inline-block; align-self: flex-start; }
.footer-logo img { width: auto; height: 96px; }
.brand__name { font: 600 19px/1 var(--font-display); letter-spacing: -0.01em; color: var(--text); white-space: nowrap; }
.brand__name span { color: var(--cyan); font-weight: 500; }

.nav { display: none; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(38, 32, 77, 0.6); box-shadow: 0 0 24px -4px rgba(0, 0, 0, .3); }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px; color: #b9cacb; font: 500 12px/16px var(--font-display); letter-spacing: .04em; transition: color .2s, background .2s; }
.nav__link:hover { color: var(--text); background: var(--card-elev); }
.nav__link[aria-current="page"] { background: var(--container-high); color: var(--cyan); font-weight: 600; }
.nav__badge { padding: 2px 6px; border-radius: 999px; background: rgba(0, 242, 254, 0.1); color: var(--cyan); font: 500 10px/14px var(--font-display); letter-spacing: .08em; text-transform: uppercase; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--stroke); border-radius: 999px; background: var(--card); }
.menu-toggle .material-symbols-outlined { font-size: 22px; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
  padding: 16px var(--gutter) 24px;
  background: rgba(19, 13, 51, 0.97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--stroke);
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.mobile-nav.is-open { transform: none; opacity: 1; visibility: visible; }
.mobile-nav a:not(.btn) { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; border-radius: var(--r); font: 500 16px/20px var(--font-display); color: var(--on-surface); }
.mobile-nav a:not(.btn)[aria-current="page"] { color: var(--cyan); background: var(--container-high); }
.mobile-nav .btn { margin-top: 12px; }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .menu-toggle, .mobile-nav { display: none; }
}
.header-cta { display: none; }
@media (min-width: 480px) { .header-cta { display: inline-flex; white-space: nowrap; } }

main { padding-top: var(--header-h); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border: 0; border-radius: 999px;
  font: 700 14px/20px var(--font-display); letter-spacing: .05em; text-transform: uppercase;
  transition: box-shadow .25s, transform .25s, background .25s, color .25s, border-color .25s;
  text-align: center;
}
.btn--primary { background: var(--grad-cta); color: var(--bg); box-shadow: 0 0 28px rgba(0, 242, 254, 0.45); }
.btn--primary:hover { box-shadow: 0 0 40px rgba(0, 242, 254, 0.7); transform: scale(1.02); }
.btn--secondary { background: var(--card); color: var(--text); font-weight: 600; text-transform: none; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.btn--secondary:hover { background: var(--card-elev); color: var(--cyan-bright); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid rgba(143, 140, 159, 0.4); text-transform: none; font-weight: 600; }
.btn--ghost:hover { border-color: var(--cyan); background: rgba(0, 242, 254, 0.08); }
.btn--sm { padding: 8px 20px; font: 500 12px/16px var(--font-display); letter-spacing: .04em; text-transform: none; }
.btn--header { background: var(--card); color: var(--text); box-shadow: 0 0 20px rgba(0, 242, 254, 0.35); }
.btn--header:hover { background: var(--card-elev); }
.btn--block { width: 100%; }
.btn-group { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.btn-group .btn { width: 100%; }
@media (min-width: 640px) {
  .btn-group { flex-direction: row; width: auto; }
  .btn-group .btn { width: auto; }
}

/* ---------- Eyebrow / chips ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; margin-bottom: 24px;
  border-radius: 999px; background: rgba(38, 32, 77, 0.9); box-shadow: 0 0 24px rgba(0, 242, 254, 0.18);
  color: var(--cyan-bright);
}
.pulse { position: relative; display: inline-flex; width: 8px; height: 8px; flex-shrink: 0; }
.pulse::before, .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--cyan); }
.pulse::after { box-shadow: 0 0 8px var(--cyan); }
.pulse::before { animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; opacity: .75; }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; }
.dot--glow { width: 8px; height: 8px; box-shadow: 0 0 8px var(--cyan); }
.dot--b { background: var(--cyan-bright); } .dot--v { background: var(--violet); }

.chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 4px 10px; border-radius: 999px; }
.chip--sq { border-radius: var(--r-sm); padding: 2px 8px; }
.chip--cyan { background: rgba(0, 242, 254, 0.15); color: var(--cyan-bright); }
.chip--error { background: rgba(147, 0, 10, 0.3); color: var(--error); }
.chip--violet { background: rgba(104, 7, 186, 0.3); color: var(--violet); }
.chip--neutral { background: var(--container-highest); color: var(--muted); }
.chip--dim { background: rgba(42, 37, 75, 0.8); color: var(--muted); }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .15); }
.card--lg { padding: 32px; }
@media (min-width: 768px) { .card--lg { padding: 40px; } }
.card--glass { background: rgba(38, 32, 77, 0.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.card--faint { background: rgba(38, 32, 77, 0.4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.card--elev { background: rgba(45, 38, 91, 0.85); box-shadow: 0 0 32px rgba(0, 242, 254, 0.15); }
.card--low { background: var(--container-low); }
.card--hover { transition: background .3s, box-shadow .3s, transform .3s; }
.card--hover:hover { background: var(--card-elev); box-shadow: 0 12px 28px rgba(0, 242, 254, 0.15); }
.card--lift:hover { transform: translateY(-4px); }
.card--accent { overflow: hidden; }
.card--accent::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-rule); }
.card-foot { margin-top: 16px; padding-top: 8px; display: flex; align-items: center; gap: 8px; }

.icon-box { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--container); color: var(--cyan); flex-shrink: 0; }
.icon-box--48 { width: 48px; height: 48px; }
.icon-box--56 { width: 56px; height: 56px; }
.icon-box--high { background: var(--container-high); }
.icon-box--tint-c { background: rgba(0, 242, 254, 0.1); }
.icon-box--tint-b { background: rgba(0, 229, 255, 0.1); color: var(--cyan-bright); }
.icon-box--tint-v { background: rgba(219, 184, 255, 0.1); color: var(--violet); }
.icon-box--round { border-radius: 50%; }

.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 8px; }
.check-list .material-symbols-outlined { font-size: 18px; margin-top: 3px; }
.check-list--lg li { gap: 12px; }
.check-list--lg .material-symbols-outlined { font-size: 20px; margin-top: 2px; }

/* ---------- Page hero ---------- */
.hero { padding-top: 40px; padding-bottom: 64px; }
.hero__center { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 896px; margin-inline: auto; }
.hero__title { max-width: 768px; margin-bottom: 16px; }
.hero__lead { max-width: 672px; margin-bottom: 40px; color: var(--soft); }

/* Dashboard showcase (home) */
.showcase { position: relative; margin-top: 64px; }
.showcase__frame { position: relative; padding: 8px; border-radius: var(--r-lg); background: linear-gradient(to bottom, var(--card-elev), var(--card)); box-shadow: 0 24px 64px -12px rgba(0, 0, 0, .7); overflow: hidden; }
.showcase__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: rgba(14, 7, 46, .8); border-radius: var(--r-md) var(--r-md) 0 0; }
.showcase__bar .lights { display: flex; align-items: center; gap: 6px; min-width: 0; }
.showcase__bar .lights i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.showcase__title { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase__img { position: relative; aspect-ratio: 16 / 9; border-radius: 0 0 var(--r-md) var(--r-md); overflow: hidden; background: var(--bg-lowest); }
.showcase__img img { width: 100%; height: 100%; object-fit: cover; }
.showcase__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 24, 62, .8), transparent 45%); pointer-events: none; }
.float-kpi { position: absolute; z-index: 3; display: none; align-items: center; gap: 10px; padding: 8px 16px; border-radius: var(--r-md); background: rgba(45, 38, 91, 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); text-align: left; }
.float-kpi--l { top: -24px; left: -24px; }
.float-kpi--r { top: -16px; right: -16px; }
.float-pill { position: absolute; z-index: 3; bottom: -16px; left: 50%; transform: translateX(-50%); display: none; align-items: center; gap: 8px; padding: 8px 24px; border-radius: 999px; background: rgba(45, 38, 91, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 25px rgba(0, 0, 0, .5); white-space: nowrap; color: var(--text); }
@media (min-width: 768px) { .float-pill { display: inline-flex; } }
@media (min-width: 1024px) { .float-kpi { display: flex; } }

/* Metric strip */
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 16px; padding: 24px; border-radius: var(--r-lg); background: rgba(38, 32, 77, 0.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
@media (min-width: 768px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metrics__value { font: 700 28px/36px var(--font-display); letter-spacing: -0.02em; }
@media (min-width: 640px) { .metrics__value { font-size: 40px; line-height: 48px; } }
.metrics--center > div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px; border-radius: var(--r-md); background: rgba(38, 32, 77, 0.4); }
.metrics--center { background: none; box-shadow: none; padding: 24px 0 0; border-top: 1px solid rgba(42, 37, 75, 0.6); border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Feature teaser (Excel to Hero) */
.teaser { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 24px; background: linear-gradient(90deg, var(--card-elev), var(--card), var(--card-elev)); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.teaser::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-rule); }
@media (min-width: 640px) { .teaser { padding: 64px; } }
.teaser__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .teaser__grid { grid-template-columns: 2fr 1fr; } }
.roadmap-mini { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r-lg); background: rgba(30, 24, 62, 0.8); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .3); }
.roadmap-mini__row { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--r-sm); background: var(--card); }
.roadmap-mini__n { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; background: #3a494b; color: var(--soft); font: 600 11px/1 var(--font-display); flex-shrink: 0; }
.roadmap-mini__n--c { background: var(--cyan); color: var(--bg); }
.roadmap-mini__n--v { background: var(--violet); color: var(--bg); }

/* CTA panel */
.cta-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 24px; border-radius: var(--r-xl); background: linear-gradient(to bottom, var(--card-elev), var(--card)); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
@media (min-width: 640px) { .cta-panel { padding: 64px; } }
.cta-panel > :not(.glow) { position: relative; z-index: 1; }
.cta-panel .glow { z-index: 0; filter: blur(100px); }
.cta-split { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 32px; padding: 40px 24px; border-radius: var(--r-xl); background: var(--card-elev); box-shadow: 0 24px 50px rgba(0, 0, 0, .45); text-align: center; align-items: center; }
@media (min-width: 768px) { .cta-split { flex-direction: row; justify-content: space-between; text-align: left; padding: 64px; } }
.cta-split > :not(.glow) { position: relative; z-index: 1; }
.cta-split__kicker { justify-content: center; }
@media (min-width: 768px) { .cta-split__kicker { justify-content: flex-start; } }
.cta-split .glow { z-index: 0; filter: blur(90px); }

/* Mock dashboard (Excel to Hero) */
.mock { width: 100%; max-width: 1024px; padding: 16px; border-radius: var(--r-md); background: rgba(28, 22, 60, 0.95); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); text-align: left; }
@media (min-width: 768px) { .mock { padding: 24px; } }
.mock__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.mock__kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
@media (min-width: 1024px) { .mock__kpis { grid-template-columns: repeat(5, 1fr); } }
.mock__kpis > div { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: var(--r); background: var(--card); }
.mock__kpis > div:last-child { grid-column: span 2; }
@media (min-width: 1024px) { .mock__kpis > div:last-child { grid-column: auto; } }
.mock__kpi-val { font: 700 24px/32px var(--font-display); letter-spacing: -0.01em; }
@media (min-width: 768px) { .mock__kpi-val { font-size: 28px; line-height: 36px; } }
.mock__charts { display: grid; gap: 16px; }
@media (min-width: 768px) { .mock__charts { grid-template-columns: 2fr 1fr; } }
.mock__panel { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--card); }
.mock__legend { display: flex; align-items: center; gap: 12px; }
.bar { width: 100%; height: 8px; border-radius: 999px; background: var(--container); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; }
.js .chart-line { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.js .is-visible .chart-line { animation: draw 2.2s ease-out .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Before / after items */
.ba-item { display: flex; align-items: flex-start; gap: 12px; }
.ba-icon { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.ba-icon .material-symbols-outlined { font-size: 16px; }
.ba-icon--x { background: rgba(147, 0, 10, 0.4); color: var(--error); }
.ba-icon--ok { background: rgba(0, 242, 254, 0.2); color: var(--cyan); }
.code-bad { color: var(--error); background: var(--bg); padding: 1px 5px; border-radius: 4px; word-break: break-all; }

/* Roadmap 4 phases */
.phases { position: relative; }
.phases__line { display: none; position: absolute; top: 48px; left: 64px; right: 64px; height: 2px; background: var(--grad-rule); opacity: .3; }
@media (min-width: 1024px) { .phases__line { display: block; } }
.phase-num { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; background: var(--card-elev); font: 600 20px/1 var(--font-display); box-shadow: 0 4px 6px rgba(0, 0, 0, .2); }
.phase-num--active { background: var(--cyan); color: var(--bg); box-shadow: 0 0 16px var(--cyan); }
.phase-foot { margin-top: auto; padding: 6px; border-radius: 4px; background: rgba(42, 37, 75, 0.4); text-align: center; }
.phase-body { margin-bottom: 16px; }

/* Chi siamo — topology */
.topology { position: relative; overflow: hidden; padding: 24px; border-radius: var(--r-md); background: rgba(28, 22, 60, 0.95); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5); }
@media (min-width: 768px) { .topology { padding: 40px; } }
.topology::before { content: ""; position: absolute; inset: 0; opacity: .25; pointer-events: none;
  background-image: radial-gradient(circle at 0 0, var(--muted) 1.5px, transparent 1.6px), linear-gradient(rgba(143,140,159,.5) .5px, transparent .5px), linear-gradient(90deg, rgba(143,140,159,.5) .5px, transparent .5px);
  background-size: 36px 36px; }
.topology__flow { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) { .topology__flow { flex-direction: row; align-items: stretch; } }
.topology__flow > .card { flex: 1; }
.operator { display: flex; align-items: center; justify-content: center; gap: 4px; align-self: center; }
.operator__line { display: none; width: 1px; height: 40px; background: rgba(0, 242, 254, .3); }
@media (min-width: 1024px) { .operator { flex-direction: column; } .operator__line { display: block; } }
.operator__btn { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--container-high); color: var(--cyan); box-shadow: 0 4px 6px rgba(0, 0, 0, .2); }
.node-foot { margin-top: 16px; padding: 10px; border-radius: var(--r); background: rgba(14, 7, 46, 0.4); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.agent-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 4px; background: rgba(42, 37, 75, 0.6); }
.gauge { width: 100%; height: 6px; border-radius: 999px; background: var(--bg-lowest); overflow: hidden; }
.gauge > span { display: block; height: 100%; width: 94%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan-deep), var(--cyan), var(--violet)); }

.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .tools { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .tools { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .tools { grid-template-columns: repeat(7, 1fr); } }
.tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px; border-radius: var(--r-md); background: var(--container-high); text-align: center; transition: background .2s; }
.tool:hover { background: var(--card-elev); }

/* Servizi */
.service-card { justify-content: space-between; }
.service-card .card-bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(42, 37, 75, 0.6); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-card .arrow { color: var(--muted); transition: color .2s, transform .2s; }
.service-card:hover .arrow { color: var(--cyan); transform: translateX(4px); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text); }
.input {
  width: 100%; padding: 10px 16px; border-radius: var(--r);
  background: var(--bg); color: var(--text); border: 1px solid rgba(143, 140, 159, 0.3);
  font: 400 15px/24px var(--font-body); outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder { color: var(--muted); }
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15); background: var(--container-low); }
textarea.input { resize: vertical; min-height: 120px; font-size: 14px; line-height: 22px; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238F8C9F' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.input.is-invalid { border-color: var(--error); }
.consent { display: flex; align-items: flex-start; gap: 10px; }
.consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--cyan); flex-shrink: 0; cursor: pointer; }
.form-feedback { display: none; align-items: center; gap: 12px; margin-top: 16px; padding: 16px; border-radius: var(--r); background: var(--container-high); }
.form-feedback.is-shown { display: flex; }
.form-feedback--error { border: 1px solid rgba(255, 180, 171, .4); }

#contact-layout > .card { order: -1; }
@media (min-width: 1024px) {
  #contact-layout { grid-template-columns: 5fr 7fr; }
  #contact-layout > .card { order: 0; position: sticky; top: calc(var(--header-h) + 24px); }
  #next-steps { grid-template-columns: 2fr 3fr; }
}
.contact-row {display: flex; align-items: flex-start; gap: 16px; padding: 10px; border-radius: var(--r); background: rgba(42, 37, 75, 0.6); transition: background .2s; }
.contact-row:hover { background: var(--container-high); }
.contact-row > div:last-child { min-width: 0; display: flex; flex-direction: column; }

.contact-visual { position: relative; height: 176px; overflow: hidden; border-radius: var(--r-md); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 242, 254, .35), transparent 45%),
    radial-gradient(circle at 15% 90%, rgba(121, 40, 202, .55), transparent 50%),
    linear-gradient(135deg, #1c163c, #0e072e);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5);
}
.contact-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(0,242,254,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(0,242,254,.12) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to top, transparent, #000 70%); -webkit-mask-image: linear-gradient(to top, transparent, #000 70%); }
.contact-visual > * { position: relative; }

/* Legal pages */
.prose { max-width: 768px; }
.prose h2 { font: 600 22px/30px var(--font-display); color: var(--text); margin: 40px 0 12px; }
.prose p, .prose li { color: var(--soft); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; }
.prose a { color: var(--cyan); }
.prose a:hover { text-decoration: underline; }
.todo { background: rgba(255, 180, 171, .12); color: var(--error); padding: 1px 6px; border-radius: 4px; font-size: .92em; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; background: var(--bg-lowest); color: var(--muted); }
.site-footer__inner { max-width: 1440px; margin-inline: auto; padding: 64px var(--gutter); }
.footer-grid { display: grid; gap: 32px; margin-bottom: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 5fr 3fr 4fr; } }
.footer-nav a { color: #b9cacb; transition: color .2s; display: inline-flex; align-items: center; gap: 6px; }
.footer-nav a:hover { color: var(--text); }
.footer-nav a[aria-current="page"] { color: var(--cyan); font-weight: 600; }
.footer-status { display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: var(--r-md); background: var(--card); box-shadow: 0 0 24px -4px rgba(0, 242, 254, 0.1); color: var(--text); }
.footer-bottom { padding-top: 32px; border-top: 1px solid rgba(143, 140, 159, 0.12); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bottom a:hover { color: var(--cyan); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease, background .3s, box-shadow .3s; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.is-visible.card--lift:hover, .card--lift:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .chart-line { stroke-dashoffset: 0; }
}
