/* ==========================================================================
   ModuleLeap 2026. Dark tech language, brand cyan as the single accent.
   Shape rule: buttons, tabs, chips = pill. Containers and images = --r-lg.
   Form fields = --r-md. Nothing else.
   ========================================================================== */

/* ---- Fonts (self-hosted, Geist by Vercel, SIL OFL) ---------------------- */
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tokens -------------------------------------------------------------- */
:root {
  color-scheme: dark;
  --bg: #0a0c13;
  --bg-1: #10131c;
  --bg-2: #171b27;
  --line: rgba(176, 195, 240, 0.11);
  --line-strong: rgba(176, 195, 240, 0.2);
  --text: #eceff6;
  --text-2: #aab3c5;
  --text-3: #8591a8;
  --accent: #3ab9ee;
  --accent-ink: #04141d;
  --accent-btn: #0a7cb3;
  --on-accent: #ffffff;
  --accent-text: #6ccff6;
  --accent-soft: rgba(58, 185, 238, 0.13);
  --glow: rgba(58, 185, 238, 0.16);
  --shadow: 0 30px 60px -28px rgba(0, 24, 48, 0.75), 0 8px 20px -12px rgba(0, 24, 48, 0.6);
  --scrim: rgba(7, 10, 17, 0.72);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: var(--font);

  --r-pill: 999px;
  --r-lg: 22px;
  --r-md: 14px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --top-h: 38px;
  --bar-h: 68px;
  --nav-h: calc(var(--top-h) + var(--bar-h));
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.75rem, 7vw, 6.25rem);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { color-scheme: light; --bg: #f4f6fa; --bg-1: #fbfcfe; --bg-2: #e9edf5; --line: rgba(20, 32, 64, 0.11); --line-strong: rgba(20, 32, 64, 0.2); --text: #0d1220; --text-2: #424e68; --text-3: #5a6782; --accent: #1fb0ea; --accent-ink: #03131c; --accent-text: #0a6a97; --accent-soft: rgba(31, 176, 234, 0.14); --glow: rgba(31, 176, 234, 0.2); --shadow: 0 30px 60px -30px rgba(20, 40, 80, 0.35), 0 8px 20px -12px rgba(20, 40, 80, 0.25); }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6fa; --bg-1: #fbfcfe; --bg-2: #e9edf5;
  --line: rgba(20, 32, 64, 0.11); --line-strong: rgba(20, 32, 64, 0.2);
  --text: #0d1220; --text-2: #424e68; --text-3: #5a6782;
  --accent: #1fb0ea; --accent-ink: #03131c; --accent-text: #0a6a97;
  --accent-soft: rgba(31, 176, 234, 0.14); --glow: rgba(31, 176, 234, 0.2);
  --shadow: 0 30px 60px -30px rgba(20, 40, 80, 0.35), 0 8px 20px -12px rgba(20, 40, 80, 0.25);
}

/* ---- Reset & base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); letter-spacing: -0.045em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -0.025em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.skip { position: absolute; left: -999px; top: 0.5rem; z-index: 90; background: var(--accent-btn); color: var(--on-accent); padding: 0.6rem 1rem; border-radius: var(--r-pill); }
.skip:focus { left: 0.5rem; }

/* Fixed grain, kept off scrolling containers on purpose. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
:root[data-theme="light"] body::before { opacity: 0.035; }

.i { display: inline-block; width: 1.25em; height: 1.25em; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.wrap { width: min(100% - 2 * var(--gutter), 1480px); margin-inline: auto; position: relative; z-index: 2; }
.section { padding-block: var(--section); position: relative; z-index: 2; }
.section--flush-top { padding-top: 0; }
.mono { font-family: var(--mono); }

.sec-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec-head p, .lede { color: var(--text-2); max-width: 62ch; }
.eyebrow { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); }

/* Logo variants follow the theme */
.logo-on-light { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .logo-on-dark { display: none; } :root:not([data-theme="dark"]) .logo-on-light { display: block; } }
:root[data-theme="light"] .logo-on-dark { display: none; }
:root[data-theme="light"] .logo-on-light { display: block; }
:root[data-theme="dark"] .logo-on-dark { display: block; }
:root[data-theme="dark"] .logo-on-light { display: none; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  --h: 3.1rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  height: var(--h); padding-inline: 1.5rem; border-radius: var(--r-pill);
  font-weight: 560; font-size: 0.98rem; letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid transparent; position: relative;
  transition: transform 0.35s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--lg { --h: 3.7rem; padding-inline: 2rem; font-size: 1.08rem; }
.btn--sm { --h: 2.55rem; padding-inline: 1.15rem; font-size: 0.92rem; }
.btn--primary { background: var(--accent-btn); color: var(--on-accent); box-shadow: 0 10px 30px -12px var(--accent-btn); }
.btn--primary:hover { background: #0c88c4; box-shadow: 0 14px 36px -10px var(--accent-btn); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text-3); background: var(--accent-soft); }
.btn .i { transition: transform 0.35s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.link-arrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.5rem; max-width: 100%; min-height: 2.25rem; font-weight: 560; color: var(--accent-text); }
.link-arrow .i { transition: transform 0.35s var(--ease); }
.link-arrow:hover .i { transform: translate(3px, -3px); }
.icon-btn { width: 2.55rem; height: 2.55rem; display: inline-grid; place-items: center; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent; transition: background-color 0.25s, transform 0.3s var(--ease); }
.icon-btn:hover { background: var(--accent-soft); }
.icon-btn:active { transform: scale(0.94); }
.theme-ico { display: none; }
:root:not([data-theme="light"]) .theme-ico--sun { display: grid; }
:root[data-theme="light"] .theme-ico--moon { display: grid; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .theme-ico--sun { display: none; } :root:not([data-theme="dark"]) .theme-ico--moon { display: grid; } }

/* ---- Navigation ---------------------------------------------------------- */
#top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }
.nav { position: sticky; top: 0; z-index: 60; height: var(--nav-h); transition: background-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid #0202022e; }
.nav.is-stuck { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.nav__bar { height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 0.25rem; }
.nav__links a { padding: calc(0.5rem - 2px) calc(0.95rem - 2px); border: 2px solid transparent; border-radius: var(--r-pill); font-size: 0.95rem; color: var(--text-2); transition: color 0.2s, background-color 0.2s; white-space: nowrap; }
.nav__links a:hover { color: var(--text); background: var(--accent-soft); }
.nav__links a[aria-current="page"] { color: var(--text); background: var(--bg-2); border: 2px solid #0a7cb3; }
.nav__end { display: flex; align-items: center; gap: 0.6rem; }
.nav__burger { display: none; }
.topbar { height: var(--top-h); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 70%, transparent); font-size: 0.86rem; color: var(--text-2); }
.topbar__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.topbar__links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.topbar a, .topbar__hours { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; transition: color 0.2s; }
.topbar a:hover { color: var(--accent-text); }
.topbar .i { width: 1.05em; height: 1.05em; color: var(--accent-text); }
.topbar a { font-weight: 540; color: var(--text); }


/* ---- WhatsApp ----------------------------------------------------------- */
.glyph { display: block; width: 1.3rem; height: 1.3rem; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.topbar a.wa { --wa: #25d366; --wa-deep: #128c5a; position: relative; overflow: hidden; height: 28px; gap: 0.55rem; padding: 0 0.95rem 0 0.28rem; border-radius: var(--r-pill); border: 1px solid color-mix(in srgb, var(--wa) 45%, transparent); background: color-mix(in srgb, var(--wa) 12%, transparent); color: #0c6b3d; font-size: 0.82rem; font-weight: 620; letter-spacing: -0.005em; transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
:root[data-theme="dark"] .topbar a.wa { color: #7ff0ae; }
.topbar a.wa:hover { background: var(--wa-deep); border-color: var(--wa-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px -8px var(--wa-deep); }
.topbar a.wa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%); transform: translateX(-120%); }
.topbar a.wa:hover::after { transform: translateX(120%); transition: transform 0.8s var(--ease); }
.wa__ico { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--wa, #25d366); display: grid; place-items: center; }
.wa__ico::before { content: ""; width: 13px; height: 13px; background: #fff; -webkit-mask: url("../logos/whatsapp.svg") center / contain no-repeat; mask: url("../logos/whatsapp.svg") center / contain no-repeat; }
.wa__ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa, #25d366); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .wa__ico::after { animation: wa-ring 2.8s ease-out 1.5s infinite; } }
@keyframes wa-ring { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(1.9); opacity: 0; } }
.nav .wa--icon { display: none; --wa: #25d366; width: 2.55rem; height: 2.55rem; border-radius: var(--r-pill); place-items: center; background: color-mix(in srgb, var(--wa) 14%, transparent); border: 1px solid color-mix(in srgb, var(--wa) 45%, transparent); }
.nav .wa--icon .wa__ico { width: 26px; height: 26px; }
.nav .wa--icon .wa__ico::before { width: 15px; height: 15px; }
.contact__list .glyph { color: #128c5a; }
@media (max-width: 1000px) { .topbar__hours { display: none; } .topbar__in { justify-content: flex-end; } }
@media (max-width: 760px) { .topbar a:not(.wa) { min-height: 34px; } .topbar a.wa { display: none; } .nav .wa--icon { display: inline-grid; } .topbar__in { justify-content: center; } }

/* ---- Hero (home) --------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(1rem, 3vh, 2.5rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); overflow-x: clip; z-index: 3; }
.hero::before { content: ""; position: absolute; z-index: 0; inset: -10% -10% auto 35%; height: 90%; background: radial-gradient(closest-side, var(--glow), transparent 72%); pointer-events: none; }
.hero__grid { z-index: 4; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6.2fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero__copy { display: grid; gap: 1.6rem; justify-items: start; }
.hero__title { max-width: 14ch; font-size: clamp(2.5rem, 4.9vw, 5rem); }
.hero__title.h1--caps { text-transform: uppercase; font-weight: 800; font-size: clamp(2.1rem, 4.3vw, 3.9rem); line-height: 1.12; letter-spacing: -0.035em; max-width: 15ch; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.w--hl { padding-inline: 0.2em; margin-inline: -0.2em; }
.w > span { display: inline-block; transform: translateY(110%); animation: rise 0.95s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 85ms + 120ms); }
.hero__sub { font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: var(--text-2); max-width: 34rem; opacity: 0; animation: fade-up 0.9s var(--ease) 0.7s forwards; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; opacity: 0; animation: fade-up 0.9s var(--ease) 0.85s forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__visual { position: relative; aspect-ratio: 1 / 0.86; perspective: 1400px; }
.shot { position: absolute; margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); background: var(--bg-1); transform-style: preserve-3d; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; translate: var(--dx, 0px) calc(var(--dy, 0px) + var(--drift, 0px)); rotate: var(--tilt, 0deg); transition: transform 0.5s var(--ease), scale 0.3s var(--ease), rotate 0.45s var(--ease), box-shadow 0.3s; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot { width: 52%; aspect-ratio: 16 / 10; }
.shot--2 { top: 0; right: 0; z-index: 2; transform: translate3d(calc(var(--px, 0) * 22px), calc(var(--py, 0) * 14px), 0) rotate(3deg); }
.shot--1 { top: 19%; left: 0; z-index: 3; transform: translate3d(calc(var(--px, 0) * 12px), calc(var(--py, 0) * 9px), 0) rotate(-2deg); }
.shot--4 { top: 40%; right: 0; z-index: 4; transform: translate3d(calc(var(--px, 0) * 18px), calc(var(--py, 0) * -8px), 0) rotate(2deg); }
.shot--3 { top: 60%; left: 4%; z-index: 5; transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -12px), 0) rotate(-3deg); }
.hero__visual:hover .shot { transition-duration: 0.2s; }

/* Playable collage: click a screen to swap it, drag to move it */
.hero__visualwrap { display: grid; gap: 0.9rem; }
.hero__hint { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.88rem; color: var(--text-3); text-align: center; }
.hero__hint .i { width: 1.1em; height: 1.1em; color: var(--accent-text); flex: none; }
.hero__visual.is-dragging { --px: 0 !important; --py: 0 !important; }
.hero__visual .shot img { -webkit-user-drag: none; pointer-events: none; }
.shot:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.shot.is-held { cursor: grabbing; scale: 1.07; box-shadow: 0 44px 90px -26px rgba(0, 24, 48, 0.6), 0 14px 30px -12px rgba(0, 24, 48, 0.5); transition: transform 0.5s var(--ease), scale 0.25s var(--ease), rotate 0.12s linear, box-shadow 0.25s; }
.hero__visual .shot.is-loading::before { opacity: 1; background: var(--accent-soft); animation: ld-pulse 0.55s ease-in-out infinite; }
.hero__visual .shot.is-loading img { opacity: 0.3; }
.hero__visual .shot img.is-swapping { animation: img-swap-in 0.75s cubic-bezier(0.65, 0, 0.35, 1) both; }
@keyframes img-swap-in { from { opacity: 1; clip-path: inset(0 0 100% 0); scale: 1.12; } to { opacity: 1; clip-path: inset(0 0 0 0); scale: 1; } }
/* Each hero screenshot "loads" on its own, with its own loader and reveal. */
.hero__visual .shot { background: linear-gradient(135deg, var(--bg-2), var(--bg-1)); }
.hero__visual .shot img { opacity: 0; }
.hero__visual .shot::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; }

/* 1. ToateFirmele: light sweeps across, then the page sharpens in */
.shot--1::before { background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--accent) 38%, transparent) 50%, transparent 70%); animation: ld-sweep 0.8s 0.1s ease-in-out both; }
.shot--1 img { animation: img-blur 0.9s 0.5s var(--ease) both; }
/* 2. b2bmarketing: a progress bar fills, then the page wipes in from the left */
.shot--2::before { inset: 0 0 auto 0; height: 4px; background: var(--accent); transform-origin: left; box-shadow: 0 0 18px var(--accent); animation: ld-bar 0.6s 0.3s ease-in-out both; }
.shot--2 img { animation: img-wipe-r 0.7s 0.85s cubic-bezier(0.65, 0, 0.35, 1) both; }
/* 4. Invoicy: a scan line moves down and reveals the page behind it */
.shot--4::before { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 22%, transparent) calc(100% - 3px), var(--accent) calc(100% - 3px)); animation: ld-scan 0.75s 0.6s linear both; }
.shot--4 img { animation: img-wipe-d 0.75s 0.6s linear both; }
/* 3. StoreKit: the placeholder pulses twice, then the page pops up */
.shot--3::before { background: var(--accent-soft); animation: ld-pulse 0.4s 0.8s ease-in-out 2 both; }
.shot--3 img { animation: img-pop 0.7s 1.55s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

@keyframes ld-sweep { from { transform: translateX(-100%); opacity: 1; } 85% { opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
@keyframes img-blur { from { opacity: 0; filter: blur(18px); scale: 1.06; } to { opacity: 1; filter: blur(0); scale: 1; } }
@keyframes ld-bar { from { transform: scaleX(0); opacity: 1; } 80% { transform: scaleX(1); opacity: 1; } to { transform: scaleX(1); opacity: 0; } }
@keyframes img-wipe-r { from { opacity: 1; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes ld-scan { from { transform: translateY(-100%); opacity: 1; } 96% { opacity: 1; } to { transform: translateY(0); opacity: 0; } }
@keyframes img-wipe-d { from { opacity: 1; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes ld-pulse { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes img-pop { from { opacity: 0; scale: 0.86; translate: 0 26px; } 55% { opacity: 1; } to { opacity: 1; scale: 1; translate: 0 0; } }


/* Live products row and numbers strip in the first screen */
.hero__live { display: grid; gap: 0.7rem; opacity: 0; animation: fade-up 0.9s var(--ease) 1s forwards; }
.hero__live > span { font-size: 0.92rem; color: var(--text-3); }
.hero__live ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero__live a { display: inline-flex; align-items: center; gap: 0.4rem; height: 2.1rem; padding-inline: 0.9rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: 0.9rem; color: var(--text); background: color-mix(in srgb, var(--bg-1) 70%, transparent); transition: border-color 0.25s, background-color 0.25s, transform 0.3s var(--ease); }
.hero__live a:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.hero__live .i { width: 0.95em; height: 0.95em; color: var(--accent-text); }
.hero__stats { margin-top: clamp(2rem, 4vw, 3.25rem); padding-top: 1.75rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; opacity: 0; animation: fade-up 0.9s var(--ease) 1.15s forwards; }
.hero__stats b { display: block; font-size: clamp(2.8rem, 4.6vw, 4.9rem); color: var(--text); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.hero__stats > div > span { color: var(--text-2); font-size: 1rem; }
.hero__stats b em { font-style: normal; color: var(--accent-text); }

/* ---- Tech marquee (the only one on a page) ------------------------------- */
.marquee { border-block: 1px solid var(--line); padding-block: 1.6rem; overflow: hidden; position: relative; z-index: 2; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; gap: clamp(2.5rem, 5vw, 4.5rem); animation: marquee 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: inherit; align-items: center; }
.tech { display: block; width: 2rem; height: 2rem; background: var(--text-3); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; transition: background-color 0.3s; }
.tech:hover { background: var(--text); }
@keyframes marquee { to { transform: translateX(calc(-50% - clamp(1.25rem, 2.5vw, 2.25rem))); } }

/* ---- Bento --------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.cell { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-1); min-height: 19rem; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.25rem, 2vw, 1.9rem); transition: border-color 0.35s, transform 0.5s var(--ease); }
.cell:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.cell::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none; transition: opacity 0.4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 65%); }
.cell:hover::after { opacity: 1; }
.cell__media { position: absolute; inset: 0; z-index: -2; }
.cell__media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease); }
.cell:hover .cell__media img { transform: scale(1.04); }
.cell--img { --ov: 246, 248, 252; --ov-h: var(--text); --ov-p: var(--text-2); --ov-a: var(--accent-text); }
:root[data-theme="dark"] .cell--img, :root[data-theme="dark"] .band { --ov: 7, 10, 17; --ov-h: #f1f4fa; --ov-p: #cdd4e2; --ov-a: #8fdcf9; }
.cell--img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--ov), 0) 0%, rgba(var(--ov), 0.8) 46%, rgba(var(--ov), 0.96)); }
.cell.cell--img h3 { color: var(--ov-h); }
.cell.cell--img p { color: var(--ov-p); }
.cell.cell--img .link-arrow { color: var(--ov-a); }
.cell--tint { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 28%, transparent); }
.cell--grad { background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 30%, var(--bg-1)), var(--bg-1) 70%); }
.cell--logos { background: var(--bg-1); }
.cell h3 { margin-bottom: 0.55rem; }
.cell p { color: var(--text-2); font-size: 0.99rem; max-width: 46ch; }
.cell .link-arrow { margin-top: 1rem; font-size: 0.95rem; }
.cell__ico { position: absolute; top: clamp(1.25rem, 2vw, 1.9rem); left: clamp(1.25rem, 2vw, 1.9rem); width: 2.9rem; height: 2.9rem; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.cell__ico .i { width: 1.4rem; height: 1.4rem; }
.cell--img .cell__ico { background: rgba(var(--ov), 0.78); color: var(--ov-a); backdrop-filter: blur(8px); }
.cell__logos { position: absolute; inset: 1.4rem 1.4rem auto auto; display: grid; grid-template-columns: repeat(4, 2rem); gap: 1.1rem; opacity: 0.9; }
.cell__logos .tech { width: 1.9rem; height: 1.9rem; background: var(--text-3); }
.cell--pattern::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5; background-image: radial-gradient(var(--line-strong) 1px, transparent 1.4px); background-size: 18px 18px; -webkit-mask: linear-gradient(200deg, #000, transparent 70%); mask: linear-gradient(200deg, #000, transparent 70%); }
/* ---- Photo gallery: two bands of mixed widths (6/3/3, then 3/5/4) ------------ */
.gal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.75rem 1rem; }
.gal__item { margin: 0; display: grid; gap: 0.7rem; align-content: start; }
.gal__img { overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-2); height: var(--h, 15rem); }
.gal__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal__item figcaption { color: var(--text-2); font-size: 0.95rem; line-height: 1.4; }
.gal__item--1 { grid-column: span 6; --h: 26rem; } .gal__item--2 { grid-column: span 3; --h: 26rem; } .gal__item--3 { grid-column: span 3; --h: 26rem; }
.gal__item--4 { grid-column: span 3; --h: 17rem; } .gal__item--5 { grid-column: span 5; --h: 17rem; } .gal__item--6 { grid-column: span 4; --h: 17rem; }
@media (prefers-reduced-motion: no-preference) {
  .gal__img img { transition: transform 0.7s var(--ease); }
  .gal__item:hover .gal__img img { transform: scale(1.04); }
}
@media (max-width: 899px) {
  .gal { gap: 1.25rem 0.75rem; }
  .gal__item--1, .gal__item--6 { grid-column: span 12; --h: 15rem; }
  .gal__item--2, .gal__item--3, .gal__item--4, .gal__item--5 { grid-column: span 6; --h: 11rem; }
  .gal__item figcaption { font-size: 0.88rem; }
}

[data-span="a"] { grid-column: span 7; } [data-span="b"] { grid-column: span 5; }
[data-span="c"] { grid-column: span 5; } [data-span="d"] { grid-column: span 4; } [data-span="e"] { grid-column: span 3; }
[data-span="w1"] { grid-column: span 5; } [data-span="w2"] { grid-column: span 7; }
[data-span="w3"] { grid-column: span 4; } [data-span="w4"] { grid-column: span 3; } [data-span="w5"] { grid-column: span 5; }
[data-span="s3"] { grid-column: span 3; } [data-span="s4"] { grid-column: span 4; } [data-span="s5"] { grid-column: span 5; }
.cell--tall { min-height: 25rem; }
[data-span="f1"] { grid-column: span 7; grid-row: span 2; min-height: 30rem; } [data-span="f2"], [data-span="f3"] { grid-column: span 5; }

/* ---- Featured work: sticky stack ----------------------------------------- */
.cases { display: grid; }
.case { view-timeline-name: --case; view-timeline-axis: block; min-height: 78vh; padding-bottom: 2.5rem; }
.case:last-child { min-height: 0; padding-bottom: 0; }
.case__card { position: sticky; top: calc(var(--nav-h) + 22px + var(--n, 0) * 10px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-strong); background: var(--bg-1); box-shadow: var(--shadow); transform-origin: 50% 0; }
.case__media { background: var(--bg-2); aspect-ratio: 16 / 11; position: relative; overflow: hidden; }
.case__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.4s var(--ease); }
.case__card:hover .case__media img { transform: scale(1.035); }
.case__body { padding: clamp(1.5rem, 3vw, 2.75rem); display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; }
.case__type { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.case__body h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.case__body p { color: var(--text-2); }
.case__feats { display: grid; gap: 0.55rem; }
.case__feats li { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.97rem; color: var(--text-2); }
.case__feats .i { color: var(--accent-text); transform: translateY(0.2em); width: 1.05em; height: 1.05em; }
.stack-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip { display: inline-flex; align-items: center; height: 1.9rem; padding-inline: 0.8rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: 0.82rem; color: var(--text-2); background: transparent; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .case:not(:last-child) .case__card { animation: case-away linear both; animation-timeline: --case; animation-range: exit 10% exit 100%; }
  }
}
@keyframes case-away { to { transform: scale(0.94); filter: brightness(0.55); } }

/* ---- Horizontal rail ----------------------------------------------------- */
.rail { position: relative; z-index: 2; }
.rail__bar { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.rail__ctl { display: flex; gap: 0.5rem; }
.rail__track { display: flex; gap: 1.75rem; overflow-x: auto; padding-inline: var(--gutter); padding-block: 4rem 4.5rem; scrollbar-width: none; cursor: grab; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track.is-drag { cursor: grabbing; }
.rail__track.is-drag * { pointer-events: none; }
.rail__toggle .ico-play, .rail__toggle[aria-pressed="true"] .ico-pause { display: none; }
.rail__toggle[aria-pressed="true"] .ico-play { display: grid; }
.tool { position: relative; z-index: var(--z, 0); translate: var(--x, 0px) 0; scale: var(--s, 1); flex: 0 0 clamp(270px, 23vw, 350px); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-1); overflow: hidden; transition: border-color 0.3s, transform 0.45s var(--ease), box-shadow 0.45s var(--ease), filter 0.7s, opacity 0.7s; user-select: none; }
/* focus effect: the three middle cards keep their colour, the others fade to grey (set by main.js) */
.rail--focus .tool:not(.is-color):not(:hover) { filter: grayscale(1); opacity: 0.8; }
.rail--focus .tool.is-color { box-shadow: var(--shadow); }
.tool:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow); }
.tool__media { position: relative; aspect-ratio: 16 / 6.6; overflow: hidden; background: var(--bg-2); }
.tool__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.1s var(--ease); pointer-events: none; }
.tool__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--bg-1)); }
.tool:hover .tool__media img { transform: scale(1.05); }
.tool__body { display: grid; gap: 0.55rem; align-content: start; padding: 0.35rem 1.3rem 1.35rem; }
.tool__tag { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 580; letter-spacing: 0.01em; color: var(--accent-text); }
.tool__tag .i { width: 1.1em; height: 1.1em; }
.tool h3 { font-size: 1.1rem; }
.tool p { color: var(--text-2); font-size: 0.93rem; }
.tool__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.3rem; }
.tool__chips .chip { height: 1.7rem; font-size: 0.78rem; }
.rail__edge { width: min(100%, 1320px); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- Image band (home cadastru teaser) ----------------------------------- */
.band { position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: clamp(26rem, 60vh, 36rem); display: flex; align-items: flex-end; isolation: isolate; border: 1px solid var(--line); }
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band { --ov: 246, 248, 252; --ov-h: var(--text); --ov-p: var(--text-2); --ov-a: var(--accent-text); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--ov), 0.94) 8%, rgba(var(--ov), 0.6) 55%, rgba(var(--ov), 0.08)); }
.band__body { padding: clamp(1.5rem, 4vw, 3.5rem); display: grid; gap: 1.5rem; max-width: 44rem; color: var(--ov-h); }
.band__body p { color: var(--ov-p); }
.band__body .link-arrow { color: var(--ov-a); }
.stats { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.stat b { display: block; font-size: clamp(2.8rem, 5vw, 4.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat > span { font-size: 0.98rem; color: var(--text-2); }
.band .stat > span { color: var(--ov-p); }

/* ---- Tabs ---------------------------------------------------------------- */
.tab-list { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.35rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--bg-1); margin-bottom: 2rem; }
.tab { height: 2.5rem; padding-inline: 1.15rem; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--text-2); font-weight: 540; font-size: 0.95rem; transition: background-color 0.25s, color 0.25s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--accent-btn); color: var(--on-accent); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fade-up 0.6s var(--ease); }

/* Plugin examples (cadastru) */
.plugins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 4rem); }
.plugins li { padding-block: 1.15rem; border-top: 1px solid var(--line); display: grid; gap: 0.25rem; }
.plugins h3 { font-size: 1.12rem; }
.plugins p { color: var(--text-2); font-size: 0.97rem; }

/* ---- Sticky split (cadastru) --------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split__media { position: sticky; top: calc(var(--nav-h) + 24px); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 4 / 5; background: var(--bg-2); box-shadow: var(--shadow); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.feat-list { display: grid; }
.feat { padding-block: clamp(1.4rem, 2.4vw, 2rem); border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; }
.feat:first-child { border-top: 0; padding-top: 0; }
.feat__ico { width: 2.9rem; height: 2.9rem; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
.feat__ico .i { width: 1.4rem; height: 1.4rem; }
.feat h3 { margin-bottom: 0.4rem; }
.feat p { color: var(--text-2); }
.feat ul { margin-top: 0.8rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ---- Accordion (automatizări) -------------------------------------------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.1rem; padding-block: 1.4rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary h3 { font-size: clamp(1.2rem, 2vw, 1.65rem); }
.acc summary .i.plus { transition: transform 0.4s var(--ease); color: var(--text-3); }
.acc details[open] summary .i.plus { transform: rotate(45deg); color: var(--accent-text); }
.acc summary:hover h3 { color: var(--accent-text); }
.acc__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; padding: 0 0 1.8rem 4rem; animation: fade-up 0.5s var(--ease); }
.acc__body p { color: var(--text-2); }
.acc__body ul { display: grid; gap: 0.5rem; }
.acc__body li { display: flex; gap: 0.6rem; align-items: baseline; color: var(--text-2); }
.acc__body li .i { color: var(--accent-text); transform: translateY(0.2em); width: 1.05em; height: 1.05em; }

/* ---- Process ------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); position: relative; padding-top: 2.4rem; counter-reset: s; }
.steps--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 3rem; }
.steps::before { content: ""; position: absolute; top: 0.55rem; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 10%, transparent)); transform-origin: left; }
.step { position: relative; display: grid; gap: 0.6rem; align-content: start; }
.step::before { content: ""; position: absolute; top: -2.4rem; left: 0; width: 1.1rem; height: 1.1rem; border-radius: var(--r-pill); background: var(--bg); border: 2px solid var(--accent); }
.step p { color: var(--text-2); font-size: 0.99rem; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::before { animation: draw linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
  }
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---- Pricing ------------------------------------------------------------- */
.plans { display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-1); }
.plan { display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 2.4fr) minmax(0, 4.2fr) auto; gap: clamp(1rem, 3vw, 3rem); align-items: center; padding: clamp(1.4rem, 2.6vw, 2.2rem) clamp(1.25rem, 3vw, 2.5rem); position: relative; transition: background-color 0.3s; }
.plans--compact .plan { padding: 0.95rem clamp(1.1rem, 2.4vw, 1.8rem); gap: clamp(0.8rem, 2vw, 1.8rem); }
.plans--compact .plan__name h3 { font-size: 1.12rem; }
.plans--compact .plan__name span { font-size: 0.88rem; }
.plans--compact .plan__price b { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.plans--compact .plan__price small { font-size: 0.78rem; }
.plans--compact .plan__feats { font-size: 0.86rem; gap: 0.25rem 1rem; }
.plan + .plan { border-top: 1px solid var(--line); }
.plan:hover { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.plan--pop { background: var(--accent-soft); }
.plan__name { display: grid; gap: 0.35rem; }
.plan__name h3 { font-size: 1.4rem; }
.plan__name span { color: var(--text-2); font-size: 0.96rem; }
.plan__tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.plan__price { display: flex; align-items: baseline; gap: 0.5rem; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: 0.85rem; color: var(--text-3); }
.plan__price b { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.plan__feats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 1.25rem; font-size: 0.94rem; color: var(--text-2); }
.plan__feats li { display: flex; gap: 0.5rem; align-items: baseline; }
.plan__feats .i { color: var(--accent-text); transform: translateY(0.2em); width: 1em; height: 1em; }
.note { color: var(--text-3); font-size: 0.93rem; margin-top: 1.25rem; }

/* ---- Contact ------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact__info { display: grid; gap: 2rem; align-content: start; }
.contact__list { display: grid; gap: 1.25rem; }
.contact__list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; }
.contact__list .ico { width: 2.9rem; height: 2.9rem; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
.contact__list small { display: block; color: var(--text-3); font-size: 0.85rem; line-height: 1.3; }
.contact__list a, .contact__list span.v { font-weight: 540; font-size: 1.05rem; display: inline-block; padding-block: 0.4rem; }
.contact__list a:hover { color: var(--accent-text); }
.form { display: grid; gap: 1.15rem; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--bg-1); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.9rem; font-weight: 540; color: var(--text); }
.field label i { color: var(--accent-text); font-style: normal; }
.field input, .field select, .field textarea { width: 100%; padding: 0.85rem 1rem; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: #ef7d7d; }
.field .err { color: #ff9d9d; font-size: 0.85rem; min-height: 0; display: none; }
:root[data-theme="light"] .field .err { color: #b02a2a; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .field .err { color: #b02a2a; } }
.field.is-bad .err { display: block; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; color: var(--text-2); }
.consent input { margin-top: 0.3rem; accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }
.consent a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.form__status { min-height: 1.4rem; font-size: 0.97rem; }
.form__status.ok { color: var(--accent-text); }
.form__status.bad { color: #ff9d9d; }
:root[data-theme="light"] .form__status.bad { color: #b02a2a; }
.form .btn { justify-self: start; }
/* honeypot: invisible to people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form[aria-busy="true"] .btn { opacity: 0.6; pointer-events: none; }

/* ---- Page hero (subpages) ------------------------------------------------ */
.phero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); position: relative; overflow-x: clip; z-index: 3; }
.phero::before { content: ""; position: absolute; z-index: 0; inset: -30% -10% auto 40%; height: 120%; background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; }
.phero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.phero__grid--collage { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.hero__visual--photos .shot img, .hero__visual--auto .shot img { object-position: center; }
.phero__copy { display: grid; gap: 1.6rem; justify-items: start; }
.phero__copy h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); max-width: 16ch; }
.phero__copy .h1--caps { text-transform: uppercase; font-weight: 800; font-size: clamp(2rem, 3.9vw, 3.45rem); line-height: 1.12; letter-spacing: -0.035em; max-width: 17ch; }
/* key word on a slanted accent block that wipes in once on load (draws the eye to the one word that matters) */
.h1--caps .nb { white-space: nowrap; }
.h1--caps .hl { position: relative; display: inline-block; white-space: nowrap; padding: 0 0.2em; margin-inline: 0.03em; color: var(--on-accent); isolation: isolate; }
.h1--caps .hl::before { content: ""; position: absolute; inset: 0.06em 0 0.02em; z-index: -1; background: var(--accent-btn); transform: skewX(-9deg); transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .h1--caps .hl::before { animation: hl-wipe 0.7s 0.25s var(--ease) both; }
}
@keyframes hl-wipe { from { transform: skewX(-9deg) scaleX(0); } to { transform: skewX(-9deg) scaleX(1); } }
.phero__media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); aspect-ratio: 4 / 3.2; background: var(--bg-2); position: relative; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.niche-bar { padding-top: 1.1rem; position: relative; z-index: 3; }
.niche-bar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.niche-bar + .phero { padding-top: 1.25rem; }
.niche-bar .btn[aria-current="page"] { background: var(--accent-btn); color: var(--on-accent); border-color: transparent; }
.tile__kind { font-style: normal; justify-self: start; margin-top: 0.35rem; padding: 0.12rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 560; border: 1px solid var(--line); color: var(--text-2); }
.tile__kind--livrat { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.niche-bar__lead { font-size: 0.9rem; color: var(--text-2); margin-right: 0.4rem; }
@media (max-width: 760px) {
  .niche-bar__row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.3rem; }
  .niche-bar__row::-webkit-scrollbar { display: none; }
  .niche-bar__row > * { flex: 0 0 auto; }
}
.phero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-note { display: flex; align-items: center; gap: 0.5rem; margin: -0.5rem 0 0; font-size: 0.92rem; color: var(--text-2); }
.hero-note .i { color: var(--accent-text); }
.band--cta { min-height: clamp(17rem, 38vh, 22rem); }
.band--cta h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); max-width: 20ch; line-height: 1.18; }
.hero-points { list-style: none; margin: 0.9rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.85rem; max-width: 34rem; }
.hero-points li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.85rem; align-items: start; }
.hero-points .hp-ico { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.hero-points b { display: block; font-weight: 600; color: var(--text); }
.hero-points span { color: var(--text-2); font-size: 0.95rem; line-height: 1.45; }
.hero-for { display: grid; gap: 0.6rem; }
.hero-for small { font-size: 0.85rem; color: var(--text-2); }
.chip--more { border-style: dashed; }

/* ---- Portfolio ----------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter { height: 2.5rem; padding-inline: 1.2rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); font-size: 0.95rem; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.filter:hover { border-color: var(--text-3); color: var(--text); }
.filter[aria-pressed="true"] { background: var(--accent-btn); border-color: var(--accent-btn); color: var(--on-accent); }
.masonry { columns: 3; column-gap: 1.1rem; }
.tile { break-inside: avoid; margin: 0 0 1.1rem; display: block; width: 100%; text-align: left; padding: 0; border: 0; background: none; }
.tile[hidden] { display: none; }
.masonry--batch:empty { display: none; }
/* Equal rows for pages where every picture has the same shape (automation types, mobile apps) */
.masonry--grid { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem 1.1rem; }
.masonry--grid .tile { margin: 0; display: flex; flex-direction: column; }
.masonry--grid .tile__img { aspect-ratio: 16 / 9; }
.masonry--grid .tile__img img { height: 100%; object-fit: cover; }
.masonry--grid .tile__cap { flex: 1; align-content: start; }
.masonry--grid .tile__kind { margin-top: auto; }
.masonry--grid .tile__cap span { margin-bottom: 0.35rem; }
.more { display: grid; justify-items: center; gap: 1rem; text-align: center; margin-top: clamp(2.5rem, 5vw, 4rem); padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.more[hidden] { display: none; }
.more__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 560; letter-spacing: -0.02em; }
.more__text { color: var(--text-2); max-width: 60ch; }
.more__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 0.5rem; color: var(--text-3); font-size: 0.9rem; }
.more__links > span { margin-right: 0.3rem; }
.more .btn b { font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .tile--new { animation: tile-in 0.6s var(--ease) both; }
  @keyframes tile-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
.tile__img { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.tile__img img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.tile:hover .tile__img img { transform: scale(1.04); }
.tile:hover .tile__img { border-color: var(--line-strong); }
.tile__cap { padding: 0.8rem 0.3rem 0; display: grid; gap: 0.15rem; }
.tile__cap b { font-weight: 560; letter-spacing: -0.015em; }
.tile__cap span { color: var(--text-3); font-size: 0.9rem; }
.proj { width: min(94vw, 62rem); max-height: 92dvh; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--bg-1); color: var(--text); overflow: auto; box-shadow: var(--shadow); }
.proj::backdrop { background: rgba(4, 6, 11, 0.7); backdrop-filter: blur(6px); }
.proj[open] { animation: fade-up 0.45s var(--ease); }
.proj__img { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.proj__img img { width: 100%; max-height: 56dvh; object-fit: contain; object-position: top; margin-inline: auto; }
.proj__body { padding: clamp(1.25rem, 3vw, 2.2rem); display: grid; gap: 1rem; }
.proj__close { position: absolute; top: 0.9rem; right: 0.9rem; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(8px); }

/* ---- Legal --------------------------------------------------------------- */
.legal { max-width: 52rem; display: grid; gap: 1.1rem; color: var(--text-2); }
.legal h2, .legal h3, .legal b, .legal strong { color: var(--text); }
.legal h2 { font-size: 1.5rem; margin-top: 1.8rem; }
.legal a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.legal ul { list-style: disc; padding-left: 1.4rem; display: grid; gap: 0.4rem; }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq .acc summary { grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; padding-block: 1.25rem; }
.faq .acc summary h3 { font-size: clamp(1.05rem, 1.5vw, 1.3rem); letter-spacing: -0.02em; }
.faq .acc p { color: var(--text-2); padding: 0 3rem 1.4rem 0; animation: fade-up 0.5s var(--ease); }
.faq__side { display: grid; gap: 2.25rem; align-content: start; }
.faq__contact { display: grid; gap: 0.75rem; max-width: 26rem; }
.faq__contact a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 0.95rem 1.15rem; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--bg-1); transition: border-color 0.25s, transform 0.35s var(--ease), background-color 0.25s; }
.faq__contact a:hover { border-color: var(--accent); transform: translateX(4px); background: var(--accent-soft); }
.faq__contact small { display: block; color: var(--text-3); font-size: 0.82rem; line-height: 1.3; }
.faq__contact b { font-weight: 560; font-size: 1.02rem; overflow-wrap: anywhere; }
.faq__contact a > span:nth-child(2) { min-width: 0; }
.faq__contact .ico { width: 2.7rem; height: 2.7rem; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
.faq__contact .ico--wa { background: color-mix(in srgb, #25d366 14%, transparent); border-color: color-mix(in srgb, #25d366 45%, transparent); color: #128c5a; }
.faq__contact > li > a > .i { color: var(--text-3); transition: transform 0.35s var(--ease), color 0.25s; }
.faq__contact a:hover > .i { transform: translate(3px, -3px); color: var(--accent-text); }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* ---- Footer -------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 5rem); position: relative; z-index: 2; background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: clamp(1.5rem, 4vw, 4rem); }
.footer__brand { display: grid; gap: 1.2rem; align-content: start; }
.footer__brand img { height: 30px; width: auto; }
.footer__brand p { color: var(--text-2); font-size: 0.97rem; max-width: 30ch; }
.footer__badges { display: flex; flex-wrap: wrap; gap: 0.6rem 0.8rem; align-items: center; }
.footer__badges img { width: 142px; height: auto; border-radius: 6px; transition: transform 0.35s var(--ease); }
.footer__badges a:hover img { transform: translateY(-2px); }
.footer__col { display: grid; gap: 0.15rem; align-content: start; font-size: 0.97rem; color: var(--text-2); }
.footer__col h3 { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--text); font-weight: 600; margin-bottom: 0.3rem; }
.footer__col a, .footer__col span { display: flex; align-items: center; min-height: 2rem; }
.footer__col a:hover { color: var(--accent-text); }
.footer__base { margin-top: clamp(2.5rem, 5vw, 4rem); padding-block: 1.5rem; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.footer__base a { display: inline-block; padding-block: 0.45rem; }
.footer__base a:hover { color: var(--accent-text); }

/* ---- 404 ----------------------------------------------------------------- */
.nf { min-height: 60dvh; display: grid; align-content: center; gap: 1.5rem; justify-items: start; }

/* ---- Reveal on scroll ---------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---- Scroll parallax on the hero visual (progressive) -------------------- */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__visual .shot--2 { animation: drift-a linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    .hero__visual .shot--3 { animation: drift-b linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
  }
}
/* the drift is its own variable, so it adds to a dragged position instead of replacing it */
@property --drift { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes drift-a { to { --drift: -60px; } }
@keyframes drift-b { to { --drift: 40px; } }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav__links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.75rem var(--gutter) 1.25rem; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0.3s; }
  .nav__links a { padding: 0.95rem 0.5rem; border-radius: var(--r-md); font-size: 1.1rem; }
  .nav__links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__burger { display: inline-grid; }
  .plan { grid-template-columns: 1fr auto; row-gap: 1.2rem; }
  .plan__feats { grid-column: 1 / -1; order: 3; }
  .plan .btn { grid-column: 2; grid-row: 1; justify-self: end; }
  .plan__price { grid-column: 1; }
}
@media (max-width: 900px) {
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__stats > div:last-child { grid-column: 1 / -1; }
  .hero__grid, .phero__grid, .contact, .split { grid-template-columns: minmax(0, 1fr); }
  .hero__title { max-width: 16ch; }
  .hero__visual { max-width: 36rem; }
  .phero__media { aspect-ratio: 16 / 10; }
  .split__media { position: relative; top: 0; aspect-ratio: 16 / 10; }
  .bento { grid-template-columns: 1fr; }
  .bento > .cell { grid-column: auto !important; min-height: 17rem; }
  .case { min-height: 0; padding-bottom: 1.25rem; }
  .case__card { position: relative; top: 0; grid-template-columns: 1fr; }
  .steps, .steps--6 { grid-template-columns: 1fr 1fr; row-gap: 2.8rem; }
  .masonry { columns: 2; }
  .masonry--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plugins { grid-template-columns: 1fr; }
  .acc__body { grid-template-columns: 1fr; padding-left: 0; }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.25rem 1.5rem; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand p { max-width: 36ch; }
  .footer__col--contact { grid-column: 1 / -1; order: 3; }
  .footer__col--legal { order: 2; }
  .band::before { background: linear-gradient(180deg, rgba(var(--ov), 0.3), rgba(var(--ov), 0.92) 60%); }
}
@media (max-width: 700px) { .hero__live { display: none; } }
@media (max-width: 600px) {
  .nav__cta { display: none; }
  .topbar__hours { display: none; }
  .topbar__in { justify-content: center; }
  .topbar { font-size: 0.8rem; }
  .steps, .steps--6 { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .masonry--grid { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: 1fr; }
  .plan__feats { grid-template-columns: 1fr; }
  .footer__col { font-size: 0.93rem; }
  .rail__ctl [data-rail-prev], .rail__ctl [data-rail-next] { display: none; }
  .hero__cta .btn { flex: 1 1 auto; }
}

/* ---- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .w > span, .hero__sub, .hero__cta, .hero__visual, .hero__live, .hero__stats { transform: none; opacity: 1; animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__visual .shot img { opacity: 1; clip-path: none; filter: none; scale: 1; translate: 0 0; animation: none; }
  .hero__visual .shot::before { display: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__group[aria-hidden="true"] { display: none; }
}
