/* ProBalance — modern, lively theme (teal → lime) */
:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --bg2: #ffffff;
  --soft: #eef2f7;
  --ink: #0b1220;
  --ink2: #364152;
  --muted: #64748b;
  --line: #e3e8f0;
  --acc: #0e8a9e;
  --acc2: #2fb5c9;
  --acc-ink: #0b6f80;
  --dark: #0b2140;
  --dark2: #10294d;
  --on-dark: #eef2f7;
  --on-dark-muted: #9aa8bd;
  --dark-line: rgba(255,255,255,.1);
  --glass: rgba(255,255,255,.72);
  --shadow: 0 1px 2px rgba(11,18,32,.04), 0 16px 40px -20px rgba(11,18,32,.25);
  --f-d: "Outfit", "Segoe UI", Roboto, sans-serif;
  --f-b: "DM Sans", "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #081a33; --bg2: #0f2547; --soft: #0c1f3d; --ink: #eef2f7; --ink2: #c5cfdd; --muted: #93a0b4; --line: #1d3558;
    --acc-ink: #5fd3e3; --glass: rgba(8,26,51,.7); --shadow: 0 16px 40px -20px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #081a33; --bg2: #0f2547; --soft: #0c1f3d; --ink: #eef2f7; --ink2: #c5cfdd; --muted: #93a0b4; --line: #1d3558;
  --acc-ink: #5fd3e3; --glass: rgba(8,26,51,.7); --shadow: 0 16px 40px -20px rgba(0,0,0,.6);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--f-b); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--f-d); letter-spacing: -0.02em; text-wrap: balance; line-height: 1.1; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--bg2); padding: 8px 12px; }
.skip:focus { left: 16px; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.narrow { max-width: 820px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mono { font-variant-numeric: tabular-nums; }
.grad { background: linear-gradient(95deg, var(--acc), var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Ambient background canvas */
.bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .9; }
main, .hdr, .foot { position: relative; z-index: 1; }

/* Scroll progress */
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; height: 3px; width: 0; z-index: 60; background: linear-gradient(90deg, var(--acc), var(--acc2)); transition: width .1s linear; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font: 600 .95rem/1 var(--f-b); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; position: relative; overflow: hidden; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s; }
.btn .ic { width: 18px; height: 18px; transition: transform .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ic { transform: translateX(4px); }
.btn-primary { background: linear-gradient(95deg, var(--acc), var(--acc2)); color: #062033; box-shadow: 0 10px 30px -10px rgba(14,138,158,.6); }
.btn { isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, var(--acc2), var(--acc)); opacity: 0; transition: opacity .3s; }
.btn-primary:hover::after { opacity: 1; }
.btn-ghost { border-color: var(--ink); color: var(--bg); background: var(--ink); }
.btn-ghost:hover { background: var(--acc-ink); border-color: var(--acc-ink); color: #fff; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--acc-ink); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .86rem; }

/* Header */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--glass); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.hdr.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -20px rgba(11,18,32,.3); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { height: 40px; width: auto; display: block; transition: transform .3s; }
.brand:hover .logo { transform: translateY(-2px) rotate(-3deg); }
.foot .logo { height: 44px; }
.brand-t { font: 700 1.3rem/1 var(--f-d); letter-spacing: -0.02em; color: var(--ink); }
.brand-t b { font-weight: 700; color: var(--acc); }
.nav { display: flex; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink2); font-weight: 500; font-size: .92rem; transition: background .2s, color .2s; }
.nav a:hover, .nav a.active { background: var(--soft); color: var(--ink); }
.hdr-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .2s, border-color .2s; }
.icon-btn:hover { transform: rotate(15deg); border-color: var(--acc); }
.icon-btn .ic { width: 18px; height: 18px; grid-area: 1/1; transition: opacity .25s, transform .4s; }
.i-moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
:root[data-theme="dark"] .i-sun { opacity: 0; transform: rotate(60deg) scale(.6); }
:root[data-theme="dark"] .i-moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { opacity: 0; transform: rotate(60deg) scale(.6); }
  :root:not([data-theme="light"]) .i-moon { opacity: 1; transform: none; }
}
.burger { display: none; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, opacity .25s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.burger[aria-expanded="true"] .bars { background: transparent; }
.burger[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding-block: clamp(56px, 8vw, 110px) 0; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: clamp(48px, 6vw, 80px); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--ink2); box-shadow: var(--shadow); }
.pill .ic { width: 16px; height: 16px; color: var(--acc); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; margin-top: 26px; }
.lead { margin-top: 22px; font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.counters { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 28px 40px; }
.counters li { display: grid; gap: 2px; }
.counters strong { font: 800 2rem/1 var(--f-d); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.counters > li > span { font-size: .85rem; color: var(--muted); }

.hero-visual { position: relative; }
.dash { background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: 0 40px 80px -40px rgba(11,18,32,.45), var(--shadow); display: grid; gap: 16px; transform-style: preserve-3d; transition: transform .2s ease-out; }
.dash-top { display: flex; align-items: center; gap: 6px; }
.dash-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dash-dot:nth-child(1) { background: #f87171; } .dash-dot:nth-child(2) { background: #fbbf24; } .dash-dot:nth-child(3) { background: #34d399; }
.dash-title { margin-left: 8px; font-size: .78rem; color: var(--muted); font-weight: 500; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-kpis > div { background: var(--soft); border-radius: 12px; padding: 12px; display: grid; gap: 2px; }
.dash-kpis small { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.dash-kpis strong { font: 700 1.1rem/1.2 var(--f-d); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-kpis em { font-style: normal; font-size: .72rem; color: var(--muted); }
.dash-kpis em.up { color: var(--acc-ink); font-weight: 600; }
.dash-chart svg { width: 100%; height: 120px; display: block; }
.dash-chart .line { stroke: var(--acc); stroke-width: 2.5; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s cubic-bezier(.4,0,.2,1) .4s forwards; }
.dash-chart .area { opacity: 0; animation: fade 1s 1.6s forwards; }
.dash-chart .pt { fill: var(--acc2); stroke: var(--bg2); stroke-width: 2; opacity: 0; animation: fade .4s 2.4s forwards, pulse 2s 2.8s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse { 50% { r: 6; } }
.dash-legend { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 6px; }
.dash-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dash-rows li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; font-size: .8rem; }
.dash-rows .b { height: 8px; border-radius: 99px; background: var(--soft); position: relative; overflow: hidden; }
.dash-rows .b::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--acc), var(--acc2)); transform: scaleX(0); transform-origin: left; animation: grow 1.2s cubic-bezier(.2,.8,.2,1) 1s forwards; }
.dash-rows .b-warn::after { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
@keyframes grow { to { transform: scaleX(1); } }
.dash-rows span:nth-child(2) { color: var(--ink2); }
.dash-rows b { font-size: .7rem; padding: 3px 8px; border-radius: 99px; background: rgba(14,138,158,.14); color: var(--acc-ink); font-weight: 600; }
.dash-rows li:last-child b { background: rgba(245,158,11,.16); color: #b45309; }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .82rem; font-weight: 600; animation: float 6s ease-in-out infinite; }
.chip .ic { width: 18px; height: 18px; color: var(--acc); }
.chip-a { top: -18px; right: -8px; }
.chip-b { bottom: -18px; left: -8px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }

.marquee { border-block: 1px solid var(--line); background: var(--bg2); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; padding-block: 14px; animation: marquee 40s linear infinite; }
.marquee-track span { white-space: nowrap; font: 600 .85rem var(--f-d); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.sec { padding-block: clamp(72px, 9vw, 112px); }
.sec-soft { background: var(--soft); }
.sec-dark { background: radial-gradient(900px 500px at 90% 0%, rgba(14,138,158,.18), transparent 60%), var(--dark); color: var(--on-dark); }
.sec-dark .sub, .sec-dark .fine, .sec-dark .muted { color: var(--on-dark-muted); }
.head { max-width: 760px; margin-bottom: 48px; }
.head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.label { display: inline-flex; align-items: center; gap: 8px; font: 700 .76rem/1 var(--f-d); letter-spacing: .16em; text-transform: uppercase; color: var(--acc-ink); margin-bottom: 14px; }
.label::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--acc), var(--acc2)); }
.sec-dark .label { color: #6ee0ee; }
.sub { margin-top: 16px; color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.fine { margin-top: 24px; font-size: .82rem; color: var(--muted); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Spotlight cards */
.spot { position: relative; overflow: hidden; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(14,138,158,.16), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.spot:hover::before { opacity: 1; }
.scard { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.scard:hover { transform: translateY(-6px); border-color: rgba(14,138,158,.5); }
.scard-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(14,138,158,.16), rgba(47,181,201,.16)); color: var(--acc-ink); }
.scard-ic .ic { width: 24px; height: 24px; }
.scard h3 { margin-top: 4px; }
.scard > p { color: var(--muted); font-size: .95rem; }
.scard-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .86rem; color: var(--ink2); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s cubic-bezier(.2,.8,.2,1), opacity .35s, margin .35s; }
.scard-list li { display: flex; gap: 8px; align-items: center; }
.scard-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); flex: none; }
.scard:hover .scard-list, .scard:focus-within .scard-list { max-height: 120px; opacity: 1; margin-top: 4px; }
@media (hover: none) { .scard-list { max-height: 120px; opacity: 1; margin-top: 4px; } }

/* Calculator */
.calc { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; }
.calc-ctrl, .calc-out { background: rgba(255,255,255,.05); border: 1px solid var(--dark-line); border-radius: 22px; padding: clamp(20px, 3vw, 32px); backdrop-filter: blur(8px); }
.calc-ctrl { display: grid; gap: 26px; align-content: start; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.range-head label { font-weight: 600; }
.amount { display: inline-flex; align-items: baseline; gap: 6px; border-bottom: 2px solid rgba(255,255,255,.2); transition: border-color .2s; }
.amount:focus-within { border-color: var(--acc2); }
.amount input { width: 9ch; background: transparent; border: 0; padding: 2px 0; color: #6ee0ee; font: 800 1.6rem/1.1 var(--f-d); font-variant-numeric: tabular-nums; text-align: right; outline: none; }
.amount span { font: 700 1rem var(--f-d); color: var(--on-dark-muted); }
.range-scale { position: relative; height: 1.2em; }
.range-scale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.range-scale span:nth-child(1) { left: 0; transform: none; }
.range-scale span:nth-child(2) { left: 33.33%; }
.range-scale span:nth-child(3) { left: 66.66%; }
.range-scale span:nth-child(4) { left: 100%; transform: translateX(-100%); }
.range-hint { margin-top: 10px; font-size: .78rem; color: var(--on-dark-muted); }
input[type="range"] { width: 100%; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--acc) var(--p, 10%), rgba(255,255,255,.14) var(--p, 10%)); outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--acc); box-shadow: 0 0 0 6px rgba(14,138,158,.2); cursor: grab; transition: transform .2s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--acc); box-shadow: 0 0 0 6px rgba(14,138,158,.2); cursor: grab; }
.range-scale { display: block; font-size: .72rem; color: var(--on-dark-muted); margin-top: 8px; }
.toggles { display: grid; gap: 14px; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: .95rem; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.sw { width: 46px; height: 26px; border-radius: 99px; background: rgba(255,255,255,.16); position: relative; flex: none; transition: background .25s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.switch input:checked + .sw { background: linear-gradient(90deg, var(--acc), var(--acc2)); }
.switch input:checked + .sw::after { transform: translateX(20px); }
.switch input:focus-visible + .sw { outline: 2px solid var(--acc); outline-offset: 3px; }
.field-sel { display: grid; gap: 6px; }
.field-sel label { font-size: .85rem; color: var(--on-dark-muted); }
.field-sel select { background: rgba(255,255,255,.06); color: var(--on-dark); border: 1px solid var(--dark-line); border-radius: 12px; padding: 11px 12px; font: 500 .95rem var(--f-b); color-scheme: dark; }
.calc-note { font-size: .78rem; color: var(--on-dark-muted); line-height: 1.5; }
.calc-out { display: grid; gap: 14px; align-content: start; }
.res { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid transparent; transition: background .3s, border-color .3s; }
.res.best { background: rgba(14,138,158,.12); border-color: rgba(14,138,158,.45); }
.res-name { display: grid; gap: 2px; }
.res-name strong { font: 600 1rem/1.2 var(--f-d); }
.res-name small { font-size: .72rem; color: var(--on-dark-muted); }
.res-bar { height: 12px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; display: flex; }
.res-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc2)); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.res-bar b { display: block; height: 100%; background: rgba(248,113,113,.7); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.res-val { text-align: right; display: grid; gap: 2px; min-width: 130px; }
.res-val strong { font: 700 1.05rem/1.2 var(--f-d); font-variant-numeric: tabular-nums; white-space: nowrap; }
.res-val small { font-size: .72rem; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.res.best .res-val strong { color: #6ee0ee; }
.best-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #062033; background: linear-gradient(90deg, var(--acc), var(--acc2)); padding: 3px 8px; border-radius: 99px; width: max-content; }
.calc-legend { display: flex; gap: 18px; font-size: .78rem; color: var(--on-dark-muted); flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--dark-line); }
.calc-legend i, .calc-legend b { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.calc-legend i { background: linear-gradient(90deg, var(--acc), var(--acc2)); } .calc-legend b { background: rgba(248,113,113,.7); }
.calc-cta { margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 28px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--dark-line); }
.calc-cta p { font-weight: 500; }

/* Split + steps + viz */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split .btn { margin-top: 28px; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 8px; }
.steps button { width: 100%; text-align: left; display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .25s, transform .25s, box-shadow .25s; }
.steps button:hover { transform: translateX(4px); }
.steps .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 .9rem var(--f-d); background: var(--soft); color: var(--ink2); flex: none; transition: background .25s, color .25s; }
.steps strong { display: block; font-family: var(--f-d); font-weight: 600; }
.steps small { color: var(--muted); font-size: .84rem; }
.steps li.active button { border-color: var(--acc); box-shadow: 0 12px 30px -16px rgba(14,138,158,.6); }
.steps li.active .n { background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #062033; }
.viz { background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.viz-stage { display: grid; gap: 14px; justify-items: center; }
.node { display: grid; gap: 2px; text-align: center; padding: 12px 16px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); min-width: 120px; transition: transform .35s, border-color .35s, box-shadow .35s, opacity .35s; }
.node small { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.node strong { font-family: var(--f-d); font-size: .95rem; }
.node.parent { background: var(--ink); color: var(--bg); border-color: transparent; min-width: 200px; }
.node.parent small { color: inherit; opacity: .7; }
.node-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.flow { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; height: 26px; }
.flow .f { justify-self: center; width: 2px; height: 100%; background: linear-gradient(180deg, var(--line), var(--acc)); position: relative; overflow: hidden; }
.flow .f::after { content: ""; position: absolute; left: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--acc2); top: -8px; animation: drop 1.4s linear infinite; }
.flow .f2::after { animation-delay: -.5s; } .flow .f3::after { animation-delay: -1s; }
@keyframes drop { to { top: 100%; } }
.node.result { background: linear-gradient(135deg, rgba(14,138,158,.16), rgba(47,181,201,.16)); border-color: rgba(14,138,158,.5); min-width: 260px; }
.viz[data-step="1"] .node-row .node { border-color: var(--acc); transform: translateY(-3px); }
.viz[data-step="2"] .node-row .node { box-shadow: 0 0 0 3px rgba(47,181,201,.3); }
.viz[data-step="3"] .node-row .node { opacity: .55; }
.viz[data-step="3"] .flow .f { background: linear-gradient(180deg, #f87171, var(--acc)); }
.viz[data-step="4"] .node.result { transform: scale(1.05); box-shadow: 0 20px 40px -20px rgba(14,138,158,.7); }
.viz-cap { margin-top: 18px; text-align: center; font-size: .9rem; color: var(--muted); min-height: 2.6em; }

/* HR */
.hr { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hr li { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 4px; box-shadow: var(--shadow); transition: transform .25s; }
.hr li:hover { transform: translateY(-4px); }
.hr strong { font-family: var(--f-d); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.hr strong::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--acc), var(--acc2)); }
.hr span { color: var(--muted); font-size: .9rem; }

/* About */
.about { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.photo { position: relative; width: 100%; max-width: 300px; border-radius: 20px; transform-style: preserve-3d; transition: transform .2s ease-out; }
.photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%; border-radius: 20px; display: block; border: 1px solid var(--dark-line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); filter: grayscale(1) contrast(1.05) brightness(.95); transition: filter .6s ease; }
.photo::after { content: ""; position: absolute; inset: 0; border-radius: 20px; background: linear-gradient(160deg, rgba(14,138,158,.28), rgba(11,18,32,.25) 70%); mix-blend-mode: multiply; pointer-events: none; transition: opacity .6s; }
.photo:hover img { filter: none; }
.photo:hover::after { opacity: 0; }
.photo::before { content: ""; position: absolute; left: -12px; top: 18px; width: 100%; height: 100%; border: 1px solid rgba(94,234,212,.35); border-radius: 20px; z-index: -1; }
.photo-tag { position: absolute; left: 16px; right: 16px; bottom: -18px; background: var(--bg2); color: var(--ink); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); display: grid; z-index: 1; }
.photo-tag strong { font-family: var(--f-d); font-size: .95rem; }
.photo-tag span { font-size: .76rem; color: var(--acc-ink); font-weight: 600; }
.sec-dark blockquote { margin: 24px 0 0; padding-left: 20px; border-left: 3px solid var(--acc); font: italic 500 clamp(1.2rem, 2vw, 1.5rem)/1.4 var(--f-b); color: var(--on-dark); }
.vals { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.vals li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-dark-muted); }
.vals .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(14,138,158,.2); color: #6ee0ee; margin-top: 2px; }
.vals strong { color: var(--on-dark); }

/* News */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chipbtn { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); font: 600 .84rem/1 var(--f-b); cursor: pointer; transition: all .2s; }
.chipbtn:hover { color: var(--ink); border-color: var(--acc); }
.chipbtn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.news-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); transition: transform .3s, border-color .3s; animation: pop .4s cubic-bezier(.2,.8,.2,1) both; }
.news-card:hover { transform: translateY(-5px); border-color: rgba(14,138,158,.5); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.news-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.news-meta time { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tag { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: rgba(14,138,158,.14); color: var(--acc-ink); }
.news-card h3 { font-size: 1.12rem; line-height: 1.3; }
.news-card p { color: var(--muted); font-size: .93rem; }
.news-card details { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.news-card summary { cursor: pointer; list-style: none; font-weight: 600; font-size: .88rem; color: var(--acc-ink); }
.news-card summary::-webkit-details-marker { display: none; }
.news-card summary::after { content: " ↓"; display: inline-block; transition: transform .25s; }
.news-card details[open] summary::after { transform: rotate(180deg); }
.news-card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: .88rem; display: grid; gap: 6px; }
.news-card .src { margin-top: 10px; font-size: .76rem; font-style: italic; }
.news-card .src a { color: var(--acc-ink); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; box-shadow: var(--shadow); transition: border-color .25s; }
.faq details[open] { border-color: rgba(14,138,158,.5); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font: 600 1.05rem/1.35 var(--f-d); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, rgba(14,138,158,.16), rgba(47,181,201,.16)); color: var(--acc-ink); font-size: 1.2rem; transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding-bottom: 20px; color: var(--muted); animation: pop .35s both; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; }
.contact-card { background: radial-gradient(600px 300px at 100% 0%, rgba(14,138,158,.25), transparent 60%), var(--dark); color: var(--on-dark); border-radius: 24px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; }
.contact-card .label { color: #6ee0ee; } .contact-card .sub { color: var(--on-dark-muted); }
.clist { list-style: none; padding: 0; margin: auto 0 0; padding-top: 32px; display: grid; gap: 16px; }
.clist li { display: flex; gap: 14px; align-items: center; }
.cic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #6ee0ee; flex: none; }
.clist small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark-muted); font-weight: 700; }
.clist a, .clist span:not(.cic) { color: var(--on-dark); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.clist a:hover { color: #6ee0ee; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.wide { grid-column: 1 / -1; }
.f { position: relative; }
.f input, .f select, .f textarea { width: 100%; font: 500 .98rem/1.4 var(--f-b); color: var(--ink); background: var(--soft); border: 1.5px solid transparent; border-radius: 12px; padding: 22px 14px 8px; transition: border-color .2s, background .2s; }
.f select { padding: 22px 14px 8px; }
.f textarea { resize: vertical; min-height: 110px; }
.f label { position: absolute; left: 14px; right: 14px; top: 15px; font-size: .95rem; color: var(--muted); pointer-events: none; transition: all .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f .hint { display: block; margin-top: 6px; font-size: .78rem; color: var(--muted); }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--acc); background: var(--bg2); }
.f input:focus + label, .f input:not(:placeholder-shown) + label, .f textarea:focus + label, .f textarea:not(:placeholder-shown) + label, .f label.static { top: 7px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--acc-ink); }
.f .invalid { border-color: #ef4444; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--acc); }
.form-status { font-size: .9rem; font-weight: 500; min-height: 1.4em; }
.form-status.err { color: #ef4444; }
.sent { grid-column: 1 / -1; display: grid; gap: 14px; justify-items: center; text-align: center; padding: 28px 12px; animation: pop .4s both; }
.sent-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #062033; }
.sent-ic .ic { width: 32px; height: 32px; stroke-width: 2.4; }
.sent h3 { font-size: 1.4rem; }
.sent p { color: var(--muted); max-width: 40ch; }
.sent pre { width: 100%; text-align: left; white-space: pre-wrap; font: 400 .88rem/1.5 var(--f-b); background: var(--soft); border-radius: 12px; padding: 14px 16px; margin: 0; color: var(--ink); }
.sent-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.sent .mailto { font-weight: 700; color: var(--acc-ink); overflow-wrap: anywhere; }

/* Footer */
.foot { background: var(--dark); color: var(--on-dark-muted); padding-block: 36px; font-size: .88rem; }
.foot .brand-t { color: var(--on-dark); } .foot .brand-t b { color: #6ee0ee; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-nav a { text-decoration: none; } .foot-nav a:hover { color: #6ee0ee; }

/* Reveal (visible at rest; only a lift when scrolled into view) */
.rv { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.rv.pre { transform: translateY(22px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv.pre { transform: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: grid; }
  .nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 4px; padding: 12px var(--gutter) 20px; background: var(--bg2); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); }
  .nav.open a { padding: 12px 14px; }
  .hero-in, .split, .about, .contact, .calc { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { margin-top: 24px; }
  .about { justify-items: start; }
  .photo { margin-bottom: 20px; }
}
@media (max-width: 640px) {
  .grid3, .hr, .form { grid-template-columns: 1fr; }
  .hdr-actions .btn { display: none; }
  .counters { gap: 20px 28px; }
  .chip-a { top: -14px; right: 0; } .chip-b { bottom: -14px; left: 0; }
  .res { grid-template-columns: 1fr auto; }
  .res-bar { grid-column: 1 / -1; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .node-row, .flow { grid-template-columns: repeat(3, 1fr); }
  .node { min-width: 0; padding: 10px 8px; }
  .node strong { font-size: .82rem; }
}

.sec-dark .grad, .contact-card .grad { background: linear-gradient(95deg, #3fc4d8, #9eeaf5); -webkit-background-clip: text; background-clip: text; }

/* Logo variant per theme */
.logo-d { display: none; }
:root[data-theme="dark"] .logo-l { display: none; }
:root[data-theme="dark"] .logo-d { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-l { display: none; }
  :root:not([data-theme="light"]) .logo-d { display: block; }
}
