/* =========================================================
   Delta Industrial Software — product marketing site
   Deep navy hero, white cards, product blue/green, signal orange.
   ========================================================= */

:root {
  --bg: linear-gradient(115deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 30%, rgba(11, 22, 38, .025) 55%, rgba(255, 255, 255, .35) 78%, rgba(255, 255, 255, 0) 100%), linear-gradient(180deg, #F2F6F9 0%, #E7EDF3 100%);
  --surface: linear-gradient(115deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, 0) 28%, rgba(11, 22, 38, .035) 54%, rgba(255, 255, 255, .5) 76%, rgba(255, 255, 255, 0) 100%), linear-gradient(180deg, #F7FAFC 0%, #E9EFF5 55%, #F4F8FA 100%);
  --surface-2: linear-gradient(160deg, #EEF3F8 0%, #E3EAF1 100%);
  --ink: #0B1220;
  --ink-2: #333D4F;
  --muted: #5B6675;
  --muted-2: #5F6B7A;
  --line: #D8E1E9;
  --line-strong: #C2CEDA;

  --navy: #0B1626;
  --navy-2: #101D30;
  --navy-3: #172842;
  --navy-line: rgba(255, 255, 255, .1);
  --navy-line-2: rgba(255, 255, 255, .18);

  --orange: #FF5A1F;
  --orange-2: #E84A12;
  --orange-ink: #C2410C;
  --orange-btn: #C94A12;
  --orange-strong-2: #A83808;
  --blue: #2E63F0;
  --blue-2: #1D4ED8;
  --green: #1FA866;
  --green-2: #128A52;
  --green-ink: #147A4B;
  --gold: #F5A623;
  --gold-ink: #8F6200;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 24px 60px rgba(10, 18, 32, .12);
  --shadow-sm: 0 10px 28px rgba(10, 18, 32, .07);

  --sans: "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "HarmonyOS Sans SC",
          "MiSans", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei UI",
          "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", "SFMono-Regular", Consolas,
          "Liberation Mono", monospace;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--orange); color: #fff; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--orange-ink);
  color: #fff;
  font-size: 13px;
  border-radius: var(--radius-xs);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), box-shadow .22s var(--ease),
              translate .22s var(--ease);
}
.btn .icon { width: 16px; height: 16px; transition: transform .22s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn-primary {
  background: var(--orange-btn);
  color: #fff;
  border-color: var(--orange-btn);
  box-shadow: 0 10px 24px rgba(201, 74, 18, .26);
}
.btn-primary:hover {
  background: var(--orange-strong-2);
  border-color: var(--orange-strong-2);
  box-shadow: 0 12px 28px rgba(168, 56, 8, .32);
  translate: 0 -1px;
}

.btn-soft {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
}
.btn-soft:hover { background: rgba(255, 255, 255, .14); }

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-sm { height: 38px; padding: 0 16px; font-size: 12.5px; border-radius: var(--radius-xs); }

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  flex: none;
}
.icon-tile .icon { width: 23px; height: 23px; }
.tile-blue { background: rgba(46, 99, 240, .1); color: var(--blue); }
.tile-green { background: rgba(31, 168, 102, .11); color: var(--green-ink); }
.tile-orange { background: rgba(255, 90, 31, .1); color: var(--orange-ink); }
.tile-gold { background: rgba(245, 166, 35, .13); color: var(--gold-ink); }
.tile-cyan { background: rgba(14, 142, 166, .12); color: #0B7E91; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: rgba(255, 255, 255, .14); box-shadow: 0 12px 30px rgba(0, 0, 0, .22); }

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  width: 100%;
  max-width: var(--max);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { width: 26px; height: 26px; color: var(--orange); flex: none; }
.brand-word {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .22em;
  line-height: 1;
  color: #fff;
}
.brand-sub {
  padding-left: 11px;
  border-left: 1px solid rgba(255, 255, 255, .2);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .6);
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  margin-left: auto;
  font-size: 14px;
}
.main-nav a {
  position: relative;
  padding: 8px 0;
  color: rgba(255, 255, 255, .68);
  transition: color .2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transition: right .3s var(--ease);
}
.main-nav a:hover,
.main-nav a.is-active { color: #fff; }
.main-nav a:hover::after,
.main-nav a.is-active::after { right: 0; }

.nav-products { position: relative; display: flex; align-items: center; }
.nav-products-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .68);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color .2s;
}
.nav-products-toggle:hover,
.nav-products-toggle.is-active { color: #fff; }
.nav-caret { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.nav-products-toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.nav-products-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -14px;
  z-index: 120;
  width: 330px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(10, 18, 32, .24);
}
.nav-products-menu[hidden] { display: none; }
@media (min-width: 901px) {
  .nav-products-menu::before {
    content: "";
    position: absolute;
    top: -14px;
    right: 0;
    left: 0;
    height: 14px;
  }
}
.nav-products-label { padding: 6px 10px 8px; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--muted-2); }
.nav-products-menu a { display: grid; gap: 2px; padding: 9px 10px; border-radius: 9px; color: var(--ink); }
.nav-products-menu a::after { display: none; }
.nav-products-menu a:hover { background: var(--surface-2); color: var(--ink); }
.nav-products-menu .np-name { display: flex; align-items: center; font-size: 14px; font-weight: 700; }
.np-dot { width: 7px; height: 7px; margin-right: 8px; border-radius: 2px; background: var(--np, var(--orange)); }
.np-studio { --np: var(--blue); }
.np-motion { --np: var(--green); }
.np-gateway { --np: var(--gold); }
.np-label { --np: #7A5AF8; }
.np-linkbench { --np: #18AFC9; }
.np-desc { padding-left: 15px; font-size: 11px; color: var(--muted); }
.nav-products-menu a.is-current,
.nav-products-menu a.is-active { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--np, var(--orange)); color: var(--ink); }
.nav-products-all {
  margin-top: 6px;
  padding: 10px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 9px 9px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--orange-ink);
}

@media (max-width: 1280px) {
  .nav-products-menu { left: auto; right: -14px; }
}

.header-side { display: flex; align-items: center; gap: 12px; flex: none; }
.version-chip {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .5);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-xs);
  background: transparent;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 21px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 18px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 18px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: var(--header-h);
  background: var(--navy);
  color: #fff;
  overflow: clip;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    radial-gradient(620px 420px at 82% 18%, rgba(255, 90, 31, .17), transparent 62%),
    radial-gradient(560px 420px at 12% 82%, rgba(46, 99, 240, .18), transparent 62%),
    radial-gradient(420px 320px at 58% 58%, rgba(31, 168, 102, .1), transparent 64%);
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 1.08fr;
  align-items: center;
  gap: clamp(32px, 4.5vw, 56px);
  padding-top: clamp(40px, 4.8vw, 64px);
  padding-bottom: clamp(48px, 5.5vw, 80px);
}

.hero-copy { max-width: 580px; }
.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .52);
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.hero-eyebrow i { color: var(--orange); font-style: normal; }

.hero-title {
  margin-top: 20px;
  font-size: clamp(46px, 5.2vw, 76px);
  font-weight: 820;
  line-height: 1.06;
  letter-spacing: -.04em;
  color: #fff;
}
.hero-title em { font-style: normal; color: var(--orange); white-space: nowrap; }

/* Home hero: value statement first, products live in the carousel */
.hero-home .hero-home-inner {
  max-width: 940px;
  margin-inline: auto;
  padding-block: clamp(46px, 5.4vw, 80px);
  text-align: center;
}
.hero-home .hero-eyebrow { justify-content: center; }
.hero-home .hero-title {
  margin-top: 18px;
  font-size: clamp(50px, 7.2vw, 94px);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.hero-home .hero-sub {
  display: inline-block;
  margin-top: 24px;
  padding-left: 0;
  border-left: 0;
  font-size: clamp(21px, 2.15vw, 31px);
  line-height: 1.42;
}
.hero-home .hero-lede {
  max-width: 720px;
  margin: 18px auto 0;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.78;
}
.hero-home .hero-actions { justify-content: center; margin-top: 28px; }
.hero-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.hero-values li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .76);
}
.hero-values .icon { width: 13px; height: 13px; color: #37D67A; stroke-width: 2.4; }
.hero-home .hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 780px;
  margin: 30px auto 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  text-align: left;
}
.hero-proof > div { padding: 0 18px; border-left: 1px solid rgba(255, 255, 255, .1); }
.hero-proof > div:first-child { border-left: 0; padding-left: 0; }
.hero-proof dt {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero-proof dt small { margin-left: 2px; font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: .02em; color: rgba(255, 255, 255, .6); }
.hero-proof dd { margin-top: 7px; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; color: rgba(255, 255, 255, .6); }
.hero-proof-note { margin-top: 13px; text-align: center; font-family: var(--mono); font-size: 9.5px; letter-spacing: .05em; color: rgba(255, 255, 255, .6); }
.hero-home .hero-meta { justify-content: center; margin-top: 16px; font-size: 11.5px; }

.hero-sub {
  margin-top: 20px;
  padding-left: 16px;
  border-left: 2px solid var(--orange);
  font-size: clamp(20px, 1.55vw, 23px);
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -.012em;
  color: rgba(255, 255, 255, .84);
  text-wrap: pretty;
}
.hero-sub strong { color: #fff; font-weight: 800; }
.hero-sub + .hero-lede { margin-top: 14px; }

.hero-lede {
  max-width: 560px;
  margin-top: 24px;
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 1.75;
  color: rgba(255, 255, 255, .7);
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .62);
}
.hero-meta b { color: rgba(255, 255, 255, .8); font-weight: 500; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-stats > div { padding-right: 12px; }
.hero-stats > div + div { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .1); }
.hero-stats dt {
  font-size: clamp(25px, 2.25vw, 32px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.hero-stats dd {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: .015em;
  color: rgba(255, 255, 255, .54);
}

/* hero product stage */
.hero-stage {
  position: relative;
  height: clamp(440px, 38vw, 540px);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 20px;
  background: #0B1526;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 78%);
}
.stage-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 76% 24%, rgba(255, 90, 31, .22), transparent 40%),
    radial-gradient(circle at 22% 78%, rgba(46, 99, 240, .22), transparent 42%),
    radial-gradient(circle at 62% 62%, rgba(31, 168, 102, .14), transparent 40%);
  filter: blur(10px);
  pointer-events: none;
}
.stage-live {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  background: rgba(10, 18, 32, .78);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .66);
}
.stage-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #37D67A;
  box-shadow: 0 0 0 3px rgba(55, 214, 122, .16);
  animation: blink 2.2s infinite;
}

.stage-win {
  position: absolute;
  margin: 0;
  background: #0B1220;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}
.stage-win-a {
  top: 38px;
  left: 24px;
  width: min(74%, 430px);
  z-index: 2;
  transform: rotate(-2deg);
  animation: floatA 9s ease-in-out infinite;
}
.stage-win-b {
  right: 20px;
  bottom: 24px;
  width: min(68%, 390px);
  z-index: 3;
  transform: rotate(1.6deg);
  animation: floatB 10.5s ease-in-out infinite;
}
.stage-win-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding-inline: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: #0E1728;
}
.stage-win-bar span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.stage-win-bar span:first-child { background: #FF6B57; }
.stage-win-bar span:nth-child(2) { background: #FFC24B; }
.stage-win-bar span:nth-child(3) { background: #37D67A; }
.stage-win-bar em {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .55);
}
.stage-win-a .stage-win-bar em { color: rgba(89, 160, 255, .85); }
.stage-win-b .stage-win-bar em { color: rgba(55, 214, 122, .85); }
.stage-win img { width: 100%; height: auto; display: block; }
.stage-win figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: #0B1220;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .64);
}
.stage-win figcaption img { width: 16px; height: 16px; border-radius: 4px; }
.motion-ico { width: 14px; height: 14px; color: #37D67A; }

.stage-chip {
  position: absolute;
  z-index: 5;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  background: rgba(10, 18, 32, .82);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .82);
}
.chip-a { top: 16px; left: 16px; }
.chip-b { bottom: 14px; left: 16px; }
.chip-c { right: 16px; bottom: 14px; }

@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(-2deg); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(1.6deg); }
  50% { transform: translateY(7px) rotate(1.6deg); }
}
@keyframes blink { 50% { opacity: .35; } }

/* ---------- Platforms ---------- */

.platforms {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 30px 0 34px;
}
.platform-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.mini-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}
.compare-head .mini-label { color: rgba(255, 255, 255, .6); }
.platform-head > p:last-child { font-size: 12px; color: var(--muted-2); }

.platform-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.platform {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  transition: background .2s;
}
.platform:last-child { border-right: 0; }
.platform:hover { background: var(--surface-2); }
.mono-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--ink-2);
  flex: none;
}
.platform b { display: block; font-size: 13.5px; font-weight: 650; line-height: 1.3; }
.platform small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted-2); }

/* ---------- Sections ---------- */

.sec { padding: clamp(72px, 7vw, 104px) 0; }
.products { background: var(--bg); }
.solutions { background: var(--surface); }
.why { background: var(--bg); }
.features { background: var(--surface); }
.ai { background: var(--bg); }
.toolkit { background: var(--surface); }

main section[id] { scroll-margin-top: calc(var(--header-h) + 10px); }

.sec-head {
  max-width: 800px;
  margin: 0 auto clamp(32px, 3.6vw, 48px);
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .13em;
  color: var(--muted);
}
.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--orange);
}
.sec-head h2 {
  margin-top: 12px;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.sec-head > p:last-child {
  max-width: 660px;
  margin: 14px auto 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  text-wrap: pretty;
}
.sec-head-dark h2 { color: #fff; }
.sec-head-dark > p:last-child { color: rgba(255, 255, 255, .6); }
.sec-head-dark .eyebrow { color: rgba(255, 255, 255, .5); }

/* ---------- Products ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.product-card {
  --accent: var(--blue);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 3px 0 var(--accent);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.product-motion { --accent: var(--green); }

.product-media {
  position: relative;
  padding: 18px;
  background: var(--navy);
}
.product-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .13);
  transition: transform .7s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.018); }
.media-tag {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  background: rgba(10, 18, 32, .82);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .78);
}
.media-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.product-content { display: flex; flex-direction: column; flex: 1; padding: 28px 30px 30px; }
.product-title { display: flex; align-items: center; gap: 13px; }
.product-logo { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.product-title h3 { font-size: 27px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.product-title span { display: block; margin-top: 3px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; color: var(--muted); }
.product-lead { margin-top: 16px; font-size: 15px; line-height: 1.8; color: var(--ink-2); text-wrap: pretty; }

.mini-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
  margin-top: 20px;
}
.mini-checks li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}
.mini-checks .icon { width: 15px; height: 15px; margin-top: 3px; color: var(--accent); stroke-width: 2; }

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.chips { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--muted-2); }
.chips i { font-style: normal; color: var(--orange-ink); padding-inline: 3px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  transition: color .2s, gap .2s var(--ease);
}
.card-link .icon { width: 15px; height: 15px; }
.card-link:hover { color: var(--accent-ink, var(--accent, var(--orange-ink))); gap: 10px; }

.coop-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  padding: 17px 20px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--muted);
}
.coop-note .icon { width: 15px; height: 15px; color: var(--orange); }

/* ---------- Use cases ---------- */

.use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.use-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.use-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.use-media { height: 190px; overflow: hidden; background: var(--navy); }
.use-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.use-card:hover .use-media img { transform: scale(1.045); }
.use-body { display: flex; flex-direction: column; flex: 1; padding: 0 22px 24px; }
.use-body .icon-tile {
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border-radius: 11px;
  box-shadow: 0 0 0 4px #fff;
  position: relative;
  z-index: 2;
}
.use-body h3 { margin-top: 13px; font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.use-body p { margin-top: 8px; font-size: 13.5px; line-height: 1.75; color: var(--muted); }
.use-body .card-link { margin-top: 16px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag-row li {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .02em;
  color: var(--muted);
}

/* ---------- Why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 30px;
  align-items: stretch;
}
.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}
.benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .25s, box-shadow .25s;
}
.benefit:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.benefit-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.benefit-note .icon { width: 15px; height: 15px; color: var(--orange); flex: none; }
.benefit .icon-tile { width: 42px; height: 42px; border-radius: 11px; }
.benefit h3 { font-size: 16.5px; font-weight: 720; }
.benefit p { margin-top: 5px; font-size: 13px; line-height: 1.7; color: var(--muted); }

.compare-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.compare-head .mini-label { color: rgba(255, 255, 255, .6); }
.compare-head strong {
  display: block;
  margin-top: 10px;
  font-size: 46px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.04em;
}
.compare-head strong i { font-style: normal; color: var(--orange); padding-inline: 6px; }
.compare-head p { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .54); }
.compare-table { margin-top: 24px; border-top: 1px solid var(--navy-line); }
.compare-row {
  display: grid;
  grid-template-columns: 72px 1fr 1.55fr;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--navy-line);
  font-size: 12px;
}
.compare-row > span:first-child { color: rgba(255, 255, 255, .65); }
.compare-row > span:nth-child(2) { color: rgba(255, 255, 255, .5); }
.compare-row-head { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; color: rgba(255, 255, 255, .62); }
.compare-row-head > span { color: rgba(255, 255, 255, .62) !important; }
.yes { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .88); }
.yes .icon { width: 13px; height: 13px; color: #37D67A; stroke-width: 2.2; }

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
  padding: 30px 32px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
}
.metrics-band > div + div { padding-left: 24px; border-left: 1px solid var(--navy-line); }
.metrics-band strong {
  display: block;
  font-size: clamp(34px, 3.2vw, 44px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.metrics-band span {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .64);
}
.metrics-band small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 10px; color: rgba(255, 255, 255, .56); }

/* ---------- Data path ---------- */

.path {
  position: relative;
  padding: clamp(88px, 9vw, 128px) 0;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.path::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  pointer-events: none;
}
.path .wrap { position: relative; }

.path-panel {
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid var(--navy-line-2);
  border-radius: var(--radius);
  background: #0B1526;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0, 0, 0, .35);
}
.console-head,
.console-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .07em;
  color: rgba(255, 255, 255, .5);
}
.console-head { height: 46px; border-bottom: 1px solid var(--navy-line); }
.console-head-left,
.console-head-right { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.console-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.console-dim { color: rgba(255, 255, 255, .55); }
.console-live { color: #37D67A; }
.console-coord { color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }
.console-body { position: relative; height: 380px; }
#signalCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.console-foot { height: 44px; border-top: 1px solid var(--navy-line); }
.console-foot b { color: rgba(255, 255, 255, .82); font-weight: 500; }
.console-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  color: rgba(255, 255, 255, .6);
}
.console-fallback span { font-size: 10px; letter-spacing: .14em; color: var(--orange); }
.console-fallback b { font-size: 12px; font-weight: 400; }
.console-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--orange);
  border-style: solid;
  opacity: .8;
  pointer-events: none;
}
.console-corner.tl { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.console-corner.tr { top: 8px; right: 8px; border-width: 1px 1px 0 0; }
.console-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 1px 1px; }
.console-corner.br { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }

.path-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1080px;
  margin: 28px auto 0;
}
.path-step { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); }
.path-step > span { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--orange); }
.path-step h3 { margin-top: 8px; font-size: 16px; font-weight: 650; color: #fff; }
.path-step p { margin-top: 5px; font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .62); }

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature-card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.feature-index {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted-2);
}
.feature-card h3 { margin-top: 18px; font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.feature-card p { margin-top: 8px; font-size: 13.5px; line-height: 1.75; color: var(--muted); }
.feature-card .tag-row { margin-top: 16px; }

/* ---------- AI ---------- */

.ai-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.ai-copy h2 {
  margin-top: 14px;
  font-size: clamp(36px, 3.6vw, 50px);
  font-weight: 820;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.ai-lede { margin-top: 16px; font-size: 15.5px; line-height: 1.85; color: var(--muted); text-wrap: pretty; }
.ai-points { margin-top: 26px; }
.ai-points li {
  display: flex;
  gap: 13px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.ai-points li:last-child { border-bottom: 1px solid var(--line); }
.ai-points .icon-tile { width: 40px; height: 40px; border-radius: 10px; }
.ai-points h3 { font-size: 15px; font-weight: 700; }
.ai-points p { margin-top: 4px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.ai-copy .btn { margin-top: 26px; }

.ai-terminal-wrap { position: relative; }
.ai-terminal {
  background: var(--navy);
  color: #D5DBE0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.term-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 46px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--navy-line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .6);
}
.term-mode { padding: 4px 8px; border: 1px solid rgba(255, 90, 31, .5); border-radius: 5px; color: var(--orange); }
.term-body { padding: 24px 22px; min-height: 330px; font-family: var(--mono); font-size: 12.5px; line-height: 1.8; }
.term-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  color: #fff;
  font-size: 13.5px;
  line-height: 1.7;
}
.term-caret { color: var(--orange); }
.term-cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: var(--orange);
  vertical-align: -2px;
  animation: caret 1.1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.term-plan { margin-top: 22px; }
.term-line { display: flex; gap: 10px; padding-block: 4px; color: rgba(213, 219, 224, .74); }
.js .term-plan .term-line { opacity: 0; transform: translateY(4px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.js .term-plan .term-line.is-on { opacity: 1; transform: none; }
.term-tag { flex: none; width: 46px; padding-top: 2px; font-size: 10px; letter-spacing: .06em; color: #37D67A; }

.term-diff { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--navy-line); }
.diff-line {
  display: grid;
  grid-template-columns: 16px minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 8px;
  padding-block: 5px;
  font-size: 11.5px;
}
.js .diff-line { opacity: 0; transform: translateY(4px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.js .diff-line.is-on { opacity: 1; transform: none; }
.diff-mark { color: rgba(255, 255, 255, .55); }
.diff-mod .diff-mark { color: #FFB000; }
.diff-add .diff-mark { color: #37D67A; }
.diff-key { color: #A9B3BC; overflow-wrap: anywhere; }
.diff-val { color: #fff; text-align: right; }
.diff-mod .diff-val { color: #FFD37A; }
.diff-add .diff-val { color: #37D67A; }

.term-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 48px;
  padding-inline: 16px;
  border-top: 1px solid var(--navy-line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .6);
}
.term-foot b { color: #fff; font-weight: 500; }
.term-pill { padding: 3px 7px; border: 1px solid rgba(255, 176, 0, .45); border-radius: 5px; color: #FFB000; }
.term-actions { margin-left: auto; display: flex; gap: 7px; }
.term-actions i {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 5px;
  font-style: normal;
  color: rgba(255, 255, 255, .66);
}
.term-actions i:first-child { border-color: rgba(255, 90, 31, .6); color: var(--orange); }
.ai-caption { margin-top: 12px; font-family: var(--mono); font-size: 10.5px; line-height: 1.7; color: var(--muted); }
.ai-caption span { color: var(--ink-2); }

/* ---------- Industries ---------- */

.industries {
  position: relative;
  padding: clamp(88px, 9vw, 128px) 0;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.industries::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 320px at 20% 20%, rgba(46, 99, 240, .12), transparent 60%),
    radial-gradient(500px 320px at 82% 78%, rgba(255, 90, 31, .1), transparent 60%);
  pointer-events: none;
}
.industries .wrap { position: relative; }
.industry-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.industry {
  padding: 24px 20px;
  border: 1px solid var(--navy-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
  transition: background .25s, border-color .25s, transform .3s var(--ease);
}
.industry:hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .18); transform: translateY(-4px); }
.industry h3 { margin-top: 16px; font-size: 18px; font-weight: 700; }
.industry p { margin-top: 6px; font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .5); }
.industries .tag-row li {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .54);
}
.industry-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding: 26px 30px;
  border: 1px solid var(--navy-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
}
.industry-cta p { font-size: 14px; color: rgba(255, 255, 255, .66); }

/* ---------- Toolkit ---------- */

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.sample-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.sample-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.sample-media { height: 180px; overflow: hidden; background: var(--navy); }
.sample-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.sample-card:hover .sample-media img { transform: scale(1.045); }
.sample-body { padding: 22px 24px 24px; }
.sample-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--orange-ink); }
.sample-body h3 { margin-top: 8px; font-size: 20px; font-weight: 750; }
.sample-body p { margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.sample-body .card-link { margin-top: 16px; }

.eco-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 48px 0 18px;
}
.eco-head h3 { font-size: 24px; font-weight: 780; letter-spacing: -.02em; }
.eco-head p { font-size: 12.5px; color: var(--muted); }
.eco-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.eco-card {
  display: flex;
  gap: 13px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .25s, box-shadow .25s;
}
.eco-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.eco-card .icon-tile { width: 42px; height: 42px; border-radius: 11px; }
.eco-card h4 { font-size: 14.5px; font-weight: 700; }
.eco-card p { margin-top: 4px; font-size: 12px; line-height: 1.65; color: var(--muted); }

.dev-strip {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  margin-top: 48px;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.dev-copy h3 { margin-top: 12px; font-size: 32px; font-weight: 820; line-height: 1.2; letter-spacing: -.03em; }
.dev-copy p { margin-top: 12px; font-size: 13.5px; line-height: 1.75; color: var(--muted); }
.dev-copy .card-link { margin-top: 16px; }

.dev-code {
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  overflow: hidden;
}
.dev-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--navy-line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .58);
}
.code-row {
  position: relative;
  padding: 15px 16px 17px;
  border-bottom: 1px solid var(--navy-line);
}
.code-row:last-child { border-bottom: 0; }
.code-label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: rgba(255, 255, 255, .55); }
.code-row pre { margin: 9px 0 0; overflow-x: auto; padding-right: 48px; font-family: var(--mono); font-size: 12px; line-height: 1.8; color: #C9D1D9; }
.code-row pre:focus-visible { outline-offset: -2px; }
.c-path { color: #fff; }
.c-flag { color: #FF8A5B; }
.c-val { color: #37D67A; }
.copy-btn {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 5px;
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .6);
  transition: color .2s, border-color .2s;
}
.copy-btn:hover { color: var(--orange); border-color: rgba(255, 90, 31, .6); }
.copy-btn.is-copied { color: #37D67A; border-color: rgba(55, 214, 122, .5); }

/* ---------- Contact ---------- */

.contact {
  position: relative;
  padding: clamp(72px, 7vw, 104px) 0;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    radial-gradient(560px 380px at 18% 22%, rgba(46, 99, 240, .16), transparent 62%),
    radial-gradient(520px 380px at 84% 80%, rgba(255, 90, 31, .14), transparent 62%);
  background-size: 88px 88px, 88px 88px, auto, auto;
}
.contact::after {
  content: "Δ";
  position: absolute;
  right: -2vw;
  bottom: -14vw;
  font-size: 44vw;
  line-height: 1;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .035);
  pointer-events: none;
}
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.eyebrow-dark { color: rgba(255, 255, 255, .5); }
.contact-title {
  margin-top: 12px;
  font-size: clamp(40px, 4.3vw, 58px);
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: -.04em;
  color: #fff;
}
.contact-lede { max-width: 480px; margin-top: 14px; font-size: 14.5px; line-height: 1.75; color: rgba(255, 255, 255, .68); }
.contact-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.contact-chips li {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .6);
}
.contact-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--navy-line); }
.contact-meta span { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: rgba(255, 255, 255, .6); }
.contact-meta b { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 600; letter-spacing: .01em; color: #fff; }

.contact-form {
  position: relative;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, .32);
}
.form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.form-consent input { margin-top: 3px; accent-color: var(--orange); }
.form-consent a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 2px; }
.form-consent.is-invalid { color: #B42318; }
.field-error {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
  color: #B42318;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #D92D20; background: #FFF7F5; }
.form-error {
  margin: 0 0 10px;
  padding: 9px 11px;
  border: 1px solid rgba(217, 45, 32, .24);
  border-radius: 8px;
  background: #FFF7F5;
  font-size: 12.5px;
  line-height: 1.55;
  color: #B42318;
}
.form-error[hidden] { display: none; }
.form-head span { font-size: 16px; font-weight: 700; }
.form-head em { font-style: normal; font-size: 11px; color: var(--muted-2); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-row .field { margin-bottom: 0; }
.field > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.field > span i { font-style: normal; color: var(--orange-ink); }
.field > span em { margin-left: 5px; font-style: normal; font-weight: 400; color: var(--muted-2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(255, 90, 31, .65);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, .1);
}
.field textarea { resize: vertical; min-height: 88px; }
.field.is-invalid input,
.field.is-invalid select { border-color: var(--orange); background: #fff7f3; }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.form-foot p { max-width: 250px; font-size: 11px; line-height: 1.6; color: var(--muted-2); }
.form-static-note { margin-top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .02em; color: var(--muted-2); }

.form-success {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}
.form-success[hidden] { display: none; }
.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(31, 168, 102, .1);
  color: var(--green);
  margin-bottom: 4px;
}
.success-mark .icon { width: 24px; height: 24px; stroke-width: 2.2; }
.form-success b { font-size: 19px; font-weight: 750; }
.form-success p { max-width: 330px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.success-reset {
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
}
.success-reset:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Footer ---------- */

.site-footer {
  background: #09131F;
  color: #fff;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 44px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { max-width: 300px; font-size: 13px; line-height: 1.8; color: rgba(255, 255, 255, .62); }
.footer-build { display: block; margin-top: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: rgba(255, 255, 255, .5); }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .6);
  text-transform: uppercase;
}
.footer-col a { display: block; margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .62); transition: color .2s; }
.footer-col a:hover { color: var(--orange); }
.footer-dim { display: block; margin-top: 14px; font-family: var(--mono); font-size: 10px; line-height: 1.6; color: rgba(255, 255, 255, .5); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .56);
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity .75s var(--ease), translate .75s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 720px; }
  .hero-stage { height: clamp(420px, 48vw, 520px); max-width: 820px; width: 100%; }
  .hero-title { font-size: clamp(46px, 6.6vw, 76px); }
  .hero-stats { max-width: 700px; }

  .platform-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .platform:nth-child(3n) { border-right: 0; }
  .platform:nth-child(-n+3) { border-bottom: 1px solid var(--line); }

  .why-grid { grid-template-columns: 1fr; }
  .compare-card { max-width: 720px; }
  .metrics-band { max-width: 820px; }

  .use-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-grid { grid-template-columns: 1fr; }
  .ai-terminal-wrap { max-width: 760px; }
  .industry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .eco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev-strip { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 18px;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .3);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 16px;
  }
  .main-nav a::after { display: none; }
  .nav-products { display: block; width: 100%; }
  .nav-products-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 16px;
  }
  .nav-products-menu {
    position: static;
    width: auto;
    margin: 0;
    padding: 2px 0 8px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .nav-products-menu a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    border-radius: 0;
    color: rgba(255, 255, 255, .72);
  }
  .nav-products-menu a:hover { background: transparent; color: #fff; }
  .nav-products-menu a.is-current,
  .nav-products-menu a.is-active { background: transparent; color: #fff; box-shadow: inset 2px 0 0 var(--np, var(--orange)); padding-left: 10px; }
  .nav-products-label { display: none; }
  .nav-products-menu .np-name { color: #fff; font-size: 14px; }
  .np-desc { color: rgba(255, 255, 255, .45); }
  .nav-products-all { padding-left: 12px; border-top: 0; color: #5BD8EF; }
  .nav-toggle { display: block; }
  .header-side { margin-left: auto; }
  .version-chip { display: none; }

  .product-grid { grid-template-columns: 1fr; }
  .product-card { max-width: 760px; }
  .use-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-list { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sample-grid { grid-template-columns: 1fr; }
  .sample-card { max-width: 680px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { max-width: 640px; }
  .contact-form { max-width: 720px; }
  .path-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .brand-sub { display: none; }
  .header-side .btn-sm { display: none; }

  .hero-grid { padding-top: 36px; padding-bottom: 48px; }
  .hero-home .hero-home-inner { padding-block: 44px 52px; }
  .hero-home .hero-title { font-size: clamp(40px, 11.4vw, 58px); line-height: 1.04; }
  .hero-home .hero-sub { margin-top: 16px; font-size: 19px; }
  .hero-home .hero-lede { margin-top: 14px; font-size: 14.5px; line-height: 1.7; }
  .hero-values { gap: 6px; margin-top: 18px; }
  .hero-values li { padding: 6px 9px; font-size: 11.5px; }
  .hero-home .hero-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; padding-top: 18px; }
  .hero-proof > div { padding: 0 0 0 14px; }
  .hero-proof > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hero-proof > div:nth-child(n+3) { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .hero-proof dt { font-size: 26px; }
  .hero-home .hero-meta { margin-top: 14px; font-size: 10.5px; }
  .hero-title { font-size: clamp(38px, 10vw, 52px); }
  .hero-sub { margin-top: 16px; padding-left: 12px; font-size: 18px; }
  .hero-lede { margin-top: 12px; font-size: 14.5px; line-height: 1.7; }
  .hero-actions { flex-direction: column; align-items: stretch; margin-top: 22px; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 7px 12px; margin-top: 14px; }
  .hero-stats { margin-top: 24px; padding-top: 15px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats > div { padding: 10px 0; }
  .hero-stats > div + div { border-left: 0; padding-left: 0; }
  .hero-stats > div:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .1); padding-left: 16px; }
  .hero-stats > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .hero-stats dd { font-size: 10.5px; }

  .hero-stage { height: 360px; border-radius: 16px; }
  .stage-win-a { top: 36px; left: 12px; width: 80%; }
  .stage-win-b { right: 10px; bottom: 12px; width: 76%; }
  .stage-chip { font-size: 9px; padding: 5px 8px; }
  .chip-c { display: none; }
  .stage-live { top: 12px; right: 12px; }

  .platform-head { display: block; }
  .platform-head > p:last-child { margin-top: 6px; }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform:nth-child(3n) { border-right: 1px solid var(--line); }
  .platform:nth-child(2n) { border-right: 0; }
  .platform:nth-child(-n+4) { border-bottom: 1px solid var(--line); }

  .sec { padding: 52px 0; }
  .sec-head { margin-bottom: 26px; }
  .sec-head h2 { font-size: clamp(29px, 8vw, 38px); }
  .sec-head > p:last-child { margin-top: 10px; font-size: 13.5px; line-height: 1.7; }
  .use-grid, .feature-grid, .industry-grid, .eco-grid { grid-template-columns: 1fr; }
  .use-media { height: 200px; }
  .mini-checks { grid-template-columns: 1fr; }
  .product-content { padding: 24px; }
  .product-title h3 { font-size: 25px; }
  .product-foot { flex-direction: column; align-items: flex-start; }
  .coop-note { justify-content: flex-start; }

  .compare-card { padding: 24px; }
  .compare-row { grid-template-columns: 60px 1fr 1.4fr; gap: 8px; font-size: 12px; line-height: 1.55; }
  .compare-row-head { font-size: 10px; }
  .compare-head strong { font-size: 38px; }
  .metrics-band { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px; gap: 18px; }
  .metrics-band > div + div { border-left: 0; padding-left: 0; }
  .metrics-band > div:nth-child(even) { border-left: 1px solid var(--navy-line); padding-left: 18px; }
  .metrics-band > div:nth-child(n+3) { border-top: 1px solid var(--navy-line); padding-top: 18px; }

  .path-steps { grid-template-columns: 1fr; }
  .console-body { height: 300px; }
  .console-foot { font-size: 9px; gap: 8px; }
  .console-head { font-size: 9px; }
  .console-coord { display: none; }

  .ai-terminal .term-body { padding: 20px 16px; min-height: 300px; }
  .term-prompt { font-size: 12.5px; }
  .diff-line { grid-template-columns: 14px 1fr; }
  .diff-val { grid-column: 2; text-align: left; }
  .term-foot { flex-wrap: wrap; height: auto; padding-block: 12px; gap: 10px; }

  .industry-cta { flex-direction: column; align-items: flex-start; }
  .industry-cta .btn { width: 100%; }

  .eco-head { display: block; margin-top: 40px; }
  .eco-head p { margin-top: 5px; }
  .dev-strip { padding: 24px; }
  .dev-copy h3 { font-size: 28px; }
  .code-row pre { font-size: 11px; }

  .contact { padding: 52px 0; }
  .contact-title { font-size: clamp(36px, 9.6vw, 44px); }
  .contact-lede { margin-top: 12px; font-size: 14px; }
  .contact-chips { margin-top: 16px; }
  .contact-meta { gap: 16px 22px; margin-top: 20px; padding-top: 16px; }
  .contact-form { padding: 20px; }
  .form-head { margin-bottom: 14px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-row .field { margin-bottom: 14px; }
  .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .form-foot .btn { width: 100%; }
  .form-foot p { max-width: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; translate: 0 0; }
  .js .term-plan .term-line,
  .js .diff-line { opacity: 1; transform: none; }
  .stage-win-a, .stage-win-b { animation: none; }
  .stage-live i { animation: none; }
}
/* hero stage pointer parallax (composes with float transform) */
.stage-win-a { translate: calc(var(--px, 0) * 5px) calc(var(--py, 0) * 4px); }
.stage-win-b { translate: calc(var(--px, 0) * -7px) calc(var(--py, 0) * -5px); }
@media (prefers-reduced-motion: reduce) {
  .stage-win-a, .stage-win-b { translate: 0 0; }
}

/* home trend strip: from tools to agents */
.trend { background: var(--surface); border-block: 1px solid var(--line); }
.trend-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: clamp(22px, 3vw, 40px);
  padding-block: 32px;
  align-items: start;
}
.trend-lead { margin: 0; font-size: 19px; font-weight: 750; line-height: 1.45; letter-spacing: -.02em; color: var(--ink); }
.trend-item > span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--orange-ink); }
.trend-item h3 { margin-top: 8px; font-size: 17px; font-weight: 700; color: var(--ink); }
.trend-item p { margin-top: 6px; font-size: 13px; line-height: 1.75; color: var(--muted); }

/* switcher visuals are clickable through to product pages */
a.switch-visual { cursor: pointer; }
a.switch-visual::after {
  content: attr(data-cta);
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 7px;
  background: rgba(10, 18, 32, .82);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  translate: 0 4px;
  transition: opacity .2s, translate .2s;
  pointer-events: none;
}
a.switch-visual:hover::after, a.switch-visual:focus-visible::after { opacity: 1; translate: 0 0; }
a.switch-visual img { transition: transform .4s ease; }
a.switch-visual:hover img { transform: scale(1.02); }

@media (max-width: 1024px) {
  .trend-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; padding-block: 26px; }
}
@media (max-width: 760px) {
  .trend-grid { grid-template-columns: 1fr; gap: 14px; padding-block: 22px; }
  .trend-lead { font-size: 18px; }
  .trend-item h3 { font-size: 16px; }
  .trend-item p { font-size: 12.5px; line-height: 1.65; }
  .trend-lead br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  a.switch-visual::after { transition: none; }
  a.switch-visual img { transition: none; }
}

/* ---------- Long-page navigation and mobile disclosure ---------- */
.back-top {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(10, 18, 32, .9);
  color: #fff;
  box-shadow: 0 12px 28px rgba(10, 18, 32, .24);
  opacity: 0;
  pointer-events: none;
  translate: 0 8px;
  transition: opacity .2s, translate .2s;
}
.back-top.is-visible { opacity: 1; pointer-events: auto; translate: 0 0; }
.back-top .icon { width: 18px; height: 18px; }
.mobile-collapse-btn { display: none; }

@media (max-width: 900px) {
  .back-top { display: none; }
}

@media (max-width: 680px) {
  .mobile-collapse-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--surface);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
  }
  [data-mobile-collapse].is-collapsed > :nth-child(n+5) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .back-top { transition: none; }
}
