/* ==========================================================================
   YH Compute — site styles
   Palette continues the company deck (deep navy, brass, mist). No frameworks.
   ========================================================================== */

:root {
  --navy-950: #0A1428;
  --navy-900: #0E1B33;
  --navy-800: #15264A;
  --navy-700: #1F3A6B;
  --navy-500: #3C5A8E;
  --brass: #B8924A;
  --brass-2: #D9B76B;
  --brass-soft: rgba(217, 183, 107, 0.16);
  --mist: #EEF2F6;
  --mist-2: #DCE3EC;
  --paper: #FFFFFF;
  --bond: #F8F6F0;
  --ink: #111B2E;
  --ink-2: #4A5568;
  --ink-3: #7B8794;
  --ok: #2F9E6B;
  --flag: #C8443E;
  --on-dark: #F4F6FA;
  --on-dark-2: rgba(244, 246, 250, 0.72);
  --on-dark-3: rgba(244, 246, 250, 0.48);
  --line-dark: rgba(244, 246, 250, 0.12);

  --font-sans: "Inter", "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Code", Consolas, Menlo, "Roboto Mono", monospace;

  --max: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 10px;
  --loop: 13s;
}

/* Optional self-hosted type. Drop Inter-Variable.woff2 into assets/fonts/ and
   remove the comment markers; the fallback stack above renders until then.
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
*/

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  background: var(--brass-2);
  color: var(--navy-950);
  border-radius: 6px;
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--brass-2);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--on-dark);
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--mist-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand .mark {
  width: 34px; height: 34px;
  filter: drop-shadow(0 0 7px rgba(217, 183, 107, 0.45));
  transition: filter .3s;
}
.mark .mark-hex { stroke: currentColor; opacity: .92; }
.mark .mark-y { stroke: url(#markGrad); }
.mark .mark-pad, .mark .mark-core { fill: url(#markGrad); }
.mark .mark-core-dot { fill: var(--navy-900); }
.site-header.scrolled .mark { filter: none; }
.site-header.scrolled .mark .mark-core-dot { fill: #fff; }

.nav { display: flex; gap: 28px; }
.nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  opacity: .82;
  transition: opacity .2s;
}
.nav a:hover { opacity: 1; }

@media (max-width: 820px) {
  .nav { display: none; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brass-2); color: var(--navy-950); }
.btn-primary:hover { background: #E6C77E; }
.btn-ghost { border-color: rgba(244, 246, 250, 0.32); color: var(--on-dark); background: transparent; }
.btn-ghost:hover { border-color: rgba(244, 246, 250, 0.7); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.site-header .btn-small { border-color: rgba(244, 246, 250, 0.28); }
.site-header.scrolled .btn-small { border-color: var(--mist-2); color: var(--ink); }
.site-header.scrolled .btn-small:hover { border-color: var(--navy-500); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--on-dark);
  padding: 150px 0 88px;
  isolation: isolate;
}
.hero::before {
  /* fine grid, fading toward the edges */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(244, 246, 250, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 246, 250, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 60% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 75% at 60% 40%, #000 30%, transparent 100%);
}
.hero::after {
  /* two slow glows */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(520px 380px at 84% 18%, rgba(217, 183, 107, 0.16), transparent 70%),
    radial-gradient(640px 460px at 8% 92%, rgba(60, 90, 142, 0.35), transparent 70%);
  animation: glow-drift 18s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-24px, 18px, 0); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.28fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 600;
  max-width: 15ch;
}
.hero-sub {
  margin-top: 22px;
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--on-dark-2);
  max-width: 40ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* ---- the review demo -------------------------------------------------- */

.demo-wrap { min-width: 0; }

.demo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1.05fr) 22px minmax(0, 1fr);
  gap: 10px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: rgba(244, 246, 250, 0.035);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.7);
  animation: demo-cycle var(--loop) linear infinite;
}
@keyframes demo-cycle {
  0% { opacity: 0; }
  2% { opacity: 1; }
  95% { opacity: 1; }
  100% { opacity: 0; }
}

.stage { min-width: 0; }
.stage-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--on-dark-2);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.stage-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brass-2);
  box-shadow: 0 0 0 3px var(--brass-soft);
  animation-duration: var(--loop);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.stage-intake .stage-dot { animation-name: dot-intake; }
.stage-check .stage-dot { animation-name: dot-check; }
.stage-notice .stage-dot { animation-name: dot-notice; }
@keyframes dot-intake { 0%, 32% { opacity: 1; } 36%, 100% { opacity: .3; } }
@keyframes dot-check { 0%, 32% { opacity: .3; } 36%, 64% { opacity: 1; } 68%, 100% { opacity: .3; } }
@keyframes dot-notice { 0%, 64% { opacity: .3; } 68%, 100% { opacity: 1; } }

.link {
  position: relative;
  align-self: stretch;
  margin-top: 34px;
  height: 1px;
  background: rgba(244, 246, 250, 0.22);
  top: 46px;
}
.link i {
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brass-2);
  box-shadow: 0 0 12px var(--brass-2);
  animation-duration: var(--loop);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.link-1 i { animation-name: travel-1; }
.link-2 i { animation-name: travel-2; }
@keyframes travel-1 { 0%, 28% { left: 0; opacity: 0; } 29% { opacity: 1; } 34% { left: calc(100% - 7px); opacity: 1; } 35%, 100% { left: calc(100% - 7px); opacity: 0; } }
@keyframes travel-2 { 0%, 62% { left: 0; opacity: 0; } 63% { opacity: 1; } 68% { left: calc(100% - 7px); opacity: 1; } 69%, 100% { left: calc(100% - 7px); opacity: 0; } }

.paper {
  position: relative;
  overflow: hidden;
  background: var(--bond);
  color: var(--ink);
  border-radius: 6px;
  padding: 10px 11px 12px;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.6);
}
.doc-title {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
  color: var(--navy-800);
}
.doc-line {
  height: 4px;
  border-radius: 2px;
  background: #D6D2C8;
  margin: 5px 0;
}
.w80 { width: 80%; } .w60 { width: 60%; } .w70 { width: 70%; } .w45 { width: 45%; }

.doc {
  animation: doc-in var(--loop) linear infinite;
}
@keyframes doc-in {
  0% { opacity: 0; transform: translateX(-22px); }
  5% { opacity: 1; transform: none; }
  100% { opacity: 1; transform: none; }
}
.scanline {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass) 30%, var(--brass) 70%, transparent);
  box-shadow: 0 0 10px var(--brass-2);
  opacity: 0;
  animation: scan var(--loop) linear infinite;
}
@keyframes scan {
  0%, 7% { top: 0; opacity: 0; }
  8% { opacity: 1; }
  18% { top: calc(100% - 2px); opacity: 1; }
  19%, 100% { top: 100%; opacity: 0; }
}

.fields { margin-top: 10px; }
.fields li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10.5px;
  padding: 5px 0;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-3);
  animation-duration: var(--loop);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.fields li b {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  color: var(--on-dark);
}
.fields li:nth-child(1) { animation-name: field-1; }
.fields li:nth-child(2) { animation-name: field-2; }
.fields li:nth-child(3) { animation-name: field-3; }
.fields li:nth-child(4) { animation-name: field-4; }
@keyframes field-1 { 0%, 11% { opacity: 0; transform: translateX(-8px); } 14%, 100% { opacity: 1; transform: none; } }
@keyframes field-2 { 0%, 15% { opacity: 0; transform: translateX(-8px); } 18%, 100% { opacity: 1; transform: none; } }
@keyframes field-3 { 0%, 19% { opacity: 0; transform: translateX(-8px); } 22%, 100% { opacity: 1; transform: none; } }
@keyframes field-4 { 0%, 23% { opacity: 0; transform: translateX(-8px); } 26%, 100% { opacity: 1; transform: none; } }

.rules li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--on-dark-2);
  padding: 7px 0;
  border-top: 1px solid var(--line-dark);
  animation-duration: var(--loop);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.rules li:first-child { border-top: 0; padding-top: 2px; }
.rules li:nth-child(1) { animation-name: rule-1; }
.rules li:nth-child(2) { animation-name: rule-2; }
.rules li:nth-child(3) { animation-name: rule-3; }
.rules li:nth-child(4) { animation-name: rule-4; }
@keyframes rule-1 { 0%, 37% { opacity: 0; transform: translateY(6px); } 40%, 100% { opacity: 1; transform: none; } }
@keyframes rule-2 { 0%, 42% { opacity: 0; transform: translateY(6px); } 45%, 100% { opacity: 1; transform: none; } }
@keyframes rule-3 { 0%, 47% { opacity: 0; transform: translateY(6px); } 50%, 100% { opacity: 1; transform: none; } }
@keyframes rule-4 { 0%, 52% { opacity: 0; transform: translateY(6px); } 55%, 100% { opacity: 1; transform: none; } }

.rules i {
  flex: 0 0 auto;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  animation-duration: var(--loop);
  animation-timing-function: cubic-bezier(.2, .9, .3, 1.4);
  animation-iteration-count: infinite;
}
.rules i svg { width: 10px; height: 10px; }
.rules .pass i { background: rgba(47, 158, 107, 0.2); color: #5FD39A; }
.rules .fail i { background: rgba(200, 68, 62, 0.22); color: #FF8A82; }
.rules .fail { color: var(--on-dark); }
.rules li:nth-child(1) i { animation-name: mark-1; }
.rules li:nth-child(2) i { animation-name: mark-2; }
.rules li:nth-child(3) i { animation-name: mark-3; }
.rules li:nth-child(4) i { animation-name: mark-4; }
@keyframes mark-1 { 0%, 40% { transform: scale(0); } 43%, 100% { transform: scale(1); } }
@keyframes mark-2 { 0%, 45% { transform: scale(0); } 48%, 100% { transform: scale(1); } }
@keyframes mark-3 { 0%, 50% { transform: scale(0); } 53%, 100% { transform: scale(1); } }
@keyframes mark-4 { 0%, 55% { transform: scale(0); } 58%, 100% { transform: scale(1); } }

.evidence {
  margin-top: 10px;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #FF8A82;
  background: rgba(200, 68, 62, 0.14);
  border: 1px solid rgba(200, 68, 62, 0.35);
  border-radius: 4px;
  padding: 4px 7px;
  animation: evidence var(--loop) linear infinite;
}
@keyframes evidence { 0%, 59% { opacity: 0; transform: translateY(4px); } 62%, 100% { opacity: 1; transform: none; } }

.notice {
  padding-bottom: 36px;
  animation: notice-in var(--loop) linear infinite;
}
@keyframes notice-in {
  0%, 69% { opacity: 0; transform: translateY(14px); }
  73%, 100% { opacity: 1; transform: none; }
}
.type-line {
  height: 4px;
  border-radius: 2px;
  background: #CFCBBF;
  margin: 5px 0;
  transform-origin: left center;
  animation-duration: var(--loop);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.type-line:nth-of-type(1) { width: 88%; animation-name: type-1; }
.type-line:nth-of-type(2) { width: 72%; animation-name: type-2; }
.type-line:nth-of-type(3) { width: 80%; animation-name: type-3; }
@keyframes type-1 { 0%, 73% { transform: scaleX(0); } 77%, 100% { transform: scaleX(1); } }
@keyframes type-2 { 0%, 76% { transform: scaleX(0); } 80%, 100% { transform: scaleX(1); } }
@keyframes type-3 { 0%, 79% { transform: scaleX(0); } 83%, 100% { transform: scaleX(1); } }

.notice-item {
  margin-top: 9px;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--ink);
  padding-left: 8px;
  border-left: 2px solid var(--flag);
  animation: item-in var(--loop) linear infinite;
}
@keyframes item-in { 0%, 83% { opacity: 0; } 86%, 100% { opacity: 1; } }

.stamp {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border: 2px solid var(--brass);
  border-radius: 4px;
  color: var(--brass);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-7deg);
  animation: stamp var(--loop) linear infinite;
}
@keyframes stamp {
  0%, 87% { opacity: 0; transform: rotate(-7deg) scale(2); }
  89.5% { opacity: 1; transform: rotate(-7deg) scale(0.96); }
  90.5% { transform: rotate(-7deg) scale(1.03); }
  91.5%, 100% { opacity: 1; transform: rotate(-7deg) scale(1); }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #5FD39A;
  animation: chip var(--loop) linear infinite;
}
.chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
@keyframes chip { 0%, 92% { opacity: 0; transform: translateY(4px); } 94%, 100% { opacity: 1; transform: none; } }

.demo-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--on-dark-3);
}

@media (max-width: 960px) {
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
}
@media (max-width: 640px) {
  .demo {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .link {
    top: 0;
    margin: 2px 0 2px 14px;
    width: 1px;
    height: 26px;
    align-self: auto;
    justify-self: start;
  }
  .demo { gap: 4px; }
  .link i {
    top: 0;
    left: -3px;
  }
  @keyframes travel-1 { 0%, 28% { top: 0; opacity: 0; } 29% { opacity: 1; } 34% { top: calc(100% - 7px); opacity: 1; } 35%, 100% { top: calc(100% - 7px); opacity: 0; } }
  @keyframes travel-2 { 0%, 62% { top: 0; opacity: 0; } 63% { opacity: 1; } 68% { top: calc(100% - 7px); opacity: 1; } 69%, 100% { top: calc(100% - 7px); opacity: 0; } }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 104px 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 62ch; }
.section h2 {
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.024em;
  font-weight: 600;
}
.section-lead {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
}

/* ---- What we do -------------------------------------------------------- */

.caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 56px;
}
.cap {
  padding-top: 0;
  min-width: 0;
}
.cap + .cap { border-left: 1px solid var(--mist-2); padding-left: 40px; }
.cap h3 {
  margin-top: 22px;
  font-size: 21px;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.cap p {
  margin-top: 10px;
  font-size: 16px;
  color: var(--ink-2);
}
.cap-visual {
  position: relative;
  height: 168px;
  border-radius: var(--radius);
  background: var(--mist);
  overflow: hidden;
}

@media (max-width: 900px) {
  .caps { grid-template-columns: 1fr; gap: 44px; }
  .cap + .cap { border-left: 0; padding-left: 0; border-top: 1px solid var(--mist-2); padding-top: 44px; }
}

/* review visual: three documents, verdicts appear */
.v-review { padding: 18px 20px; display: grid; gap: 10px; align-content: center; }
.v-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border-radius: 6px;
  padding: 9px 12px;
  box-shadow: 0 1px 0 var(--mist-2);
}
.v-row .v-doc {
  width: 14px; height: 18px;
  border: 1.5px solid var(--navy-500);
  border-radius: 2px;
  position: relative;
}
.v-row .v-doc::after {
  content: "";
  position: absolute;
  left: 3px; right: 3px; top: 5px;
  height: 1.5px;
  background: var(--navy-500);
  box-shadow: 0 4px 0 var(--navy-500);
  opacity: .6;
}
.v-row .v-line {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--mist-2);
}
.v-badge {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}
.v-badge svg { width: 11px; height: 11px; }
.v-badge.ok { background: var(--ok); }
.v-badge.flag { background: var(--flag); }
.v-sweep {
  position: absolute;
  left: 20px; right: 20px;
  top: 0;
  height: 2px;
  background: var(--brass);
  box-shadow: 0 0 8px var(--brass-2);
  opacity: 0;
}
.play .v-sweep { animation: v-sweep 1.4s ease-in-out forwards; }
.play .v-badge { animation: v-pop .45s cubic-bezier(.2, .9, .3, 1.4) both; }
.play .v-row:nth-child(2) .v-badge { animation-delay: .9s; }
.play .v-row:nth-child(3) .v-badge { animation-delay: 1.3s; }
.play .v-row:nth-child(4) .v-badge { animation-delay: 1.7s; }
@keyframes v-sweep { 0% { top: 12px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 12px); opacity: 0; } }
@keyframes v-pop { from { transform: scale(0); } to { transform: scale(1); } }

/* workflow visual: an inbox sorted into three lanes */
.v-flow { }
.v-lane {
  position: absolute;
  bottom: 14px;
  width: 26%;
  text-align: center;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
}
.v-lane::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--mist-2);
  margin: 0 8px 8px;
}
.v-lane-1 { left: 6%; }
.v-lane-2 { left: 37%; }
.v-lane-3 { left: 68%; }
.v-tile {
  position: absolute;
  width: 19%;
  height: 22px;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--mist-2);
  box-shadow: 0 1px 2px rgba(17, 27, 46, 0.08);
  left: 40.5%;
  top: 18px;
}
.v-tile::after {
  content: "";
  position: absolute;
  left: 7px; right: 7px; top: 9px;
  height: 3px;
  border-radius: 2px;
  background: var(--mist-2);
}
/* resting = sorted positions (shown when JS or motion is unavailable) */
.v-tile-1 { left: 41%; top: 96px; }
.v-tile-2 { left: 9.5%; top: 96px; }
.v-tile-3 { left: 71.5%; top: 96px; }
.v-tile-4 { left: 41%; top: 68px; }
.v-tile-5 { left: 41%; top: 40px; }
.v-tile-1, .v-tile-4, .v-tile-5 { border-color: rgba(47, 158, 107, 0.5); }
.v-tile-2 { border-color: var(--mist-2); opacity: .55; }
.v-tile-3 { border-color: rgba(200, 68, 62, 0.55); }
.play .v-tile { animation: 1s cubic-bezier(.3, .8, .3, 1) both; }
.play .v-tile-1 { animation-name: sort-1; animation-delay: .2s; }
.play .v-tile-2 { animation-name: sort-2; animation-delay: .7s; }
.play .v-tile-3 { animation-name: sort-3; animation-delay: 1.2s; }
.play .v-tile-4 { animation-name: sort-4; animation-delay: 1.7s; }
.play .v-tile-5 { animation-name: sort-5; animation-delay: 2.2s; }
@keyframes sort-1 { from { left: 40.5%; top: 18px; } to { left: 41%; top: 96px; } }
@keyframes sort-2 { from { left: 40.5%; top: 14px; opacity: 1; } to { left: 9.5%; top: 96px; opacity: .55; } }
@keyframes sort-3 { from { left: 40.5%; top: 10px; } to { left: 71.5%; top: 96px; } }
@keyframes sort-4 { from { left: 40.5%; top: 6px; } to { left: 41%; top: 68px; } }
@keyframes sort-5 { from { left: 40.5%; top: 2px; } to { left: 41%; top: 40px; } }

/* deployment visual: a rack inside a boundary that draws itself */
.v-deploy svg { width: 100%; height: 100%; }
.v-deploy .v-boundary {
  stroke: var(--brass);
  stroke-dasharray: 6 5;
  fill: none;
}
.v-deploy .v-server { fill: var(--paper); stroke: var(--navy-500); }
.v-deploy .v-led { fill: var(--ok); }
.v-deploy .v-lock-body { fill: var(--navy-800); }
.v-deploy .v-lock-shackle { fill: none; stroke: var(--navy-800); stroke-width: 2.4; }
.v-deploy .v-label { font: 500 11.5px var(--font-sans); fill: var(--ink-3); }
.v-deploy .v-draw {
  stroke: var(--brass);
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}
.play .v-deploy .v-boundary { animation: boundary-settle 2s linear both; }
.play .v-deploy .v-draw { animation: draw-boundary 2s ease-out both; }
@keyframes boundary-settle { 0%, 85% { opacity: 0; } 100% { opacity: 1; } }
.play .v-deploy .v-lock-shackle { animation: lock-close .5s ease-out 1.5s both; }
.play .v-deploy .v-led { animation: led-on .3s linear both; }
.play .v-deploy .v-led:nth-of-type(2) { animation-delay: .5s; }
.play .v-deploy .v-led:nth-of-type(3) { animation-delay: .8s; }
@keyframes draw-boundary { 0% { stroke-dashoffset: 1; opacity: 1; } 80% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes lock-close { from { transform: translateY(-4px); } to { transform: none; } }
@keyframes led-on { from { opacity: 0; } to { opacity: 1; } }

/* ---- How it works ------------------------------------------------------ */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 56px;
  padding-top: 28px;
}
.steps::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brass), var(--brass-2));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(.2, .7, .2, 1);
}
.steps.play::before { transform: scaleX(1); }
.step {
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  top: -35px;
  left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px var(--mist);
  transform: scale(0);
  transition: transform .4s cubic-bezier(.2, .9, .3, 1.4);
}
.steps.play .step::before { transform: scale(1); }
.steps.play .step:nth-child(2)::before { transition-delay: .35s; }
.steps.play .step:nth-child(3)::before { transition-delay: .7s; }
.steps.play .step:nth-child(4)::before { transition-delay: 1.05s; }
.step-n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brass);
  font-weight: 600;
}
.step h3 {
  margin-top: 6px;
  font-size: 20px;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.step p {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---- Deployment -------------------------------------------------------- */

.modes {
  display: inline-flex;
  gap: 4px;
  margin-top: 40px;
  padding: 4px;
  border-radius: 10px;
  background: var(--mist);
}
.mode {
  padding: 9px 16px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.mode:hover { color: var(--ink); }
.mode[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(17, 27, 46, 0.12);
}

.topology {
  margin-top: 20px;
  border-radius: 16px;
  background: var(--navy-900);
  padding: clamp(14px, 3vw, 28px);
  overflow: hidden;
}
.topology svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.topology .node { fill: var(--navy-800); stroke: rgba(244, 246, 250, 0.16); }
.topology .node-t { font: 600 13.5px var(--font-sans); fill: var(--on-dark); }
.topology .node-s { font: 400 11.5px var(--font-sans); fill: var(--on-dark-3); }
.topology .wire { stroke: rgba(244, 246, 250, 0.28); stroke-width: 1.5; }
.topology .boundary { fill: none; stroke: var(--brass-2); stroke-width: 1.5; stroke-dasharray: 7 6; }
.topology .b-label { font: 500 12.5px var(--font-sans); fill: var(--brass-2); }
.topology .lock { fill: var(--navy-900); stroke: var(--brass-2); stroke-width: 1.5; }
.topology .lock-t { font: 500 11px var(--font-sans); fill: var(--on-dark-2); }
.topology .set { transition: opacity .45s ease; opacity: 0; }
.topology[data-mode="onprem"] .set-onprem,
.topology[data-mode="cloud"] .set-cloud,
.topology[data-mode="hybrid"] .set-hybrid { opacity: 1; }
.topology .pulse { animation: pulse 2.4s ease-in-out infinite; transition: opacity .3s; }
.topology[data-mode="hybrid"] .pulse-2 { opacity: 0; animation: none; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.mode-copy { margin-top: 18px; max-width: 64ch; color: var(--ink-2); font-size: 16px; }
.mode-copy p[hidden] { display: none; }

/* ---- Security ---------------------------------------------------------- */

.assurances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 56px;
  margin-top: 52px;
}
.assurance {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  align-items: start;
}
.assurance .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--paper);
  display: grid;
  place-items: center;
  color: var(--navy-700);
  box-shadow: 0 1px 0 var(--mist-2);
}
.assurance .icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.assurance h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.assurance p { margin-top: 6px; font-size: 15.5px; color: var(--ink-2); }

@media (max-width: 720px) {
  .assurances { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- Contact / footer -------------------------------------------------- */

.contact {
  background: var(--navy-900);
  color: var(--on-dark);
  padding: 96px 0 40px;
}
.contact h2 {
  font-size: clamp(30px, 3.6vw, 40px);
  letter-spacing: -0.024em;
  font-weight: 600;
  line-height: 1.12;
}
.contact-lead {
  margin-top: 14px;
  font-size: 18px;
  color: var(--on-dark-2);
  max-width: 48ch;
}
.email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.email {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brass-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 183, 107, 0.4);
  padding-bottom: 2px;
}
.email:hover { border-bottom-color: var(--brass-2); }
.copy {
  padding: 8px 14px;
  border-radius: 7px;
  border: 1px solid rgba(244, 246, 250, 0.28);
  background: transparent;
  color: var(--on-dark);
  font-size: 14px;
  cursor: pointer;
  min-width: 82px;
  transition: border-color .2s;
}
.copy:hover { border-color: rgba(244, 246, 250, 0.7); }
.noscript-email { font-size: 18px; color: var(--on-dark-2); }

.footer {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13.5px;
  color: var(--on-dark-3);
}

/* --------------------------------------------------------------------------
   Utilities and motion preferences
   -------------------------------------------------------------------------- */

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::after, .demo, .demo *, .cap-visual *, .topology .pulse { animation: none !important; }
  .steps::before { transform: scaleX(1); transition: none; }
  .step::before { transform: scale(1); transition: none; }
}

/* ---- 404 --------------------------------------------------------------- */
.notfound-title {
  margin-top: 40px;
  font-size: clamp(30px, 3.6vw, 40px);
  letter-spacing: -0.024em;
  font-weight: 600;
  line-height: 1.12;
}
.notfound .contact { min-height: 100vh; }

@media (max-width: 640px) {
  .modes { display: flex; width: 100%; }
  .mode { flex: 1; padding: 9px 6px; font-size: 13.5px; white-space: nowrap; }
  .topology { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .topology svg { min-width: 560px; }
}
@media (max-width: 520px) {
  .step::before { display: none; }
  .steps { padding-top: 24px; }
}
