/* ============ Tokens ============ */
:root {
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 12vw, 136px);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 68px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Dark (default) — brand charcoal + teal from the logo */
  --bg: #0B0A0E;
  --bg-alt: #110F15;
  --surface: rgba(255, 255, 255, .045);
  --surface-strong: #17151C;
  --border: rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .18);
  --text: #F3F0F5;
  --muted: #ADA5B2;
  --brand: #4FC6CA;
  --brand-strong: #7FE0E3;
  --brand-ink: #062A2C;
  --accent: #6C8CFF;
  --accent-2: #8E7A92;
  --glow: rgba(79, 198, 202, .35);
  --grid-line: rgba(255, 255, 255, .05);
  --danger: #FF8A8A;
  --header-bg: rgba(11, 10, 14, .72);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F6F5F8;
    --bg-alt: #EEECF2;
    --surface: rgba(255, 255, 255, .72);
    --surface-strong: #FFFFFF;
    --border: rgba(43, 37, 48, .10);
    --border-strong: rgba(43, 37, 48, .2);
    --text: #241F28;
    --muted: #5C5461;
    --brand: #157C81;
    --brand-strong: #0F6569;
    --brand-ink: #FFFFFF;
    --accent: #3D5BD9;
    --accent-2: #6F5F74;
    --glow: rgba(21, 124, 129, .22);
    --grid-line: rgba(43, 37, 48, .06);
    --danger: #C62828;
    --header-bg: rgba(246, 245, 248, .78);
    --shadow: 0 20px 50px -24px rgba(43, 37, 48, .25);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F6F5F8;
  --bg-alt: #EEECF2;
  --surface: rgba(255, 255, 255, .72);
  --surface-strong: #FFFFFF;
  --border: rgba(43, 37, 48, .10);
  --border-strong: rgba(43, 37, 48, .2);
  --text: #241F28;
  --muted: #5C5461;
  --brand: #157C81;
  --brand-strong: #0F6569;
  --brand-ink: #FFFFFF;
  --accent: #3D5BD9;
  --accent-2: #6F5F74;
  --glow: rgba(21, 124, 129, .22);
  --grid-line: rgba(43, 37, 48, .06);
  --danger: #C62828;
  --header-bg: rgba(246, 245, 248, .78);
  --shadow: 0 20px 50px -24px rgba(43, 37, 48, .25);
  color-scheme: light;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--brand); color: var(--brand-ink); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 16px; background: var(--brand); color: var(--brand-ink); border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ============ Logo ============ */
.logo { display: inline-flex; text-decoration: none; font: 700 1.5rem/1 var(--font-head); letter-spacing: .01em; color: var(--text); min-height: 44px; align-items: center; }
.logo > span { display: inline-flex; align-items: baseline; }
.logo__a, .logo__e { display: inline-block; height: .7em; fill: currentColor; margin-inline: .03em; }
.logo__a { width: .74em; }
.logo__p { display: inline-block; height: .9em; width: 1.5em; margin-inline-end: .45em; align-self: center; fill: currentColor; }
.logo__e { width: .56em; }
.logo--sm { font-size: 1.25rem; }

/* ============ Buttons ============ */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: 999px;
  font: 600 1rem/1 var(--font-head); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; position: relative; isolation: isolate;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), background-color .3s, border-color .3s, color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn--lg { --h: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 30px -10px var(--glow); }
.btn--primary:hover { background: var(--brand-strong); box-shadow: 0 14px 40px -8px var(--glow); }
.btn--ghost { border-color: var(--border-strong); background: var(--surface); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--wa { background: #25D366; color: #052E16; }
.btn--wa:hover { background: #3EE07A; }
.btn:active { transform: scale(.97); }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--wa:hover .ico, .form .btn--primary:hover .ico { transform: none; }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color .3s, color .3s, background-color .3s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn .ico { grid-area: 1 / 1; transition: transform .45s var(--ease), opacity .3s; }

/* Theme icon swap */
.ico--sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme-resolved="light"] .ico--sun { opacity: 1; transform: none; }
[data-theme-resolved="light"] .ico--moon { opacity: 0; transform: rotate(90deg) scale(.5); }

/* ============ Header ============ */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
/* Blur lives on a pseudo-element: backdrop-filter on .header itself would trap the fixed mobile nav inside it. */
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: var(--header-bg); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.header.is-scrolled, .menu-open .header { border-bottom-color: var(--border); }
.header.is-scrolled::before, .menu-open .header::before { opacity: 1; }
.menu-open .fab { opacity: 0; pointer-events: none; }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header__actions { display: flex; gap: 8px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }
.nav__cta { margin-left: 8px; --h: 44px; }

.menu-btn .ico--x { opacity: 0; transform: rotate(-90deg); }
.menu-open .menu-btn .ico--menu { opacity: 0; transform: rotate(90deg); }
.menu-open .menu-btn .ico--x { opacity: 1; transform: none; }

@media (max-width: 899px) {
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a:not(.btn) { font: 600 1.625rem/1.2 var(--font-head); color: var(--text); padding: 16px 4px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav__cta { margin: 24px 0 0; --h: 56px; }
  .menu-open { overflow: hidden; }
}
@media (min-width: 900px) { .menu-btn { display: none; } }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 88px;
}
.hero__inner { display: grid; gap: 24px; position: relative; z-index: 2; }
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .7; }
.grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.aurora { position: absolute; inset: -20%; z-index: -2; filter: blur(70px); opacity: .55; }
.aurora span { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 55vmax; height: 55vmax; left: -10%; top: -10%; background: radial-gradient(circle, var(--brand) 0%, transparent 60%); }
.aurora span:nth-child(2) { width: 45vmax; height: 45vmax; right: -10%; top: 10%; background: radial-gradient(circle, var(--accent) 0%, transparent 60%); animation-duration: 22s; animation-delay: -6s; opacity: .7; }
.aurora span:nth-child(3) { width: 40vmax; height: 40vmax; left: 30%; bottom: -15%; background: radial-gradient(circle, var(--accent-2) 0%, transparent 60%); animation-duration: 26s; animation-delay: -12s; }
[data-theme-resolved="light"] .aurora { opacity: .32; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, 8%) scale(1.1); }
  100% { transform: translate(-6%, -4%) scale(.95); }
}

.eyebrow {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface);
  backdrop-filter: blur(10px); font: 500 .875rem/1.3 var(--font-mono); color: var(--muted);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--glow); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero__title { font-size: clamp(2.5rem, 9vw, 5.25rem); font-weight: 700; max-width: 14ch; }
.rotator { display: block; color: var(--brand); position: relative; min-height: 1.1em; white-space: nowrap; }
.rotator__word {
  display: inline-block;
  background: linear-gradient(100deg, var(--brand) 10%, var(--accent) 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity .35s var(--ease), transform .35s var(--ease), filter .35s;
}
.rotator__word.is-out { opacity: 0; transform: translateY(.3em); filter: blur(6px); }
.rotator::after { content: ""; display: inline-block; width: .08em; height: .85em; margin-left: .08em; vertical-align: -.05em; background: var(--brand); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__lead { font-size: clamp(1.0625rem, 2.4vw, 1.25rem); color: var(--muted); max-width: 58ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .9375rem; }
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; }
.hero__chips .ico { width: 18px; height: 18px; color: var(--brand); }

@media (max-width: 479px) {
  .hero__ctas .btn { flex: 1 1 100%; }
}

/* Code window */
.code {
  margin-top: 16px; border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent); backdrop-filter: blur(16px);
  box-shadow: var(--shadow), 0 0 0 1px var(--border) inset; overflow: hidden; max-width: 560px;
}
.code__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); font: 400 .75rem var(--font-mono); color: var(--muted); }
.code__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.code__bar i:nth-child(1) { background: #FF5F57; } .code__bar i:nth-child(2) { background: #FEBC2E; } .code__bar i:nth-child(3) { background: #28C840; }
.code__bar span { margin-left: 8px; }
.code__body { margin: 0; padding: 18px 20px; font: 400 clamp(.75rem, 2.8vw, .875rem)/1.75 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.code .k { color: #C792EA; } .code .v { color: var(--text); } .code .f { color: var(--brand); } .code .p { color: #82AAFF; } .code .s { color: #C3E88D; } .code .c { color: var(--muted); font-style: italic; }
[data-theme-resolved="light"] .code .k { color: #8B3FB8; }
[data-theme-resolved="light"] .code .p { color: #2F55C9; }
[data-theme-resolved="light"] .code .s { color: #3D7A12; }
.caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: var(--brand); margin-left: 4px; animation: blink 1s steps(2) infinite; }

.scroll-hint { position: absolute; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); translate: -50% 0; width: 44px; height: 44px; display: grid; place-items: center; z-index: 2; }
.scroll-hint span { width: 24px; height: 38px; border: 2px solid var(--border-strong); border-radius: 14px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--brand); animation: scroll 1.8s var(--ease) infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-height: 640px) { .scroll-hint { display: none; } }

@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; column-gap: 56px; align-items: center; }
  .hero__inner > :not(.code) { grid-column: 1; }
  .code { grid-column: 2; grid-row: 1 / span 5; margin: 0; transform: perspective(1200px) rotateY(-8deg) rotateX(4deg); transition: transform .6s var(--ease); }
  .code:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
}

/* ============ Marquee ============ */
.marquee { border-block: 1px solid var(--border); background: var(--bg-alt); overflow: hidden; padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee ul { display: flex; gap: 48px; padding-right: 48px; }
.marquee li { font: 600 1.125rem/1 var(--font-head); color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee li::after { content: ""; width: 6px; height: 6px; background: var(--brand); transform: rotate(45deg); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { padding: var(--section-y) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section__head { display: grid; gap: 16px; text-align: center; justify-items: center; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head--left { text-align: left; justify-items: start; margin-bottom: 32px; }
.section__head h2 { font-size: clamp(2rem, 5.5vw, 3.25rem); max-width: 20ch; }
.section__lead { color: var(--muted); font-size: clamp(1rem, 2vw, 1.125rem); max-width: 60ch; }
.kicker { font: 500 .875rem/1 var(--font-mono); color: var(--brand); letter-spacing: .02em; }
.grad { background: linear-gradient(100deg, var(--brand) 0%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============ Bento cards ============ */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } .card--xl { grid-column: span 2; } }
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card--xl { grid-column: span 1; grid-row: span 2; }
}

.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(24px, 4vw, 32px); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx) var(--my), var(--glow), transparent 45%);
}
.card:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); transform: translateY(-4px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.375rem; }
.card p { color: var(--muted); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 8px;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}
.card__icon .ico { width: 24px; height: 24px; }
.card--xl h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tags li { padding: 6px 12px; border-radius: 999px; font: 500 .8125rem/1.2 var(--font-mono); border: 1px solid var(--border-strong); color: var(--muted); }

/* Phone mock inside XL card */
.phone {
  margin: 20px auto 0; width: min(200px, 60%); aspect-ratio: 9 / 17; border-radius: 28px; padding: 28px 14px 14px;
  border: 1px solid var(--border-strong); background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%), var(--bg);
  display: flex; flex-direction: column; gap: 10px; position: relative; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.phone__notch { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 56px; height: 8px; border-radius: 99px; background: var(--border-strong); }
.phone__row { height: 10px; border-radius: 99px; background: var(--border-strong); }
.w50 { width: 50%; } .w70 { width: 70%; } .w90 { width: 90%; }
.phone__card { flex: 1; border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--accent)); opacity: .85; position: relative; overflow: hidden; }
.phone__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); animation: shine 3.5s ease-in-out infinite; }
.phone__btn { height: 28px; border-radius: 99px; background: var(--brand); }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes shine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@media (min-width: 1000px) { .card--xl { justify-content: flex-start; } .phone { margin-top: auto; } }

/* ============ Service mini-visuals ============ */
.viz {
  margin-top: auto; height: 120px; border-radius: 14px; position: relative; overflow: hidden;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 70%, transparent);
  display: grid; place-items: center; padding: 14px;
}
.card > p { margin-bottom: 8px; }

/* Web: browser loading its layout */
.browser { width: 100%; max-width: 240px; height: 100%; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-strong); display: flex; flex-direction: column; overflow: hidden; }
.browser__bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.browser__bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
.browser__bar span { flex: 1; height: 6px; margin-left: 6px; border-radius: 99px; background: var(--border); }
.browser__body { flex: 1; padding: 8px; display: grid; grid-template-rows: 1fr auto; gap: 6px; }
.browser__hero { border-radius: 6px; background: linear-gradient(110deg, var(--border) 30%, color-mix(in srgb, var(--brand) 45%, transparent) 50%, var(--border) 70%); background-size: 250% 100%; animation: skeleton 2.4s linear infinite; }
.browser__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.browser__tiles span { height: 16px; border-radius: 4px; background: var(--brand); opacity: .2; animation: tile 2.4s var(--ease) infinite; }
.browser__tiles span:nth-child(2) { animation-delay: .2s; } .browser__tiles span:nth-child(3) { animation-delay: .4s; }
@keyframes skeleton { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes tile { 0%, 100% { opacity: .2; transform: translateY(4px); } 40%, 70% { opacity: .9; transform: none; } }

/* Systems: live bar chart */
.viz--bars { display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding: 18px 20px 0; }
.viz--bars span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--accent) 60%, transparent)); transform-origin: bottom; animation: bar 3s var(--ease) infinite alternate; }
.viz--bars span:nth-child(2n) { animation-delay: -.8s; } .viz--bars span:nth-child(3n) { animation-delay: -1.6s; }
@keyframes bar { 0% { transform: scaleY(.35); } 100% { transform: scaleY(1); } }

/* Automation: data travelling between nodes */
.viz--flow { display: flex; align-items: center; gap: 0; padding: 0 18px; }
.viz--flow .node { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); background: color-mix(in srgb, var(--brand) 10%, transparent); animation: node 3s infinite; }
.viz--flow .node .ico { width: 18px; height: 18px; }
.viz--flow .node:nth-child(3) { animation-delay: 1s; } .viz--flow .node:nth-child(5) { animation-delay: 2s; }
.viz--flow .wire { flex: 1; height: 2px; background: var(--border-strong); position: relative; }
.viz--flow .wire i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); animation: travel 3s linear infinite; }
.viz--flow .wire:nth-child(4) i { animation-delay: 1s; }
@keyframes travel { 0% { left: 0; opacity: 0; } 5% { opacity: 1; } 33% { left: calc(100% - 8px); opacity: 1; } 36%, 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes node { 0%, 100% { box-shadow: none; } 5%, 20% { box-shadow: 0 0 0 4px var(--glow); background: color-mix(in srgb, var(--brand) 25%, transparent); } }

/* UX/UI: cursor clicks a button on a wireframe */
.wf { width: 100%; max-width: 230px; display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 12px; border-radius: 10px; border: 1px dashed var(--border-strong); }
.wf__img { border-radius: 8px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 35%, transparent), color-mix(in srgb, var(--accent) 35%, transparent)); }
.wf__lines { display: grid; gap: 7px; }
.wf__lines span { height: 7px; border-radius: 99px; background: var(--border-strong); }
.wf__lines .wf__btn { width: 60%; height: 18px; background: var(--border-strong); animation: press 3.6s infinite; }
.cursor { position: absolute; width: 18px; height: 18px; fill: var(--text); stroke: var(--bg); stroke-width: 1.5; left: 20%; top: 75%; animation: cursor 3.6s var(--ease) infinite; }
@keyframes cursor { 0%, 100% { left: 18%; top: 78%; } 40%, 60% { left: 58%; top: 62%; } 48% { transform: scale(.8); } }
@keyframes press { 0%, 44% { background: var(--border-strong); } 48%, 80% { background: var(--brand); } 100% { background: var(--border-strong); } }

/* Support: heartbeat monitor */
.viz--pulse { padding: 0; }
.viz--pulse svg { position: absolute; inset: 20px 0 30px; width: 100%; height: calc(100% - 50px); }
.beat { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: beat 2.6s linear infinite; filter: drop-shadow(0 0 4px var(--glow)); }
@keyframes beat { 0% { stroke-dashoffset: 100; } 60%, 100% { stroke-dashoffset: -100; } }
.status { position: absolute; left: 12px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; font: 500 .75rem var(--font-mono); color: var(--muted); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #28C840; animation: pulse 2s infinite; box-shadow: 0 0 0 0 rgba(40, 200, 64, .4); }

/* ============ Steps ============ */
.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.step {
  position: relative; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); display: grid; gap: 10px; align-content: start; overflow: hidden;
}
.step::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .2s; }
.step.is-in::after { transform: scaleX(1); }
.step__num { font: 700 2.75rem/1 var(--font-head); background: linear-gradient(180deg, var(--brand), transparent 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); }

/* ============ Why ============ */
.why { display: grid; gap: 48px; }
@media (min-width: 1000px) { .why { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; } }
.why__list { display: grid; gap: 16px; }
.why__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.0625rem; color: var(--muted); }
.why__list strong { color: var(--text); }
.why__list .ico { width: 28px; height: 28px; padding: 5px; border-radius: 8px; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); margin-top: -1px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat {
  padding: clamp(20px, 4vw, 32px) clamp(16px, 3vw, 28px); border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
  display: grid; gap: 6px; align-content: start;
}
.stat__num { font: 700 clamp(1.75rem, 6vw, 2.75rem)/1.05 var(--font-head); color: var(--text); font-variant-numeric: tabular-nums; }
.stat:nth-child(1) .stat__num, .stat:nth-child(4) .stat__num { color: var(--brand); }
.stat__label { color: var(--muted); font-size: .9375rem; line-height: 1.35; }

/* ============ CTA band ============ */
.cta-band { padding: 0 0 var(--section-y); }
.cta-band__box {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(40px, 8vw, 80px) clamp(24px, 5vw, 64px); border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border-strong); background: var(--surface-strong);
  display: grid; gap: 16px; justify-items: center;
}
.cta-band__box::before {
  content: ""; position: absolute; inset: -50%; z-index: -1;
  background: conic-gradient(from 0deg, transparent 0 70%, var(--brand) 80%, var(--accent) 90%, transparent 100%);
  animation: spin 8s linear infinite; opacity: .25;
}
.cta-band__box::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: inherit; background: var(--surface-strong); opacity: .9; }
.cta-band__box h2 { font-size: clamp(1.875rem, 5vw, 3rem); max-width: 18ch; }
.cta-band__box p { color: var(--muted); font-size: 1.0625rem; max-width: 46ch; margin-bottom: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Contact ============ */
.contact { display: grid; gap: 40px; }
@media (min-width: 1000px) { .contact { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; } }

.wa-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius);
  text-decoration: none; background: color-mix(in srgb, #25D366 12%, var(--surface-strong)); border: 1px solid color-mix(in srgb, #25D366 40%, transparent);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.wa-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -16px rgba(37, 211, 102, .5); border-color: #25D366; }
.wa-card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #25D366; color: #052E16; flex-shrink: 0; }
.wa-card__icon .ico { width: 26px; height: 26px; }
.wa-card__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.wa-card__text strong { font: 600 1.125rem/1.2 var(--font-head); }
.wa-card__text span { color: var(--muted); font-family: var(--font-mono); font-size: .875rem; }
.wa-card__arrow { color: var(--muted); transition: transform .3s var(--ease); }
.wa-card:hover .wa-card__arrow { transform: translateX(4px); color: var(--text); }

.contact__meta { display: grid; gap: 4px; margin-top: 20px; }
.contact__meta li { display: flex; align-items: center; gap: 12px; color: var(--muted); min-height: 44px; }
.contact__meta .ico { color: var(--brand); }
.contact__meta a { text-decoration: none; color: var(--text); word-break: break-all; padding-block: 10px; }
.contact__meta a:hover { color: var(--brand); text-decoration: underline; }

.form {
  display: grid; gap: 20px; padding: clamp(20px, 5vw, 40px); border-radius: calc(var(--radius) + 4px);
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; gap: 20px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { font-weight: 500; font-size: .9375rem; padding: 0; }
.field legend { margin-bottom: 8px; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--text);
  font: 400 1rem/1.4 var(--font-body); /* 16px avoids iOS zoom on focus */
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .75; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--glow); }
.field__error { display: none; color: var(--danger); font-size: .875rem; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .field__error { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--bg); font-weight: 500; transition: all .2s;
}
.chip:hover span { border-color: var(--brand); }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 3px; }

.form__actions { display: grid; gap: 12px; margin-top: 4px; }
@media (min-width: 560px) { .form__actions { grid-template-columns: 1fr 1fr; } }
.form__actions .btn { width: 100%; padding: 0 16px; }
.form__status { font-size: .9375rem; color: var(--brand); min-height: 1.4em; }
.form__status:empty { display: none; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--border); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--bg-alt); }
.footer__inner { display: grid; gap: 8px; justify-items: center; text-align: center; color: var(--muted); }
.footer__copy { font-size: .875rem; }

/* ============ FAB ============ */
.fab {
  position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #052E16; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .3s var(--ease), opacity .3s;
}
.fab .ico { width: 28px; height: 28px; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25D366; animation: ring 2.4s ease-out infinite; }
.fab:hover { transform: scale(1.08); }
.fab.is-hidden { opacity: 0; transform: scale(.6); pointer-events: none; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ============ Reveal on scroll ============ */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (min-width: 1000px) { .js .code.reveal:not(.is-in) { transform: perspective(1200px) rotateY(-8deg) rotateX(4deg) translateY(24px); } .js .code.reveal.is-in { transform: perspective(1200px) rotateY(-8deg) rotateX(4deg); } .js .code.reveal.is-in:hover { transform: none; } }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
