/* =========================================================
   MASAR — Design system
   ========================================================= */

:root {
  /* Backgrounds — deep navy derived from the logo wordmark (#002470) */
  --background: #040914;
  --background-2: #060D1C;
  --background-3: #0A1426;
  --background-4: #0E1A32;

  /* Overlay channels (switch per theme) */
  --fg-rgb: 255, 255, 255;
  --deep-rgb: 5, 11, 24;
  --shadow-rgb: 0, 0, 0;
  --shadow-k: 1;

  /* Surfaces */
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  --card-bg-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  --mock-bg: #071022;
  --inset-bg: #071022;
  --cta-bg: linear-gradient(180deg, #0A1628, #050B18);
  --hub-bg: radial-gradient(circle at 50% 30%, #0A2456, #07101F);
  --title-grad: linear-gradient(180deg, #fff 30%, #B9C3D1);
  --brand-text-grad: linear-gradient(90deg, #3AA2FF, var(--primary) 45%, var(--primary-deep));
  --head-fill: #fff;
  --icon: #4FA8FF;
  --particles-opacity: 0.55;
  --surface: rgba(var(--fg-rgb), 0.035);
  --surface-elevated: rgba(var(--fg-rgb), 0.055);
  --surface-hover: rgba(var(--fg-rgb), 0.06);
  --surface-solid: #0A1628;
  --surface-glass: rgba(var(--deep-rgb), 0.78);

  /* Borders */
  --border: rgba(var(--fg-rgb), 0.08);
  --border-hover: rgba(var(--fg-rgb), 0.16);
  --border-accent: rgba(7, 136, 253, 0.3);

  /* Text */
  --text: #F3F6FB;
  --text-secondary: #A6B2C7;
  --text-muted: #6B7891;

  /* Brand blue — the logo mark */
  --primary: #0788FD;
  --primary-hover: #2B9BFF;
  --primary-deep: #0256D2;
  --primary-dark: #003FA9;
  --navy: #002470;
  --primary-soft: rgba(7, 136, 253, 0.12);
  --primary-text: var(--primary-text);

  /* Brand orange — the logo speed lines & check */
  --accent: #FE800A;
  --accent-light: #FFA817;
  --accent-deep: #FE5900;
  --accent-soft: rgba(254, 128, 10, 0.12);
  --accent-grad: linear-gradient(90deg, var(--accent-light), var(--accent), var(--accent-deep));

  /* Functional (status tags / validation) */
  --success: #5EE3A1;
  --warning: #F5C16C;
  --danger: #F87171;

  /* Radius */
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(var(--shadow-rgb), calc(0.3 * var(--shadow-k)));
  --shadow-md: 0 10px 40px rgba(var(--shadow-rgb), calc(0.22 * var(--shadow-k)));
  --shadow-lg: 0 40px 120px -30px rgba(var(--shadow-rgb), calc(0.85 * var(--shadow-k)));
  --glow: 0 24px 60px -24px rgba(7, 136, 253, 0.4);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container: 1200px;
  --gutter: 16px;
  --section-y: clamp(80px, 11vw, 120px);
  --font: "El Messiri", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }


/* ---------- Light theme ---------- */
:root[data-theme="light"] {
  color-scheme: light;

  --background: #F4F7FC;
  --background-2: #F8FAFD;
  --background-3: #FFFFFF;
  --background-4: #EEF3FA;

  --fg-rgb: 11, 31, 71;
  --deep-rgb: 255, 255, 255;
  --shadow-rgb: 16, 38, 84;
  --shadow-k: 0.22;

  --surface: rgba(11, 31, 71, 0.03);
  --surface-elevated: #FFFFFF;
  --surface-hover: rgba(11, 31, 71, 0.05);
  --surface-solid: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.86);
  --card-bg: linear-gradient(180deg, #FFFFFF, #FBFCFE);
  --card-bg-strong: linear-gradient(180deg, #FFFFFF, #FAFCFF);
  --mock-bg: #FFFFFF;
  --inset-bg: #F2F6FC;
  --cta-bg: linear-gradient(180deg, #FFFFFF, #EFF5FE);
  --hub-bg: radial-gradient(circle at 50% 30%, #FFFFFF, #E4EFFF);
  --title-grad: linear-gradient(180deg, #0A1A36 30%, #2F4468);
  --brand-text-grad: linear-gradient(90deg, #0788FD, var(--primary-deep) 55%, var(--primary-dark));
  --head-fill: #FFFFFF;
  --icon: #0270E0;
  --particles-opacity: 0.22;

  --border: rgba(11, 31, 71, 0.09);
  --border-hover: rgba(11, 31, 71, 0.18);
  --border-accent: rgba(7, 136, 253, 0.28);

  --text: #0A1A36;
  --text-secondary: #46557A;
  --text-muted: #7482A0;

  --primary-soft: rgba(7, 136, 253, 0.09);
  --primary-text: #0263CC;
  --accent-soft: rgba(254, 128, 10, 0.1);

  --success: #0E9F61;
  --warning: #B7791F;
  --danger: #DC2626;

  --shadow-sm: 0 1px 2px rgba(16, 38, 84, 0.06);
  --shadow-md: 0 1px 2px rgba(16, 38, 84, 0.04), 0 12px 32px -14px rgba(16, 38, 84, 0.14);
  --shadow-lg: 0 1px 3px rgba(16, 38, 84, 0.05), 0 36px 90px -36px rgba(16, 38, 84, 0.3);
  --glow: 0 22px 50px -24px rgba(7, 136, 253, 0.35);
}
:root[data-theme="light"] .hero__glow,
:root[data-theme="light"] .section__glow { opacity: 0.7; }
:root[data-theme="light"] .rail__head { background: var(--primary); box-shadow: 0 0 0 4px rgba(7, 136, 253, 0.2); }
:root[data-theme="light"] .flow__head { fill: var(--primary); }
:root[data-theme="light"] .hero-photo { border-color: rgba(11, 31, 71, 0.08); }
:root[data-theme="light"] .tag--green { background: rgba(14, 159, 97, 0.08); border-color: rgba(14, 159, 97, 0.22); }
:root[data-theme="light"] .tag--amber { background: rgba(183, 121, 31, 0.08); border-color: rgba(183, 121, 31, 0.22); }
:root[data-theme="light"] .pill { box-shadow: none; }
:root[data-theme="light"] .cta { box-shadow: var(--shadow-md); }
:root[data-theme="light"] .next-steps li > span { color: var(--accent-deep); }
:root[data-theme="light"] .next-steps li { background: var(--surface-solid); box-shadow: var(--shadow-sm); }
:root[data-theme="light"] .mock { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(11, 31, 71, 0.03); }
:root[data-theme="light"] .card--shield,
:root[data-theme="light"] .card--feature,
:root[data-theme="light"] .card--join { background-color: #FFFFFF; }

/* Theme toggle */
.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  color: var(--text-secondary);
  background: rgba(var(--fg-rgb), 0.04);
  box-shadow: inset 0 0 0 1px var(--border);
  transition: color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.theme-toggle:hover { color: var(--text); background: rgba(var(--fg-rgb), 0.07); box-shadow: inset 0 0 0 1px var(--border-hover); }
.theme-toggle svg {
  position: absolute;
  width: 19px;
  height: 19px;
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
}
.theme-toggle .ico-sun { color: var(--accent); }
.theme-toggle .ico-moon { opacity: 0; transform: rotate(-90deg) scale(0.6); }
:root[data-theme="light"] .theme-toggle .ico-sun { opacity: 0; transform: rotate(90deg) scale(0.6); }
:root[data-theme="light"] .theme-toggle .ico-moon { opacity: 1; transform: none; color: var(--primary-deep); }

/* Crossfade when switching themes (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
.theme-instant, .theme-instant *, .theme-instant *::before, .theme-instant *::after { transition: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  background: var(--background);
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; }

::selection { background: rgba(7, 136, 253, 0.35); color: #fff; }

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

/* Icons from the sprite */
svg:has(> use) {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-xs);
  background: var(--primary);
  color: #fff;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.text-grad {
  background: var(--brand-text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.btn--sm { height: 38px; padding: 0 16px; border-radius: 10px; font-size: 0.9rem; }
.btn--lg { height: 52px; padding: 0 26px; border-radius: 14px; font-size: 1rem; }

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #1A94FF, var(--primary) 55%, var(--primary-deep));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(7, 136, 253, 0.7),
    0 8px 24px -8px rgba(7, 136, 253, 0.55);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #3AA2FF, var(--primary-hover));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 0 1px rgba(58, 155, 255, 0.8),
    0 14px 34px -10px rgba(7, 136, 253, 0.7);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--text);
  background: rgba(var(--fg-rgb), 0.04);
  box-shadow: inset 0 0 0 1px var(--border);
}
.btn--ghost:hover {
  background: rgba(var(--fg-rgb), 0.07);
  box-shadow: inset 0 0 0 1px var(--border-hover);
}

.btn__ico { transition: transform 0.35s var(--ease); }
.btn:hover .btn__ico { transform: translateX(-3px); }

/* ---------- Pill badge ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--primary-text);
  background: rgba(7, 136, 253, 0.08);
  border: 1px solid rgba(7, 136, 253, 0.22);
  box-shadow: inset 0 1px 0 rgba(var(--fg-rgb), 0.04);
}
.pill__dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* =========================================================
   Brand intro — the exact logo layers, animated by main.js
   ========================================================= */
.intro { display: none; }

html.intro-active { overflow: hidden; }
html.intro-active .intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  pointer-events: auto;
}
/* The header logo is replaced by the intro logo until it lands there */
html.intro-active .nav .brand img { opacity: 0; }

.intro__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 46%, rgba(7, 136, 253, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 30% at 30% 40%, rgba(254, 128, 10, 0.05), transparent 70%),
    #040914;
}
.intro__particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.intro__logo {
  position: relative;
  width: clamp(200px, 56vw, 340px);
  aspect-ratio: 860 / 850;
  transform-origin: 0 0;
  will-change: transform;
}
.intro__tilt {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform, filter;
}
.intro__logo { perspective: 1200px; }
.intro__svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* Initial (pre-animation) states — main.js animates them with the Web Animations API */
.intro__draw {
  fill: none;
  stroke: #fff;
  stroke-width: 240;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100 101;
  stroke-dashoffset: 100;
}
.intro__fill { opacity: 0; }
.intro__trail {
  fill: none;
  stroke: #BFE0FF;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 7 200;
  stroke-dashoffset: 7;
  filter: drop-shadow(0 0 10px #0788FD) drop-shadow(0 0 22px rgba(7, 136, 253, 0.8));
}
.intro__bar-reveal { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); }
.intro__streak { opacity: 0; filter: drop-shadow(0 0 6px #FE800A); }
.intro__check { opacity: 0; transform-box: fill-box; transform-origin: 674px 172px; }
.intro__pulse { fill: none; stroke: #FE800A; stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.intro__word-reveal { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
.intro__word image { transform: translateY(40px); }
.intro__sweep { opacity: 0; }

/* Reduced motion: the full logo, a simple fade */
html.intro--reduced .intro__draw { stroke-dashoffset: 0; }
html.intro--reduced .intro__fill,
html.intro--reduced .intro__check { opacity: 1; }
html.intro--reduced .intro__bar-reveal,
html.intro--reduced .intro__word-reveal { transform: none; }
html.intro--reduced .intro__word image { transform: none; }
html.intro--reduced .intro__trail { display: none; }
html.intro--reduced .intro__logo { animation: introFade 0.5s var(--ease-out) both; }
@keyframes introFade { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   Navbar
   ========================================================= */
.nav {
  position: fixed;
  top: 14px;
  inset-inline: 0;
  z-index: 50;
  padding-inline: 12px;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  height: 68px;
  margin-inline: auto;
  padding-inline: 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  transition:
    max-width 0.6s var(--ease), height 0.6s var(--ease),
    background-color 0.5s, border-color 0.5s, box-shadow 0.5s,
    backdrop-filter 0.5s;
}

.nav.is-scrolled .nav__inner,
.nav.is-open .nav__inner {
  max-width: 1100px;
  height: 58px;
  background: rgba(var(--deep-rgb), 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-color: rgba(var(--fg-rgb), 0.08);
  box-shadow: 0 10px 40px rgba(var(--shadow-rgb), calc(0.35 * var(--shadow-k)));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
}
.brand img { width: auto; height: 28px; }

.nav__links { display: none; align-items: center; gap: 2px; }
.nav__links a {
  position: relative;
  padding: 8px 14px;
  white-space: nowrap;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.3s, background-color 0.3s;
}
.nav__links a:hover { color: var(--text); background: rgba(var(--fg-rgb), 0.04); }
.nav__links a::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  box-shadow: 0 0 10px rgba(7, 136, 253, 0.8);
  transform: scaleX(0);
  transition: transform 0.45s var(--ease);
}
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__login { display: none; }

.nav__toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(var(--fg-rgb), 0.04);
  box-shadow: inset 0 0 0 1px var(--border);
}
.nav__toggle svg { width: 20px; height: 20px; }
.nav__toggle .ico-close { display: none; }
.nav.is-open .nav__toggle .ico-menu { display: none; }
.nav.is-open .nav__toggle .ico-close { display: block; }

.mobile-menu {
  display: grid;
  gap: 2px;
  max-width: 1100px;
  margin: 8px auto 0;
  padding: 10px;
  border-radius: 18px;
  background: rgba(var(--deep-rgb), 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  animation: menuIn 0.35s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text-secondary);
}
.mobile-menu a:not(.btn):hover { background: var(--surface); color: var(--text); }
.mobile-menu .btn { margin-top: 8px; }

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 479px) {
  .nav__actions > .btn--primary { display: none; }
}

@media (min-width: 1024px) and (max-width: 1119px) {
  .nav__links a { padding-inline: 10px; }
  .nav__links a::after { inset-inline: 10px; }
}

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__login { display: inline-flex; }
  .nav__toggle, .mobile-menu { display: none !important; }
}

/* =========================================================
   Page path rail
   ========================================================= */
.rail { display: none; }

@media (min-width: 1280px) {
  .js .rail {
    display: block;
    position: fixed;
    left: 26px;
    top: 24vh;
    bottom: 24vh;
    width: 2px;
    z-index: 40;
    opacity: 0;
    transition: opacity 0.6s var(--ease);
  }
  .js .rail.is-visible { opacity: 1; }
}
.rail__track { position: absolute; inset: 0; border-radius: 2px; background: rgba(var(--fg-rgb), 0.06); }
.rail__fill {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  transform-origin: top;
  transform: scaleY(var(--p, 0));
  background: linear-gradient(var(--accent), var(--primary));
  box-shadow: 0 0 12px rgba(7, 136, 253, 0.5);
}
.rail__head {
  position: absolute;
  left: 50%;
  top: calc(var(--p, 0) * 100%);
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--head-fill);
  box-shadow: 0 0 0 4px rgba(7, 136, 253, 0.25), 0 0 18px var(--accent);
}
.rail__node {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  display: grid;
  place-items: center;
}
.rail__node::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--background-3);
  border: 1.5px solid rgba(var(--fg-rgb), 0.22);
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.rail__node.is-passed::before {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(7, 136, 253, 0.7);
}
.rail__node::after {
  content: attr(data-label);
  position: absolute;
  left: 20px;
  white-space: nowrap;
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 2px 10px;
  border-radius: 8px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
  pointer-events: none;
}
.rail__node:hover::after { opacity: 1; transform: none; }

/* =========================================================
   Reveal system
   ========================================================= */
.js .reveal {
  opacity: 0;
  translate: 0 24px;
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease-out) var(--d, 0s),
    translate 0.9s var(--ease-out) var(--d, 0s),
    filter 0.9s var(--ease-out) var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; translate: 0 0; filter: none; }

/* =========================================================
   Sections
   ========================================================= */
.section {
  position: relative;
  padding-block: var(--section-y);
}
.section::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--fg-rgb), 0.08) 30%, rgba(var(--fg-rgb), 0.08) 70%, transparent);
}
.section--b1 { background: var(--background-2); }
.section--b2 { background: linear-gradient(180deg, var(--background-3), var(--background-2)); }
.section--b3 { background: var(--background); overflow: hidden; }
.section--cta { background: var(--background-2); }

.section__glow {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 1200px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(7, 136, 253, 0.12), transparent);
  pointer-events: none;
}

.sec-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
}
.sec-head::before {
  content: "";
  width: 1px;
  height: 56px;
  margin-bottom: 20px;
  background: linear-gradient(to bottom, transparent, rgba(7, 136, 253, 0.75));
  box-shadow: 0 0 8px rgba(7, 136, 253, 0.4);
}
.sec-head h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  line-height: 1.25;
}
.sec-head p {
  max-width: 560px;
  margin-top: 16px;
  font-size: 1.075rem;
  color: var(--text-secondary);
}
.br-d { display: none; }
@media (min-width: 768px) { .br-d { display: inline; } }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(132px, 16vw, 176px) 0 clamp(88px, 10vw, 120px);
  overflow: hidden;
  background: var(--background);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--fg-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--fg-rgb), 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 25%, transparent 75%);
}
.hero__glow {
  position: absolute;
  top: -380px;
  left: 50%;
  width: 1200px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(7, 136, 253, 0.2), rgba(254, 128, 10, 0.04) 60%, transparent);
}
.hero__particles {
  position: absolute;
  inset: 0 0 40% 0;
  opacity: var(--particles-opacity);
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(var(--fg-rgb), 0.5), transparent),
    radial-gradient(1px 1px at 24% 64%, rgba(var(--fg-rgb), 0.4), transparent),
    radial-gradient(1.5px 1.5px at 38% 12%, rgba(254, 128, 10, 0.6), transparent),
    radial-gradient(1px 1px at 52% 40%, rgba(var(--fg-rgb), 0.35), transparent),
    radial-gradient(1.5px 1.5px at 66% 18%, rgba(var(--fg-rgb), 0.45), transparent),
    radial-gradient(1px 1px at 78% 58%, rgba(254, 128, 10, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 88% 30%, rgba(var(--fg-rgb), 0.4), transparent),
    radial-gradient(1px 1px at 8% 80%, rgba(var(--fg-rgb), 0.3), transparent),
    radial-gradient(1px 1px at 94% 76%, rgba(var(--fg-rgb), 0.3), transparent);
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translateY(-36px); } }

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__title {
  margin-top: 26px;
  font-size: clamp(2.6rem, 1.3rem + 5.4vw, 5.25rem);
  font-weight: 700;
  line-height: 1.2;
}
.hero__line { display: block; }
.hero__line:first-child {
  background: var(--title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  max-width: 600px;
  margin-top: 24px;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--text-secondary);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { color: var(--accent); width: 16px; height: 16px; }

.hero__visual { position: relative; margin-top: clamp(56px, 8vw, 88px); }
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 4% 8% auto;
  height: 70%;
  background: radial-gradient(closest-side, rgba(7, 136, 253, 0.28), transparent);
  filter: blur(40px);
  pointer-events: none;
}

.hero__stage {
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
  perspective: 1800px;
}
.hero__stage .mock {
  transform: rotateX(var(--tilt, 0deg)) scale(var(--scale, 1));
  transform-origin: 50% 0;
  will-change: transform;
}
.js .hero__stage { --tilt: 14deg; --scale: 0.94; }

/* Floating bento cards */
.float { position: absolute; z-index: 3; }
.float__in {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(var(--fg-rgb), 0.1);
  box-shadow: 0 24px 50px -12px rgba(var(--shadow-rgb), calc(0.65 * var(--shadow-k)));
  white-space: nowrap;
  animation: bob 7s ease-in-out infinite alternate;
}
.float small { display: block; font-size: 0.75rem; line-height: 1.5; color: var(--text-muted); }
.float b { font-size: 0.925rem; font-weight: 600; line-height: 1.5; }
.float--1 { top: 34%; right: -108px; }
.float--2 { top: 12%; left: -96px; }
.float--2 .float__in { animation-delay: -2.5s; }
.float--3 { bottom: 10%; right: -84px; }
.float--3 .float__in { animation-delay: -4s; }
.float--4 { bottom: -40px; left: 10%; }
.float--4 .float__in { animation-delay: -1.2s; }

.float__ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  color: var(--icon);
  background: rgba(7, 136, 253, 0.12);
  border: 1px solid rgba(7, 136, 253, 0.25);
}
.float__ico svg { width: 18px; height: 18px; }
.float__ico--ok { color: var(--accent); }

@keyframes bob {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

@media (max-width: 1159px) {
  .hero__stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hero__stage .mock { grid-column: 1 / -1; margin-bottom: 4px; }
  .hero__stage .float { position: static; }
  .hero__stage .float__in { animation: none; white-space: normal; height: 100%; }
}

/* =========================================================
   Product mockups
   ========================================================= */
.mock {
  position: relative;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.6;
  text-align: right;
  border-radius: var(--radius-lg);
  background: var(--mock-bg);
  border: 1px solid rgba(var(--fg-rgb), 0.09);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(var(--fg-rgb), 0.04);
}
.mock::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(transparent, rgba(var(--deep-rgb), 0.75));
  pointer-events: none;
}

.mock__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 42px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(var(--fg-rgb), 0.02);
}
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(var(--fg-rgb), 0.12); }
.mock__url {
  padding: 3px 16px;
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(var(--fg-rgb), 0.04);
  direction: ltr;
}

.mock__body { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 440px; }

.mock__side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 14px;
  border-inline-end: 1px solid var(--border);
  background: rgba(var(--fg-rgb), 0.012);
}
.mock__brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 16px; font-size: 1rem; font-weight: 700; }
.mock__brand img { width: 28px; height: auto; }
.mock__nav { display: grid; gap: 2px; }
.mock__nav li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text-secondary);
}
.mock__nav svg { width: 16px; height: 16px; }
.mock__nav .is-active { color: var(--text); background: var(--primary-soft); box-shadow: inset 0 0 0 1px rgba(7, 136, 253, 0.18); }
.mock__nav .is-active svg { color: var(--primary); }
.mock__help {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(7, 136, 253, 0.12), transparent 70%);
}
.mock__help strong { font-weight: 600; }
.mock__help span { font-size: 0.75rem; color: var(--text-muted); }

.mock__main { display: grid; align-content: start; gap: 16px; padding: 20px 22px; min-width: 0; }
.mock__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mock__hello { display: block; font-size: 1.125rem; font-weight: 600; }
.mock__muted { font-size: 0.75rem; color: var(--text-muted); }
.mock__tools { display: flex; align-items: center; gap: 8px; }
.mock__search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  min-width: 210px;
  padding-inline: 12px;
  border-radius: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(var(--fg-rgb), 0.04);
  border: 1px solid var(--border);
}
.mock__search svg { width: 14px; height: 14px; }
.mock__iconbtn {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--text-secondary);
  background: rgba(var(--fg-rgb), 0.04);
  border: 1px solid var(--border);
}
.mock__iconbtn svg { width: 16px; height: 16px; }
.mock__iconbtn i {
  position: absolute;
  top: 7px;
  left: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.mock__avatar,
.assign__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.mock__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(var(--fg-rgb), 0.025);
}
.stat__label { font-size: 0.75rem; color: var(--text-muted); }
.stat__value { font-size: 1.5rem; font-weight: 700; line-height: 1.35; font-variant-numeric: tabular-nums; }
.stat__value small { font-size: 0.75rem; font-weight: 500; color: var(--text-secondary); }
.stat__delta { font-size: 0.75rem; color: var(--accent); }
.stat__sub { font-size: 0.75rem; color: var(--text-muted); }

.mock__row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; }
.panel {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(var(--fg-rgb), 0.025);
  min-width: 0;
}
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.panel__head strong { font-weight: 600; }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: rgba(var(--fg-rgb), 0.04); }
.seg i { padding: 1px 9px; border-radius: 6px; font-size: 0.6875rem; font-style: normal; color: var(--text-muted); }
.seg .is-on { color: var(--text); background: rgba(var(--fg-rgb), 0.08); }

.chart { display: block; width: 100%; height: 150px; overflow: visible; }
.chart__grid path { stroke: rgba(var(--fg-rgb), 0.05); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1000;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.2s var(--ease-out) 0.6s;
}
.js .reveal:not(.is-in) .chart__line { stroke-dashoffset: 1000; }
.chart__dot { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }

.olist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.05);
}
.olist li:last-child { border-bottom: 0; }
.olist__ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  color: var(--text-secondary);
  background: rgba(var(--fg-rgb), 0.04);
  border: 1px solid var(--border);
}
.olist__ico svg { width: 15px; height: 15px; }
.olist__t { flex: 1; display: grid; min-width: 0; line-height: 1.45; }
.olist__t b { font-weight: 600; }
.olist__t small { font-size: 0.6875rem; color: var(--text-muted); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.7;
  white-space: nowrap;
  border: 1px solid;
}
.tag--blue { color: var(--primary-text); background: rgba(7, 136, 253, 0.1); border-color: rgba(7, 136, 253, 0.25); }
.tag--green { color: var(--success); background: rgba(94, 227, 161, 0.08); border-color: rgba(94, 227, 161, 0.2); }
.tag--amber { color: var(--warning); background: rgba(245, 193, 108, 0.08); border-color: rgba(245, 193, 108, 0.2); }

.live {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }

@media (max-width: 879px) {
  .mock__body { grid-template-columns: 1fr; min-height: 0; }
  .mock__side, .mock__search { display: none; }
  .mock__row { grid-template-columns: 1fr; }
}
@media (max-width: 559px) {
  .mock__main { padding: 16px; gap: 12px; }
  .mock__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mock__stats .stat:nth-child(3) { display: none; }
  .stat { padding: 12px; }
  .stat__value { font-size: 1.25rem; }
  .chart { height: 110px; }
}

/* =========================================================
   Bento grid
   ========================================================= */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
  .span-t2 { grid-column: span 2; }
}

@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; grid-auto-rows: minmax(220px, auto); }
  .span-t2 { grid-column: auto; }
  .span-2 { grid-column: span 2; }
  .span-4 { grid-column: 1 / -1; }
  .row-2 { grid-row: span 2; }

  .bento--how { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento--platform { grid-auto-rows: auto; }
  .bento--platform .card--screen { grid-row: span 3; }
  .bento--providers .card--join { grid-column: 3 / span 2; grid-row: 1 / span 2; }
}

/* ---------- Card ---------- */
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(var(--fg-rgb), 0.035);
  transition:
    transform 0.55s var(--ease-out),
    border-color 0.4s,
    background-color 0.4s,
    box-shadow 0.55s var(--ease-out),
    opacity 0.9s var(--ease-out) var(--d, 0s),
    translate 0.9s var(--ease-out) var(--d, 0s),
    filter 0.9s var(--ease-out) var(--d, 0s);
}

/* Cursor spotlight */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(7, 136, 253, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

/* Light sweep */
.sweep::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(254, 128, 10, 0.06) 45%, rgba(7, 136, 253, 0.1) 50%, transparent 66%);
  translate: 110% 0;
  pointer-events: none;
}
.sweep.is-sweeping::after { animation: sweep 1.8s var(--ease) forwards; }
@keyframes sweep { from { translate: 110% 0; } to { translate: -110% 0; } }

@media (hover: hover) {
  .card:hover::before { opacity: 1; }
  .sweep:hover::after { animation: sweep 1.8s var(--ease) forwards; }
  .card.is-interactive:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    background-color: rgba(var(--fg-rgb), 0.02);
    box-shadow: var(--shadow-md), var(--glow), inset 0 1px 0 rgba(var(--fg-rgb), 0.05);
  }
  .card.is-interactive:hover .ico { transform: translateY(-3px); box-shadow: 0 8px 20px -8px rgba(7, 136, 253, 0.7); }
  .card.is-interactive:hover .card__arrow {
    color: var(--primary-text);
    border-color: var(--border-accent);
    transform: translate(-3px, -3px);
  }
}

.ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--icon);
  background: rgba(7, 136, 253, 0.1);
  border: 1px solid rgba(7, 136, 253, 0.2);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.ico svg { width: 21px; height: 21px; }

.card h3 { margin-top: 20px; font-size: 1.2rem; font-weight: 600; line-height: 1.45; }
.card p { margin-top: 8px; font-size: 0.975rem; line-height: 1.8; color: var(--text-secondary); }

.card__top { display: flex; align-items: flex-start; justify-content: space-between; }
.card__arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: transform 0.5s var(--ease-out), color 0.3s, border-color 0.3s;
}
.card__arrow svg { width: 16px; height: 16px; }

.card--feature { display: flex; flex-direction: column; padding: 32px; min-height: 420px; }
.card--feature h3 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); line-height: 1.35; }
.card--feature p { max-width: 40ch; }
.card--feature { background:
  radial-gradient(ellipse 80% 60% at 100% 0%, rgba(7, 136, 253, 0.1), transparent 60%),
  var(--card-bg); }

.card__split { display: grid; gap: 24px; align-items: center; }
@media (min-width: 640px) {
  .card__split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .card__split--wide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

@media (max-width: 639px) {
  .card { padding: 24px; }
  .card--feature { min-height: 0; padding: 28px 24px; }
}

/* ---------- Services visuals ---------- */
.svc-stack { display: grid; gap: 10px; margin-top: auto; padding-top: 32px; }
.svc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.5;
  background: rgba(var(--deep-rgb), 0.65);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px -12px rgba(var(--shadow-rgb), calc(0.6 * var(--shadow-k)));
  transition: transform 0.6s var(--ease-out);
}
.svc-row:nth-child(2) { margin-inline-start: 24px; }
.svc-row:nth-child(3) { margin-inline-start: 48px; opacity: 0.75; }
.svc-row__t { flex: 1; display: grid; min-width: 0; }
.svc-row__t b { font-weight: 600; }
.svc-row__t small { font-size: 0.75rem; color: var(--text-muted); }
@media (hover: hover) {
  .card:hover .svc-row:nth-child(1) { transform: translateX(-6px); }
  .card:hover .svc-row:nth-child(2) { transform: translateX(-3px); }
}
@media (max-width: 479px) {
  .svc-row:nth-child(2), .svc-row:nth-child(3) { margin-inline-start: 0; }
}

.steps-mini { display: flex; gap: 6px; margin-top: 22px; }
.steps-mini span { flex: 1; height: 6px; border-radius: 99px; background: rgba(var(--fg-rgb), 0.07); }
.steps-mini .is-done { background: var(--primary); }
.steps-mini .is-now {
  background: linear-gradient(90deg, rgba(7, 136, 253, 0.25), var(--accent), rgba(7, 136, 253, 0.25));
  background-size: 200% 100%;
  animation: shimmer 2.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.track-viz { width: 100%; max-width: 300px; height: auto; margin-inline: auto; overflow: visible; }
.track-viz__base { stroke: rgba(var(--fg-rgb), 0.1); stroke-width: 1.5; stroke-dasharray: 3 6; }
.track-viz__line {
  stroke: var(--primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px rgba(7, 136, 253, 0.6));
  transition: stroke-dashoffset 2.4s var(--ease-out) 0.3s;
}
.js .reveal:not(.is-in) .track-viz__line { stroke-dashoffset: 100; }
.track-viz__node { fill: var(--background-3); stroke: var(--primary); stroke-width: 2; }
.track-viz__end { fill: var(--accent); filter: drop-shadow(0 0 8px var(--accent)); }

/* ---------- How it works ---------- */
.flow-wrap { position: relative; }
.flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.flow__base { fill: none; stroke: rgba(var(--fg-rgb), 0.08); stroke-width: 1.5; stroke-dasharray: 4 7; }
.flow__line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(7, 136, 253, 0.7));
}
.flow__head { fill: var(--head-fill); filter: drop-shadow(0 0 10px var(--accent)); }

.bento--how { position: relative; z-index: 1; }
@media (min-width: 1024px) { .bento--how { gap: 28px; } }

.card--step {
  background: linear-gradient(180deg, rgba(var(--deep-rgb), 0.78), rgba(var(--deep-rgb), 0.72));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.card--step-lg { display: flex; flex-direction: column; }
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.step__num {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  transition: color 0.5s;
}
.step__node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--background);
  border: 2px solid rgba(var(--fg-rgb), 0.16);
  transition: background-color 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.card--step.is-active .step__num { color: var(--primary-text); }
.card--step.is-active .step__node {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(7, 136, 253, 0.16), 0 0 16px rgba(7, 136, 253, 0.7);
}
.card--step.is-active { border-color: rgba(7, 136, 253, 0.22); }
.card--step h3 { margin-top: 18px; }

.form-mock { display: grid; gap: 10px; margin-top: auto; padding-top: 28px; }
.form-mock__field {
  display: grid;
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1.6;
  border: 1px solid var(--border);
  background: rgba(var(--fg-rgb), 0.03);
}
.form-mock__field small { font-size: 0.72rem; color: var(--text-muted); }
.form-mock__field span { font-size: 0.875rem; color: var(--text-secondary); }
.form-mock__field--tall { min-height: 84px; align-content: start; }
.form-mock__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #1A94FF, var(--primary));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.form-mock__btn svg { width: 16px; height: 16px; }

.assign {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(var(--fg-rgb), 0.03);
}
.assign__avatar { width: 40px; height: 40px; }
.assign__avatar--lg { width: 48px; height: 48px; font-size: 1.1rem; }
.assign__t { flex: 1; display: grid; min-width: 0; line-height: 1.5; }
.assign__t b { font-size: 0.925rem; font-weight: 600; }
.assign__t small { display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--text-muted); }
.assign__t small svg, .done__stars svg { width: 13px; height: 13px; fill: var(--warning); stroke: none; }

.done {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(7, 136, 253, 0.22);
  background: radial-gradient(ellipse at 90% 50%, rgba(7, 136, 253, 0.16), transparent 70%), rgba(var(--fg-rgb), 0.02);
}
.done__badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 0 0 6px rgba(7, 136, 253, 0.12), 0 12px 30px -8px rgba(7, 136, 253, 0.8);
}
.done__badge svg { width: 26px; height: 26px; stroke-width: 2.5; }
.done__t { display: grid; line-height: 1.6; }
.done__t b { font-weight: 600; }
.done__t small { font-size: 0.8rem; color: var(--text-muted); }
.done__stars { display: flex; gap: 3px; margin-top: 6px; }

/* ---------- Why: hub ---------- */
.card--num .num {
  position: absolute;
  top: 26px;
  inset-inline-end: 26px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.card--hub h3 { margin-top: 0; }
.hub {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 400 / 260;
  margin: auto auto 0;
  padding-top: 24px;
}
.hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub__ring { stroke: rgba(var(--fg-rgb), 0.07); stroke-dasharray: 2 6; }
.hub__ring--in { stroke: rgba(7, 136, 253, 0.22); stroke-dasharray: none; }
.hub__spoke { stroke: rgba(7, 136, 253, 0.35); stroke-width: 1.5; stroke-dasharray: 4 6; animation: dashflow 2.4s linear infinite; }
@keyframes dashflow { to { stroke-dashoffset: -20; } }

.hub__core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--hub-bg);
  border: 1px solid rgba(7, 136, 253, 0.35);
  box-shadow: 0 0 0 10px rgba(7, 136, 253, 0.05), 0 0 50px rgba(7, 136, 253, 0.3);
}
.hub__core img { width: 58px; }
.hub__node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  translate: -50% -50%;
  color: var(--primary-text);
  background: var(--surface-solid);
  border: 1px solid var(--border-accent);
  box-shadow: 0 10px 24px -8px rgba(var(--shadow-rgb), calc(0.7 * var(--shadow-k)));
  animation: bob 6s ease-in-out infinite alternate;
}
.hub__node svg { width: 20px; height: 20px; }
.hub__node--t { left: 50%; top: 14.6%; }
.hub__node--r { left: 73%; top: 50%; animation-delay: -1.5s; }
.hub__node--b { left: 50%; top: 85.4%; animation-delay: -3s; }
.hub__node--l { left: 27%; top: 50%; animation-delay: -4.5s; }

/* ---------- Platform showcase ---------- */
.card--screen { padding: 0; }
.screen { display: flex; flex-direction: column; gap: 18px; height: 100%; padding: 24px; }
.screen__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.screen__head strong { display: block; font-size: 1.05rem; font-weight: 600; line-height: 1.5; }

.screen__map {
  position: relative;
  overflow: hidden;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 200px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 120%, rgba(7, 136, 253, 0.12), transparent 60%), var(--inset-bg);
}
.screen__map svg { display: block; width: 100%; height: auto; }
.route__base { stroke: rgba(var(--fg-rgb), 0.08); stroke-width: 8; stroke-linecap: round; }
.route__line {
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 30;
  filter: drop-shadow(0 0 6px rgba(7, 136, 253, 0.7));
  transition: stroke-dashoffset 2.6s var(--ease-out) 0.4s;
}
.js .reveal:not(.is-in) .route__line { stroke-dashoffset: 100; }
.map-dot { fill: rgba(var(--fg-rgb), 0.08); }
.rn { fill: var(--inset-bg); stroke: rgba(var(--fg-rgb), 0.25); stroke-width: 2; }
.rn--done { fill: var(--primary); stroke: var(--primary); }
.rn--now { fill: var(--head-fill); stroke: var(--accent); stroke-width: 3; }
.rn-halo {
  fill: var(--accent);
  opacity: 0.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: halo 2s var(--ease) infinite;
}
@keyframes halo { from { transform: scale(1); opacity: 0.5; } to { transform: scale(3.2); opacity: 0; } }

.screen__eta {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 12px;
  line-height: 1.45;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}
.screen__eta small { display: block; font-size: 0.72rem; color: var(--text-muted); }
.screen__eta b { font-size: 0.9rem; font-weight: 600; }
.screen__eta .float__ico { width: 32px; height: 32px; }

.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.timeline li { position: relative; display: grid; padding-top: 20px; line-height: 1.5; }
.timeline li::before {
  content: "";
  position: absolute;
  top: 4px;
  inset-inline: 16px 4px;
  height: 2px;
  border-radius: 2px;
  background: rgba(var(--fg-rgb), 0.08);
}
.timeline li:last-child::before { display: none; }
.timeline li > span {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(var(--fg-rgb), 0.14);
}
.timeline .is-done::before, .timeline .is-done > span { background: var(--primary); }
.timeline .is-now > span { background: var(--accent); box-shadow: 0 0 0 4px rgba(254, 128, 10, 0.18), 0 0 12px var(--accent); }
.timeline b { font-size: 0.85rem; font-weight: 600; }
.timeline small { font-size: 0.75rem; color: var(--text-muted); }
.timeline li:not(.is-done):not(.is-now) b { color: var(--text-muted); font-weight: 500; }

.screen__provider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(var(--fg-rgb), 0.025);
}

@media (max-width: 559px) {
  .screen { padding: 18px; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .timeline li:nth-child(2)::before { display: none; }
}

.card--mini { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.mini__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mini__label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.925rem; color: var(--text-secondary); }
.mini__label svg { width: 17px; height: 17px; color: var(--icon); }
.mini__value {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.mini__value small { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); }
.mini__value--sm { font-size: 1.15rem; margin-top: 4px; }

.spark { width: 100%; height: 52px; margin-top: auto; overflow: visible; }
.spark path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 4px 8px rgba(7, 136, 253, 0.5));
}

.bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; margin-top: auto; }
.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 3px 3px;
  background: rgba(var(--fg-rgb), 0.07);
  transform-origin: bottom;
  transition: transform 1.1s var(--ease-out) 0.3s;
}
.bars i:nth-child(2) { transition-delay: 0.36s; }
.bars i:nth-child(3) { transition-delay: 0.42s; }
.bars i:nth-child(4) { transition-delay: 0.48s; }
.bars i:nth-child(5) { transition-delay: 0.54s; }
.bars i:nth-child(6) { transition-delay: 0.6s; }
.bars i:nth-child(7) { transition-delay: 0.66s; }
.bars .is-on { background: linear-gradient(180deg, var(--accent-light), var(--accent-deep)); box-shadow: 0 0 14px rgba(7, 136, 253, 0.4); }
.js .reveal:not(.is-in) .bars i { transform: scaleY(0.1); }

.count-badge {
  padding: 1px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  color: var(--primary-text);
  background: var(--primary-soft);
}

.notes li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  line-height: 1.55;
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.05);
}
.notes li:last-child { border-bottom: 0; padding-bottom: 0; }
.notes b { display: block; font-size: 0.925rem; font-weight: 500; }
.notes small { font-size: 0.78rem; color: var(--text-muted); }
.notes__dot {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(7, 136, 253, 0.8);
}
.notes__dot--ok { background: var(--accent); box-shadow: 0 0 8px rgba(254, 128, 10, 0.6); }
.notes__dot--muted { background: rgba(var(--fg-rgb), 0.2); box-shadow: none; }

.card--status { flex-direction: row; align-items: center; gap: 20px; }
.status { position: relative; width: 76px; height: 76px; flex: none; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__bg { fill: none; stroke: rgba(var(--fg-rgb), 0.07); stroke-width: 5; }
.ring__fg {
  fill: none;
  stroke: var(--primary);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 170;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px rgba(7, 136, 253, 0.6));
  transition: stroke-dashoffset 1.8s var(--ease-out) 0.4s;
}
.js .reveal:not(.is-in) .ring__fg { stroke-dashoffset: 170; }
.status__ico { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); }
.status__ico svg { width: 26px; height: 26px; }
.card--status .mini__label + .mini__value { margin-bottom: 2px; }

/* ---------- Security ---------- */
.card--shield {
  padding: clamp(28px, 4vw, 44px);
  background:
    radial-gradient(ellipse 50% 90% at 22% 50%, rgba(7, 136, 253, 0.12), transparent 70%),
    var(--card-bg);
}
.card--shield h3 { margin-top: 0; font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); }
.card--shield p { max-width: 46ch; }
.checks { display: grid; gap: 10px; margin-top: 22px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--text-secondary); }
.checks svg { width: 18px; height: 18px; color: var(--accent); }

.shield-viz svg { display: block; width: 100%; max-width: 420px; height: auto; margin-inline: auto; overflow: visible; }
.net path { stroke: rgba(7, 136, 253, 0.3); stroke-width: 1; stroke-dasharray: 3 5; animation: dashflow 3s linear infinite; }
.net-nodes circle { fill: var(--background-3); stroke: rgba(254, 128, 10, 0.6); stroke-width: 1.5; }
.orbit {
  stroke: rgba(var(--fg-rgb), 0.08);
  stroke-dasharray: 2 7;
  transform-origin: 180px 120px;
  animation: spin 60s linear infinite;
}
.orbit--in { stroke: rgba(7, 136, 253, 0.2); animation-direction: reverse; animation-duration: 40s; }
@keyframes spin { to { transform: rotate(360deg); } }
.shield-shape { stroke-width: 2; fill: rgba(7, 136, 253, 0.07); filter: drop-shadow(0 0 16px rgba(7, 136, 253, 0.45)); }
.shield-check {
  stroke: var(--accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.2s var(--ease-out) 0.6s;
}
.js .reveal:not(.is-in) .shield-check { stroke-dashoffset: 80; }

/* ---------- Providers ---------- */
.card--join { background:
  radial-gradient(ellipse 80% 60% at 0% 0%, rgba(7, 136, 253, 0.12), transparent 60%),
  var(--card-bg); }
.card--join h3 { margin-top: 20px; }

.pro {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(var(--deep-rgb), 0.6);
  box-shadow: 0 20px 40px -20px rgba(var(--shadow-rgb), calc(0.7 * var(--shadow-k)));
}
.pro__head { display: flex; align-items: center; gap: 12px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--primary-text); }
.toggle i { position: relative; width: 32px; height: 18px; border-radius: 99px; background: var(--primary); }
.toggle i::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-end: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}
.pro__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pro__stats span {
  display: grid;
  gap: 2px;
  padding: 12px 8px;
  border-radius: 12px;
  text-align: center;
  line-height: 1.4;
  border: 1px solid var(--border);
  background: rgba(var(--fg-rgb), 0.03);
}
.pro__stats b { font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pro__stats small { font-size: 0.75rem; color: var(--text-muted); }
.join-cta { align-self: flex-start; margin-top: auto; }
.card--join .pro { margin-bottom: 28px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips span {
  padding: 3px 12px;
  border-radius: 99px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: rgba(var(--fg-rgb), 0.03);
}
.chips span:first-child { color: var(--primary-text); border-color: var(--border-accent); background: var(--primary-soft); }

.req {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
  border: 1px solid rgba(7, 136, 253, 0.22);
  background: rgba(7, 136, 253, 0.06);
}
.req > span:first-child { display: grid; min-width: 0; }
.req b { font-size: 0.875rem; font-weight: 600; }
.req small { font-size: 0.75rem; color: var(--text-muted); }
.req__btn {
  margin-inline-start: auto;
  padding: 4px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
}
.bento--providers .mini__value { margin-top: 14px; }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 9vw, 112px) 24px;
  border-radius: 28px;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--cta-bg);
  box-shadow: var(--shadow-lg);
}
.cta__glow {
  position: absolute;
  inset: -30% 0 auto;
  height: 110%;
  z-index: -1;
  background: radial-gradient(closest-side at 50% 30%, rgba(7, 136, 253, 0.24), transparent);
  pointer-events: none;
}
.cta__paths {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent);
}
.cta__paths path {
  stroke: rgba(7, 136, 253, 0.4);
  stroke-width: 1.5;
  stroke-dasharray: 6 10;
  vector-effect: non-scaling-stroke;
  animation: dashflow 1.6s linear infinite;
}
.cta__paths path + path { stroke: rgba(254, 128, 10, 0.2); animation-duration: 2.4s; }
.cta__mark { width: 88px; margin: 0 auto 24px; filter: drop-shadow(0 12px 30px rgba(7, 136, 253, 0.35)); }
.cta h2 { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem); font-weight: 700; line-height: 1.25; }
.cta p { max-width: 520px; margin: 16px auto 0; font-size: 1.1rem; color: var(--text-secondary); }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  position: relative;
  padding: 72px 0 32px;
  background: var(--background);
  border-top: 1px solid var(--border);
}
.footer__grid { display: grid; gap: 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer__brand { grid-column: 1 / -1; }
.footer__brand p { max-width: 320px; margin-top: 16px; font-size: 0.95rem; color: var(--text-muted); }
.footer__col { display: grid; align-content: start; gap: 4px; }
.footer__col h4 { margin-bottom: 10px; font-size: 0.95rem; font-weight: 600; }
.footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.925rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}
.footer__col a:hover { color: var(--text); }
.footer__col svg { width: 16px; height: 16px; color: var(--text-muted); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 56px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.footer__legal { display: flex; gap: 20px; }
.footer__legal a:hover { color: var(--text); }

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: auto; }
}

/* =========================================================
   Hero — split layout with photo
   ========================================================= */
.hero--split { padding-bottom: clamp(96px, 11vw, 136px); }
.hero--split::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -20%;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, rgba(254, 128, 10, 0.08), transparent);
  pointer-events: none;
}
.hero__layout { position: relative; z-index: 1; display: grid; gap: 64px; align-items: center; }
.hero--split .hero__title { font-size: clamp(2.6rem, 1.3rem + 4.6vw, 4.75rem); }
.hero--split .hero__visual { position: relative; width: 100%; max-width: 520px; margin: 0 auto; }
.hero--split .hero__visual::before { inset: 10% 0 auto; height: 80%; }

@media (min-width: 1024px) {
  .hero__layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 72px; }
  .hero--split .hero__content { align-items: flex-start; text-align: start; }
  .hero--split .hero__lead { max-width: 540px; }
  .hero--split .hero__cta, .hero--split .hero__trust { justify-content: flex-start; }
}

.hero-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(7, 136, 253, 0.05);
  background: var(--surface-solid);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 9, 20, 0.2), transparent 32%, transparent 60%, rgba(4, 9, 20, 0.7)),
    radial-gradient(ellipse at 15% 100%, rgba(7, 136, 253, 0.28), transparent 60%);
  pointer-events: none;
}
.hero-photo__path { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.hero-photo__path path {
  stroke: url(#heroPathGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(254, 128, 10, 0.7));
  transition: stroke-dashoffset 2.4s var(--ease-out) 0.7s;
}
.js .reveal:not(.is-in) .hero-photo__path path { stroke-dashoffset: 100; }
.hero-photo__pin {
  position: absolute;
  z-index: 2;
  left: 17.5%;
  top: 18%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  translate: -50% -50%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-deep));
  box-shadow: 0 0 0 6px rgba(254, 128, 10, 0.18), 0 10px 30px -6px rgba(254, 128, 10, 0.8);
  transition: opacity 0.6s var(--ease) 2.6s, scale 0.6s var(--ease-out) 2.6s;
}
.hero-photo__pin svg { width: 20px; height: 20px; stroke-width: 2.5; }
.hero-photo__pin::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 2.2s var(--ease) infinite;
}
.js .reveal:not(.is-in) .hero-photo__pin { opacity: 0; scale: 0.6; }

.hero--split .float--1 { top: 9%; right: -48px; }
.hero--split .float--2 { top: 42%; left: -64px; }
.hero--split .float--3 { bottom: 20%; right: -56px; }
.hero--split .float--4 { bottom: -24px; left: 8%; }

@media (max-width: 1159px) {
  .hero--split .float--1 { top: 16px; right: 16px; }
  .hero--split .float--2 { top: 40%; left: 16px; }
  .hero--split .float--3 { bottom: 22%; right: 16px; }
  .hero--split .float--4 { bottom: 16px; left: 16px; }
}
@media (max-width: 639px) {
  .hero--split .float--2, .hero--split .float--3 { display: none; }
  .hero--split .float__in { padding: 10px 14px 10px 12px; }
}

/* ---------- Section "more" link ---------- */
.sec-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--primary-text);
  background: var(--primary-soft);
  border: 1px solid var(--border-accent);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.sec-link svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.sec-link:hover { color: var(--text); background: rgba(7, 136, 253, 0.22); border-color: rgba(7, 136, 253, 0.5); }
.sec-link:hover svg { transform: translateX(-3px); }

/* =========================================================
   Inner pages
   ========================================================= */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(136px, 15vw, 172px) 0 clamp(56px, 7vw, 84px);
  background: var(--background);
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.page-hero__title {
  margin-top: 20px;
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  font-weight: 700;
  line-height: 1.25;
}
.page-hero__lead {
  max-width: 640px;
  margin-top: 18px;
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.15rem);
  color: var(--text-secondary);
}
.page-hero--404 { min-height: 88vh; display: grid; align-items: center; }
.page-hero--404 .hero__cta { margin-top: 32px; }

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.crumbs a { transition: color 0.3s; }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 14px; height: 14px; transform: rotate(90deg); }
.crumbs [aria-current] { color: var(--text-secondary); }

.section--flush { padding-top: 0; background: var(--background); }
.section--flush::before { display: none; }

.container--narrow { max-width: calc(880px + var(--gutter) * 2); }

/* ---------- Service categories ---------- */
.cat-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.cat { display: flex; flex-direction: column; }
.cat__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-text);
}
.cat__go svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.cat:hover .cat__go svg { transform: translateX(-4px); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: border-color 0.3s, background-color 0.3s;
}
.faq__item[open] { border-color: var(--border-accent); background-color: rgba(7, 136, 253, 0.04); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { width: 18px; height: 18px; color: var(--text-muted); transition: transform 0.35s var(--ease), color 0.3s; }
.faq__item[open] summary svg { transform: rotate(180deg); color: var(--accent); }
.faq__item p { padding: 0 22px 20px; color: var(--text-secondary); }

/* ---------- Comparison ---------- */
.compare {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: var(--shadow-md);
}
.compare__head, .compare__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: center;
  padding: 16px 24px;
}
.compare__head { font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); background: rgba(var(--fg-rgb), 0.03); }
.compare__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.compare__brand img { width: 28px; }
.compare__row { border-top: 1px solid var(--border); font-size: 0.95rem; }
.compare__row > span:first-child { font-weight: 600; }
.compare .is-no, .compare .is-yes { display: flex; align-items: center; gap: 8px; }
.compare .is-no { color: var(--text-muted); }
.compare .is-yes { color: var(--text); }
.compare .is-no svg { width: 16px; height: 16px; }
.compare .is-yes svg { width: 18px; height: 18px; color: var(--accent); }
@media (max-width: 639px) {
  .compare__head, .compare__row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 18px; row-gap: 8px; }
  .compare__head > span:first-child { display: none; }
  .compare__row > span:first-child { grid-column: 1 / -1; font-size: 0.85rem; color: var(--primary-text); }
}

/* ---------- Feature lists & steps ---------- */
.feature-list { display: grid; gap: 16px; }
@media (min-width: 640px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.feat {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card-bg);
}
.feat .ico { flex: none; }
.feat h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.5; }
.feat p { margin-top: 6px; font-size: 0.95rem; color: var(--text-secondary); }
.feat--card { flex-direction: column; gap: 0; padding: 28px; }
.feat--card h3 { margin-top: 18px; }

.num-lg {
  display: inline-block;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--accent-light), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.join-steps { display: grid; gap: 16px; }
@media (min-width: 640px) { .join-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .join-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.join-steps h3 { margin-top: 16px; }

/* ---------- Forms ---------- */
.page-hero--form { padding-bottom: clamp(80px, 10vw, 120px); }
.form-layout { position: relative; z-index: 1; display: grid; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .form-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; } }
.form-intro { padding-top: 8px; }
.form-intro .page-hero__lead { max-width: 480px; }

.next-steps { display: grid; gap: 12px; margin-top: 36px; }
.next-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  line-height: 1.6;
}
.next-steps li > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  font-weight: 700;
  color: var(--accent-light);
  background: var(--accent-soft);
  border: 1px solid rgba(254, 128, 10, 0.3);
}
.next-steps b { display: block; font-weight: 600; }
.next-steps small { font-size: 0.875rem; color: var(--text-muted); }

.form-card {
  position: relative;
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card-bg-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(var(--fg-rgb), 0.05);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 28px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(var(--fg-rgb), 0.04);
}
.tabs__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.tabs__btn svg { width: 18px; height: 18px; }
.tabs__btn:hover { color: var(--text); }
.tabs__btn.is-on {
  color: #fff;
  background: linear-gradient(180deg, #1A94FF, var(--primary-deep));
  box-shadow: 0 8px 20px -8px rgba(7, 136, 253, 0.8);
}

.form__grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); }
.field em { font-style: normal; font-size: 0.8rem; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: rgba(var(--deep-rgb), 0.6);
  border: 1px solid rgba(var(--fg-rgb), 0.1);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.field input[dir="ltr"] { text-align: right; }
.field textarea { min-height: 116px; resize: vertical; }
.field select {
  padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7891' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 16px;
}
.field select:invalid { color: var(--text-muted); }
.field select option { background: var(--surface-solid); color: var(--text); }
.field ::placeholder { color: var(--text-muted); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(var(--fg-rgb), 0.18); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  background-color: rgba(var(--deep-rgb), 0.8);
  box-shadow: 0 0 0 4px rgba(7, 136, 253, 0.18);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}
.field__err { font-size: 0.8rem; color: var(--danger); }

.check { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; font-size: 0.9rem; line-height: 1.7; color: var(--text-secondary); }
.check input { flex: none; width: 18px; height: 18px; margin-top: 4px; accent-color: var(--primary); }
.check a { color: var(--primary-text); text-decoration: underline; text-underline-offset: 3px; }
.check.is-invalid span { color: var(--danger); }

.form__submit { width: 100%; margin-top: 24px; }
.form__submit[disabled] { opacity: 0.7; cursor: progress; }
.form__status { min-height: 1.6em; margin-top: 14px; font-size: 0.9rem; text-align: center; color: var(--text-secondary); }
.form__status.is-error { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-done { display: grid; justify-items: center; gap: 14px; padding: 32px 0; text-align: center; }
.form-done[hidden] { display: none; }
.form-done h2 { font-size: 1.6rem; }
.form-done p { max-width: 380px; color: var(--text-secondary); }

.contact-cards { display: grid; gap: 12px; margin-top: 32px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  line-height: 1.6;
  transition: border-color 0.3s;
}
a.contact-card:hover { border-color: var(--border-hover); }
.contact-card small { display: block; font-size: 0.8rem; color: var(--text-muted); }
.contact-card b { font-weight: 600; }

/* ---------- Legal text ---------- */
.prose h2 { margin-top: 36px; font-size: 1.35rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 10px; color: var(--text-secondary); }
.prose a { color: var(--primary-text); text-decoration: underline; text-underline-offset: 3px; }


/* ---------- Published services (from the admin) ---------- */
.svc-card { display: flex; flex-direction: column; }
.svc-card__img { width: calc(100% + 56px); max-width: none; margin: -28px -28px 18px; aspect-ratio: 16 / 9; object-fit: cover; }
.svc-card__cat { align-self: flex-start; padding: 2px 10px; border-radius: 99px; font-size: 0.78rem; color: var(--primary-text); background: var(--primary-soft); }
.svc-card h3 { margin-top: 12px; }
.svc-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 0.9rem; color: var(--text-secondary); }
.svc-card__meta b { color: var(--text); }

/* ---------- CMS helpers ---------- */
.cms-block { display: contents; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.socials:not(:has(a)) { display: none; }
.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}
.socials a:hover { color: var(--text); border-color: var(--border-hover); }
.socials svg { width: 18px; height: 18px; }
.prose__updated { margin-bottom: 20px; font-size: 0.875rem; color: var(--text-muted); }
.form-closed { display: grid; justify-items: center; gap: 14px; padding: 32px 0; text-align: center; }
.form-closed[hidden] { display: none; }
.form-closed h2 { font-size: 1.5rem; }
.form-closed p { max-width: 380px; color: var(--text-secondary); }
.contact-cards:not(:has(.contact-card)) { display: none; }

/* =========================================================
   Reduced motion — static but complete
   ========================================================= */
@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;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; translate: none; filter: none; }
  .js .hero__stage { --tilt: 0deg; --scale: 1; }
}
