/* ==========================================================================
   Brave AI — styles.css
   Black canvas · white typography · rose signal · dot-matrix display type
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* original compatibility layer */
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;

  /* brand */
  --black: #050505;
  --black-soft: #0B0B0C;
  --white: #F7F7F5;
  --rose: #FF4F81;
  --brave-rose: #FF4F81;
  --rose-light: #FF7FA2;
  --brave-rose-light: #FF7FA2;
  --rose-dark: #C93662;
  --brave-rose-dark: #C93662;
  --gray-100: #E8E8E8;
  --gray-300: #A3A3A3;
  --gray-500: #666666;
  --gray-700: #292929;

  /* surfaces & lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --surface: rgba(255, 255, 255, 0.025);
  --surface-hi: rgba(255, 255, 255, 0.05);
  --rose-dim: rgba(255, 79, 129, 0.14);
  --rose-glow: rgba(255, 79, 129, 0.24);

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-mid: 320ms;
  --t-slow: 620ms;
  --t-reveal: 850ms;

  /* layout */
  --maxw: 1200px;
  --maxw-mid: 1040px;
  --maxw-narrow: 880px;
  --pad: clamp(18px, 5vw, 56px);
  --section-y: clamp(84px, 11vh, 148px);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;

  /* z-index scale */
  --z-bg: 0;
  --z-content: 2;
  --z-float: 50;
  --z-header: 60;
  --z-overlay: 80;
  --z-sheet: 90;
  --z-cursor: 9999;

  /* display-font safety valve (see main.js initDisplayFont) */
  --font-display-safe: var(--font-display);
}

/* The CDN dot-matrix face is Latin-only. When the active language needs
   glyphs it cannot render, localized headlines fall back to Inter instead of
   breaking mid-word into monospace. Latin-only elements keep the dot face. */
html.display-font-limited {
  --font-display-safe: var(--font-sans);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* the hidden attribute must always win over component display rules */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: clamp(88px, 12vh, 116px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* The original single-viewport concept locked the document with
   `overflow:hidden`. A full-scroll landing page must scroll, so the hero
   video is scoped to the hero region instead of the whole document. */
body.menu-open { overflow: hidden; }

h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--rose); color: #fff; }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  padding: 10px 18px;
  background: var(--white);
  color: #000;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--t-mid) var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Typography primitives
   -------------------------------------------------------------------------- */
.display { font-family: var(--font-display-safe); font-weight: 400; }
.mono-display { font-family: var(--font-display); font-weight: 400; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(10.5px, 1.05vw, 11.5px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--plain::before { display: none; }

h2.section-title,
.section-title {
  font-family: var(--font-display-safe);
  font-weight: 400;
  font-size: clamp(27px, 4.4vw, 54px);
  line-height: 1.13;
  letter-spacing: -0.035em;
  color: var(--white);
  text-wrap: balance;
}
html:not(.display-font-limited) .section-title { letter-spacing: -0.005em; }

h3.sub-title, .sub-title {
  font-family: var(--font-display-safe);
  font-weight: 400;
  font-size: clamp(21px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--white);
}
html:not(.display-font-limited) .sub-title { letter-spacing: 0; }

.lead {
  max-width: 62ch;
  font-size: clamp(14.5px, 1.35vw, 17px);
  line-height: 1.62;
  color: var(--gray-300);
}
.body-sm { font-size: 14px; line-height: 1.6; color: var(--gray-300); }
.rose { color: var(--rose); }
.num { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}
.section--flush { border-top: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.wrap--mid { max-width: var(--maxw-mid); }
.wrap--narrow { max-width: var(--maxw-narrow); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 780px;
  margin-bottom: clamp(40px, 6vh, 72px);
}
.section-head--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }

/* thin sparse card */
.card {
  position: relative;
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--t-mid) var(--ease),
              background var(--t-mid) var(--ease),
              transform var(--t-mid) var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  background: var(--surface-hi);
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  min-height: 44px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: clamp(13.5px, 1vw, 14.5px);
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-mid) var(--ease),
              background var(--t-mid) var(--ease),
              color var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease);
}
.btn i, .btn .arrow { transition: transform var(--t-mid) var(--ease); }
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.btn--rose { --btn-bg: var(--rose); --btn-fg: #fff; --btn-bd: var(--rose); }
.btn--rose:hover {
  --btn-bg: var(--rose-light);
  --btn-bd: var(--rose-light);
  box-shadow: 0 0 0 1px rgba(255, 79, 129, 0.2), 0 0 22px rgba(255, 79, 129, 0.26);
}

.btn--white { --btn-bg: var(--white); --btn-fg: #000; --btn-bd: var(--white); }
.btn--white:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 0 22px rgba(255,255,255,.22); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--gray-100); }
.btn--ghost:hover { --btn-bg: var(--surface-hi); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.28); }

.btn--sm { padding: 9px 18px; min-height: 38px; font-size: 13px; }
.btn--block { width: 100%; }

/* hero primary glow, kept soft and small */
.btn--glow {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 22px rgba(255, 255, 255, 0.32),
    0 0 44px rgba(255, 255, 255, 0.12);
}
.btn--glow.btn--rose {
  box-shadow:
    0 0 0 1px rgba(255, 79, 129, 0.28),
    0 0 22px rgba(255, 79, 129, 0.3),
    0 0 46px rgba(255, 79, 129, 0.12);
}

.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--rose);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}
.link-inline:hover { border-color: currentColor; color: var(--rose-light); }

/* --------------------------------------------------------------------------
   6. Animation library
   -------------------------------------------------------------------------- */
@keyframes slideDown   { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes reveal      { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes headlineFade{ from { opacity: 0; transform: translateY(16px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes revealPulse {
  0%   { opacity: 0; transform: translateY(18px) scale(.96); filter: blur(6px); }
  60%  { opacity: 1; transform: translateY(0) scale(1.015); filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes overlayIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes menuIn      { from { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(.97); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes linkIn      { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes markIn      { from { opacity: 0; transform: translateX(-14px) scaleX(.4); } to { opacity: 1; transform: none; } }
@keyframes nodeActivate{ 0% { box-shadow: 0 0 0 0 var(--rose-glow); } 70% { box-shadow: 0 0 0 12px rgba(255,79,129,0); } 100% { box-shadow: 0 0 0 0 rgba(255,79,129,0); } }
@keyframes dotPulse    { 0%,100% { opacity: .25; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
@keyframes marqueeIn   { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin        { to { transform: rotate(360deg); } }

/* shared scroll-entrance system */
.anim {
  opacity: 0;
  transform: translateY(22px) scale(.98);
  filter: blur(6px);
  will-change: opacity, transform, filter;
}
.anim.in {
  animation: reveal var(--t-reveal) var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

/* hero pieces animate on load rather than on scroll */
.hero .anim.in { animation-delay: var(--d, 0s); }

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  display: flex;
  justify-content: center;
  padding: clamp(12px, 1.8vh, 20px) var(--pad);
  animation: slideDown 0.7s var(--ease) both;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--maxw);
}

/* scrolled state: subtle backdrop so nav stays readable over any section */
.header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(5,5,5,.82), rgba(5,5,5,.5) 65%, transparent);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease);
  pointer-events: none;
}
.site-header.is-scrolled .header-inner::before { opacity: 1; }
.site-header { transition: transform var(--t-slow) var(--ease); }
.site-header.is-hidden { transform: translateY(-118%); }

/* brand lockup */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--nav-shadow);
  transition: transform var(--t-mid) var(--ease);
}
.brand-mark svg { width: 72%; height: 72%; color: #050505; }
.brand:hover .brand-mark { transform: scale(1.04); }
.brand-mark .bar { animation: markIn .55s var(--ease) both; transform-origin: left center; }
.brand-mark .bar:nth-child(1) { animation-delay: .05s; }
.brand-mark .bar:nth-child(2) { animation-delay: .13s; }
.brand-mark .bar:nth-child(3) { animation-delay: .21s; }
.brand-mark .bar:nth-child(4) { animation-delay: .29s; }
.brand:hover .brand-mark .bar:nth-child(2) { fill: var(--rose); }
.brand-mark .bar { transition: fill var(--t-mid) var(--ease); }

.brand-word {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 17.5px);
  letter-spacing: 0.02em;
  color: var(--white);
  white-space: nowrap;
}

/* nav pill */
.nav-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  height: clamp(44px, 5.2vw, 48px);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(18, 18, 20, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--nav-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 clamp(10px, 1.2vw, 15px);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--white);
  opacity: 0.5;
  transition: opacity var(--t-mid) var(--ease);
}
.nav-link:hover { opacity: 0.75; }
.nav-link.is-active { opacity: 1; }

/* three 3x3 rose dots active indicator */
.nav-link .dots {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease);
}
.nav-link .dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rose);
}
.nav-link.is-active .dots { opacity: 1; }

/* right cluster */
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 14px);
  flex: 0 0 auto;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 18, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lang-btn {
  position: relative;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gray-300);
  transition: color var(--t-mid) var(--ease), background var(--t-mid) var(--ease);
}
.lang-btn:hover { color: var(--white); }
.lang-btn[aria-pressed="true"] {
  color: var(--white);
  background: rgba(255, 79, 129, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 79, 129, 0.35);
}
.lang-btn[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--rose);
  transform: translateX(-50%);
}

.header-cta { display: inline-flex; }

/* burger */
.burger {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pill-dark);
  box-shadow: var(--nav-shadow);
  transition: background var(--t-mid) var(--ease);
}
.burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  border-radius: 2px;
  background: #fff;
  transition: transform var(--t-mid) var(--ease),
              opacity var(--t-fast) var(--ease),
              background var(--t-mid) var(--ease);
}
.burger span:nth-child(1) { transform: translateY(-6.5px); }
.burger span:nth-child(2) { transform: translateY(0); }
.burger span:nth-child(3) { transform: translateY(6.5px); }
.burger[aria-expanded="true"] { background: #fff; }
.burger[aria-expanded="true"] span { background: #050505; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   8. Mobile menu
   -------------------------------------------------------------------------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: overlayIn 0.28s var(--ease) both;
}
.menu-overlay[hidden] { display: none; }

.menu-sheet {
  position: fixed;
  z-index: var(--z-sheet);
  top: clamp(76px, 12vh, 92px);
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 28px));
  max-height: calc(100dvh - clamp(96px, 15vh, 120px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 18px 20px;
  border-radius: 28px;
  background: #fff;
  color: #050505;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: menuIn 0.38s var(--ease) both;
}
.menu-sheet[hidden] { display: none; }

.menu-nav { display: flex; flex-direction: column; }
.menu-link {
  position: relative;
  display: block;
  padding: 13px 12px 17px;
  font-size: 17px;
  font-weight: 600;
  color: #050505;
  border-radius: 14px;
  animation: linkIn 0.42s var(--ease) both;
  animation-delay: calc(0.05s + var(--i, 0) * 0.045s);
  transition: background var(--t-fast) var(--ease);
}
.menu-link:hover { background: rgba(0, 0, 0, 0.045); }
.menu-link .dots {
  position: absolute;
  left: 12px;
  bottom: 8px;
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease);
}
.menu-link .dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--rose); }
.menu-link.is-active .dots { opacity: 1; }

.menu-divider { height: 1px; background: rgba(0, 0, 0, 0.08); margin: 12px 4px; }

.menu-lang {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  animation: linkIn 0.42s var(--ease) both;
  animation-delay: 0.34s;
}
.menu-lang .lang-btn {
  justify-content: center;
  text-align: center;
  color: #4a4a4a;
  font-size: 12.5px;
  padding: 10px 0;
}
.menu-lang .lang-btn[aria-pressed="true"] {
  background: #050505;
  color: #fff;
  box-shadow: none;
}
.menu-lang .lang-btn[aria-pressed="true"]::after { background: var(--rose); bottom: 5px; }

.menu-cta {
  margin-top: 12px;
  animation: linkIn 0.42s var(--ease) both;
  animation-delay: 0.4s;
}

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(112px, 16vh, 168px) 0 clamp(56px, 9vh, 96px);
  overflow: hidden;
  isolation: isolate;
}

.bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
  z-index: var(--z-bg);
}
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}
/* readability overlay + vignette, never over the headline as a gradient */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 40%, rgba(0,0,0,.28) 0%, rgba(0,0,0,.62) 55%, rgba(0,0,0,.86) 100%),
    linear-gradient(to bottom, rgba(5,5,5,.72) 0%, rgba(5,5,5,.35) 28%, rgba(5,5,5,.55) 68%, #000 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: var(--z-content);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(18px, 2.6vh, 28px);
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* trust row */
.trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  padding-right: 4px;
}
.trust-avatars { display: inline-flex; align-items: center; }
.trust-avatar {
  display: grid;
  place-items: center;
  width: var(--trust-size);
  height: var(--trust-size);
  padding: 5px;
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  transition: transform var(--t-mid) var(--ease);
}
.trust-avatar + .trust-avatar { margin-left: calc(-0.42 * var(--trust-size)); }
.trust-avatar span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  color: #050505;
  font-size: calc(var(--trust-size) * 0.36);
}
.trust:hover .trust-avatar:nth-child(1) { transform: translateY(-2px); }
.trust:hover .trust-avatar:nth-child(2) { transform: translateY(-4px); }
.trust:hover .trust-avatar:nth-child(3) { transform: translateY(-2px); }
.trust-text {
  margin-left: calc(-0.24 * var(--trust-size));
  padding: 7px 16px 7px calc(0.32 * var(--trust-size));
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--line);
  color: var(--trust-text);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

/* headline */
.hero-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display-safe);
  font-weight: 400;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}
html:not(.display-font-limited) .hero-title { letter-spacing: -0.005em; }
.hero-title span { display: block; opacity: 0; }
.hero-title.is-fitted span { white-space: nowrap; }
.hero-title span.in { animation: headlineFade 0.9s var(--ease) forwards; }
.hero-title span:nth-child(1).in { animation-delay: 0.12s; }
.hero-title span:nth-child(2).in { animation-delay: 0.30s; }
.hero-title .line-2 { color: #fff; }

.hero-sub {
  max-width: min(560px, 92%);
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  color: #d0d0d0;
  opacity: .8;
  line-height: 1.55;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.hero-actions .anim.in { animation-name: revealPulse; }

/* micro stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 34px);
  width: 100%;
  max-width: 640px;
  margin-top: clamp(4px, 1.4vh, 14px);
  padding-top: clamp(16px, 2.4vh, 26px);
  border-top: 1px solid var(--line);
}
.hero-stat { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.hero-stat dt {
  font-size: clamp(9.5px, 1vw, 10.5px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.hero-stat dd {
  margin: 0;
  font-family: var(--font-display-safe);
  font-size: clamp(13px, 1.55vw, 17px);
  letter-spacing: 0.02em;
  color: var(--white);
}

/* scroll hint */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 3vh, 30px);
  transform: translateX(-50%);
  z-index: var(--z-content);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.scroll-hint .bar {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--rose), transparent);
}

/* --------------------------------------------------------------------------
   10. Flow / workflow primitives (shared across sections)
   -------------------------------------------------------------------------- */
.flow { display: flex; flex-direction: column; }
.flow-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color var(--t-slow) var(--ease), background var(--t-slow) var(--ease);
}
.flow-node .dot {
  flex: 0 0 auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gray-700);
  transition: background var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}
.flow-node .txt {
  font-family: var(--font-display-safe);
  font-size: clamp(10.5px, 1.05vw, 12px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-100);
}
.flow-node .meta {
  margin-left: auto;
  font-size: 11px;
  color: var(--gray-500);
  letter-spacing: 0.02em;
}

.flow-node + .flow-node { margin-top: 26px; }
.flow-node + .flow-node::before,
.flow-node + .flow-node::after {
  content: "";
  position: absolute;
  left: 19px;
  pointer-events: none;
}
.flow-node + .flow-node::before {
  top: -26px;
  width: 1px;
  height: 26px;
  background: var(--line-strong);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.flow-node + .flow-node::after {
  top: -8px;
  margin-left: -2.5px;
  width: 6px; height: 6px;
  border-right: 1px solid var(--rose);
  border-bottom: 1px solid var(--rose);
  transform: rotate(45deg) scale(0);
  transition: transform 0.35s var(--ease);
}
.flow.is-live .flow-node + .flow-node::before { transform: scaleY(1); }
.flow.is-live .flow-node + .flow-node::after { transform: rotate(45deg) scale(1); }
.flow.is-live .flow-node { border-color: var(--line-strong); }
.flow.is-live .flow-node .dot { background: var(--rose); box-shadow: 0 0 0 3px var(--rose-dim); }
.flow.is-live .flow-node:nth-child(n) { transition-delay: calc(var(--i, 0) * 0.09s); }
.flow.is-live .flow-node + .flow-node::before { transition-delay: calc(var(--i, 0) * 0.09s); }
.flow.is-live .flow-node + .flow-node::after { transition-delay: calc(var(--i, 0) * 0.09s + 0.2s); }

/* capability chips */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 12.5px;
  color: var(--gray-300);
  transition: border-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease), background var(--t-mid) var(--ease);
}
.chip i { font-size: 11.5px; color: var(--gray-500); transition: color var(--t-mid) var(--ease); }
.chip:hover { border-color: rgba(255, 79, 129, 0.4); color: #fff; background: var(--rose-dim); }
.chip:hover i { color: var(--rose); }
.chip--rose { border-color: rgba(255, 79, 129, 0.32); color: var(--rose-light); }
.chip--rose i { color: var(--rose); }

/* demo-data badge — every sample number on this page is labelled */
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 79, 129, 0.3);
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-light);
  background: rgba(255, 79, 129, 0.07);
}

/* hero SVG graphic */
.hero-graphic { width: 100%; max-width: 860px; margin-top: clamp(2px, 1vh, 10px); }
.hero-graphic svg { width: 100%; height: auto; overflow: visible; }
.hero-graphic .gnode rect { fill: rgba(255,255,255,.035); stroke: var(--line-strong); stroke-width: 1; }
.hero-graphic .gnode text {
  fill: var(--gray-100);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-graphic .gnode circle { fill: var(--gray-700); }
.hero-graphic .gnode { opacity: 0; transform: translateY(8px); }
.hero-graphic.is-live .gnode {
  animation: reveal 0.7s var(--ease) forwards;
  animation-delay: calc(0.55s + var(--i, 0) * 0.09s);
}
.hero-graphic .gline {
  stroke: var(--line-strong);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.hero-graphic.is-live .gline {
  animation: dash 0.75s var(--ease) forwards;
  animation-delay: calc(0.7s + var(--i, 0) * 0.08s);
}
.hero-graphic .gline--rose { stroke: var(--rose); opacity: .85; }
.hero-graphic .gnode--core rect { stroke: var(--rose); fill: rgba(255,79,129,.08); }
.hero-graphic .gnode--core circle { fill: var(--rose); }
.hero-graphic .gnode--core text { fill: #fff; }
@keyframes dash { to { stroke-dashoffset: 0; } }

/* --------------------------------------------------------------------------
   11. Problem section
   -------------------------------------------------------------------------- */
.chaos {
  position: relative;
  margin-bottom: clamp(44px, 6vh, 76px);
  padding: clamp(26px, 4vw, 46px) clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(255,79,129,.05), transparent 60%),
    var(--surface);
  overflow: hidden;
}
.chaos-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: clamp(12px, 2vw, 22px);
}
.chaos-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 16px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 10, 11, 0.72);
  transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--rot, 0deg));
  transition: transform 1.1s var(--ease), border-color 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.05s);
}
.chaos.is-connected .chaos-item { transform: none; border-color: rgba(255, 79, 129, 0.28); }
.chaos-item i { font-size: 18px; color: var(--gray-300); transition: color 0.8s var(--ease); }
.chaos.is-connected .chaos-item i { color: var(--rose); }
.chaos-item span { font-size: 11.5px; letter-spacing: 0.04em; color: var(--gray-500); }
.chaos-caption {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(22px, 3vw, 34px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--gray-500);
}
.chaos-caption strong { color: var(--white); font-weight: 500; }
.chaos-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s var(--ease) 0.5s;
}
.chaos.is-connected .chaos-lines { opacity: 1; }

.problems { display: grid; gap: 0; border-top: 1px solid var(--line); }
.problem {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: clamp(14px, 2.4vw, 34px);
  align-items: start;
  padding: clamp(22px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--t-mid) var(--ease);
}
.problem:hover { background: rgba(255, 255, 255, 0.015); }
.problem-num {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.8vw, 20px);
  letter-spacing: 0.06em;
  color: var(--rose);
  padding-top: 2px;
}
.problem-body { display: grid; gap: 8px; }
.problem h3 {
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--white);
}
.problem p { font-size: 14.5px; color: var(--gray-300); max-width: 68ch; }

/* --------------------------------------------------------------------------
   12. Transformation
   -------------------------------------------------------------------------- */
.transform-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.transform-sticky { position: sticky; top: clamp(112px, 18vh, 180px); }
.transform-steps {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 34px;
}
.transform-steps::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--line-strong);
}
.transform-steps::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 14px;
  width: 1px;
  height: var(--progress, 0%);
  background: linear-gradient(to bottom, var(--rose), var(--rose-dark));
  transition: height 0.35s linear;
  box-shadow: 0 0 12px rgba(255, 79, 129, 0.5);
}
.tstep {
  position: relative;
  padding: clamp(16px, 2.4vh, 26px) 0;
  opacity: 0.34;
  transition: opacity var(--t-slow) var(--ease);
}
.tstep.is-on { opacity: 1; }
.tstep::before {
  content: "";
  position: absolute;
  left: -30px;
  top: calc(clamp(16px, 2.4vh, 26px) + 7px);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #0a0a0b;
  border: 1px solid var(--line-strong);
  transition: background var(--t-slow) var(--ease), border-color var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}
.tstep.is-on::before {
  background: var(--rose);
  border-color: var(--rose);
  box-shadow: 0 0 0 4px var(--rose-dim);
}
.tstep h3 {
  font-family: var(--font-display-safe);
  font-size: clamp(15px, 2vw, 22px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}
.tstep p { margin-top: 6px; font-size: 14px; color: var(--gray-300); max-width: 46ch; }

/* --------------------------------------------------------------------------
   13. Services — pinned-visual scroll chapters
   -------------------------------------------------------------------------- */
.svc-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 1px;
  margin-bottom: clamp(30px, 5vh, 60px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.svc-index a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 16px;
  background: #060607;
  font-size: 13px;
  color: var(--gray-300);
  transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}
.svc-index a i { font-size: 12px; color: var(--gray-500); transition: color var(--t-mid) var(--ease); }
.svc-index a:hover { background: #0d0d0f; color: #fff; }
.svc-index a:hover i { color: var(--rose); }
.svc-index a .n {
  font-family: var(--font-display);
  font-size: 10.5px;
  color: var(--rose);
  letter-spacing: 0.08em;
  margin-left: auto;
}

.svc-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 78px);
  align-items: center;
  min-height: 74vh;
  padding: clamp(34px, 6vh, 64px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.svc-chapter:first-of-type { border-top: 0; }
.svc-chapter:nth-of-type(even) .svc-copy { order: 2; }
.svc-chapter:nth-of-type(even) .svc-visual { order: 1; }

.svc-copy { display: grid; gap: 16px; align-content: center; }
.svc-kicker {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display-safe);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
}
.svc-kicker .n { color: var(--gray-500); }
.svc-copy h3 {
  font-family: var(--font-display-safe);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--white);
  text-wrap: balance;
}
html:not(.display-font-limited) .svc-copy h3 { letter-spacing: 0; }
.svc-copy > p { font-size: clamp(14px, 1.25vw, 15.5px); color: var(--gray-300); max-width: 52ch; }

/* pinned visual: sticks within its own chapter while that chapter scrolls */
.svc-visual { position: sticky; top: clamp(104px, 20vh, 190px); }
.svc-panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255,79,129,.06), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.012));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.svc-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.svc-panel-head .traffic { display: flex; gap: 5px; }
.svc-panel-head .traffic i { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-700); }
.svc-panel-head .traffic i:first-child { background: var(--rose-dark); }
.svc-panel-head h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-300);
}
.svc-panel-head .badge { margin-left: auto; }

/* --------------------------------------------------------------------------
   14. Mini software-UI components (used inside panels & cases)
   -------------------------------------------------------------------------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.kpi {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
}
.kpi dt {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.kpi dd {
  margin: 6px 0 0;
  font-size: clamp(16px, 1.9vw, 21px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.kpi .delta { font-size: 11px; font-weight: 500; color: var(--rose); letter-spacing: 0; }

.bars { display: grid; gap: 11px; }
.bar-row { display: grid; grid-template-columns: 62px 1fr 40px; align-items: center; gap: 11px; }
.bar-row .lbl { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500); }
.bar-row .val { font-size: 11px; color: var(--gray-300); text-align: right; font-variant-numeric: tabular-nums; }
.bar-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose-dark), var(--rose));
  transition: width 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.1s);
}
.is-live .bar-fill { width: var(--w, 50%); }
.bar-fill--dim { background: linear-gradient(90deg, #2b2b2e, #4a4a4e); }

.tasklist { display: grid; gap: 8px; }
.task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  font-size: 12.5px;
  color: var(--gray-300);
}
.task .st { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-700); flex: 0 0 auto; }
.task--done .st { background: #4b9f6a; }
.task--now .st { background: var(--rose); box-shadow: 0 0 0 3px var(--rose-dim); }
.task--late { border-color: rgba(255, 79, 129, 0.32); }
.task--late .st { background: var(--rose-dark); }
.task .tag {
  margin-left: auto;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.task--late .tag { color: var(--rose-light); }

.doc-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.doc-card .doc-head { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--gray-100); }
.doc-card .doc-head i { color: var(--rose); }
.doc-lines { display: grid; gap: 6px; }
.doc-lines i { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); }
.doc-lines i:nth-child(1) { width: 92%; }
.doc-lines i:nth-child(2) { width: 74%; }
.doc-lines i:nth-child(3) { width: 84%; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px; }

.panel-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--gray-500);
}

/* --------------------------------------------------------------------------
   15. AI agents
   -------------------------------------------------------------------------- */
.ai-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.ai-arch {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(100% 90% at 50% 0%, rgba(255,79,129,.07), transparent 60%),
    var(--surface);
}
.ai-brain {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(255, 79, 129, 0.28);
  border-radius: 14px;
  background: rgba(255, 79, 129, 0.05);
}
.ai-brain div {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  padding: 10px 4px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
}
.ai-brain i { font-size: 14px; color: var(--rose); }
.ai-brain span {
  font-family: var(--font-display-safe);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-100);
}
.ai-brain.is-live div { animation: nodeActivate 1.6s var(--ease) both; }
.ai-brain.is-live div:nth-child(2) { animation-delay: .25s; }
.ai-brain.is-live div:nth-child(3) { animation-delay: .5s; }

.ai-targets { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.ai-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(30px, 5vh, 54px); }
.ai-action { display: flex; align-items: center; gap: 11px; padding: 15px 17px; background: #060607; font-size: 13.5px; color: var(--gray-300); transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease); }
.ai-action i { color: var(--rose); font-size: 12.5px; width: 16px; text-align: center; }
.ai-action:hover { background: #0d0d0f; color: #fff; }

/* --------------------------------------------------------------------------
   16. Custom solutions
   -------------------------------------------------------------------------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: clamp(28px, 5vh, 52px) 0;
}
.pipe-step {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color var(--t-slow) var(--ease), background var(--t-slow) var(--ease), transform var(--t-mid) var(--ease);
  transition-delay: calc(var(--i, 0) * 0.08s);
}
.pipe-step:hover { transform: translateY(-3px); }
.pipeline.is-live .pipe-step { border-color: rgba(255, 79, 129, 0.24); }
.pipeline.is-live .pipe-step:last-child { border-color: var(--rose); background: rgba(255, 79, 129, 0.07); }
.pipe-step .n { font-family: var(--font-display); font-size: 10px; letter-spacing: 0.1em; color: var(--rose); }
.pipe-step .t {
  font-family: var(--font-display-safe);
  font-size: clamp(10.5px, 1.05vw, 12px);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.35;
}
.pipe-step + .pipe-step::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 10px;
  height: 1px;
  background: var(--line-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.08s);
}
.pipeline.is-live .pipe-step + .pipe-step::before { transform: scaleX(1); background: var(--rose); }

.build-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.build-item { display: flex; align-items: center; gap: 11px; padding: 16px 18px; background: #060607; font-size: 13.5px; color: var(--gray-300); transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease); }
.build-item i { color: var(--gray-500); font-size: 12.5px; width: 16px; text-align: center; transition: color var(--t-mid) var(--ease); }
.build-item:hover { background: #0d0d0f; color: #fff; }
.build-item:hover i { color: var(--rose); }

/* --------------------------------------------------------------------------
   17. Brave Audit
   -------------------------------------------------------------------------- */
.audit { background: linear-gradient(180deg, rgba(255,79,129,.035), transparent 40%); }
.audit-stages { display: grid; gap: 0; border-top: 1px solid var(--line); }
.audit-stage {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 40px);
  align-items: start;
  padding: clamp(22px, 3.4vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--t-mid) var(--ease);
}
.audit-stage:hover { background: rgba(255, 255, 255, 0.014); }
.audit-stage .st-n {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.4vw, 26px);
  letter-spacing: 0.04em;
  color: var(--rose);
}
.audit-stage h3 {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.7vw, 18px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}
.audit-stage p { margin-top: 8px; font-size: 14px; color: var(--gray-300); }
.audit-stage ul { display: flex; flex-wrap: wrap; gap: 7px; }
.audit-out {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: clamp(30px, 5vh, 52px);
}
.audit-out div {
  display: grid;
  gap: 7px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.audit-out .t { font-family: var(--font-display); font-size: clamp(14px, 1.8vw, 19px); letter-spacing: 0.1em; color: var(--white); }
.audit-out .d { font-size: 12.5px; color: var(--gray-500); }
.audit-out div:first-child { border-color: rgba(255, 79, 129, 0.36); background: rgba(255, 79, 129, 0.06); }
.audit-out div:first-child .t { color: var(--rose); }

/* --------------------------------------------------------------------------
   18. ROI calculator
   -------------------------------------------------------------------------- */
.roi-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: stretch;
}
.roi-panel {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.roi-panel--out {
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(255,79,129,.1), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border-color: rgba(255, 79, 129, 0.22);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.roi-field { display: grid; gap: 10px; margin-bottom: 22px; }
.roi-field:last-of-type { margin-bottom: 0; }
.roi-field .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.roi-field label { font-size: 13px; font-weight: 500; color: var(--gray-100); }
.roi-field .out {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--rose);
  font-variant-numeric: tabular-nums;
}
.roi-field .hint { font-size: 11.5px; color: var(--gray-500); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose) 0 var(--fill, 40%), rgba(255,255,255,.1) var(--fill, 40%) 100%);
}
input[type="range"]::-moz-range-track { height: 3px; border-radius: 999px; background: rgba(255,255,255,.1); }
input[type="range"]::-moz-range-progress { height: 3px; border-radius: 999px; background: var(--rose); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--rose);
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
  transition: transform var(--t-fast) var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--rose);
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }

.roi-result { display: grid; gap: 6px; }
.roi-result .lbl { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-500); }
.roi-big {
  font-family: var(--font-sans);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.roi-big .cur { color: var(--rose); }
.roi-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.roi-sub div { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.28); }
.roi-sub .v { font-size: clamp(17px, 2.2vw, 22px); font-weight: 600; letter-spacing: -0.03em; color: var(--white); font-variant-numeric: tabular-nums; }
.roi-sub .k { margin-top: 4px; font-size: 11px; color: var(--gray-500); }
.roi-disclaimer {
  margin-top: auto;
  padding: 12px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--gray-500);
}

/* --------------------------------------------------------------------------
   19. Process timeline
   -------------------------------------------------------------------------- */
.timeline { position: relative; display: grid; gap: 0; padding-left: clamp(30px, 5vw, 56px); }
.timeline::before {
  content: "";
  position: absolute;
  left: clamp(9px, 1.6vw, 17px);
  top: 20px; bottom: 20px;
  width: 1px;
  background: var(--line-strong);
}
.timeline::after {
  content: "";
  position: absolute;
  left: clamp(9px, 1.6vw, 17px);
  top: 20px;
  width: 1px;
  height: var(--progress, 0%);
  background: linear-gradient(to bottom, var(--rose), var(--rose-dark));
  box-shadow: 0 0 12px rgba(255, 79, 129, 0.45);
  transition: height 0.3s linear;
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: clamp(12px, 2.4vw, 28px);
  align-items: start;
  padding: clamp(18px, 2.8vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  opacity: 0.4;
  transition: opacity var(--t-slow) var(--ease);
}
.tl-item:last-child { border-bottom: 0; }
.tl-item.is-on { opacity: 1; }
.tl-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(30px, 5vw, 56px) + clamp(5px, 1.2vw, 13px));
  top: calc(clamp(18px, 2.8vw, 30px) + 8px);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #0a0a0b;
  border: 1px solid var(--line-strong);
  transition: background var(--t-slow) var(--ease), border-color var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}
.tl-item.is-on::before { background: var(--rose); border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-dim); }
.tl-num { font-family: var(--font-display); font-size: clamp(16px, 2.2vw, 24px); letter-spacing: 0.04em; color: var(--rose); }
.tl-item h3 { font-family: var(--font-display-safe); font-size: clamp(14px, 1.8vw, 19px); font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); }
.tl-item p { margin-top: 7px; font-size: 14px; color: var(--gray-300); max-width: 60ch; }

/* --------------------------------------------------------------------------
   20. Cases
   -------------------------------------------------------------------------- */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(14px, 2vw, 20px); }
.case {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
  padding: clamp(20px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease), background var(--t-mid) var(--ease);
}
.case:hover { border-color: rgba(255, 79, 129, 0.3); transform: translateY(-4px); background: var(--surface-hi); }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case-top .ind { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-500); }
.case h3 { font-size: clamp(16px, 1.7vw, 19px); font-weight: 600; letter-spacing: -0.02em; color: var(--white); }
.case-screen {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.4);
}
.case-screen .scr-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 11px; margin-bottom: 13px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-300);
}
.case-block { display: grid; gap: 7px; }
.case-block .lbl { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose); }
.case-block p { font-size: 13.5px; color: var(--gray-300); }
.case-block ul { display: grid; gap: 6px; }
.case-block li { position: relative; padding-left: 16px; font-size: 13.5px; color: var(--gray-300); }
.case-block li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 1px; background: var(--rose); }

/* --------------------------------------------------------------------------
   21. Industries
   -------------------------------------------------------------------------- */
.ind-shell { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(22px, 4vw, 56px); align-items: start; }
.ind-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ind-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 17px;
  background: #060607;
  font-size: 14px;
  color: var(--gray-300);
  text-align: left;
  transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease), padding var(--t-mid) var(--ease);
}
.ind-btn i { width: 17px; text-align: center; font-size: 12.5px; color: var(--gray-500); transition: color var(--t-mid) var(--ease); }
.ind-btn:hover { background: #0d0d0f; color: #fff; }
.ind-btn[aria-selected="true"] { background: rgba(255, 79, 129, 0.09); color: #fff; padding-left: 22px; }
.ind-btn[aria-selected="true"] i { color: var(--rose); }
.ind-btn .arrow { margin-left: auto; opacity: 0; color: var(--rose); transition: opacity var(--t-mid) var(--ease); }
.ind-btn[aria-selected="true"] .arrow { opacity: 1; }

.ind-panel { position: sticky; top: clamp(104px, 18vh, 160px); }
.ind-view {
  display: none;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(255,79,129,.06), transparent 60%),
    var(--surface);
  animation: reveal 0.55s var(--ease) both;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
}
.ind-view.is-on { display: grid; gap: 18px; }
.ind-view h3 { font-family: var(--font-display-safe); font-size: clamp(14px, 1.7vw, 18px); font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); }
.ind-view p { font-size: 14px; color: var(--gray-300); }

/* --------------------------------------------------------------------------
   22. Integrations
   -------------------------------------------------------------------------- */
.int-wall {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.int-tile {
  position: relative;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: clamp(20px, 2.6vw, 28px) 12px;
  background: #060607;
  text-align: center;
  transition: background var(--t-mid) var(--ease);
}
.int-tile i { font-size: clamp(19px, 2.2vw, 24px); color: var(--gray-300); transition: color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }
.int-tile span { font-size: 11.5px; color: var(--gray-500); letter-spacing: 0.02em; transition: color var(--t-mid) var(--ease); }
.int-tile:hover { background: #0e0e10; }
.int-tile:hover i { color: var(--rose); transform: translateY(-3px); }
.int-tile:hover span { color: #fff; }
.int-tile::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 1px;
  background: var(--rose);
  transform: translateX(-50%);
  transition: width 0.45s var(--ease);
}
.int-wall.is-live .int-tile::after { width: 100%; transition-delay: calc(var(--i, 0) * 0.05s); }
.int-note { margin-top: 16px; font-size: 12px; color: var(--gray-500); }

/* --------------------------------------------------------------------------
   23. Why Brave + stats
   -------------------------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(14px, 2vw, 20px); }
.why { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.6vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color var(--t-mid) var(--ease), background var(--t-mid) var(--ease); }
.why:hover { border-color: rgba(255,79,129,.28); background: var(--surface-hi); }
.why .n { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.14em; color: var(--rose); }
.why h3 { font-size: clamp(15.5px, 1.6vw, 18px); font-weight: 600; letter-spacing: -0.015em; color: var(--white); }
.why p { font-size: 13.5px; color: var(--gray-300); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 26px);
  max-width: 920px;
  margin: clamp(40px, 6vh, 72px) auto 0;
  padding-top: clamp(28px, 4vh, 44px);
  border-top: 1px solid var(--line);
}
.stat { display: grid; justify-items: center; gap: 8px; text-align: center; }
.stat .ico { font-family: var(--font-display); font-size: clamp(22px, 3vw, 33px); color: #fff; line-height: 1; }
.stat .v {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat .l { font-size: clamp(11px, 1.2vw, 12.5px); color: #8e8e8e; }

/* --------------------------------------------------------------------------
   24. Final CTA
   -------------------------------------------------------------------------- */
.final-cta {
  position: relative;
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% 100%, rgba(255,79,129,.11), transparent 62%);
  overflow: hidden;
}
.final-cta .wrap { display: grid; gap: clamp(18px, 3vh, 28px); justify-items: center; }
.final-cta .section-title { max-width: 18ch; }
.final-cta .support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  font-size: 12.5px;
  color: var(--gray-500);
}
.final-cta .support span { display: inline-flex; align-items: center; gap: 7px; }
.final-cta .support span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--rose); }

/* --------------------------------------------------------------------------
   25. Contact form
   -------------------------------------------------------------------------- */
.contact-shell { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-side { display: grid; gap: 26px; align-content: start; position: sticky; top: clamp(104px, 18vh, 160px); }
.contact-channels { display: grid; gap: 10px; }
.channel {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color var(--t-mid) var(--ease), background var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.channel:hover { border-color: rgba(255,79,129,.34); background: var(--surface-hi); transform: translateX(3px); }
.channel i { width: 20px; text-align: center; font-size: 15px; color: var(--rose); }
.channel .k { font-size: 13.5px; color: #fff; font-weight: 500; }
.channel .v { font-size: 12px; color: var(--gray-500); }
.channel .arrow { margin-left: auto; color: var(--gray-500); font-size: 11px; }

.form-card {
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(255,79,129,.06), transparent 58%),
    var(--surface);
}

.stepper { display: flex; align-items: center; gap: 8px; margin-bottom: 26px; }
.stepper-item { flex: 1; display: grid; gap: 8px; }
.stepper-item .bar { height: 2px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.stepper-item .bar i { display: block; height: 100%; width: 0; background: var(--rose); transition: width 0.45s var(--ease); }
.stepper-item.is-done .bar i, .stepper-item.is-current .bar i { width: 100%; }
.stepper-item.is-current .bar i { background: var(--rose); }
.stepper-item .lbl { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500); transition: color var(--t-mid) var(--ease); }
.stepper-item.is-current .lbl, .stepper-item.is-done .lbl { color: var(--gray-100); }

.fstep { display: none; animation: reveal 0.5s var(--ease) both; opacity: 0; transform: translateY(10px); filter: blur(4px); }
.fstep.is-on { display: grid; gap: 20px; }
.fstep-head { display: grid; gap: 6px; }
.fstep-head h3 { font-size: clamp(17px, 1.9vw, 21px); font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.fstep-head p { font-size: 13px; color: var(--gray-500); }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--gray-100); }
.field label .req { color: var(--rose); }
.field .opt { color: var(--gray-500); font-weight: 400; }

.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 14px;
  transition: border-color var(--t-mid) var(--ease), background var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gray-300) 50%), linear-gradient(135deg, var(--gray-300) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
.select option { background: #101012; color: #fff; }
.input::placeholder, .textarea::placeholder { color: #5a5a5e; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, 0.24); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--rose);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 79, 129, 0.14);
}
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--rose-dark); background: rgba(201, 54, 98, 0.07); }
.field-error {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--rose-light);
}
.field-error i { font-size: 10px; }
.field.has-error .field-error { display: flex; }

/* option cards (checkbox / radio) */
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 9px; }
.opt-grid--2 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.opt-card { position: relative; }
.opt-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt-card span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.36);
  font-size: 13.5px;
  color: var(--gray-300);
  cursor: pointer;
  transition: border-color var(--t-mid) var(--ease), background var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}
.opt-card span i { font-size: 12.5px; color: var(--gray-500); width: 15px; text-align: center; transition: color var(--t-mid) var(--ease); }
.opt-card span::after {
  content: "";
  margin-left: auto;
  width: 15px; height: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  transition: all var(--t-mid) var(--ease);
}
.opt-card input[type="radio"] + span::after { border-radius: 50%; }
.opt-card:hover span { border-color: rgba(255, 255, 255, 0.26); color: #fff; }
.opt-card input:checked + span {
  border-color: var(--rose);
  background: rgba(255, 79, 129, 0.1);
  color: #fff;
}
.opt-card input:checked + span i { color: var(--rose); }
.opt-card input:checked + span::after {
  background: var(--rose);
  border-color: var(--rose);
  box-shadow: inset 0 0 0 3px #0a0a0b;
}
.opt-card input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }

.consent { display: flex; align-items: flex-start; gap: 11px; font-size: 12px; line-height: 1.55; color: var(--gray-500); }
.consent input { margin-top: 2px; accent-color: var(--rose); width: 15px; height: 15px; flex: 0 0 auto; }
.consent a { color: var(--gray-300); border-bottom: 1px solid var(--line-strong); }
.consent a:hover { color: var(--rose); }

.form-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.form-nav .spacer { flex: 1; }

/* honeypot — must stay reachable-free but not display:none for bots */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
}

.form-status {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.form-status.is-on { display: flex; }
.form-status--error { border: 1px solid rgba(201, 54, 98, .45); background: rgba(201, 54, 98, .1); color: var(--rose-light); }
.form-status i { margin-top: 2px; }

.btn .spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.is-loading .spinner { display: block; }
.btn.is-loading .label, .btn.is-loading .arrow { opacity: .55; }

/* branded success state */
.form-success { display: none; text-align: center; padding: clamp(24px, 5vh, 48px) 8px; }
.form-success.is-on { display: grid; gap: 20px; justify-items: center; animation: revealPulse 0.7s var(--ease) both; }
.form-success .badge-ok {
  font-family: var(--font-display-safe);
  font-size: clamp(13px, 1.7vw, 16px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
}
.form-success .pulse { display: flex; gap: 9px; }
.form-success .pulse i { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); animation: dotPulse 1.4s var(--ease) infinite; }
.form-success .pulse i:nth-child(2) { animation-delay: .18s; }
.form-success .pulse i:nth-child(3) { animation-delay: .36s; }
.form-success h3 { font-family: var(--font-display-safe); font-weight: 400; font-size: clamp(20px, 2.6vw, 30px); letter-spacing: -0.02em; color: #fff; max-width: 22ch; line-height: 1.2; }
.form-success p { font-size: 14px; color: var(--gray-300); max-width: 42ch; }

/* --------------------------------------------------------------------------
   26. Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(48px, 7vh, 80px) 0 clamp(28px, 4vh, 40px); background: #030303; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(26px, 4vw, 52px); }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand .brand-mark { width: 42px; height: 42px; }
.footer-brand p { font-size: 13.5px; color: var(--gray-500); max-width: 34ch; }
.footer-col h4 { font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--gray-300); transition: color var(--t-mid) var(--ease); }
.footer-col a i { font-size: 12px; color: var(--gray-500); width: 15px; transition: color var(--t-mid) var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-col a:hover i { color: var(--rose); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(34px, 5vh, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--gray-500);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   27. Floating CTA
   -------------------------------------------------------------------------- */
.float-cta {
  position: fixed;
  right: clamp(16px, 2.4vw, 28px);
  bottom: clamp(16px, 2.4vw, 28px);
  z-index: var(--z-float);
  opacity: 0;
  transform: translateY(16px) scale(.94);
  pointer-events: none;
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.float-cta.is-on { opacity: 1; transform: none; pointer-events: auto; }
.float-cta.is-parked { opacity: 0; transform: translateY(16px) scale(.94); pointer-events: none; }
.float-cta .btn {
  box-shadow: 0 10px 34px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 79, 129, .3), 0 0 24px rgba(255, 79, 129, .22);
}
.float-cta .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: dotPulse 1.8s var(--ease) infinite; }

/* --------------------------------------------------------------------------
   28. Custom cursor (desktop, fine pointer only)
   -------------------------------------------------------------------------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.cursor-on .cursor {
    display: grid;
    place-items: center;
    position: fixed;
    top: 0; left: 0;
    z-index: var(--z-cursor);
    width: 26px; height: 26px;
    margin: -13px 0 0 -13px;
    border: 1px solid var(--rose);
    border-radius: 999px;
    color: var(--rose);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    mix-blend-mode: normal;
    transition: width .28s var(--ease), height .28s var(--ease),
                background .28s var(--ease), color .28s var(--ease),
                border-radius .28s var(--ease), opacity .2s linear;
    will-change: transform;
  }
  html.cursor-on .cursor .lbl { opacity: 0; transition: opacity .18s linear; }
  html.cursor-on .cursor.is-hot { width: 64px; height: 26px; background: var(--rose); color: #fff; }
  html.cursor-on .cursor.is-hot .lbl { opacity: 1; }
  html.cursor-on .cursor.is-hidden { opacity: 0; }
  html.cursor-on .cursor .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--rose); transition: opacity .18s linear; }
  html.cursor-on .cursor.is-hot .dot { opacity: 0; position: absolute; }
}

/* --------------------------------------------------------------------------
   29. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .transform-shell,
  .ai-shell,
  .contact-shell,
  .ind-shell { grid-template-columns: minmax(0, 1fr); }
  .transform-sticky, .contact-side, .ind-panel, .svc-visual { position: static; }
  .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pipe-step + .pipe-step::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .svc-chapter { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 26px; }
  .svc-chapter:nth-of-type(even) .svc-copy { order: 0; }
  .svc-chapter:nth-of-type(even) .svc-visual { order: 0; }
  .roi-shell { grid-template-columns: minmax(0, 1fr); }
  .audit-stage { grid-template-columns: 56px minmax(0, 1fr); }
  .audit-stage .st-extra { grid-column: 2; }
}

/* mobile header breakpoint */
@media (max-width: 720px) {
  .nav-pill, .header-cta, .header-actions .lang-switch { display: none; }
  .burger { display: block; }
  .brand-mark { width: 48px; height: 48px; }
  .brand-word { display: none; }

  .hero { min-height: 92vh; min-height: 92dvh; padding-top: clamp(104px, 15vh, 132px); }
  .hero-inner { gap: 16px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-stat dd { font-size: 12px; }
  .hero-stat dt { font-size: 8.5px; letter-spacing: 0.1em; }
  .hero-title { letter-spacing: -0.08em; line-height: 1.05; }
  html:not(.display-font-limited) .hero-title { letter-spacing: -0.02em; }
  .scroll-hint { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .problem { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; }
  .audit-out { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .transform-steps { padding-left: 26px; }
  .roi-sub { grid-template-columns: 1fr; }
  .cursor { display: none !important; }

  /* sticky bottom CTA on mobile */
  .float-cta {
    left: 12px; right: 12px; bottom: 12px;
    display: block;
  }
  .float-cta .btn { width: 100%; padding: 15px 20px; font-size: 14.5px; }
  .float-cta .live-dot { display: none; }
  /* never cover the form or footer */
  body.at-form .float-cta { opacity: 0; pointer-events: none; transform: translateY(16px); }
}

/* short viewports */
@media (max-height: 700px) and (min-width: 721px) {
  .hero { padding-top: clamp(96px, 13vh, 124px); }
  .hero-inner { gap: 14px; }
  .trust { margin-bottom: -2px; }
  .hero-stats { margin-top: 0; padding-top: 14px; }
  .hero-graphic { max-width: 720px; }
  .scroll-hint { display: none; }
}

@media (max-width: 420px) {
  .hero-title { letter-spacing: -0.09em; line-height: 1.04; }
  html:not(.display-font-limited) .hero-title { letter-spacing: -0.025em; }
  .trust { --trust-size: 34px; }
  .trust-text { font-size: 12px; padding-right: 13px; }
  .hero-stats { gap: 6px; }
  .hero-stat dt { font-size: 8px; }
  .chaos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-index { grid-template-columns: 1fr; }
  .opt-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   30. 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;
    scroll-behavior: auto !important;
  }
  .anim, .hero-title span, .fstep, .ind-view {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
  .hero-graphic .gnode { opacity: 1; transform: none; }
  .hero-graphic .gline { stroke-dashoffset: 0; }
  .bar-fill { width: var(--w, 50%); }
  .chaos-item { transform: none !important; }
  .tstep, .tl-item { opacity: 1 !important; }
  .cursor { display: none !important; }
  .float-cta { transition: none; }
  .form-success .pulse i { animation: none; opacity: 1; }
  .btn:hover { transform: none; }
}

/* users who explicitly opted out of motion via the in-page toggle */
html.no-motion .anim,
html.no-motion .hero-title span { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }

/* --------------------------------------------------------------------------
   31. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .float-cta, .bg, .cursor, .scroll-hint, .menu-overlay, .menu-sheet { display: none !important; }
  body { background: #fff; color: #000; }
  .section { page-break-inside: avoid; border-color: #ddd; }
}
