:root {
  --dark: #0D1016;
  --dark-2: #141821;
  --light: #EEF0F3;
  --white: #FFFFFF;
  --ink: #0D1016;
  --ink-muted: #5A6170;
  --on-dark: #F3F5F8;
  --on-dark-muted: #98A1B0;
  --accent: #4D7CFF;
  --accent-soft: rgba(77, 124, 255, .16);
  --ok: #3DDC97;
  --error: #FF8A8A;
  --line-dark: rgba(255, 255, 255, .1);
  --line-light: rgba(13, 16, 22, .12);

  --font: "Geist", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad-x: clamp(20px, 4vw, 64px);
  --section-y: clamp(96px, 16vh, 200px);
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--dark); color: var(--on-dark);
  font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.wrap { width: 100%; padding-inline: var(--pad-x); }
.skip { position: fixed; left: -999px; top: 12px; z-index: 400; padding: 10px 16px; background: #fff; color: var(--ink); border-radius: 8px; }
.skip:focus { left: 12px; }

.h-xl { font-size: clamp(2.75rem, 7.2vw, 7.5rem); line-height: .95; letter-spacing: -.045em; }
.h-lg { font-size: clamp(2.25rem, 4.6vw, 4.5rem); line-height: 1; letter-spacing: -.04em; }
.lead-muted { max-width: 46ch; font-size: clamp(1rem, 1.2vw, 1.1875rem); color: var(--on-dark-muted); }
.split-line { padding-bottom: .04em; }

.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }

/* ---------- Buttons & links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; isolation: isolate;
  height: 58px; padding: 0 30px; border: 0; border-radius: 999px; cursor: pointer;
  font-size: 1rem; font-weight: 500; letter-spacing: -.01em;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--accent);
  transform: translateY(101%); transition: transform .6s var(--ease-out);
}
.btn span { position: relative; transition: color .4s; }
.btn:hover::before { transform: none; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover span { color: #fff; }
.btn--wide { width: 100%; }
.link-line { position: relative; display: inline-block; padding-block: 4px; font-weight: 500; }
.link-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: right; transition: transform .6s var(--ease-out);
}
.link-line:hover::after { transform: scaleX(0); }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 500; display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--pad-x); background: var(--dark); color: var(--on-dark);
}
.loader__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.loader__brand { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -.03em; }
.loader__count { font-size: clamp(5rem, 18vw, 16rem); font-weight: 300; line-height: .8; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.loader__bar { height: 1px; margin-top: 28px; background: var(--line-dark); }
.loader__bar span { display: block; height: 100%; background: var(--on-dark); transform-origin: left; transform: scaleX(0); }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; }
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor input[type="range"] { cursor: none; }
}
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; z-index: 450; pointer-events: none; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
.cursor__ring {
  display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 1px solid rgba(255, 255, 255, .5); mix-blend-mode: difference;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .3s, border-color .3s;
}
.cursor__label { font-size: .75rem; font-weight: 600; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: #fff; }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: #fff; border-color: #fff; mix-blend-mode: normal; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; color: #fff; mix-blend-mode: difference; transition: transform .6s var(--ease-out); }
.header.is-hidden { transform: translateY(-110%); }
.header__inner { display: flex; align-items: center; gap: 40px; padding: 22px var(--pad-x); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 600; letter-spacing: -.03em; }
.logo svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.header__nav { display: flex; gap: 32px; margin-left: auto; font-size: .9375rem; }
.header__nav a { position: relative; padding-block: 6px; opacity: .8; transition: opacity .3s; }
.header__nav a:hover { opacity: 1; }
.header__cta { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; font-size: .9375rem; font-weight: 500; transition: background-color .3s, color .3s; }
.header__cta:hover { background: #fff; color: #000; }
.menu-toggle { display: none; align-items: center; gap: 12px; height: 44px; margin-left: auto; padding: 0 4px; background: none; border: 0; cursor: pointer; font-size: .9375rem; font-weight: 500; }
.menu-toggle__lines { display: grid; gap: 6px; width: 24px; }
.menu-toggle__lines i { display: block; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--pad-x) 32px; background: var(--dark);
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-out);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu nav { display: grid; }
.menu nav a { padding-block: 6px; font-size: clamp(2.5rem, 11vw, 4.5rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; border-bottom: 1px solid var(--line-dark); }
.menu__foot { color: var(--on-dark-muted); font-size: .9375rem; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--dark); }
.hero__media { position: absolute; inset: -4%; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; will-change: transform; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 16, 22, .82) 0%, rgba(13, 16, 22, .35) 55%, rgba(13, 16, 22, .05) 100%),
    linear-gradient(0deg, rgba(13, 16, 22, .9) 0%, rgba(13, 16, 22, 0) 45%);
}
.hero__content { position: absolute; inset: auto 0 0; padding: 0 var(--pad-x) clamp(28px, 5vh, 56px); }
.hero__kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(20px, 3vh, 36px); font-size: .9375rem; color: var(--on-dark-muted); }
.hero__title { font-size: clamp(3rem, 8.4vw, 10.5rem); font-weight: 500; line-height: .92; letter-spacing: -.055em; }
.hero__bottom {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px;
  margin-top: clamp(28px, 5vh, 56px); padding-top: clamp(20px, 3vh, 32px); border-top: 1px solid var(--line-dark);
}
.hero__lead { max-width: 44ch; color: var(--on-dark-muted); font-size: clamp(1rem, 1.15vw, 1.125rem); }
.hero__ctas { display: flex; align-items: center; gap: 28px; }
.hero__scroll { position: absolute; right: var(--pad-x); top: 50%; display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: .75rem; color: var(--on-dark-muted); writing-mode: vertical-rl; }
.hero__scroll i { position: relative; width: 1px; height: 64px; overflow: hidden; background: var(--line-dark); }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: #fff; animation: scrollline 2.2s var(--ease-out) infinite; }
@keyframes scrollline { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: clamp(28px, 5vw, 64px); background: var(--dark); border-bottom: 1px solid var(--line-dark); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee span { padding-inline: clamp(20px, 2.4vw, 40px); font-size: clamp(3rem, 8vw, 8.5rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; white-space: nowrap; }
.marquee span:nth-child(4n+3) { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .45); }
.marquee i { width: clamp(12px, 1.4vw, 22px); height: clamp(12px, 1.4vw, 22px); border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ---------- Manifesto ---------- */
.manifesto { padding-block: var(--section-y); background: var(--light); color: var(--ink); }
.manifesto__text { font-size: clamp(1.875rem, 4.3vw, 4.5rem); font-weight: 500; line-height: 1.08; letter-spacing: -.04em; max-width: 26ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(72px, 14vh, 160px); }
.fact { padding-top: 24px; border-top: 1px solid var(--line-light); }
.fact__value { display: flex; align-items: baseline; gap: 10px; font-size: clamp(3.5rem, 7vw, 7rem); font-weight: 300; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.fact__value small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--ink-muted); }
.fact__label { margin-top: 16px; max-width: 30ch; color: var(--ink-muted); }

/* ---------- Services ---------- */
.services { padding-block: var(--section-y); background: var(--dark); }
.services__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; margin-bottom: clamp(48px, 10vh, 120px); }
.services__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 120px); }
.services__visual { position: sticky; top: 12vh; height: 76vh; }
.services__frame { position: relative; height: 100%; overflow: hidden; border-radius: 24px; background: var(--dark-2); }
.services__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); }
.services__img.is-active { clip-path: inset(0 0 0 0); }
.services__counter {
  position: absolute; z-index: 9999; left: 24px; bottom: 24px; display: flex; gap: 8px; align-items: baseline;
  padding: 10px 16px; border-radius: 999px; background: rgba(13, 16, 22, .55); backdrop-filter: blur(12px);
  font-size: .875rem; font-variant-numeric: tabular-nums; color: var(--on-dark-muted);
}
.services__counter span:first-child { color: #fff; font-weight: 600; }
.service { display: flex; flex-direction: column; justify-content: center; min-height: 76vh; opacity: .22; transition: opacity .6s var(--ease-out); }
.service.is-active { opacity: 1; }
.service__img { display: none; }
.service h3 { font-size: clamp(2.25rem, 4.2vw, 4rem); line-height: 1; letter-spacing: -.045em; }
.service p { margin-top: 24px; max-width: 44ch; color: var(--on-dark-muted); font-size: clamp(1rem, 1.2vw, 1.1875rem); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags li { padding: 8px 16px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: .875rem; color: var(--on-dark); }

/* ---------- Cases (horizontal) ---------- */
.cases { background: var(--light); color: var(--ink); }
.cases__pin { display: flex; flex-direction: column; justify-content: center; gap: clamp(32px, 6vh, 64px); padding-block: var(--section-y); }
.cases.is-pinned .cases__pin { height: 100vh; padding-block: 0; }
.cases__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; }
.cases__head .lead-muted { color: var(--ink-muted); }
.cases__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cases__viewport::-webkit-scrollbar { display: none; }
.cases.is-pinned .cases__viewport { overflow: visible; }
.cases__track { display: flex; gap: 20px; width: max-content; padding-inline: var(--pad-x); will-change: transform; }
.case {
  scroll-snap-align: start; display: flex; flex-direction: column; width: clamp(290px, 28vw, 420px); min-height: clamp(400px, 54vh, 520px);
  padding: clamp(24px, 2.4vw, 36px); background: var(--white); border-radius: 24px;
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out);
}
.case__dept { font-size: .875rem; font-weight: 500; color: var(--ink-muted); transition: color .5s; }
.case h3 { margin-top: 20px; font-size: clamp(1.625rem, 2.2vw, 2.125rem); line-height: 1.05; letter-spacing: -.035em; }
.case p { margin-top: 14px; color: var(--ink-muted); transition: color .5s; }
.case__art { width: 100%; height: auto; margin-top: auto; padding-top: 28px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s; }
.case__art .accent { stroke: var(--accent); }
.case__art .fill { fill: var(--accent); stroke: none; }
.case:hover { background: var(--ink); color: #fff; }
.case:hover .case__dept, .case:hover p { color: var(--on-dark-muted); }
.case:hover .case__art { stroke: #fff; }
.cases__progress { height: 1px; }
.cases__progress span { display: block; height: 1px; background: var(--ink); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 0 0; }
.cases:not(.is-pinned) .cases__progress { display: none; }

/* ---------- Live demo ---------- */
.live { padding-block: var(--section-y); background: var(--dark); }
.live__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 120px); align-items: center; }
.live__copy .lead-muted { margin-top: 24px; }
.seg { display: inline-flex; gap: 4px; margin-top: 36px; padding: 4px; border: 1px solid var(--line-dark); border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-size: .9375rem; color: var(--on-dark-muted); white-space: nowrap; transition: background-color .4s var(--ease-out), color .4s; }
.seg button:hover { color: #fff; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); }
.live__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.live__stats div { padding-top: 20px; border-top: 1px solid var(--line-dark); }
.live__stats strong { display: block; font-size: clamp(2.5rem, 4vw, 3.75rem); font-weight: 300; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.live__stats span { display: block; margin-top: 10px; font-size: .875rem; color: var(--on-dark-muted); }
.live__panel { overflow: hidden; border: 1px solid var(--line-dark); border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); box-shadow: 0 40px 120px -40px rgba(77, 124, 255, .25); }
.live__bar { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line-dark); font-size: .8125rem; color: var(--on-dark-muted); }
.live__dots { display: flex; gap: 6px; }
.live__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.live__status { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--ok); }
.live__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
.live__body { padding: clamp(16px, 2.4vw, 32px); }
.flow { display: block; width: 100%; height: auto; overflow: visible; }
.flow__wires path { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; stroke-dasharray: 3 6; stroke-linecap: round; }
.node rect { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .14); stroke-width: 1; transition: fill .5s var(--ease-out), stroke .5s; }
.node text { fill: #fff; font: 500 15px var(--font); }
.node .node__kind { font-size: 12px; fill: var(--on-dark-muted); transition: fill .5s; }
.node.is-on rect { fill: var(--accent); stroke: var(--accent); }
.node.is-on .node__kind { fill: rgba(255, 255, 255, .78); }
.node.is-thinking rect { stroke: var(--accent); animation: think .6s ease-in-out infinite alternate; }
@keyframes think { from { stroke-width: 1; fill: rgba(77, 124, 255, .08); } to { stroke-width: 4; fill: rgba(77, 124, 255, .22); } }
.flow__packets circle { fill: #fff; filter: drop-shadow(0 0 8px var(--accent)); }
.log { position: relative; height: 132px; margin-top: 20px; padding-top: 16px; overflow: hidden; border-top: 1px solid var(--line-dark); font-size: .8125rem; font-variant-numeric: tabular-nums; mask-image: linear-gradient(0deg, #000 60%, transparent); }
.log li { display: flex; gap: 14px; padding-block: 3px; color: var(--on-dark-muted); animation: logIn .5s var(--ease-out) both; }
.log time { color: rgba(255, 255, 255, .35); }
.log li.is-ok span { color: var(--ok); }
@keyframes logIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Process (stacked cards) ---------- */
.process { padding-block: var(--section-y); background: var(--light); color: var(--ink); }
.process__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; margin-bottom: clamp(48px, 10vh, 120px); }
.process__head .lead-muted { color: var(--ink-muted); }
.stack { display: grid; gap: 4vh; }
.stack__card {
  position: sticky; top: calc(12vh + var(--i, 0) * 28px);
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: clamp(20px, 4vw, 80px);
  min-height: 46vh; padding: clamp(28px, 4vw, 64px); border-radius: 28px; background: var(--ink); color: #fff;
  transform-origin: center top; will-change: transform;
}
.stack__card:nth-child(1) { --i: 0; }
.stack__card:nth-child(2) { --i: 1; background: #161B26; }
.stack__card:nth-child(3) { --i: 2; background: #1E2533; }
.stack__card:nth-child(4) { --i: 3; background: var(--accent); }
.stack__num { font-size: clamp(3.5rem, 8vw, 8rem); font-weight: 300; line-height: .8; letter-spacing: -.06em; color: rgba(255, 255, 255, .35); }
.stack__card:nth-child(4) .stack__num { color: rgba(255, 255, 255, .6); }
.stack__body h3 { font-size: clamp(2rem, 4vw, 3.75rem); line-height: 1; letter-spacing: -.045em; }
.stack__body p { margin-top: 20px; max-width: 46ch; color: rgba(255, 255, 255, .7); font-size: clamp(1rem, 1.2vw, 1.1875rem); }
.stack__time { padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; font-size: .875rem; white-space: nowrap; }

/* ---------- Calculator ---------- */
.calc { padding-block: var(--section-y); background: var(--dark); }
.calc__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 120px); align-items: center; }
.calc .lead-muted { margin-top: 24px; }
.ranges { margin-top: 40px; }
.range { display: block; padding-block: 22px; border-top: 1px solid var(--line-dark); }
.range__label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; color: var(--on-dark-muted); font-size: .9375rem; }
.range output { color: #fff; font-size: 1.25rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.range input { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin-top: 12px; background: none; }
.range input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), rgba(255, 255, 255, .15) var(--p, 50%)); border-radius: 2px; }
.range input::-moz-range-track { height: 2px; background: rgba(255, 255, 255, .15); }
.range input::-moz-range-progress { height: 2px; background: var(--accent); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(77, 124, 255, .3); transition: transform .2s; }
.range input::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(77, 124, 255, .3); }
.range input:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc__result { padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line-dark); border-radius: 28px; background: radial-gradient(120% 120% at 100% 0%, rgba(77, 124, 255, .22), transparent 60%), rgba(255, 255, 255, .02); }
.calc__stat { display: flex; flex-direction: column; }
.calc__stat + .calc__stat { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line-dark); }
.calc__stat span { font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 300; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc__stat small { margin-top: 12px; font-size: 1rem; color: var(--on-dark-muted); }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--section-y); background: var(--light); color: var(--ink); }
.faq__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.faq__list { border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .6s var(--ease-out), content-visibility .6s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; list-style: none; cursor: pointer; font-size: clamp(1.125rem, 1.7vw, 1.5rem); font-weight: 500; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--line-light); border-radius: 50%; transition: background-color .4s, border-color .4s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; transition: transform .5s var(--ease-out); }
.plus::after { transform: rotate(90deg); }
.faq details[open] .plus { background: var(--ink); border-color: var(--ink); color: #fff; }
.faq details[open] .plus::after { transform: rotate(0); }
.faq__a p { max-width: 60ch; padding-bottom: 28px; color: var(--ink-muted); font-size: 1.0625rem; }

/* ---------- CTA + form ---------- */
.cta { position: relative; overflow: hidden; padding-block: var(--section-y); background: var(--dark); isolation: isolate; }
.cta__media { position: absolute; inset: -10% 0; z-index: -1; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--dark) 0%, rgba(13, 16, 22, .4) 35%, rgba(13, 16, 22, .85) 75%, var(--dark) 100%); }
.cta__title { font-size: clamp(3rem, 9vw, 10rem); line-height: .92; letter-spacing: -.055em; max-width: 12ch; }
.cta__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 120px); margin-top: clamp(56px, 10vh, 120px); }
.checks { display: grid; gap: 14px; margin-top: 32px; }
.checks li { display: flex; align-items: center; gap: 14px; }
.checks li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 11.5l2.5 2.5L15 8.5' fill='none' stroke='%234D7CFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.form { display: grid; gap: 8px; padding: clamp(24px, 3vw, 44px); border: 1px solid var(--line-dark); border-radius: 28px; background: rgba(13, 16, 22, .55); backdrop-filter: blur(20px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field { position: relative; padding-top: 22px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .22); border-radius: 0;
  background: transparent; color: #fff; font: 400 1.0625rem/1.4 var(--font); transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2398A1B0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right center/18px no-repeat; }
.field select option { color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: #fff; }
.field label { position: absolute; left: 0; top: 32px; color: var(--on-dark-muted); font-size: 1.0625rem; pointer-events: none; transform-origin: left top; transition: transform .4s var(--ease-out), color .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label { transform: translateY(-28px) scale(.8); color: #fff; }
.field [aria-invalid="true"] { border-bottom-color: var(--error); }
.field__error { margin-top: 6px; font-size: .8125rem; color: var(--error); }
.form__alert { margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 138, 138, .12); color: var(--error); font-size: .9375rem; }
.form .btn { margin-top: 24px; }
.form__note { margin-top: 8px; text-align: center; font-size: .8125rem; color: var(--on-dark-muted); }

/* ---------- Footer ---------- */
.footer { overflow: hidden; padding-top: clamp(56px, 10vh, 120px); background: var(--dark); border-top: 1px solid var(--line-dark); }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; color: var(--on-dark-muted); }
.footer__top nav { display: flex; flex-wrap: wrap; gap: 28px; color: var(--on-dark); }
.footer__top nav a { opacity: .75; transition: opacity .3s; }
.footer__top nav a:hover { opacity: 1; }
.footer__word { margin-top: clamp(40px, 8vh, 96px); font-size: 27.5vw; font-weight: 600; line-height: .78; letter-spacing: -.07em; text-align: center; white-space: nowrap; color: var(--on-dark); overflow: hidden; padding-top: .04em; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 24px; font-size: .875rem; color: var(--on-dark-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header__nav { display: none; }
  .header__cta { margin-left: auto; }
}
@media (max-width: 900px) {
  .header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero__scroll { display: none; }
  .hero__ctas { width: 100%; flex-wrap: wrap; }
  .services__grid { grid-template-columns: 1fr; }
  .services__visual { display: none; }
  .service { min-height: 0; opacity: 1; padding-bottom: 72px; }
  .service__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 28px; border-radius: 20px; }
  .live__grid, .calc__grid, .faq__grid, .cta__grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .fact { padding-block: 24px; }
  .stack__card { grid-template-columns: 1fr; gap: 20px; min-height: 0; top: calc(10vh + var(--i, 0) * 16px); }
  .stack__time { justify-self: start; }
}
@media (max-width: 600px) {
  .form__row { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; }
  .footer__bottom { flex-direction: column; }
  .live__stats { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .service { opacity: 1; }
}

/* ---------- Siti e social (prezzi) ---------- */
.plans { padding-block: var(--section-y); background: var(--white); color: var(--ink); }
.plans__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; margin-bottom: clamp(40px, 8vh, 96px); }
.plans__head .lead-muted { color: var(--ink-muted); }
.plans__promo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 8px 16px; border-radius: 999px; background: var(--accent-soft); font-size: .875rem; font-weight: 500; }
.plans__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 28px; border: 1px solid var(--line-light); border-radius: 24px; background: var(--light); }
.plan h3 { font-size: 1.375rem; line-height: 1.15; letter-spacing: -.02em; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plan__price strong { font-size: clamp(2.25rem, 3vw, 2.75rem); font-weight: 400; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.plan__price s, .plan__price small, .plan > p:not(.plan__price) { color: var(--ink-muted); }
.plan__price small { flex-basis: 100%; font-size: .875rem; }
.plan .tags { margin-top: auto; padding-top: 8px; }
.plan .tags li { border-color: var(--line-light); color: var(--ink); padding: 6px 12px; font-size: .8125rem; }
.plan--main { background: var(--dark); color: var(--on-dark); border-color: transparent; }
.plan--main > p:not(.plan__price), .plan--main .plan__price s, .plan--main .plan__price small { color: var(--on-dark-muted); }
.plan--main .tags li { border-color: var(--line-dark); color: var(--on-dark); }
.plans__cta { margin-top: 40px; }
.btn--dark { background: var(--ink); color: var(--white); }
@media (max-width: 1100px) { .plans__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans__grid { grid-template-columns: 1fr; } .plans__cta .btn { width: 100%; } }
