/* Aquasense landing page. Tokens first, then layout, then sections.
 * Light and dark are one block each; everything that has a colour reads a token. */

:root {
  color-scheme: light;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #f4f9fb;
  --bg-2: #eaf3f6;
  --surface: #ffffff;
  --surface-2: #f2f8fa;
  --line: #d9e6ec;
  --line-strong: #b9cdd6;
  --text: #08202c;
  --text-2: #3b5866;
  --muted: #688290;

  --accent: #0e8f8a;
  --accent-2: #2a7fd4;
  --accent-ink: #0a6c68;
  --accent-soft: rgba(14, 143, 138, .11);
  --accent-line: rgba(14, 143, 138, .4);
  --on-accent: #ffffff;

  --good: #12935f;
  --warn: #d4960b;
  --bad: #d9541e;

  --glow-a: rgba(20, 170, 160, .20);
  --glow-b: rgba(60, 130, 220, .16);
  --shadow-lg: 0 40px 90px -30px rgba(8, 50, 70, .35), 0 8px 24px -8px rgba(8, 50, 70, .18);
  --shadow-md: 0 14px 40px -16px rgba(8, 50, 70, .30);
  --frame: #dfeaf0;
  --wave-1: rgba(14, 143, 138, .34);
  --wave-2: rgba(42, 127, 212, .26);
  --grid: rgba(8, 60, 80, .06);
  --nav-bg: rgba(244, 249, 251, .72);
  --radius: 18px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #04101a;
  --bg-2: #061620;
  --surface: #0a1c28;
  --surface-2: #0d2231;
  --line: #15303f;
  --line-strong: #23485b;
  --text: #e7f3f7;
  --text-2: #a5bfcb;
  --muted: #7894a2;

  --accent: #36d1c4;
  --accent-2: #5aa8ff;
  --accent-ink: #6ae6db;
  --accent-soft: rgba(54, 209, 196, .12);
  --accent-line: rgba(54, 209, 196, .45);
  --on-accent: #032a27;

  --good: #34d399;
  --warn: #f2b632;
  --bad: #ff7a45;

  --glow-a: rgba(54, 209, 196, .16);
  --glow-b: rgba(90, 168, 255, .12);
  --shadow-lg: 0 50px 110px -30px rgba(0, 0, 0, .85), 0 10px 30px -10px rgba(0, 0, 0, .6);
  --shadow-md: 0 18px 46px -18px rgba(0, 0, 0, .8);
  --frame: #0d2231;
  --wave-1: rgba(54, 209, 196, .30);
  --wave-2: rgba(90, 168, 255, .22);
  --grid: rgba(120, 200, 230, .06);
  --nav-bg: rgba(4, 16, 26, .66);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
code, pre, kbd { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.only-dark { display: none !important; }
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; backdrop-filter: saturate(1.6) blur(16px); background: var(--nav-bg); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.stuck { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; font-size: 1.12rem; }
.brand svg { width: 26px; height: 26px; }
.nav nav { display: flex; gap: 6px; margin-left: 12px; }
.nav nav a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .94rem; transition: background .2s, color .2s; }
.nav nav a:hover { background: var(--accent-soft); color: var(--text); }
.nav .spacer { flex: 1; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, transform .2s; }
.icon-btn:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: block; }
:root[data-theme="dark"] .icon-btn .moon { display: none; }
.menu-btn { display: none; }

.btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: .98rem; border: 1px solid var(--line-strong); background: var(--surface); transition: transform .2s, box-shadow .2s, border-color .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.btn.primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--accent-2))); color: var(--on-accent); border-color: transparent; box-shadow: 0 10px 30px -10px var(--accent); }
.btn.primary:hover { box-shadow: 0 16px 38px -10px var(--accent); }
.btn.sm { padding: 9px 15px; border-radius: 11px; font-size: .9rem; }
.btn svg { width: 17px; height: 17px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 150px 0 0; overflow: clip; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -3;
  background: radial-gradient(900px 520px at 15% 0%, var(--glow-a), transparent 65%), radial-gradient(900px 560px at 92% 10%, var(--glow-b), transparent 62%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }
#waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.hero-copy { text-align: center; max-width: 900px; margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 8px; border-radius: 99px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .84rem; }
.eyebrow i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-style: normal; font-size: .7rem; }
.pulse-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
h1.display { font-size: clamp(2.7rem, 7vw, 5.4rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; margin: 22px 0 22px; }
.grad { background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent) 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 8s linear infinite; }
@keyframes sheen { to { background-position: 200% center; } }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--text-2); max-width: 720px; margin-inline: auto; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.fine { margin-top: 16px; font-size: .86rem; color: var(--muted); }

.stage { position: relative; margin-top: 70px; perspective: 1900px; perspective-origin: 50% 0%; }
.device-frame { position: relative; border-radius: 16px; background: var(--frame); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); overflow: hidden; }
.device-frame .bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.device-frame .bar i { width: 11px; height: 11px; border-radius: 99px; background: var(--line-strong); }
.device-frame .bar i:nth-child(1) { background: #ff6159; } .device-frame .bar i:nth-child(2) { background: #ffbe2e; } .device-frame .bar i:nth-child(3) { background: #28c840; }
.device-frame .bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; margin: 0 auto; padding: 4px 18px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: .78rem; font-family: var(--mono); }
.device-frame img { width: 100%; height: auto; }
.tilt { transform-origin: 50% 0%; transform: rotateX(var(--rx, 24deg)) scale(var(--sc, .94)); transition: transform .08s linear; will-change: transform; }
.stage::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -60px; height: 120px; background: radial-gradient(ellipse at center, var(--glow-a), transparent 70%); filter: blur(30px); z-index: -1; }

.float { position: absolute; z-index: 3; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line-strong); box-shadow: var(--shadow-md); font-size: .86rem; will-change: transform; }
.float b { display: block; font-size: 1.28rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.float small { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; }
.f-live { left: -16px; top: 20%; min-width: 190px; animation: bob 7s ease-in-out infinite; }
.f-ai { right: -18px; top: 8%; max-width: 290px; animation: bob 8s ease-in-out -2s infinite; }
.f-count { left: -12px; bottom: 9%; min-width: 250px; animation: bob 7.5s ease-in-out -1s infinite; }
.f-count .cnt-row { display: flex; gap: 18px; margin-top: 6px; }
.f-count .cnt-row b { font-size: 1.35rem; color: var(--accent-ink, var(--text)); }
.f-count .cnt-row span { color: var(--muted); font-size: .74rem; font-weight: 600; }
.f-alert { right: 4%; bottom: 8%; max-width: 280px; animation: bob 6.5s ease-in-out -4s infinite; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.f-live .spark { display: block; width: 100%; height: 34px; margin-top: 6px; }
.f-ai p { color: var(--text-2); line-height: 1.45; margin-top: 4px; min-height: 5.8em; }
.f-ai .caret::after { content: "▍"; color: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.f-alert .row { display: flex; gap: 10px; align-items: flex-start; }
.f-alert .dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 99px; background: var(--bad); flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 22%, transparent); }

/* ---------------------------------------------------------------- strip */
.strip { margin-top: 90px; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.strip .stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(120deg, var(--text), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 10px; color: var(--text-2); font-size: .95rem; font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 22px 0 26px; border-top: 1px solid var(--line); }
.pills span { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: .85rem; color: var(--text-2); }

/* ---------------------------------------------------------------- sections */
section { position: relative; }
.sec { padding: 130px 0; }
.sec-head { max-width: 760px; margin-bottom: 54px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker { color: var(--accent-ink); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; }
h2.title { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; margin: 14px 0 18px; }
.sub { color: var(--text-2); font-size: 1.12rem; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------------------------------------------------------------- story (scroll) */
.story { display: grid; grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.5fr); gap: 56px; align-items: start; }
.steps { padding-bottom: 20vh; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 20px 0; opacity: .38; transition: opacity .4s; }
.step.on { opacity: 1; }
.step .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; font-size: .9rem; border: 1px solid var(--accent-line); margin-bottom: 18px; }
.step h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.12; letter-spacing: -.03em; margin-bottom: 14px; }
.step p { color: var(--text-2); }
.step ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.step li { display: flex; gap: 10px; color: var(--text-2); font-size: .98rem; }
.step li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 6px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e8f8a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.step .mobile-shot { display: none; }
.sticky { position: sticky; top: 92px; }
.viewport { position: relative; aspect-ratio: 1800 / 1125; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.layer { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.layer.on { opacity: 1; z-index: 1; }
.layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: var(--ox, 50%) var(--oy, 50%); transform: scale(1); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.layer.on img { transform: scale(var(--zoom, 1)); }
.hot { position: absolute; z-index: 2; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 99px; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); opacity: 0; transition: opacity .5s .5s; pointer-events: none; }
.layer.on .hot { opacity: 1; }
.hot::after { content: ""; position: absolute; inset: -10px; border-radius: 99px; border: 2px solid var(--accent); animation: ring 2s ease-out infinite; }
@keyframes ring { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.caption { position: absolute; z-index: 3; left: 16px; bottom: 16px; right: 16px; display: flex; justify-content: space-between; align-items: end; gap: 12px; pointer-events: none; }
.caption .tag { padding: 8px 14px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line-strong); font-weight: 700; font-size: .86rem; box-shadow: var(--shadow-md); }
.caption .hint { padding: 6px 11px; border-radius: 99px; background: color-mix(in srgb, var(--bg) 80%, transparent); border: 1px solid var(--line); color: var(--muted); font-size: .76rem; font-weight: 700; }
.dots { display: flex; gap: 7px; justify-content: center; margin-top: 18px; }
.dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: var(--line-strong); transition: width .3s, background .3s; }
.dots button.on { width: 28px; background: var(--accent); }

/* ---------------------------------------------------------------- enterprise */
.ent { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; padding: 44px; border: 1px solid var(--line-strong); border-radius: 28px; background: linear-gradient(160deg, var(--accent-soft), var(--surface) 60%); }
.ent .title { margin-top: 6px; }
.ent .cta-row { margin-top: 24px; }
.ent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ent-grid .card { padding: 22px; }
.ent-grid .card h3 { font-size: 1.05rem; }

/* ---------------------------------------------------------------- bento */
.c6 { grid-column: span 6; }
.sites { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.sites .ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; color: var(--text-2); font-size: .95rem; }
.sites .ticks li { padding-left: 24px; position: relative; }
.sites .ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-3px); }
.scope { border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface-2); padding: 20px; display: grid; gap: 14px; }
.scope-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.scope-seg { display: inline-flex; padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); width: fit-content; }
.scope-seg span { padding: 7px 14px; border-radius: 9px; font-size: .86rem; font-weight: 700; color: var(--text-2); }
.scope-seg span.on { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-line); }
.scope-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.scope-group small { flex: 1 1 100%; color: var(--muted); font-weight: 600; font-size: .78rem; }
.pick { display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: .85rem; font-weight: 600; color: var(--text-2); }
.pick i { font-style: normal; font-size: .72rem; color: var(--muted); }
.pick.on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); }
.scope-foot { padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-2); font-size: .9rem; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 28px; overflow: hidden; transition: border-color .3s, transform .3s; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { border-color: var(--accent-line); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.28rem; letter-spacing: -.02em; margin: 14px 0 8px; }
.card p { color: var(--text-2); font-size: .98rem; }
.card .ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); }
.card .ico svg { width: 22px; height: 22px; }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; }
.card .shot { aspect-ratio: 16 / 9; margin: 22px -28px -28px; border-top: 1px solid var(--line); cursor: zoom-in; overflow: hidden; }
.card .shot img { width: 140%; max-width: none; margin: 0; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .shot img { transform: scale(1.04); }
.invert-dark { }
:root[data-theme="dark"] .invert-dark { filter: invert(.92) hue-rotate(180deg) saturate(.95) brightness(.98); }

/* ---------------------------------------------------------------- profiles */
.profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); overflow: hidden; transition: transform .35s, border-color .3s, box-shadow .35s; }
.pcard:hover { transform: translateY(-6px); border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.scene { position: relative; height: 170px; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 20%, var(--surface)), var(--surface)); }
.scene svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.scene .w1 { animation: drift 14s linear infinite; } .scene .w2 { animation: drift 9s linear infinite reverse; opacity: .8; }
@keyframes drift { to { transform: translateX(-50%); } }
.scene .sun { position: absolute; right: 26px; top: 22px; width: 38px; height: 38px; border-radius: 99px; background: var(--warn); opacity: .85; box-shadow: 0 0 40px var(--warn); }
.scene .tag { position: absolute; left: 18px; top: 16px; padding: 5px 12px; border-radius: 99px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line-strong); font-weight: 800; font-size: .78rem; backdrop-filter: blur(8px); }
.pbody { padding: 22px 24px 26px; }
.pbody h3 { font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: 8px; }
.pbody p { color: var(--text-2); font-size: .97rem; }
.mini { display: grid; gap: 7px; margin-top: 16px; }
.mini div { display: grid; grid-template-columns: 118px 1fr 84px; white-space: nowrap; gap: 10px; align-items: center; font-size: .78rem; font-weight: 700; color: var(--muted); }
.mini .track { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--bad) 50%, transparent) 0 14%, color-mix(in srgb, var(--warn) 50%, transparent) 14% 30%, color-mix(in srgb, var(--good) 55%, transparent) 30% 70%, color-mix(in srgb, var(--warn) 50%, transparent) 70% 86%, color-mix(in srgb, var(--bad) 50%, transparent) 86%); }
.mini .track i { position: absolute; top: -4px; width: 4px; height: 16px; border-radius: 4px; background: var(--text); left: var(--p); transform: translateX(-50%); }
.others { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 30px; }
.others span { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: .85rem; color: var(--text-2); }

/* ---------------------------------------------------------------- connect */
.connect > * { min-width: 0; }
.connect { display: grid; grid-template-columns: 1fr 1.1fr; gap: 54px; align-items: center; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 8px 15px; border-radius: 10px; font-weight: 700; font-size: .88rem; color: var(--text-2); }
.tabs button.on { background: var(--surface); color: var(--accent-ink); box-shadow: 0 1px 5px rgba(0,0,0,.14); }
.code { position: relative; border-radius: 18px; border: 1px solid var(--line-strong); background: #061622; color: #d7eaf1; box-shadow: var(--shadow-lg); overflow: hidden; }
:root:not([data-theme="dark"]) .code { background: #0b2231; }
.code .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.code .bar i { width: 11px; height: 11px; border-radius: 99px; background: rgba(255,255,255,.2); }
.code .bar span { margin-left: 8px; color: #7fa1b1; font-size: .78rem; font-family: var(--mono); }
.code .copy { margin-left: auto; padding: 5px 11px; border-radius: 8px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #cfe3ea; font-size: .76rem; font-weight: 700; }
.code .copy:hover { background: rgba(255,255,255,.12); }
.code pre { margin: 0; padding: 20px 22px 24px; overflow-x: auto; font-size: .84rem; line-height: 1.7; min-height: 270px; }
.tok-k { color: #7fe3d9; } .tok-s { color: #f6c177; } .tok-c { color: #6f8d9b; } .tok-n { color: #9ccfff; }
.checks { display: grid; gap: 14px; margin-top: 26px; }
.checks div { display: flex; gap: 14px; }
.checks b { display: block; }
.checks span { color: var(--text-2); font-size: .96rem; }
.checks .n { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; font-size: .84rem; border: 1px solid var(--accent-line); }

/* ---------------------------------------------------------------- trust */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust .card { padding: 26px; }
.formula { white-space: pre; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; line-height: 1.7; margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-strong); font-family: var(--mono); font-size: .8rem; color: var(--text-2); }
.formula b { color: var(--accent-ink); }

/* ---------------------------------------------------------------- pricing */
.pricing > * { min-width: 0; }
.pricing { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: stretch; }
.price-card { border-radius: 24px; border: 1px solid var(--accent-line); background: linear-gradient(160deg, var(--accent-soft), var(--surface) 55%); padding: 36px; display: flex; flex-direction: column; box-shadow: var(--shadow-md); }
.price-card .big { font-size: clamp(2.6rem, 5vw, 4rem); letter-spacing: -.05em; font-weight: 800; line-height: 1; margin: 10px 0 6px; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.price-card li { display: flex; gap: 10px; color: var(--text-2); font-size: .98rem; }
.price-card li::before { content: "✓"; color: var(--accent-ink); font-weight: 800; }
.calc { border-radius: 24px; border: 1px solid var(--line); background: var(--surface); padding: 32px; }
.calc h3 { font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: 20px; }
.row-s { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-bottom: 16px; font-weight: 700; font-size: .92rem; }
.row-s output { color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.row-s input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); height: 22px; }
.row-s select { grid-column: 1 / -1; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; }
.result { margin-top: 20px; padding: 20px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.result .eur { font-size: 2.6rem; letter-spacing: -.045em; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.result .eur small { font-size: .95rem; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.split { display: grid; gap: 8px; margin-top: 16px; }
.split div { display: grid; grid-template-columns: 130px 1fr 80px; gap: 10px; align-items: center; font-size: .8rem; font-weight: 700; color: var(--text-2); }
.split .bar { height: 9px; border-radius: 99px; background: var(--line); overflow: hidden; }
.split .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.split em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.small { font-size: .82rem; color: var(--muted); margin-top: 14px; }

/* ---------------------------------------------------------------- faq, cta, footer */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 0 22px; transition: border-color .3s; }
.faq details[open] { border-color: var(--accent-line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 1.04rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--accent-ink); transition: transform .3s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding: 0 0 20px; }
.cta { margin: 0 0 100px; border-radius: 32px; overflow: hidden; position: relative; padding: 90px 30px; text-align: center; border: 1px solid var(--accent-line); background: radial-gradient(700px 320px at 20% 0%, var(--glow-a), transparent 70%), radial-gradient(700px 320px at 90% 100%, var(--glow-b), transparent 70%), var(--surface); isolation: isolate; }
.cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .8; }
.cta h2 { font-size: clamp(2.1rem, 5vw, 3.8rem); letter-spacing: -.04em; line-height: 1.05; max-width: 780px; margin: 0 auto 20px; }
footer { border-top: 1px solid var(--line); padding: 46px 0 60px; color: var(--text-2); font-size: .94rem; }
footer .wrap { display: flex; gap: 30px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a:hover { color: var(--accent-ink); }

/* ---------------------------------------------------------------- lightbox */
.lb { position: fixed; inset: 0; z-index: 100; display: none; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); padding: 40px 24px 24px; }
.lb.open { display: grid; grid-template-rows: auto 1fr; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.lb header { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; }
.lb header b { font-size: 1.05rem; }
.lb header span { color: var(--muted); font-size: .9rem; }
.lb .grow { flex: 1; }
.lb .stage-img { min-height: 0; display: grid; place-items: center; }
.lb img { max-height: 100%; max-width: min(1500px, 100%); border-radius: 14px; border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1040px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .sticky { display: none; }
  .steps { padding-bottom: 0; }
  .step { min-height: 0; opacity: 1; padding: 44px 0; border-top: 1px solid var(--line); }
  .step .mobile-shot { display: block; margin-top: 24px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .ent { grid-template-columns: 1fr; padding: 32px; }
  .bento { grid-template-columns: repeat(2, 1fr); } .c2, .c3, .c4, .c6 { grid-column: span 2; }
  .sites { grid-template-columns: 1fr; gap: 24px; }
  .connect, .pricing { grid-template-columns: 1fr; }
  .profiles { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav.open nav { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 12px 24px 20px; background: var(--bg); border-bottom: 1px solid var(--line); margin: 0; }
  .menu-btn { display: grid; }
  .strip .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .d-grid { grid-template-columns: 1fr; }
  .float { display: none; }
  .sec { padding: 90px 0; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .trust { grid-template-columns: 1fr; }
  .ent { padding: 24px 18px; }
  .ent-grid { grid-template-columns: 1fr; }
  .nav .btn.sm { display: none; }
  .hero { padding-top: 120px; }
  .tilt { --rx: 12deg !important; }
  .mini div { grid-template-columns: 96px 1fr 78px; font-size: .72rem; }
  .split div { grid-template-columns: 100px 1fr 70px; }
  .price-card, .calc { padding: 24px; }
}
/* ---------------------------------------------------------------- phones */
.menu-cta, .dock { display: none; }
.crop { position: relative; aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; border-radius: 18px; }
.crop img { position: absolute; max-width: none; width: calc(var(--z, 1.6) * 100%); height: auto;
  left: calc(50% - var(--fx, 50) * var(--z, 1.6) * 1%); top: calc(50% - var(--fy, 40) * var(--z, 1.6) * .8333%); }
.crop-tag { position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line-strong); font-weight: 800; font-size: .78rem; }
.crop-hint { position: absolute; right: 10px; bottom: 10px; padding: 5px 10px; border-radius: 99px; background: color-mix(in srgb, var(--bg) 82%, transparent); border: 1px solid var(--line); color: var(--muted); font-size: .7rem; font-weight: 700; }
@media (max-width: 1040px) {
  .step .mobile-shot { max-width: 720px; margin: 26px 0 0; }
  .mobile-shot .device-frame { border-radius: 18px; box-shadow: var(--shadow-md); }
}
@media (max-width: 860px) {
  .nav.open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav.open nav { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; overflow-y: auto; gap: 4px; padding: 22px 20px calc(30px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(20px); border: 0; }
  .nav.open nav > a:not(.btn) { padding: 16px 14px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; border-radius: 14px; border-bottom: 1px solid var(--line); }
  .nav.open nav .menu-cta { display: inline-flex; justify-content: center; margin-top: 14px; padding: 15px 20px; font-size: 1.02rem; }
  body.menu-open { overflow: hidden; }
  .icon-btn { width: 44px; height: 44px; }
  .dock { display: flex; gap: 10px; position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 10px; border-radius: 20px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 84%, transparent); backdrop-filter: blur(18px) saturate(1.5); box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
  .dock.show { transform: none; }
  .dock .btn { flex: 1; justify-content: center; padding: 13px 14px; }
  .dock .btn:last-child { flex: 0 0 auto; }
  body.menu-open .dock { transform: translateY(140%); }
  footer { padding-bottom: 110px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 28px); }
  .hero { padding-top: 112px; }
  h1.display { font-size: clamp(2.5rem, 12.5vw, 3.4rem); letter-spacing: -.05em; margin: 18px 0 16px; }
  .eyebrow { font-size: .76rem; text-align: left; line-height: 1.3; }
  .lead { font-size: 1.04rem; }
  .cta-row { flex-direction: column; align-items: stretch; margin-top: 26px; }
  .cta-row .btn { justify-content: center; padding: 15px 20px; }
  .fine { font-size: .8rem; }
  /* The hero screenshot becomes a close-up of the score ring, not a thumbnail of a desktop. */
  .stage { margin-top: 44px; }
  .tilt .device-frame { border-radius: 20px; }
  .tilt .device-frame .bar { padding: 9px 12px; }
  .tilt .device-frame > img { width: 205%; max-width: none; margin: 0 0 0 -3%; }
  .tilt .device-frame { aspect-ratio: 5 / 4; }
  .tilt .device-frame .bar + img { display: block; }
  .strip { margin-top: 56px; }
  .stat { padding: 22px 16px; } .stat b { font-size: 2rem; } .stat span { font-size: .82rem; }
  .pills { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 14px; margin: 0 -14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .pills span { flex: none; scroll-snap-align: start; }
  .sec { padding: 72px 0; }
  .sec-head { margin-bottom: 34px; }
  h2.title { font-size: clamp(1.85rem, 8.6vw, 2.4rem); }
  .sub { font-size: 1rem; }
  .step { padding: 36px 0; }
  .step h3 { font-size: 1.45rem; }
  .chart { min-height: 0; padding: 12px 10px 4px; }
  .toast { left: 12px; right: 12px; max-width: none; bottom: 12px; }
  .card { padding: 22px; }
  .formula { font-size: .74rem; -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
  .card .shot { margin: 18px -22px -22px; }
  .bento .card .shot img { width: 170%; }
  .pbody { padding: 18px 18px 22px; }
  .scene { height: 140px; }
  .connect { gap: 30px; }
  .code pre { font-size: .76rem; padding: 16px; min-height: 0; }
  .tabs { display: flex; width: 100%; } .tabs button { flex: 1; padding: 10px 8px; }
  .price-card, .calc { border-radius: 20px; }
  .row-s { font-size: .95rem; margin-bottom: 20px; }
  .row-s input[type=range] { height: 32px; }
  .row-s select { font-size: 16px; padding: 12px; }
  .result .eur { font-size: 2.2rem; }
  .faq summary { padding: 18px 0; font-size: 1rem; }
  .cta { padding: 56px 20px; border-radius: 24px; margin-bottom: 60px; }
  footer .wrap { flex-direction: column; align-items: flex-start; gap: 18px; }
  .lb { padding: 14px 10px 10px; }
  .lb header span:not(.grow) { display: none; }
  .lb img { border-radius: 10px; }
}
@media (hover: none) {
  .card:hover { border-color: var(--line); }
  .pcard:hover, .btn:hover { transform: none; }
  .chip:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .tilt { transform: none !important; }
  html { scroll-behavior: auto; }
}
