/*
 * xlmflow homepage.
 * UX, layout and CSS follow the PortaldotL homepage (github.com/longbds0108/PortaldotL, web/public/home): ink surfaces,
 * a cream primary that turns brand blue on hover, Inter Tight as the only typeface, a near-black stage lit by a blue
 * light ribbon. Accents are set apart by colour, not by a second font.
 */

/* Inter Tight (variable), self-hosted so the first paint needs no third-party connection. */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-tight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #08070b;
  --ink: #111015;
  --surface: rgba(23, 20, 27, 0.72);
  --surface-solid: #141218;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f3f7;
  --text-soft: #d6d1d9;
  --muted: #9b949f;
  --dim: #6f6876;
  --cream: #e8e3d5;
  --cream-hi: #f3efe5;
  --brand: #0b53bf;
  --brand-mid: #3f91ff;
  --brand-soft: #83aaff;
  --cyan: #5fcdff;
  --success: #4fd1c5;
  --warning: #e8b54c;
  --danger: #f08a8d;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1280px;
  --sans: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Brand surface for the full-colour moments (intro, brand panel, CTA card); built only from the blues above. */
  --brand-surface:
    radial-gradient(ellipse 80% 60% at 50% 115%, rgba(95, 205, 255, 0.45), transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(131, 170, 255, 0.35), transparent 70%),
    linear-gradient(160deg, var(--brand-mid), var(--brand) 55%, #072f6e);
  --brand-dots: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.4px) 0 0 / 22px 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  /* no scroll-behavior: smooth here: it breaks ScrollTrigger's measurements; main.js smooths in-page links */
  -webkit-text-size-adjust: 100%;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
ol,
ul,
dl,
dd {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

em {
  font-style: normal;
}

.mono {
  font-variant-numeric: tabular-nums;
}

.dim {
  color: var(--dim);
}

::selection {
  background: rgba(11, 83, 191, 0.6);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
  transition: top 0.2s;
}
.skip:focus {
  top: 16px;
}

/* ───────── Atmosphere + ribbon ───────── */

.atmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 72% 62%, rgba(11, 83, 191, 0.1), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(232, 227, 213, 0.05), transparent 70%);
}
.atmos::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1.4px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 40% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 40% 40%, #000 20%, transparent 75%);
}
.atmos::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.65));
}

.ribbon {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ribbon--bloom {
  filter: blur(6px) saturate(1.2);
  opacity: 0.95;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

/* ───────── Shared pieces ───────── */

.panel {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26, 23, 32, 0.8), rgba(12, 11, 16, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 40px 120px -30px rgba(0, 0, 0, 0.85),
    0 0 0 1px var(--line);
}
/* Animated gradient border. It is paused until the panel is on screen (.is-sheen, set in main.js). */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(110deg, #0b53bf, #6a8ad4, #cfe2ff, #e8e3d5, #6a8ad4, #0b53bf);
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.92;
  pointer-events: none;
  animation: border-sheen 3.5s linear infinite paused;
}
.panel.is-sheen::before {
  animation-play-state: running;
}
@keyframes border-sheen {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 200% 50%;
  }
}

.btn {
  --mx: 0px;
  --my: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: 500 15px/1 var(--sans);
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.btn svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}
.btn--sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}
.btn--lg {
  height: 58px;
  padding: 0 30px;
  font-size: 16px;
}
.btn--primary {
  background: var(--cream);
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 10px 36px -12px rgba(232, 227, 213, 0.55);
}
.btn--primary:hover {
  background: var(--brand);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(131, 170, 255, 0.65) inset,
    0 0 0 6px rgba(11, 83, 191, 0.14),
    0 14px 44px -8px rgba(11, 83, 191, 0.85);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line-strong) inset;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(131, 170, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(131, 170, 255, 0.5) inset,
    0 10px 30px -14px rgba(63, 145, 255, 0.7);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  font-size: 11px;
  white-space: nowrap;
}
.chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-soft);
  box-shadow: 0 0 8px var(--brand-mid);
}
.chip--live i {
  animation: pulse 2s ease-in-out infinite;
}
.chip--ok {
  color: var(--success);
  border-color: rgba(79, 209, 197, 0.3);
}
.chip--ok i {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.ok-t {
  color: var(--success);
}
.bad-t {
  color: var(--danger);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.eyebrow i {
  width: 6px;
  height: 6px;
  background: var(--brand-soft);
  box-shadow: 0 0 10px var(--brand-mid);
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

/* ───────── Navigation ───────── */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    padding 0.4s var(--ease);
}
.nav.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(10, 9, 13, 0.66);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.brand img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 10px rgba(63, 145, 255, 0.45));
}
.brand--sm {
  font-size: 0.95rem;
}
.brand--sm img {
  width: 22px;
  height: 22px;
}

.nav__links {
  display: flex;
  gap: 34px;
}
.nav__links a {
  position: relative;
  color: #a7a1ae;
  font-size: 14.5px;
  transition: color 0.25s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-soft), transparent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover {
  color: var(--text);
}
.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.mnav {
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: 96px var(--gutter) 32px;
  background: rgba(8, 7, 11, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.mnav nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mnav a:not(.btn) {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.mnav .btn {
  margin-top: 24px;
}

/* ───────── Hero ───────── */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1440px;
  margin: 0 auto;
  padding: 128px var(--gutter) 96px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  font-size: 12.5px;
}
.badge i {
  width: 6px;
  height: 6px;
  background: var(--brand-soft);
  box-shadow: 0 0 10px var(--brand-mid);
}

.hero__title {
  font-size: clamp(2.9rem, 5.4vw, 6.2rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.034em;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  /* room below the baseline for descenders, which the clip would otherwise cut */
  padding: 0 0.12em 0.2em 0;
  margin-bottom: -0.16em;
  white-space: nowrap;
}
/* Moving sheen across the title, paused while off screen */
.hero__title .line > span {
  display: inline-block;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
  background: linear-gradient(105deg, #fff 0%, #efedf4 30%, #dbe6ff 46%, #b9cfff 50%, #dbe6ff 54%, #efedf4 70%, #fff 100%);
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-sheen 8s linear infinite paused;
}
@keyframes title-sheen {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 230% 50%;
  }
}
.hero__title em {
  letter-spacing: -0.02em;
  /* the accent word sweeps in step with its line, on a blue base */
  background: linear-gradient(105deg, #a9c3ff 0%, #c3d6ff 30%, #fff 46%, var(--cream-hi) 50%, #fff 54%, #c3d6ff 70%, #a9c3ff 100%);
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-sheen 8s linear infinite paused;
}

.hero__lead {
  max-width: 34rem;
  margin-top: 30px;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.6;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.hero__stage {
  position: relative;
  perspective: 1800px;
  perspective-origin: 30% 50%;
}
.hero__tilt {
  position: relative;
  transform-style: preserve-3d;
}

.dash {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  overflow: hidden;
  transform: rotateY(-11deg) rotateX(5deg);
  transform-origin: 20% 50%;
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  background: linear-gradient(180deg, rgba(24, 21, 30, 0.62), rgba(10, 9, 14, 0.78));
}
.dash__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.dash__title {
  font-weight: 500;
  color: var(--text-soft);
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash__sep {
  width: 1px;
  height: 16px;
  background: var(--line-strong);
}
.dash__meta {
  font-size: 12px;
  color: var(--text-soft);
  white-space: nowrap;
}
.dash__bar .chip {
  margin-left: auto;
}

.dash__body {
  position: relative;
  padding: 20px 22px 18px 74px;
}
.dash__tools {
  position: absolute;
  left: 20px;
  top: 22px;
  display: grid;
  gap: 10px;
}
.dash__tools span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.dash__tools span.is-on {
  border-color: rgba(131, 170, 255, 0.35);
  background: rgba(63, 145, 255, 0.1);
}
.dash__tools svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--text-soft);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dash__tools span.is-on svg {
  fill: var(--text);
  stroke: none;
}
.dash__zoom {
  position: absolute;
  right: 22px;
  top: 18px;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

/* Node graph: fixed aspect so the SVG edges line up with the % positioned nodes. */
.graph {
  position: relative;
  aspect-ratio: 2 / 1;
  margin-top: 34px;
  container-type: inline-size;
}
.graph__edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.edge {
  fill: none;
  stroke: url(#edge);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 4px rgba(63, 145, 255, 0.6));
}
.edge--dim {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-dasharray: 3 5;
  filter: none;
}
.packet {
  fill: #e6efff;
  filter: drop-shadow(0 0 6px #83aaff);
}
.graph__label {
  position: absolute;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(10, 9, 14, 0.85);
  color: var(--muted);
  font-size: max(9px, 1.9cqw);
}
.node {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3em;
  width: 25%;
  height: 28%;
  padding: 0 4.2%;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(34, 30, 41, 0.95), rgba(19, 17, 23, 0.95));
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 18px 40px -12px rgba(0, 0, 0, 0.8);
  font-size: max(11px, 2.7cqw);
}
.node b {
  font-weight: 500;
  white-space: nowrap;
}
.node span {
  color: var(--dim);
  font-size: 0.68em;
  white-space: nowrap;
}
.node--src {
  width: 30%;
  box-shadow:
    0 0 0 1px rgba(131, 170, 255, 0.35),
    0 0 30px -6px rgba(63, 145, 255, 0.45),
    0 18px 40px -12px rgba(0, 0, 0, 0.8);
}
.node--end {
  width: 20.5%;
}
.node::before,
.node::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--brand-soft);
  box-shadow: 0 0 6px var(--brand-mid);
}
.node::before {
  left: -3px;
}
.node::after {
  right: -3px;
}
.node--src::before,
.node--end::after {
  display: none;
}
.graph__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(10, 9, 14, 0.85);
  color: var(--muted);
  font-size: max(9px, 1.9cqw);
  white-space: nowrap;
}
.graph__chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 6px var(--warning);
}

.dash__log {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.dash__logtitle {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11.5px;
}
.dash__log li {
  display: grid;
  grid-template-columns: 10px 92px 1fr 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  color: var(--text-soft);
  font-size: 11.5px;
  white-space: nowrap;
}
.dash__log li > i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dim);
}
.dash__log li > i.ok {
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}
.dash__log li span:nth-child(2) {
  color: var(--dim);
}

.float-card {
  position: absolute;
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 12px;
}
.float-card--a {
  z-index: 2;
  left: -7%;
  bottom: 22%;
  border: 1px solid rgba(131, 170, 255, 0.3);
  background: rgba(10, 12, 22, 0.86);
  box-shadow: 0 20px 50px -14px rgba(0, 0, 0, 0.9), 0 0 30px -10px rgba(63, 145, 255, 0.6);
  transform: translateZ(60px);
}
.float-card--a b {
  color: var(--brand-soft);
  font-weight: 500;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--dim);
  font-size: 11px;
  transform: translateX(-50%);
}
.scroll-cue span {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--brand-soft), transparent);
  animation: cue 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% {
    transform: scaleY(0);
    opacity: 1;
  }
  60% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* Intro states (hidden only with JS; see the inline script in <head>) */
.js:not(.ready) [data-intro],
.js:not(.ready) [data-intro-dash],
.js:not(.ready) [data-intro-float] {
  opacity: 0;
}
.js:not(.ready) [data-intro-line] {
  transform: translateY(110%);
}

/* ───────── Stack strip ───────── */

.stack {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) var(--gutter) clamp(90px, 12vw, 170px);
  text-align: center;
}
.stack__lead {
  color: var(--muted);
  font-size: 13px;
  text-wrap: balance;
}
.stack__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 4vw, 54px);
  margin-top: 44px;
}
.stack__row li {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 92px;
}
.tile {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 8px;
  border-radius: 15px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(131, 170, 255, 0.14), rgba(255, 255, 255, 0.02) 60%);
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.03em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.tile img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
/* Logos that are already a full-colour square fill the tile */
.tile--fill {
  overflow: hidden;
}
.tile--fill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stack__row li:hover .tile {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 30px -10px rgba(63, 145, 255, 0.7);
}
.stack__row b {
  font-weight: 500;
  font-size: 14.5px;
}
.stack__row li > span:last-child {
  color: var(--dim);
  font-size: 11px;
}

/* ───────── Statement ───────── */

.statement {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(60px, 10vw, 140px) var(--gutter) clamp(120px, 16vw, 220px);
}
.statement__text {
  margin-top: 28px;
  font-size: clamp(1.75rem, 3.9vw, 3.6rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.statement__text .w {
  display: inline-block;
  white-space: pre;
}

/* ───────── Features ───────── */

.features {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 120px) var(--gutter) clamp(80px, 10vw, 160px);
}
.features__head {
  max-width: 900px;
}
.features__head h2,
.product__head h2,
.how__head h2 {
  margin-top: 22px;
  font-size: clamp(2.3rem, 5.2vw, 4.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.032em;
}
/* Big headlines carry the hero's moving sheen. It is paused until the headline is on screen (.is-sheen, set in
   main.js), so off-screen headlines cost nothing while you scroll. */
.features__head h2,
.product__head h2,
.how__head h2,
.sec-head h2,
.cta__title {
  /* The gradient only paints inside the box: extend it below the last line so descenders are not cut off;
     the negative margin keeps the layout unchanged. */
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
  background: linear-gradient(105deg, #fff 0%, #efedf4 30%, #dbe6ff 46%, #b9cfff 50%, #dbe6ff 54%, #efedf4 70%, #fff 100%);
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-sheen 8s linear infinite paused;
}
.features__head h2 em,
.product__head h2 em,
.how__head h2 em,
.sec-head h2 em {
  background: linear-gradient(105deg, #a9c3ff 0%, #c3d6ff 30%, #fff 46%, var(--cream-hi) 50%, #fff 54%, #c3d6ff 70%, #a9c3ff 100%);
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-sheen 8s linear infinite paused;
}
/* On the blue CTA card the sweep stays cream and white so the words keep their contrast */
.cta__title {
  background-image: linear-gradient(105deg, #fff 0%, #f3efe5 30%, #fff 46%, #cfe2ff 50%, #fff 54%, #f3efe5 70%, #fff 100%);
}
.cta__title em {
  background: linear-gradient(105deg, var(--cream-hi) 0%, #e8e3d5 30%, #fff 46%, #fff 54%, #e8e3d5 70%, var(--cream-hi) 100%);
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-sheen 8s linear infinite paused;
}
h2.is-sheen,
:is(h1, h2).is-sheen em,
.hero__title.is-sheen .line > span {
  animation-play-state: running;
}

.features__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(40px, 6vw, 80px);
}

.feature {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-height: 72vh;
  min-height: 72svh;
  padding: 32px 0;
  opacity: 0.5;
  transition: opacity 0.6s var(--ease);
  cursor: pointer;
}
.feature.is-active {
  opacity: 1;
}
.feature__num {
  color: var(--brand-soft);
  font-size: 12.5px;
}
.feature h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.028em;
}
.feature p {
  max-width: 30rem;
  color: var(--muted);
  font-size: 1.04rem;
}
.feature__tags {
  color: var(--dim);
  font-size: 12px;
}

.features__stage {
  position: sticky;
  top: calc(50vh - 280px);
  height: 560px;
  align-self: start;
}
.stage {
  height: 100%;
  overflow: hidden;
}
.stage__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 12px;
}
.stage__dots {
  display: flex;
  gap: 6px;
}
.stage__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.stage__progress {
  flex: 0 0 80px;
  height: 2px;
  margin-left: auto;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.stage__progress i {
  display: block;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
  transition: width 0.6s var(--ease);
}

.pv {
  position: absolute;
  inset: 52px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px clamp(18px, 3vw, 32px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.7s var(--ease),
    filter 0.55s var(--ease),
    visibility 0s linear 0.55s;
}
.pv.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  transition-delay: 0.08s, 0.08s, 0.08s, 0s;
}
.pv__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pv__head b {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.pv__foot {
  margin-top: auto;
  color: var(--dim);
  font-size: 11.5px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.field > span:first-child {
  color: var(--muted);
  font-size: 12px;
}
.field__input {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 20px;
  border-radius: 14px;
  background: rgba(33, 28, 38, 0.9);
  box-shadow: 0 0 0 1px var(--line-strong) inset;
  transition: box-shadow 0.3s;
}
.field__input:focus-within {
  box-shadow:
    0 0 0 1px rgba(131, 170, 255, 0.7) inset,
    0 0 0 5px rgba(11, 83, 191, 0.18);
}
.field__input input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 600 1.6rem/1 var(--sans);
  letter-spacing: -0.03em;
}
.field__input span {
  color: var(--muted);
  font-size: 13px;
}

.kv {
  display: grid;
  gap: 2px;
  font-size: 12px;
}
.kv > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}
.kv dt {
  color: var(--dim);
}
.kv dd {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  text-align: right;
  min-width: 0;
}
.mini {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-soft);
  font-size: 12px;
  cursor: pointer;
}
.mini:hover {
  border-color: var(--brand-soft);
  color: #fff;
}

.hashout {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11, 83, 191, 0.22), rgba(11, 83, 191, 0.04));
  box-shadow: 0 0 0 1px rgba(131, 170, 255, 0.28) inset;
}
.hashout > span {
  font-size: 11px;
}
.hashout code {
  color: #dfe9ff;
  font-size: 12.5px;
  word-break: break-all;
  line-height: 1.5;
}
.hashout code.flash {
  animation: flash 0.6s var(--ease);
}
@keyframes flash {
  from {
    color: #fff;
    text-shadow: 0 0 12px var(--brand-mid);
  }
}

.phases {
  padding: 24px 0 8px;
}
.phases__track {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 6px;
}
.ph {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.ph b {
  font-weight: 500;
}
.ph i {
  color: var(--dim);
  font-style: normal;
  font-size: 11px;
}
.ph--commit {
  border-color: rgba(232, 227, 213, 0.25);
}
.ph--reveal {
  border-color: rgba(131, 170, 255, 0.45);
  background: rgba(63, 145, 255, 0.08);
}
.phases__now {
  position: absolute;
  top: -14px;
  bottom: -14px;
  left: 58%;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--cyan), var(--brand-mid));
  box-shadow: 0 0 12px var(--cyan);
}
.phases__now em {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cyan);
  font-style: normal;
  font-size: 11px;
}
.calls {
  display: grid;
  gap: 4px;
  font-size: 12px;
}
.calls li {
  display: grid;
  grid-template-columns: 88px 100px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.calls li span:first-child {
  color: var(--dim);
}
.calls li span:last-child {
  text-align: right;
}

.cmp {
  display: grid;
  gap: 4px;
}
.cmp__head,
.cmp__row {
  display: grid;
  grid-template-columns: 86px 1fr 1fr 54px;
  align-items: center;
  gap: 14px;
}
.cmp__head {
  color: var(--dim);
  font-size: 11px;
}
.cmp__head span:last-child,
.cmp__row span:last-child {
  text-align: right;
}
.cmp__row {
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.cmp__row b {
  font-weight: 500;
}
.bar {
  position: relative;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: calc(var(--v) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease) 0.2s;
}
.pv.is-active .bar::after {
  transform: scaleX(1);
}
.flag {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(232, 181, 76, 0.3);
  background: rgba(232, 181, 76, 0.06);
  font-size: 13.5px;
  color: var(--text-soft);
}
.flag b {
  color: var(--warning);
  font-weight: 500;
}
.flag__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--warning);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}

/* ───────── Product experience ───────── */

.product {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(100px, 12vw, 180px);
  overflow: clip;
}
.product__glow {
  position: absolute;
  left: 50%;
  top: 34%;
  width: min(1400px, 140%);
  height: 900px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 45% 38% at 50% 52%, rgba(63, 145, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 22% 30% at 50% 38%, rgba(232, 227, 213, 0.1), transparent 70%);
  pointer-events: none;
}
.product__head {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.product__lead {
  max-width: 38rem;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.product__scene {
  position: relative;
  max-width: 1120px;
  margin: clamp(48px, 7vw, 90px) auto 0;
  perspective: 1600px;
  perspective-origin: 50% 0%;
}
.product__screen {
  transform-origin: 50% 0%;
  overflow: hidden;
}

.res {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 520px;
}
.res__side {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.res__side .brand {
  margin-bottom: 18px;
  padding-left: 8px;
}
.res__group {
  margin: 14px 0 6px;
  padding-left: 10px;
  font-size: 11px;
}
.res__nav {
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
}
.res__nav.is-on {
  color: var(--text);
  background: rgba(232, 227, 213, 0.08);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.res__main {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 24px;
  min-width: 0;
}
.res__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.res__top p {
  font-size: 11.5px;
}
.res__title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.res__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
}
.res__card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  min-width: 0;
}
.res__cardhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.res__cardhead b {
  font-weight: 500;
}
.res__cardhead span {
  font-size: 11px;
}

/* Isometric bars: front face + skewed right face (::after) + skewed top (::before) */
.iso {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 10px;
  height: 250px;
  padding: 30px 16px 0 0;
}
.iso__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.iso__bar i {
  position: relative;
  display: block;
  width: 30px;
  height: calc(var(--h) * 150px);
  background: linear-gradient(180deg, #6d9bff, var(--brand) 65%, rgba(11, 83, 191, 0.25));
  transform-origin: bottom;
}
.iso__bar i::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 0;
  width: 13px;
  height: 100%;
  background: linear-gradient(180deg, #2a5fbf, #0a3a8a 65%, rgba(10, 58, 138, 0.2));
  transform: skewY(-40deg);
  transform-origin: left top;
}
.iso__bar i::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 100%;
  width: 100%;
  height: 10.9px;
  background: linear-gradient(90deg, #c3d6ff, #8fb2ff);
  transform: skewX(-50deg);
  transform-origin: left bottom;
}
.iso__bar.is-win i {
  background: linear-gradient(180deg, #fff6e2, var(--cream) 30%, #7da4ff 80%, rgba(63, 145, 255, 0.3));
  box-shadow: 0 0 40px -4px rgba(131, 170, 255, 0.8);
}
.iso__bar.is-win i::before {
  background: #fffaf0;
}
.iso__bar.is-win i::after {
  background: linear-gradient(180deg, #b4ad98, #3c63b8 70%, rgba(40, 80, 170, 0.2));
}
.iso__val {
  color: var(--text-soft);
  font-size: 11px;
  margin-bottom: 8px;
}
.iso__bar.is-win .iso__val {
  color: var(--cream-hi);
}
.iso__lab {
  color: var(--dim);
  font-size: 11px;
}

.res__table ul {
  display: grid;
  font-size: 12px;
}
.res__table li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px dashed var(--line);
}
.res__table li.is-win {
  margin: 0 -8px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 10px;
  border-bottom-color: transparent;
  background: rgba(63, 145, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(131, 170, 255, 0.3) inset;
}
.res__award {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 8px 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-soft);
}

.float-card--rep,
.float-card--disp {
  z-index: 2;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(28, 25, 36, 0.92), rgba(14, 13, 19, 0.95));
  font-size: 11.5px;
}
.float-card--rep {
  left: -56px;
  top: 38%;
  width: 190px;
}
.float-card__big {
  font-family: var(--sans);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.032em;
  background: linear-gradient(180deg, #fff, var(--brand-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.float-card--disp {
  right: -48px;
  bottom: -36px;
  width: 270px;
  gap: 8px;
}
.float-card--disp b {
  font-size: 15px;
  font-weight: 500;
  font-family: var(--sans);
}
.float-card--disp .chip {
  justify-self: start;
}

/* ───────── How it works ───────── */

.how {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}
.how__head {
  max-width: 820px;
}
.how__row {
  position: relative;
  margin-top: clamp(48px, 7vw, 90px);
}
.how__trail {
  position: absolute;
  left: -4%;
  top: -46px;
  width: 108%;
  height: 120px;
  overflow: visible;
}
.how__trail path {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.how__trail-base {
  stroke: rgba(255, 255, 255, 0.07);
}
.how__trail-line {
  stroke: url(#trail);
  filter: drop-shadow(0 0 6px rgba(63, 145, 255, 0.9));
}
.how__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.step {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 240px;
  padding: 26px;
  transition: box-shadow 0.6s var(--ease);
}
.step__num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 12px;
  transition:
    color 0.5s,
    border-color 0.5s,
    box-shadow 0.5s,
    background-color 0.5s;
}
.step h3 {
  margin-top: 24px;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.028em;
}
.step p {
  color: var(--muted);
  font-size: 0.98rem;
}
.step.is-lit {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(131, 170, 255, 0.28),
    0 30px 80px -30px rgba(11, 83, 191, 0.6);
}
.step.is-lit .step__num {
  color: #fff;
  border-color: var(--brand-soft);
  background: rgba(11, 83, 191, 0.5);
  box-shadow: 0 0 20px rgba(63, 145, 255, 0.7);
}

/* ───────── Intro: logo tile floods the screen, then opens onto the hero ───────── */

.intro {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.intro__bg {
  position: absolute;
  inset: 0;
  background: #000;
}
.intro__fill {
  position: absolute;
  inset: 0;
  background: var(--brand-dots), var(--brand-surface);
  clip-path: inset(calc(50% - 32px) round 18px);
  will-change: clip-path;
}
.intro__tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 50px -12px rgba(0, 0, 0, 0.8);
}
.intro__tile img {
  width: 36px;
  height: 36px;
}

/* ───────── Shared section frame + head (left title, right aside) ───────── */

.trust,
.desk,
.numbers {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(90px, 12vw, 160px) var(--gutter) 0;
}
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px clamp(32px, 6vw, 96px);
}
.sec-head h2 {
  margin-top: 22px;
  font-size: clamp(2.1rem, 4.4vw, 3.9rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.sec-head__aside {
  max-width: 26rem;
  padding-bottom: 0.4em;
  color: var(--muted);
  font-size: 15px;
}

/* Hover: lift, brighter edge, and a soft light that follows the pointer (--gx/--gy set in main.js). */
[data-glow] {
  --gx: 50%;
  --gy: 0%;
  /* translate, not transform: GSAP owns transform for the scroll reveals */
  transition:
    translate 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
[data-glow]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(131, 170, 255, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
[data-glow]:hover {
  translate: 0 -4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 40px 120px -30px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(131, 170, 255, 0.28),
    0 24px 60px -30px rgba(63, 145, 255, 0.55);
}
[data-glow]:hover::after {
  opacity: 1;
}

/* ───────── Brand panel ───────── */

.seal {
  position: relative;
}
.has-motion .seal {
  height: 220vh;
}
.seal__sticky {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 88px var(--gutter) 24px;
}
.has-motion .seal__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
}
.seal__panel {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  width: 100%;
  height: 100%;
  min-height: 420px;
  padding: clamp(32px, 6vw, 90px);
  border-radius: 28px;
  overflow: hidden;
  background: var(--brand-dots), var(--brand-surface);
  color: #fff;
  text-align: center;
  box-shadow: 0 60px 160px -40px rgba(11, 83, 191, 0.7);
}
.has-motion .seal__panel {
  will-change: clip-path;
}
.seal__kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
}
.seal__text {
  max-width: 15em;
  font-size: clamp(2rem, 5.2vw, 4.8rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.seal__text em {
  color: var(--cream-hi);
}
.seal__text .w {
  display: inline-block;
  white-space: pre;
}
.seal__tile {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-top: 12px;
  border-radius: 18px;
  background: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 20px 40px -14px rgba(0, 0, 0, 0.7);
}

/* ───────── Trust ───────── */

.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(36px, 5vw, 60px);
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 400px;
  padding: 28px;
}
.card h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.card > p {
  max-width: 30rem;
  color: var(--muted);
  font-size: 14.5px;
}
.card__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 11.5px;
}
.card__foot svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.hub {
  position: relative;
  aspect-ratio: 400 / 180;
  margin: auto 0 18px;
}
.hub__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hub__lines path {
  fill: none;
  stroke: rgba(131, 170, 255, 0.32);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
}
.hub__sat {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--dim);
  font-size: 11px;
  transform: translate(-50%, -50%);
}
.hub__sat b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(131, 170, 255, 0.12), rgba(255, 255, 255, 0.02) 60%);
  color: var(--text-soft);
  font-weight: 500;
}
.hub__core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: var(--ink);
  box-shadow:
    0 0 0 1px rgba(131, 170, 255, 0.4),
    0 0 50px -6px rgba(63, 145, 255, 0.75);
  transform: translate(-50%, -50%);
}
.hub__core::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--brand-soft);
  animation: halo 2.8s var(--ease) infinite;
}
@keyframes halo {
  from {
    transform: scale(1);
    opacity: 0.7;
  }
  to {
    transform: scale(1.6);
    opacity: 0;
  }
}

.rules {
  display: grid;
  gap: 18px;
  margin: auto 0 18px;
}
.rules li {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 46px;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-soft);
}
.rules small {
  display: block;
  color: var(--dim);
  font-size: 11px;
}
.rules b {
  font-weight: 500;
  text-align: right;
}
.rules__bar {
  position: relative;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}
.rules__bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
  box-shadow: 0 0 12px rgba(63, 145, 255, 0.6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease) 0.2s;
}
.rules__bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--v) * 100%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px var(--brand-soft);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s var(--ease) 1.1s;
}
.is-in .rules__bar::after {
  transform: scaleX(1);
}
.is-in .rules__bar::before {
  transform: translate(-50%, -50%) scale(1);
}

/* ───────── Borrower's desk bento ───────── */

.desk__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(36px, 5vw, 60px);
}
.tile-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  padding: 22px;
}
.tile-card--wide {
  grid-column: span 2;
}
.tile-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
}
.tile-card__label {
  font-size: 11.5px;
}
.tile-card__note {
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
}
.tile-card__big {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.028em;
}
.tile-card__big small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.heat {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(6px, 1.2vw, 14px);
  margin-top: auto;
}
.heat__col {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}
.heat__col i {
  height: 26px;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--brand-soft), var(--brand));
  opacity: 0.07;
  transition: opacity 0.6s var(--ease);
}
.heat__col span {
  order: -1;
  margin-top: 4px;
  color: var(--dim);
  font: 11px var(--sans);
  text-align: center;
}
/* Each column fills bottom-up: cell k is lit by how far --v passes k/4 (only once the grid is in view). */
.is-in .heat__col i:nth-of-type(1) {
  opacity: clamp(0.07, calc(var(--v) * 4), 1);
  transition-delay: 0.1s;
}
.is-in .heat__col i:nth-of-type(2) {
  opacity: clamp(0.07, calc(var(--v) * 4 - 1), 1);
  transition-delay: 0.2s;
}
.is-in .heat__col i:nth-of-type(3) {
  opacity: clamp(0.07, calc(var(--v) * 4 - 2), 1);
  transition-delay: 0.3s;
}
.is-in .heat__col i:nth-of-type(4) {
  opacity: clamp(0.07, calc(var(--v) * 4 - 3), 1);
  transition-delay: 0.4s;
}
.heat__col.is-peak i {
  box-shadow: 0 0 18px -2px rgba(63, 145, 255, 0.8);
}
.heat__col.is-peak span {
  color: var(--text);
}
.heat__col.is-closed i,
.is-in .heat__col.is-closed i {
  opacity: 1;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 4px, transparent 4px 8px);
}

.ring {
  position: relative;
  width: 132px;
  margin: auto;
}
.ring svg {
  width: 100%;
  transform: rotate(-90deg);
}
.ring circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 6;
}
.ring .ring__val {
  stroke: var(--brand-soft);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 6px rgba(63, 145, 255, 0.8));
  transition: stroke-dashoffset 1.6s var(--ease) 0.2s;
}
.is-in .ring__val {
  stroke-dashoffset: calc(100 - var(--p) * 100);
}
.ring b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.028em;
}

.faces {
  display: flex;
  padding-left: 8px;
}
.faces i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid var(--surface-solid);
  background: linear-gradient(150deg, var(--brand-mid), var(--brand));
  font: 500 12px var(--sans);
  font-style: normal;
}
.faces i.is-wait {
  border: 1px dashed var(--brand-soft);
  background: transparent;
  color: var(--brand-soft);
  animation: pulse 2s ease-in-out infinite;
}

.wave {
  width: 100%;
  height: 90px;
  margin-top: auto;
  overflow: visible;
}
.wave path {
  fill: none;
  stroke-width: 1.6;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.8s var(--ease) 0.2s;
}
.wave__a {
  stroke: var(--brand-soft);
  filter: drop-shadow(0 0 5px rgba(63, 145, 255, 0.8));
}
.wave__b {
  stroke: rgba(232, 227, 213, 0.55);
}
.is-in .wave path {
  stroke-dashoffset: 0;
}
.wave__legend {
  display: flex;
  gap: 16px;
  color: var(--dim);
  font-size: 11px;
}
.wave__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wave__legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-soft);
}
.wave__legend span + span i {
  background: var(--cream);
}

.cids li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

/* ───────── Numbers ───────── */

.numbers__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
  margin-top: clamp(36px, 5vw, 60px);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  font-size: 12px;
}
.stat b {
  margin: 10px 0 2px;
  font-size: clamp(3.2rem, 6.4vw, 5.6rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.stat__blocks {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 4px;
  height: 30px;
  margin-top: 18px;
}
.stat__blocks i {
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand-soft), var(--brand));
  transform: scaleY(0.12);
  transform-origin: bottom;
  opacity: 0.4;
  transition:
    transform 0.6s var(--ease) calc(var(--i, 0) * 45ms),
    opacity 0.6s var(--ease) calc(var(--i, 0) * 45ms);
}
.is-in .stat__blocks i {
  transform: scaleY(1);
  opacity: 1;
}
.stat__line {
  position: relative;
  height: 6px;
  margin-top: auto;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}
.stat__line i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
  box-shadow: 0 0 14px rgba(63, 145, 255, 0.6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease) 0.3s;
}
.is-in .stat__line i {
  transform: scaleX(1);
}
.stat__line--empty {
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 6px, transparent 6px 12px);
}
.stat__line--empty i {
  display: none;
}

/* ───────── Final CTA: dark brand card + brand-colour action card ───────── */

.cta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(120px, 14vw, 200px) var(--gutter) 64px;
}
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 14px;
}
.cta__side {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 28px;
  overflow: hidden;
}
.cta__side .brand {
  position: relative;
  z-index: 1;
}
.cta__mark {
  position: absolute;
  right: -30px;
  top: -10px;
  opacity: 0.12;
  filter: grayscale(1) brightness(1.6);
  pointer-events: none;
}
.cta__side p {
  max-width: 22rem;
  margin-top: auto;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.45;
}
.cta__links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.cta__links .dim {
  margin-right: auto;
}
.cta__links a {
  color: var(--text-soft);
  transition: color 0.25s;
}
.cta__links a:hover {
  color: var(--brand-soft);
}
.cta__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brand-dots), var(--brand-surface);
  color: #fff;
  box-shadow: 0 50px 140px -40px rgba(11, 83, 191, 0.85);
}
.cta__kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}
.cta__title {
  margin-top: 14px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.cta__lead {
  max-width: 30rem;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 32px;
}
.btn--ink {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.8);
}
.btn--ink:hover {
  background: #000;
  box-shadow:
    0 0 0 1px rgba(232, 227, 213, 0.5) inset,
    0 16px 36px -12px rgba(0, 0, 0, 0.9);
}
.btn--onbrand {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}
.btn--onbrand:hover {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 1px #fff inset;
}
.cta__card :focus-visible {
  outline-color: #fff;
}
.cta__status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 28px;
  color: var(--dim);
  font-size: 12px;
}
.cta__status li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-soft);
  box-shadow: 0 0 8px var(--brand-mid);
}

/* ───────── Footer ───────── */

.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 7, 11, 0.4), rgba(8, 7, 11, 0.92) 40%);
  overflow: hidden;
}
.footer__main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px var(--gutter) 40px;
}
.footer__brand p {
  max-width: 26rem;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer__col {
  display: grid;
  align-content: start;
  gap: 10px;
}
.footer__col h4 {
  margin-bottom: 6px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 400;
}
.footer__col a {
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: color 0.25s;
}
.footer__col a:hover {
  color: var(--brand-soft);
}
.footer__word {
  margin-bottom: -0.2em;
  text-align: center;
  font-size: clamp(6rem, 25vw, 24rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, rgba(131, 170, 255, 0.32), rgba(131, 170, 255, 0.02) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 11.5px;
}

/* ───────── xlmflow previews ───────── */

.warn-t {
  color: var(--warning);
}

/* Stack tiles without a logo file: a monogram in the tile */
.tile--mono {
  color: var(--brand-soft);
  font-size: 15px;
}

/* Repay rule: the result line reads as an answer, the reason under it as a footnote */
.hashout code s {
  color: var(--dim);
  text-decoration: line-through;
}
.hashout code em {
  color: var(--cream-hi);
}
.hashout + .hashout {
  margin-top: -6px;
}
.pv .replay {
  align-self: flex-start;
}

/* react() checks on Lasna: each tick lands in turn (main.js adds .is-ok) */
.checks {
  display: grid;
  gap: 2px;
  font-size: 12px;
}
.checks li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--text-soft);
}
.checks li > span:nth-child(2) {
  text-align: right;
}
.checks b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: transparent;
  font-size: 11px;
  font-weight: 600;
  transition:
    color 0.4s var(--ease),
    background-color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.checks li.is-ok b {
  border-color: transparent;
  background: var(--success);
  color: var(--ink);
  box-shadow: 0 0 10px rgba(79, 209, 197, 0.6);
}

/* ───────── Responsive ───────── */

@media (max-width: 1180px) {
  .float-card--rep {
    left: -16px;
  }
  .float-card--disp {
    right: -16px;
  }
}

@media (max-width: 1024px) {
  .hero {
    /* minmax(0, …): the wide dashboard panel must not stretch the text column past the screen */
    grid-template-columns: minmax(0, 1fr);
    padding-top: 120px;
    text-align: left;
  }
  .hero__stage {
    max-width: 760px;
  }
  .dash {
    margin: 0;
  }
  .features__stage {
    top: calc(50vh - 250px);
    height: 500px;
  }
  .res {
    grid-template-columns: 1fr;
  }
  .res__side {
    display: none;
  }
  .how__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .how__trail {
    display: none;
  }
}

@media (max-width: 860px) {
  .nav {
    grid-template-columns: 1fr auto;
  }
  .nav__links,
  .nav__right > .btn {
    display: none;
  }
  .nav__toggle {
    display: block;
  }

  .features__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .features__stage {
    order: -1;
    top: 72px;
    z-index: 3;
    height: auto;
  }
  /* Stack the previews in one grid cell so the stage is as tall as the tallest one, instead of a fixed height that
     clips them at phone widths. */
  .stage {
    display: grid;
    height: auto;
    background: linear-gradient(180deg, #16141b, #0c0b10);
    isolation: isolate;
  }
  .pv {
    position: relative;
    inset: auto;
    grid-area: 2 / 1;
  }
  .feature {
    min-height: 62vh;
    min-height: 62svh;
    justify-content: flex-start;
    padding-top: 48px;
  }

  .res__grid {
    grid-template-columns: 1fr;
  }
  .product__scene {
    display: grid;
    gap: 14px;
  }
  .float-card--rep,
  .float-card--disp {
    position: relative;
    inset: auto;
    width: auto;
  }
  .footer__main {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 108px;
    padding-bottom: 72px;
    min-height: 0;
  }
  .badge {
    margin-bottom: 22px;
    font-size: 11.5px;
  }
  .hero__ctas .btn {
    flex: 1 1 auto;
  }
  .hero__stage {
    margin-top: 12px;
  }
  .dash {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: linear-gradient(180deg, rgba(24, 21, 30, 0.86), rgba(10, 9, 14, 0.92));
  }
  .dash__bar {
    padding: 14px 16px;
  }
  .dash__sep,
  .dash__meta,
  .dash__zoom {
    display: none;
  }
  .dash__body {
    padding: 8px 14px 14px;
  }
  .dash__tools {
    display: none;
  }
  .graph {
    margin-top: 16px;
  }
  .node {
    border-radius: 9px;
    padding: 0 3.5%;
  }
  .dash__log li {
    grid-template-columns: 8px 76px 1fr auto;
    font-size: 10.5px;
  }
  .dash__log li span:nth-child(4) {
    display: none;
  }
  .float-card--a {
    display: none;
  }
  .hero__title .line {
    white-space: normal;
  }
  .scroll-cue {
    display: none;
  }

  .pv {
    gap: 12px;
    padding: 16px;
  }
  .pv__head b {
    font-size: 1.05rem;
  }
  .field {
    gap: 6px;
  }
  .field__input {
    height: 46px;
    padding: 0 16px;
  }
  .field__input input {
    font-size: 1.3rem;
  }
  .kv > div {
    padding: 5px 0;
  }
  .hashout {
    gap: 6px;
    padding: 10px 12px;
  }
  .hashout code {
    font-size: 11px;
  }
  .calls li {
    grid-template-columns: 76px 1fr;
  }
  .checks li {
    grid-template-columns: minmax(0, 1fr) 22px;
  }
  .checks li > span:nth-child(2) {
    display: none;
  }
  .calls li span:nth-child(2) {
    display: none;
  }
  .cmp__head,
  .cmp__row {
    grid-template-columns: 70px 1fr 1fr 40px;
    gap: 10px;
  }
  .stage__bar #stage-path {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .iso {
    height: 220px;
    gap: 6px;
    padding-right: 10px;
  }
  .iso__bar i {
    width: 22px;
    height: calc(var(--h) * 130px);
  }
  .iso__bar i::after {
    width: 9px;
  }
  .iso__bar i::before {
    height: 7.55px;
  }
  .res__main {
    padding: 16px;
  }
  .res__award {
    grid-template-columns: auto 1fr;
  }
  .res__award span:nth-child(odd) {
    white-space: nowrap;
  }

  .how__steps {
    grid-template-columns: 1fr;
  }
  .step {
    min-height: 0;
  }
  .step h3 {
    margin-top: 8px;
  }
  .footer__bottom {
    flex-direction: column;
  }
}

/* New sections (brand panel, trust, desk, numbers, CTA cards) */
@media (max-width: 1024px) {
  .sec-head {
    grid-template-columns: 1fr;
  }
  .desk__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cta__grid {
    grid-template-columns: 1fr;
  }
  .cta__card {
    order: -1;
  }
  .cta__side {
    min-height: 260px;
  }
}

@media (max-width: 860px) {
  .trust__grid {
    grid-template-columns: 1fr;
  }
  .numbers__row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .card {
    min-height: 0;
  }
  .hub {
    margin-top: 18px;
  }
}

@media (max-width: 640px) {
  .seal__sticky {
    padding: 80px 12px 16px;
  }
  .seal__panel {
    border-radius: 22px;
    min-height: 70vh;
  }
  .desk__grid {
    grid-template-columns: 1fr;
  }
  .tile-card--wide {
    grid-column: auto;
  }
  .tile-card {
    min-height: 200px;
  }
  .heat__col i {
    height: 18px;
  }
  .hub__sat b {
    width: 32px;
    height: 32px;
    font-size: 10px;
  }
  .hub__core {
    width: 56px;
    height: 56px;
  }
  .rules li {
    grid-template-columns: minmax(0, 1fr) 40px;
    row-gap: 8px;
  }
  .rules__bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .cta__actions .btn {
    flex: 1 1 auto;
  }
  .cta__status {
    flex-direction: column;
  }
}

/* Phones: the tech strip sits in two even rows (4 + 3) instead of leaving one logo alone on the last row. */
@media (max-width: 640px) {
  .stack__row {
    gap: 24px 6px;
    margin-top: 32px;
  }
  .stack__row li {
    min-width: 0;
    width: calc(25% - 6px);
  }
  .stack__row li b {
    font-size: 11.5px;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }
  .stack__row li .mono {
    font-size: 10.5px;
  }
}

/* Headings break into even lines rather than leaving one word alone. */
h1,
h2,
h3,
.seal__text,
.statement__text {
  text-wrap: balance;
}

@media (hover: none) {
  [data-glow]:hover {
    translate: none;
  }
}

@media (hover: none) {
  .ribbon--bloom {
    filter: blur(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .pv,
  .feature,
  .bar::after,
  .checks b {
    transition: none !important;
  }
  .pv {
    filter: none;
  }
  .packet {
    display: none;
  }
  [data-glow],
  .rules__bar::before,
  .rules__bar::after,
  .heat__col i,
  .ring__val,
  .wave path,
  .stat__blocks i,
  .stat__line i {
    transition: none !important;
  }
}
