@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/ui/landing/fonts/schibsted-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/ui/landing/fonts/schibsted-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/ui/landing/fonts/schibsted-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/ui/landing/fonts/schibsted-grotesk-900.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #03113f;
  --ink-2: #061f74;
  --paper: #f7fbff;
  --paper-2: #d8ecff;
  --muted: #a8c5e8;
  --line: rgba(211, 235, 255, 0.2);
  --line-strong: rgba(211, 235, 255, 0.36);
  --green: #6ff4ff;
  --green-deep: #135be8;
  --amber: #efb65f;
  --red: #f17762;
  --blue: #1b6dff;
  --blue-2: #00c8ff;
  --violet: #8aa7ff;
  --panel: rgba(6, 34, 98, 0.58);
  --panel-2: rgba(220, 242, 255, 0.11);
  --shadow: 0 32px 100px rgba(0, 18, 70, 0.46);
  --grotesk: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --my: 50%;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* color-scheme: dark paints the canvas near-black where the body gradient
     does not reach (below the hero, overscroll). Anchor it to the gradient's
     bottom color so no black gap shows. */
  background-color: #02113f;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background:
    repeating-linear-gradient(90deg, rgba(116, 229, 255, 0.18) 0 18px, rgba(13, 74, 202, 0.34) 18px 38px, rgba(4, 26, 91, 0.82) 38px 74px),
    linear-gradient(90deg, rgba(211, 235, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(211, 235, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #04256f 0%, #062a9a 42%, #02113f 100%);
  background-size: 180px 100%, 72px 72px, 72px 72px, 100% 100%;
  font-family: var(--grotesk);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  animation: background-drift 18s linear infinite;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 18%, transparent 72%, rgba(130, 245, 255, 0.28)),
    linear-gradient(180deg, rgba(4, 12, 58, 0.08), rgba(1, 6, 31, 0.48)),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255, 255, 255, 0.09) 31px 32px);
  mix-blend-mode: screen;
  opacity: 0.72;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.92), rgba(95, 217, 255, 0.55) 28%, rgba(4, 26, 106, 0.98) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.34) 0 18px, rgba(0, 129, 255, 0.86) 18px 42px, rgba(0, 28, 117, 0.96) 42px 76px);
  transform-origin: top;
  animation: page-curtain 1180ms cubic-bezier(0.7, 0, 0.2, 1) 90ms forwards;
}

@keyframes background-drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 180px 0, 0 0, 0 0, 0 0; }
}

@keyframes page-curtain {
  0% { opacity: 1; transform: scaleY(1); filter: blur(0); }
  58% { opacity: 0.98; transform: scaleY(0.36); }
  100% { opacity: 0; transform: scaleY(0); filter: blur(10px); visibility: hidden; }
}

@keyframes lift-in {
  from { opacity: 0; transform: translateY(34px); filter: blur(12px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes glass-drop {
  from { opacity: 0; transform: translate(-50%, -18px); filter: blur(12px); }
  to { opacity: 1; transform: translate(-50%, 0); filter: blur(0); }
}

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

::selection {
  color: #071009;
  background: var(--green);
}

.site-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1180px, calc(100% - 28px));
  min-height: 58px;
  padding: 0 10px 0 16px;
  transform: translateX(-50%);
  opacity: 0;
  background: rgba(3, 31, 101, 0.45);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 56px rgba(1, 11, 58, 0.32);
  animation: glass-drop 720ms cubic-bezier(0.22, 1, 0.36, 1) 620ms forwards;
  transition: opacity 420ms ease, transform 540ms cubic-bezier(0.22, 1, 0.36, 1), filter 420ms ease;
  will-change: opacity, transform;
}

/* Once the entrance animation settles, the class owns the resting state so
   hide/show transitions run cleanly instead of fighting the animation fill. */
.site-nav.nav-settled {
  animation: none;
  opacity: 1;
  transform: translate(-50%, 0);
  filter: blur(0);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.brand-mark {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid var(--green);
  background:
    linear-gradient(90deg, transparent 43%, var(--green) 43% 57%, transparent 57%),
    linear-gradient(180deg, transparent 43%, var(--green) 43% 57%, transparent 57%);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(239, 182, 95, 0.75);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 46px);
  color: var(--paper-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links a,
.nav-action {
  position: relative;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  color: var(--paper);
}

.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  color: #061a50;
  background: rgba(247, 251, 255, 0.92);
  border: 1px solid rgba(247, 251, 255, 0.72);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-action:hover {
  color: #03113f;
  background: #ffffff;
  box-shadow: 0 0 30px rgba(111, 244, 255, 0.36);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(460px, 1.14fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(118px, 12vw, 154px) 0 clamp(42px, 6vw, 64px);
  perspective: 1400px;
}

.hero-mesh {
  position: absolute;
  inset: 84px -28px 10px;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  border: 1px solid rgba(241, 236, 217, 0.06);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 18px, rgba(60, 184, 255, 0.28) 18px 36px, rgba(4, 31, 111, 0.55) 36px 72px),
    linear-gradient(90deg, rgba(104, 244, 255, 0.22), transparent 22%, transparent 76%, rgba(169, 220, 255, 0.22)),
    linear-gradient(180deg, rgba(247, 251, 255, 0.08), transparent 35%, rgba(0, 10, 54, 0.34)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 36px);
  background-size: 180px 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  animation: band-slide 14s linear infinite, lift-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 260ms both;
}

.hero-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(111, 244, 255, 0.3) 42% 43%, transparent 43% 100%),
    linear-gradient(245deg, transparent 0 56%, rgba(247, 251, 255, 0.18) 56% 57%, transparent 57% 100%);
  transform: none;
  transition: none;
}

@keyframes band-slide {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 180px 0, 0 0, 0 0, 0 0, 0 0; }
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 18px;
  padding: 0 12px;
  color: var(--green);
  background: rgba(247, 251, 255, 0.12);
  border: 1px solid rgba(211, 235, 255, 0.2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy > * {
  opacity: 0;
  animation: lift-in 820ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-copy > :nth-child(1) { animation-delay: 520ms; }
.hero-copy > :nth-child(2) { animation-delay: 640ms; }
.hero-copy > :nth-child(3) { animation-delay: 760ms; }
.hero-copy > :nth-child(4) { animation-delay: 880ms; }
.hero-copy > :nth-child(5) { animation-delay: 980ms; }

.hero h1 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(4.4rem, 13vw, 10.8rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: 0;
}

.hero-lede {
  width: min(610px, 100%);
  margin: 28px 0 0;
  color: var(--paper-2);
  font-size: clamp(1.02rem, 1.4vw, 1.28rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 6px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: -120% -36%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.58) 48%, transparent 58%);
  transform: translateX(-62%) rotate(8deg);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 52px rgba(0, 96, 255, 0.28);
}

.button:hover::after { transform: translateX(62%) rotate(8deg); }

.button.primary {
  color: #03113f;
  background: #ffffff;
  border: 1px solid rgba(247, 251, 255, 0.8);
}

.button.primary:hover { background: #eaf9ff; }

.button.secondary {
  color: var(--paper);
  background: rgba(247, 251, 255, 0.1);
  border: 1px solid var(--line);
}

.button.secondary:hover { border-color: var(--line-strong); }

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.hero-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 0 10px;
  color: var(--paper-2);
  background: rgba(247, 251, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 11px;
  overflow-wrap: anywhere;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hero-strip span:hover {
  color: #ffffff;
  background: rgba(111, 244, 255, 0.16);
  border-color: rgba(111, 244, 255, 0.44);
  transform: translateY(-2px);
}

.hero-stage {
  position: relative;
  min-height: 610px;
  min-width: 0;
  transform-style: preserve-3d;
}

.product-shell {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 520px;
  overflow: hidden;
  opacity: 0;
  background: linear-gradient(180deg, rgba(10, 48, 130, 0.78), rgba(3, 13, 55, 0.82));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  animation: product-rise 920ms cubic-bezier(0.22, 1, 0.36, 1) 840ms forwards;
}

.product-shell:hover {
  border-color: rgba(247, 251, 255, 0.58);
  box-shadow: 0 40px 120px rgba(0, 87, 255, 0.42);
}

.product-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(111, 244, 255, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(247, 251, 255, 0.08), transparent 28%),
    repeating-linear-gradient(180deg, transparent 0 47px, rgba(247, 251, 255, 0.045) 47px 48px);
}

.product-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--my);
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(111, 244, 255, 0.92), transparent);
  opacity: 0.72;
}

@keyframes product-rise {
  from { opacity: 0; transform: translateY(42px); filter: blur(14px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.product-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
}

.product-top div {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.window-dot {
  width: 9px;
  height: 9px;
  background: var(--green);
  box-shadow: 0 0 22px rgba(111, 244, 255, 0.84);
}

.product-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 150px 1fr;
  min-width: 0;
  min-height: 472px;
}

.product-menu {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.product-menu span {
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.product-menu .active {
  color: #03113f;
  background: #ffffff;
  border-color: rgba(247, 251, 255, 0.8);
}

.product-menu span:hover {
  color: #ffffff;
  background: rgba(111, 244, 255, 0.14);
  border-color: rgba(111, 244, 255, 0.36);
  transform: translateX(2px);
}

.product-main {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  padding: 18px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.metric-row div {
  min-height: 94px;
  padding: 14px;
  background: rgba(3, 13, 55, 0.48);
  transition: background-color 180ms ease, transform 180ms ease;
}

.metric-row div:hover {
  background: rgba(12, 76, 176, 0.32);
  transform: translateY(-2px);
}

.metric-label {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-row strong {
  display: block;
  margin-top: 14px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1;
}

.review-board {
  display: grid;
  gap: 8px;
}

.finding-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) minmax(120px, 0.72fr);
  gap: 12px;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  color: var(--paper-2);
  background: rgba(247, 251, 255, 0.07);
  border: 1px solid rgba(247, 251, 255, 0.12);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.finding-row span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finding-row strong {
  overflow: hidden;
  color: var(--paper);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finding-row.active {
  background: rgba(111, 244, 255, 0.14);
  border-color: rgba(111, 244, 255, 0.42);
  transform: translateX(4px);
}

.finding-row:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(247, 251, 255, 0.32);
  transform: translateX(6px);
}

.severity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.severity::before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
}

.severity.high { color: var(--red); }
.severity.medium { color: var(--amber); }
.severity.low { color: var(--blue); }

.code-panel {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: rgba(1, 7, 36, 0.74);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  overflow: hidden;
}

.code-panel span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-hot {
  color: var(--green);
  background: rgba(111, 244, 255, 0.12);
}

.signal-card {
  position: absolute;
  z-index: 3;
  width: min(260px, 42vw);
  padding: 16px;
  opacity: 0;
  background: rgba(3, 20, 67, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  animation: lift-in 740ms cubic-bezier(0.22, 1, 0.36, 1) 1080ms forwards;
}

.signal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(111, 244, 255, 0.2), transparent 48%);
}

.signal-card:hover {
  border-color: rgba(111, 244, 255, 0.56);
  box-shadow: 0 26px 80px rgba(0, 110, 255, 0.36);
  transform: translateY(-5px);
}

.card-right { animation-delay: 1180ms; }

.card-left {
  left: -26px;
  bottom: 70px;
}

.card-right {
  right: -28px;
  top: 84px;
}

.signal-kicker {
  display: block;
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-card strong {
  position: relative;
  display: block;
  margin-top: 8px;
  color: var(--paper);
  font-size: 1.2rem;
}

.signal-card p {
  position: relative;
  margin: 8px 0 0;
  color: var(--paper-2);
  font-size: 0.9rem;
}

.peek {
  margin-top: -18px;
}

.workflow,
.surfaces,
.integrations,
.costs,
.footer {
  width: min(1180px, calc(100% - 36px));
  margin-left: auto;
  margin-right: auto;
}

.workflow,
.surfaces,
.integrations,
.costs {
  padding: clamp(72px, 9vw, 120px) 0;
}

.workflow {
  padding-bottom: 0;
  width: min(1460px, calc(100% - 24px));
}

.section-headline {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: end;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(2.4rem, 5.8vw, 5.4rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
}

.section-headline p,
.surface-copy p,
.costs-grid p {
  margin: 0;
  color: var(--paper-2);
  font-size: 1.02rem;
}

.workflow-story {
  --stage-accent: 141, 244, 255;
  --stage-accent-strong: #8df4ff;
  --workflow-zoom: 1;
  --float-drift: 0px;
  position: sticky;
  top: 42px;
  display: grid;
  grid-template-columns: minmax(300px, 0.36fr) minmax(700px, 1fr);
  gap: 0;
  align-items: start;
  min-height: calc(100svh - 54px);
  padding: 6px 0 28px;
}

.workflow-scroll-area {
  position: relative;
  min-height: 460svh;
  margin-top: 34px;
}

.workflow-story.stage-1 {
  --stage-accent: 239, 182, 95;
  --stage-accent-strong: #efb65f;
}

.workflow-story.stage-2 {
  --stage-accent: 120, 150, 255;
  --stage-accent-strong: #7896ff;
}

.workflow-story.stage-3 {
  --stage-accent: 126, 235, 166;
  --stage-accent-strong: #7eeba6;
}

.workflow-steps {
  position: relative;
  z-index: 5;
  align-self: stretch;
  align-content: space-between;
  display: grid;
  gap: 14px;
  margin-left:-70px;
  margin-right: 12px;
  padding-left: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Pipeline rail: the four stages read as one connected path. */
.workflow-steps::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 7px;
  width: 1px;
  background: rgba(221, 236, 255, 0.22);
}

.workflow-step::after {
  content: "";
  position: absolute;
  top: 21px;
  left: -15px;
  z-index: 2;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(221, 236, 255, 0.35);
  background: rgba(2, 9, 35, 0.9);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.workflow-step.is-done::after {
  border-color: rgba(var(--stage-accent), 0.7);
  background: rgba(var(--stage-accent), 0.55);
}

.workflow-step.is-active::after {
  border-color: rgb(var(--stage-accent));
  background: rgb(var(--stage-accent));
  box-shadow: 0 0 10px rgba(var(--stage-accent), 0.65);
}

/* Done cards stay legible instead of dropping back to ghost state. */
.workflow-step.is-done {
  opacity: 0.62;
  filter: grayscale(0.4) saturate(0.7);
}

.workflow-step,
.workflow-console,
.surface-stack article,
.tier,
.calculator {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 34, 98, 0.42);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.workflow-step {
  position: relative;
  min-height: 78px;
  padding: 12px 15px;
  cursor: pointer;
  transform: translateY(14px);
  opacity: 0.42;
  filter: grayscale(1) saturate(0.25);
  transition: opacity 300ms ease, transform 300ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, filter 220ms ease, outline-color 180ms ease;
}

.workflow-step::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 8px 0 0 8px;
  background: rgb(var(--stage-accent));
  opacity: 0;
  transition: opacity 180ms ease;
}

.workflow-step.is-visible,
.workflow-step.is-active {
  transform: translateY(0);
}

.workflow-step.is-visible {
  opacity: 0.48;
}

.workflow-step.is-active {
  background:
    linear-gradient(135deg, rgba(var(--stage-accent), 0.18), transparent 52%),
    rgba(8, 31, 76, 0.74);
  border-color: rgba(var(--stage-accent), 0.58);
  box-shadow: 0 30px 90px rgba(2, 9, 35, 0.42), 0 0 0 1px rgba(var(--stage-accent), 0.14);
  filter: none;
  opacity: 1;
  transform: translateX(4px) scale(1.02);
  z-index: 2;
}

.workflow-step.is-active::before {
  opacity: 1;
}

.workflow-step:hover {
  background: rgba(11, 47, 110, 0.72);
  border-color: rgba(var(--stage-accent), 0.42);
  box-shadow: 0 28px 86px rgba(2, 9, 35, 0.34);
  filter: none;
  opacity: 0.88;
}

.workflow-step:focus-visible {
  outline: 2px solid rgba(var(--stage-accent), 0.72);
  outline-offset: 3px;
}

.workflow-step.is-active:hover {
  opacity: 1;
  transform: translateX(6px) scale(1.025);
}

.workflow-step span,
.scene-head span,
.budget-ticket span,
.evidence-finding span,
.github-comment span,
.tier span,
.stack-index {
  color: rgb(var(--stage-accent));
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workflow-step h3 {
  margin: 18px 0 0;
  color: var(--paper);
  font-size: clamp(1rem, 1.5vw, 1.32rem);
  line-height: 1.05;
}

.surface-stack h3 {
  margin: 42px 0 12px;
  color: var(--paper);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.05;
}

.workflow-step p,
.surface-stack p,
.tier p {
  margin: 0;
  color: var(--paper-2);
}

.workflow-step p {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 260ms ease, opacity 180ms ease, margin-top 180ms ease;
}

.workflow-step.is-active p {
  max-height: 112px;
  margin-top: 10px;
  opacity: 1;
}

/* Per-step facts: compact mono chips, always present so collapsed cards
   still say what the stage touches. */
.step-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.step-meta span {
  padding: 3px 8px;
  border: 1px solid rgba(var(--stage-accent), 0.22);
  border-radius: 5px;
  color: var(--paper-2);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.workflow-step.is-active .step-meta span {
  border-color: rgba(var(--stage-accent), 0.4);
  color: #dce9fb;
}

/* What each stage consumes and produces. */
.scene-io {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
}

.scene-io b {
  padding: 3px 9px;
  border: 1px solid rgba(var(--stage-accent), 0.3);
  border-radius: 5px;
  background: rgba(var(--stage-accent), 0.08);
  color: #dce9fb;
  font-weight: 500;
}

.scene-io i {
  color: rgba(var(--stage-accent), 0.85);
  font-style: normal;
  letter-spacing: 0.06em;
}

.workflow-console {
  position: relative;
  height: min(880px, calc(100svh - 70px));
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(var(--stage-accent), 0.24), transparent 28%),
    linear-gradient(135deg, rgba(var(--stage-accent), 0.14), transparent 44%),
    rgba(6, 25, 68, 0.82);
  transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.workflow-console::before {
  content: "";
  position: absolute;
  inset: 48px 0 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
}

.workflow-console-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
}

.workflow-console-top div {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.workflow-console-top [data-stage-pill] {
  color: #061532;
  background: rgb(var(--stage-accent));
  border-radius: 4px;
  padding: 5px 8px;
  font-weight: 800;
}

.workflow-console-body {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
  height: calc(100% - 48px);
  padding: 18px;
  overflow: hidden;
}

.workflow-meter {
  height: 8px;
  padding: 1px;
  background: rgba(248, 251, 255, 0.08);
  border: 1px solid rgba(221, 236, 255, 0.18);
  border-radius: 999px;
}

.workflow-meter span {
  display: block;
  width: var(--workflow-progress, 25%);
  height: 100%;
  background: linear-gradient(90deg, rgb(var(--stage-accent)), #f8fbff);
  border-radius: inherit;
  /* ponytail: scroll-driven width tracks scroll directly; a transition would
     chase the moving value and stutter. */
}

.console-stage-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.console-stage-list span {
  min-height: 86px;
  padding: 12px;
  border: 1px solid rgba(221, 236, 255, 0.14);
  border-radius: 6px;
  background: rgba(2, 9, 35, 0.32);
  filter: grayscale(1) saturate(0.35);
  opacity: 0.48;
  transition: opacity 180ms ease, filter 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.console-stage-list span.is-active {
  background: rgba(var(--stage-accent), 0.14);
  border-color: rgba(var(--stage-accent), 0.48);
  box-shadow: inset 0 0 0 1px rgba(var(--stage-accent), 0.14);
  filter: none;
  opacity: 1;
}

.console-stage-list span.is-done {
  border-color: rgba(var(--stage-accent), 0.3);
  filter: grayscale(0.35) saturate(0.8);
  opacity: 0.72;
}

.console-stage-list span.is-done b::after {
  content: " ok";
  color: rgba(var(--stage-accent), 0.9);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.console-stage-list b,
.console-stage-list em {
  display: block;
}

.console-stage-list b {
  color: var(--paper);
  font-size: 13px;
}

.console-stage-list em {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
}

.console-scene-frame {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: visible;
  border: 1px solid rgba(221, 236, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(var(--stage-accent), 0.14), transparent 52%),
    rgba(2, 9, 35, 0.42);
  transform: scale(var(--workflow-zoom));
  transform-origin: center;
  /* Zoom is scroll-driven, so it must track the scroll position frame-for-frame.
     A transition here restarts every frame against a moving target and reads as
     jitter; only the discrete stage color swaps are transitioned. */
  transition: background-color 240ms ease, border-color 240ms ease;
  will-change: transform;
}

.console-scene-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 86% 14%, rgba(var(--stage-accent), 0.24), transparent 24%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
}

.console-scene {
  position: relative;
  z-index: 1;
  display: none;
  align-content: start;
  min-height: 0;
  padding: clamp(18px, 2vw, 28px);
  overflow: hidden;
}

.console-scene.is-active {
  display: grid;
  gap: 16px;
  animation: scene-swap 320ms ease both;
}

@keyframes scene-swap {
  from { opacity: 0; transform: translateY(12px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.scene-head {
  display: grid;
  gap: 8px;
  max-width: 560px;
}

.scene-head strong {
  color: var(--paper);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.scene-head p {
  margin: 0;
  color: var(--paper-2);
}

.context-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  min-height: 126px;
  align-items: center;
}

.context-map::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--stage-accent), 0.72), transparent);
}

.node {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 78px;
  padding: 10px;
  color: #d9e8fb;
  border: 1px solid rgba(221, 236, 255, 0.18);
  border-radius: 8px;
  background: rgba(3, 16, 48, 0.72);
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
  overflow-wrap: anywhere;
}

.node-main {
  color: #061532;
  background: rgb(var(--stage-accent));
  border-color: rgb(var(--stage-accent));
  font-weight: 800;
}

.scene-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.scene-stat-row span,
.scene-detail-grid span,
.evidence-finding,
.budget-ticket,
.github-comment {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(var(--stage-accent), 0.24);
  border-radius: 7px;
  background: rgba(var(--stage-accent), 0.1);
  color: var(--paper-2);
}

.scene-stat-row b,
.scene-detail-grid b,
.budget-ticket strong,
.evidence-finding strong,
.github-comment strong {
  color: var(--paper);
}

.scene-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.scene-detail-grid span {
  display: grid;
  gap: 7px;
  min-height: 74px;
  background:
    linear-gradient(135deg, rgba(var(--stage-accent), 0.11), transparent 56%),
    rgba(2, 9, 35, 0.36);
}

.scene-detail-grid b {
  font-size: 13px;
  line-height: 1.2;
}

.scene-detail-grid em {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.analyzer-board {
  display: grid;
  gap: 10px;
}

.analyzer-board div {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) 1fr minmax(92px, auto);
  gap: 12px;
  align-items: center;
  min-height: 50px;
  padding: 0 12px;
  border: 1px solid rgba(221, 236, 255, 0.16);
  border-radius: 7px;
  background: rgba(2, 9, 35, 0.38);
}

.analyzer-board span,
.analyzer-board em,
.budget-ticket em,
.audit-receipt em {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
}

.bar {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(221, 236, 255, 0.14);
}

.bar::before {
  content: "";
  display: block;
  height: 100%;
  border-radius: inherit;
}

.bar.hot::before { width: 82%; background: #f17762; }
.bar.cool::before { width: 100%; background: #7eeba6; }
.bar.warn::before { width: 54%; background: #efb65f; }

.evidence-finding,
.budget-ticket,
.github-comment {
  display: grid;
  gap: 8px;
}

.route-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.route-lane {
  display: grid;
  gap: 12px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(221, 236, 255, 0.16);
  border-radius: 8px;
  background: rgba(2, 9, 35, 0.38);
}

.route-lane.selected {
  background: rgba(var(--stage-accent), 0.16);
  border-color: rgba(var(--stage-accent), 0.56);
}

.route-lane span,
.route-lane em {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
}

.route-lane b {
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
}

.audit-receipt {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.audit-receipt span {
  display: grid;
  align-content: start;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(var(--stage-accent), 0.26);
  border-radius: 8px;
  background: rgba(2, 9, 35, 0.38);
}

.audit-receipt b {
  color: rgb(var(--stage-accent));
}

/* Anchored as a full-width footer log so it reads as a labelled section
   instead of pills floating in the empty bottom-right corner. */
.console-feed {
  display: grid;
  gap: 8px;
  position: absolute;
  left: clamp(18px, 2.4vw, 28px);
  right: clamp(18px, 2.4vw, 28px);
  bottom: clamp(16px, 2vw, 24px);
  z-index: 3;
  padding-top: 14px;
  border-top: 1px solid rgba(221, 236, 255, 0.14);
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  pointer-events: none;
}

.console-feed::before {
  content: "event log";
  color: rgba(217, 232, 251, 0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.console-feed span {
  display: none;
  min-width: 0;
  padding: 9px 11px;
  color: rgba(217, 232, 251, 0.62);
  border: 1px solid rgba(var(--stage-accent), 0.24);
  border-radius: 7px;
  background: rgba(2, 9, 35, 0.78);
  box-shadow: 0 14px 44px rgba(1, 7, 28, 0.28);
  overflow-wrap: anywhere;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(8px);
  opacity: 0;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.console-feed span.is-active {
  display: block;
  color: #f8fbff;
  background: rgba(var(--stage-accent), 0.16);
  border-color: rgba(var(--stage-accent), 0.4);
  opacity: 1;
  transform: translateY(0);
}


.surfaces {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}

.surface-copy h2 {
  margin-bottom: 24px;
}

.stack-index {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(111, 244, 255, 0.42);
  color: var(--green);
}

/* Interactive control-surface console: tabs select a live depiction. */
.surface-console {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 34, 98, 0.42);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.surface-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.surface-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--paper-2);
  background: rgba(4, 22, 70, 0.62);
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.surface-tab .stack-index {
  width: 30px;
  height: 30px;
  font-size: 13px;
  font-weight: 800;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.surface-tab-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.surface-tab:hover {
  color: var(--paper);
  background: rgba(22, 96, 204, 0.34);
}

.surface-tab.is-active {
  color: var(--paper);
  background: rgba(22, 96, 204, 0.48);
}

.surface-tab.is-active .stack-index {
  color: #03113f;
  background: var(--green);
  border-color: var(--green);
}

.surface-tab:focus-visible {
  outline: 2px solid rgba(111, 244, 255, 0.72);
  outline-offset: -2px;
}

.surface-preview {
  position: relative;
  padding: 20px;
  min-height: 326px;
}

.surface-panel { display: none; }

.surface-panel.is-active {
  display: grid;
  gap: 12px;
  align-content: start;
  animation: scene-swap 320ms ease both;
}

.sp-caption {
  margin: 0 0 4px;
  color: var(--paper-2);
  font-size: 0.96rem;
}

.sp-head,
.sp-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.sp-head b { color: var(--paper); }

.sp-rows { display: grid; gap: 8px; }

.sp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(221, 236, 255, 0.16);
  border-radius: 7px;
  background: rgba(2, 9, 35, 0.4);
}

.sp-row-main {
  display: grid;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.sp-row-main b {
  color: var(--paper);
  font-size: 13px;
}

.sp-row-main em {
  color: var(--muted);
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
}

.sp-chip {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sev-high { color: #ffd9d0; background: rgba(241, 119, 98, 0.22); border: 1px solid rgba(241, 119, 98, 0.5); }
.sev-medium { color: #ffe6bd; background: rgba(239, 182, 95, 0.2); border: 1px solid rgba(239, 182, 95, 0.46); }
.sev-low { color: #cde6ff; background: rgba(111, 244, 255, 0.16); border: 1px solid rgba(111, 244, 255, 0.4); }
.sp-chip.ok { color: #cdeaff; background: rgba(111, 244, 255, 0.14); border: 1px solid rgba(111, 244, 255, 0.36); }

.sp-price {
  flex-shrink: 0;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
}

.sp-queue {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sp-queue span {
  padding: 10px 12px;
  border: 1px solid rgba(221, 236, 255, 0.16);
  border-radius: 7px;
  background: rgba(2, 9, 35, 0.4);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.sp-queue b {
  display: block;
  color: var(--paper);
  font-size: 18px;
}

.sp-budget {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(221, 236, 255, 0.16);
  border-radius: 7px;
  background: rgba(2, 9, 35, 0.4);
}

.sp-budget-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.sp-budget-head b { color: var(--paper); }

.sp-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(248, 251, 255, 0.1);
}

.sp-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-2), var(--green));
}

/* Alert threshold marker at --alert along the track. */
.sp-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--alert, 80%);
  width: 2px;
  background: rgba(239, 182, 95, 0.9);
}

.costs {
  border-top: 1px solid var(--line);
}

.costs-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(26px, 6vw, 84px);
  align-items: start;
}

.calculator {
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(111, 244, 255, 0.18), transparent 42%),
    rgba(6, 34, 98, 0.52);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.calculator:hover {
  border-color: rgba(111, 244, 255, 0.5);
  box-shadow: 0 26px 90px rgba(0, 91, 255, 0.34);
  transform: translateY(-4px);
}

.calc-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}

.calc-head span,
.calc-row {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.calc-head strong {
  color: var(--paper);
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.82;
}

#calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  margin: 0;
  background:
    linear-gradient(90deg, var(--green) 0 var(--fill, 14.57%), rgba(247, 251, 255, 0.18) var(--fill, 14.57%) 100%);
  border: 1px solid rgba(247, 251, 255, 0.16);
  border-radius: 4px;
  outline: none;
}

#calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--paper);
  border: 4px solid var(--blue);
  border-radius: 6px;
  cursor: pointer;
}

#calc-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--paper);
  border: 4px solid var(--blue);
  border-radius: 6px;
  cursor: pointer;
}

.calc-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.tier-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.tier {
  width: 100%;
  padding: 20px;
  color: var(--paper);
  background: rgba(6, 34, 98, 0.42);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.tier:focus-visible {
  outline: 2px solid rgba(111, 244, 255, 0.72);
  outline-offset: 3px;
}

.tier:hover {
  background: rgba(22, 96, 204, 0.38);
  border-color: rgba(111, 244, 255, 0.48);
  box-shadow: 0 24px 72px rgba(0, 91, 255, 0.28);
  transform: translateY(-5px);
}

.tier.featured {
  color: #03113f;
  background: var(--paper);
  border-color: var(--paper);
}

.tier strong {
  display: block;
  margin: 20px 0 10px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.tier.featured span { color: var(--green-deep); }
.tier.featured strong { color: #03113f; }
.tier.featured p { color: #294776; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding: 36px 0 46px;
  border-top: 1px solid var(--line);
}

.brand-text {
  color: var(--paper);
  font-size: clamp(2.2rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.82;
}

.footer p {
  max-width: 420px;
  margin: 16px 0 0;
  color: var(--paper-2);
}

.footer-links {
  display: flex;
  gap: 12px;
  color: var(--paper-2);
  font-family: var(--mono);
  font-size: 12px;
}

.footer-links a:hover { color: var(--green); }

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 560px;
  }

  .product-shell {
    min-height: 500px;
  }

  .section-headline,
  .workflow-story,
  .surfaces,
  .costs-grid {
    grid-template-columns: 1fr;
  }

  .workflow-scroll-area {
    min-height: auto;
  }

  .workflow-story {
    position: relative;
    top: auto;
    min-height: auto;
    padding-bottom: 0;
  }

  .workflow-steps {
    align-self: stretch;
    margin-left: 0;
    margin-right: 0;
    padding-left: 30px;
    padding-top: 0;
  }

  .workflow-step.is-active,
  .workflow-step.is-active:hover {
    transform: translateY(0) scale(1.015);
  }

  .workflow-console {
    height: auto;
    min-height: auto;
  }

}

@media (max-width: 820px) {
  .site-nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-links { display: none; }

  .hero {
    width: min(calc(100% - 24px), 720px);
    padding-top: 104px;
  }

  .hero-mesh {
    inset: 84px 0 10px;
  }

  .hero h1 {
    max-width: 100%;
    overflow-wrap: break-word;
    font-size: clamp(3.1rem, 16vw, 4.4rem);
  }

  .hero-stage {
    min-height: auto;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-menu {
    grid-template-columns: repeat(5, minmax(86px, 1fr));
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-row,
  .tier-row {
    grid-template-columns: 1fr;
  }

  .console-stage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finding-row {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .finding-row strong {
    grid-column: 2;
  }

  .signal-card {
    position: relative;
    width: 100%;
    margin-top: 12px;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }

  .workflow-console {
    order: -1;
  }
}

@media (max-width: 560px) {
  body { font-size: 15px; }

  .site-nav {
    grid-template-columns: 1fr;
    top: 10px;
    width: calc(100% - 20px);
    min-height: 54px;
    padding-left: 12px;
  }

  .nav-action { display: none; }

  .hero {
    padding-top: 92px;
  }

  .hero-lede {
    width: min(100%, 34ch);
    font-size: 1rem;
    overflow-wrap: normal;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button { width: 100%; }

  .product-top {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }

  .product-main {
    padding: 12px;
  }

  .metric-row div {
    min-height: 78px;
  }

  .workflow,
  .surfaces,
  .costs,
  .footer {
    width: calc(100% - 24px);
  }

  .surface-tab {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
  }

  .surface-tab-title { font-size: 12px; }

  .workflow-step,
  .surface-stack article,
  .calculator,
  .tier {
    padding: 16px;
  }

  .workflow-console-body {
    padding: 12px;
  }

  .console-stage-list {
    grid-template-columns: 1fr;
  }

  .console-feed {
    min-height: auto;
  }

  .console-scene-frame,
  .console-scene {
    min-height: auto;
  }

  .context-map,
  .scene-stat-row,
  .scene-detail-grid,
  .audit-receipt,
  .route-board {
    grid-template-columns: 1fr;
  }

  .context-map::before {
    display: none;
  }

  .analyzer-board div,
  .audit-receipt span {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .surface-stack article {
    grid-template-columns: 1fr;
  }

  .surface-stack p {
    grid-column: 1;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.site-nav,
.hero,
.workflow,
.surfaces,
.costs,
.footer {
  --line: rgba(221, 236, 255, 0.18);
  --line-strong: rgba(221, 236, 255, 0.34);
}

body {
  color: #f8fbff;
  background:
    linear-gradient(180deg, #071a3a 0%, #061532 48%, #081b3b 100%);
  animation: none;
}

body::before {
  background:
    linear-gradient(90deg, rgba(111, 244, 255, 0.1), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(2, 9, 35, 0.38));
  mix-blend-mode: normal;
  opacity: 1;
}

body::after {
  background: #071a3a;
  animation: page-fade 520ms ease-out 80ms forwards;
}

@keyframes page-fade {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

.site-nav {
  background: rgba(7, 26, 58, 0.78);
  border-color: rgba(221, 236, 255, 0.2);
  box-shadow: 0 14px 48px rgba(2, 9, 35, 0.28);
}

body.workflow-pinned-active .site-nav {
  opacity: 0 !important;
  pointer-events: none;
  transform: translate(-50%, -26px) !important;
  filter: blur(7px);
}

.nav-action,
.button.primary {
  color: #061532;
  background: #f8fbff;
  border-color: rgba(248, 251, 255, 0.82);
}

.nav-action:hover,
.button.primary:hover {
  color: #061532;
  background: #dff8ff;
  box-shadow: 0 14px 42px rgba(111, 244, 255, 0.22);
}

.hero-mesh {
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(111, 244, 255, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%, rgba(2, 9, 35, 0.22)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    rgba(8, 31, 76, 0.74);
  background-size: 100% 100%, 100% 100%, 56px 56px, 56px 56px, 100% 100%;
  animation: lift-in 760ms cubic-bezier(0.22, 1, 0.36, 1) 160ms both;
}

.hero-mesh::after {
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(111, 244, 255, 0.14) 46% 47%, transparent 47% 100%);
  transform: none;
  transition: none;
}

.hero h1 {
  text-shadow: 0 18px 70px rgba(2, 9, 35, 0.36);
}

.hero-lede {
  color: #d9e8fb;
}

.eyebrow,
.section-label {
  color: #8df4ff;
  background: rgba(248, 251, 255, 0.1);
  border-color: rgba(221, 236, 255, 0.18);
}

.button::after,
.nav-action::after {
  display: none;
}

.button {
  border-color: rgba(221, 236, 255, 0.2);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-4px);
}

.button.secondary {
  background: rgba(248, 251, 255, 0.08);
}

.button.secondary:hover {
  background: rgba(248, 251, 255, 0.14);
  border-color: rgba(141, 244, 255, 0.42);
  box-shadow: 0 16px 46px rgba(2, 9, 35, 0.28);
}

.hero-strip span {
  background: rgba(248, 251, 255, 0.08);
  border-color: rgba(221, 236, 255, 0.16);
}

.hero-strip span:hover {
  background: rgba(141, 244, 255, 0.12);
  border-color: rgba(141, 244, 255, 0.38);
  transform: translateY(-3px);
}

.product-shell,
.signal-card,
.workflow-step,
.workflow-console,
.console-scene-frame,
.surface-stack article,
.calculator,
.tier {
  background: rgba(8, 31, 76, 0.64);
  border-color: rgba(221, 236, 255, 0.18);
  box-shadow: 0 24px 72px rgba(2, 9, 35, 0.3);
}

.product-shell:hover,
.signal-card:hover,
.workflow-step:hover,
.surface-stack article:hover,
.calculator:hover,
.tier:hover {
  background: rgba(11, 47, 110, 0.72);
  border-color: rgba(141, 244, 255, 0.42);
  box-shadow: 0 28px 86px rgba(2, 9, 35, 0.34);
}

.calculator:hover,
.tier:hover {
  transform: translateY(-5px);
}

.product-shell:hover,
.signal-card:hover {
  transform: none;
}

.workflow-step:hover {
  transform: translateX(8px);
}

.workflow-step.is-active:hover {
  transform: translateX(14px) scale(1.045);
}

.surface-stack article:hover {
  transform: translateX(-6px);
}

.product-menu .active {
  color: #061532;
  background: #f8fbff;
}

.product-menu span:hover,
.finding-row:hover {
  background: rgba(141, 244, 255, 0.11);
  border-color: rgba(141, 244, 255, 0.3);
}

.metric-row div,
.finding-row,
.code-panel {
  background-color: rgba(2, 9, 35, 0.34);
}

.finding-row.active {
  background: rgba(141, 244, 255, 0.12);
  border-color: rgba(141, 244, 255, 0.34);
}

h2,
.workflow-step h3,
.surface-stack h3,
.signal-card strong,
.scene-head strong,
.tier strong,
.brand-text {
  color: #f8fbff;
}

.section-headline p,
.surface-copy p,
.costs-grid p,
.workflow-step p,
.surface-stack p,
.scene-head p,
.tier p,
.footer p,
.signal-card p {
  color: #d9e8fb;
}

.tier.featured {
  background: #f8fbff;
  border-color: #f8fbff;
}

.tier.featured strong {
  color: #061532;
}

.tier.featured p {
  color: #355174;
}

@media (prefers-reduced-motion: reduce) {
  .site-nav {
    transition: none;
    animation: none;
    opacity: 1;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .product-shell {
    transform: none !important;
  }
}

/* Integrations: a radial orbit of the tools Hubolt connects to. */
.integrations {
  text-align: center;
}

.integrations .section-label {
  display: inline-block;
}

.integration-lede {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--muted);
}

.integration-stage {
  position: relative;
  width: 100%;
  height: 620px;
  margin: clamp(28px, 5vw, 56px) auto 0;
}

.orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.orbit-center {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 6px;
  width: 168px;
  height: 168px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(20, 86, 210, 0.92), rgba(4, 20, 80, 0.94));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.orbit-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--green);
  background:
    linear-gradient(90deg, transparent 43%, var(--green) 43% 57%, transparent 57%),
    linear-gradient(180deg, transparent 43%, var(--green) 43% 57%, transparent 57%);
}

.orbit-title {
  font-weight: 600;
  font-size: 20px;
  color: var(--paper);
}

.orbit-sub {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.orbit-ring {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  --orbit-r: clamp(150px, 24vw, 234px);
  --tile: clamp(74px, 11vw, 104px);
  /* the whole ring orbits; tiles counter-rotate below to stay upright */
  animation: orbit-spin 60s linear infinite;
}

.orbit-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--tile);
  height: var(--tile);
  margin: calc(var(--tile) / -2);
  /* place on the ring, then counter-rotate so the tile stays upright */
  transform: rotate(calc(var(--i) * 45deg)) translate(var(--orbit-r)) rotate(calc(var(--i) * -45deg));
}

.node-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: var(--bg, var(--panel));
  color: var(--fg, var(--paper));
  font-weight: 700;
  font-size: clamp(13px, 1.5vw, 16px);
  letter-spacing: -0.01em;
  box-shadow: 0 18px 42px rgba(0, 12, 46, 0.45);
  /* cancel the ring's rotation so the wordmark stays readable */
  animation: orbit-counter 60s linear infinite;
}

.node-soon {
  position: absolute;
  bottom: 8px;
  font-size: 8px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.85);
}

@keyframes orbit-spin {
  to { transform: rotate(1turn); }
}

@keyframes orbit-counter {
  to { transform: rotate(-1turn); }
}

.integration-cats {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 4;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  text-align: left;
}

.integration-cats li {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  background: rgba(6, 34, 98, 0.4);
}

.integration-cats li.is-active {
  color: var(--paper);
  border-color: var(--line-strong);
  background: rgba(20, 86, 210, 0.34);
}

.integration-pill {
  position: absolute;
  bottom: 6px;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(6, 34, 98, 0.55);
  border: 1px solid var(--line-soft);
}

.ip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.ip-meta {
  display: grid;
  line-height: 1.2;
  text-align: left;
}

.ip-meta b {
  font-size: 13px;
  color: var(--paper);
}

.ip-meta em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}

.integration-note {
  max-width: 640px;
  margin: clamp(20px, 4vw, 40px) auto 0;
  font-size: 13px;
  color: var(--faint);
}

@media (max-width: 820px) {
  /* Collapse the orbit into a centered wrapped grid below the hub. */
  .integration-stage {
    height: auto;
  }

  .orbit {
    position: static;
    display: grid;
    gap: 24px;
    justify-items: center;
  }

  .orbit-ring {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    --orbit-r: 0px;
    animation: none;
  }

  .orbit-node {
    position: static;
    margin: 0;
    transform: none;
  }

  .node-tile {
    animation: none;
  }

  .integration-cats,
  .integration-pill {
    position: static;
    transform: none;
    margin: 24px auto 0;
  }

  .integration-cats {
    grid-auto-flow: column;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .integration-cats {
    grid-auto-flow: row;
  }
}
