:root {
  color-scheme: light;
  --paper: #e7e7e3;
  --paper-soft: #f2f2ee;
  --ink: #171717;
  --muted: #666660;
  --line: rgba(18, 18, 18, 0.24);
  --line-strong: rgba(18, 18, 18, 0.38);
  --orange: #ff5b1a;
  --orange-dark: #e94c11;
  --shadow: rgba(20, 20, 20, 0.18);
  --rail: 56px;
  --banner: 40px;
  --header: 88px;
  --topbar: calc(var(--banner) + var(--header));
  --hero-lift: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), var(--line) 0) 0 0 / clamp(130px, 23vw, 460px) 100%,
    linear-gradient(180deg, transparent calc(100% - 1px), var(--line) 0) 0 0 / 100% clamp(92px, 18vw, 230px),
    var(--paper);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.45;
}

body.modal-open {
  overflow: hidden;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.site-frame {
  min-height: 100svh;
  padding-top: var(--banner);
}

.demo-banner {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 45;
  display: flex;
  height: var(--banner);
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--paper);
  font-size: clamp(0.78rem, 1vw, 0.94rem);
  text-align: center;
}

.demo-banner a {
  color: var(--orange);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.demo-banner a:hover {
  color: #ff8758;
}

.site-header {
  position: sticky;
  top: var(--banner);
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  min-height: var(--header);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(231, 231, 227, 0.92);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.site-header::before,
.site-header::after {
  position: absolute;
  bottom: -1px;
  width: 46px;
  height: 46px;
  border-bottom: 1px solid var(--line-strong);
  content: "";
}

.site-header::before {
  left: -12px;
  transform: rotate(45deg);
  transform-origin: bottom left;
}

.site-header::after {
  right: -12px;
  transform: rotate(-45deg);
  transform-origin: bottom right;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--header);
  padding-inline: clamp(18px, 3vw, 40px);
  border-right: 1px solid var(--line);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  background: var(--orange);
  clip-path: polygon(18% 0, 82% 0, 100% 18%, 100% 82%, 82% 100%, 18% 100%, 0 82%, 0 18%);
}

.brand-mark span {
  position: relative;
  width: 31px;
  height: 25px;
  border-radius: 4px;
  background: var(--paper-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.brand-mark span::before,
.brand-mark span::after {
  position: absolute;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.brand-mark span::before {
  left: 7px;
}

.brand-mark span::after {
  right: 7px;
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand-overline {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand-name {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.05em;
  line-height: 0.9;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 42px);
  min-height: var(--header);
  padding-inline: 24px;
  white-space: nowrap;
}

.nav-links a,
.ecosystem-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: clamp(0.9rem, 1vw, 1.04rem);
}

.nav-links a::after,
.ecosystem-link::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
  content: "";
}

.nav-links a:hover::after,
.ecosystem-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.4vw, 38px);
  min-height: var(--header);
  padding-inline: clamp(18px, 3vw, 40px);
  border-left: 1px solid var(--line);
}

.ecosystem-link {
  gap: 14px;
}

.dot-cluster {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  gap: 5px;
}

.dot-cluster span {
  width: 5px;
  height: 5px;
  background: var(--orange);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 8px;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button-primary {
  background: var(--orange);
  box-shadow: 0 12px 26px rgba(255, 91, 26, 0.18);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.button-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.button-wide {
  width: 100%;
  max-width: 390px;
}

.rail {
  position: fixed;
  top: var(--topbar);
  bottom: 0;
  z-index: 30;
  width: var(--rail);
  background: rgba(231, 231, 227, 0.84);
  backdrop-filter: blur(10px);
}

.rail-left {
  left: 0;
  border-right: 1px solid var(--line);
}

.rail-right {
  right: 0;
  display: grid;
  grid-auto-rows: 58px;
  align-content: start;
  border-left: 1px solid var(--line);
}

.rail-node {
  display: grid;
  height: 58px;
  place-items: center;
  border-bottom: 1px solid var(--line);
}

.rail-node span {
  width: 28px;
  height: 28px;
  background:
    linear-gradient(45deg, transparent 46%, var(--line-strong) 47% 53%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, var(--line-strong) 47% 53%, transparent 54%);
}

.rail-right button {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease;
}

.rail-right button:hover {
  background: var(--ink);
  color: var(--paper);
}

main {
  margin-inline: var(--rail);
}

.hero {
  min-height: calc(100svh - var(--topbar));
  border-bottom: 1px solid var(--line-strong);
}

.hero-title-shell {
  position: relative;
  display: grid;
  align-content: end;
  min-height: clamp(260px, 43vh, 520px);
  padding: clamp(36px, 8vw, 112px) clamp(24px, 4vw, 66px) 24px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
}

.hero-title-shell h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(5.5rem, 18vw, 22rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 0.76;
  white-space: nowrap;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 28px 0 0;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-kicker span {
  width: 16px;
  height: 16px;
  background: var(--orange);
}

.orange-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--orange);
}

.pin-a {
  top: 24px;
  left: 24px;
}

.pin-b {
  right: 24px;
  bottom: 24px;
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.7fr) minmax(250px, 0.85fr);
  min-height: clamp(520px, 58vh, 720px);
}

.hero-copy,
.hero-stage,
.hero-aside {
  border-right: 1px solid var(--line-strong);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
  padding: clamp(28px, 4vw, 68px);
}

.hero-copy p {
  max-width: 23ch;
  margin: 0;
  font-size: clamp(1.22rem, 1.7vw, 1.7rem);
  line-height: 1.18;
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: end center;
  min-width: 0;
  padding: 34px 24px 0;
  overflow: hidden;
}

.bot-visual {
  position: relative;
  width: min(82%, 470px);
  min-width: 250px;
  aspect-ratio: 1 / 1.05;
  transform: translateY(var(--hero-lift));
  transition: transform 120ms linear;
}

.bot-body {
  position: absolute;
  right: 12%;
  bottom: 22%;
  left: 12%;
  aspect-ratio: 1;
  border-radius: 22%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(205, 205, 205, 0.68) 34%, rgba(238, 238, 238, 0.95) 68%),
    #f5f5f2;
  box-shadow:
    -30px 38px 70px rgba(255, 91, 26, 0.16),
    24px 30px 56px rgba(0, 0, 0, 0.12),
    inset -16px -12px 26px rgba(0, 0, 0, 0.12),
    inset 20px 16px 28px rgba(255, 255, 255, 0.76);
  animation: botFloat 5.8s ease-in-out infinite;
}

.bot-body::before {
  position: absolute;
  inset: 7%;
  border: 20px solid var(--orange);
  border-radius: 20%;
  box-shadow: 0 0 34px rgba(255, 91, 26, 0.34), inset 0 0 18px rgba(255, 91, 26, 0.18);
  content: "";
}

.bot-body::after {
  position: absolute;
  right: -13%;
  top: 42%;
  width: 21%;
  height: 21%;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6f6f3, #bdbdbb);
  box-shadow: inset -10px -8px 18px rgba(0, 0, 0, 0.12);
  content: "";
}

.bot-face {
  position: absolute;
  inset: 24% 20%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 16%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px) 0 0 / 26px 26px,
    radial-gradient(circle at 50% 110%, rgba(255, 91, 26, 0.26), transparent 52%),
    #261f21;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.12),
    inset 0 -24px 36px rgba(0, 0, 0, 0.28);
}

.eye {
  position: absolute;
  top: 48%;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f7f7f4;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.62);
  transform: translateY(-50%);
}

.eye-left {
  left: 25%;
}

.eye-right {
  right: 25%;
}

.bot-port {
  position: absolute;
  right: 2%;
  top: 40%;
  width: 17%;
  height: 24%;
  border-radius: 999px;
  background: linear-gradient(90deg, #dededb, #9d9d99);
  box-shadow: inset -10px 0 16px rgba(0, 0, 0, 0.16);
}

.bot-base {
  position: absolute;
  right: 1%;
  bottom: 0;
  left: 1%;
  height: 22%;
  border-radius: 30px 30px 0 0;
  background: linear-gradient(90deg, #dadad7, #f8f8f6 48%, #cfcfcc);
  box-shadow: 0 -18px 32px rgba(0, 0, 0, 0.08);
}

.bot-shadow {
  position: absolute;
  right: 6%;
  bottom: 7%;
  left: 6%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.24), transparent 70%);
  filter: blur(10px);
}

.hero-aside {
  display: grid;
  grid-template-rows: 1fr 58px;
  border-right: 0;
}

.scan-card {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 250px;
  place-items: center;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: #111;
  color: var(--paper);
  overflow: hidden;
}

.scan-card::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 45% 48%, rgba(255, 255, 255, 0.12), transparent 45%);
  content: "";
}

.scan-card:hover .pipe-core {
  transform: scale(1.05) rotate(18deg);
}

.scan-corner {
  position: absolute;
  width: 18px;
  height: 18px;
}

.corner-tl {
  top: 22px;
  left: 22px;
  border-top: 3px solid var(--paper);
  border-left: 3px solid var(--paper);
}

.corner-tr {
  top: 22px;
  right: 22px;
  border-top: 3px solid var(--paper);
  border-right: 3px solid var(--paper);
}

.corner-bl {
  bottom: 22px;
  left: 22px;
  border-bottom: 3px solid var(--paper);
  border-left: 3px solid var(--paper);
}

.corner-br {
  right: 22px;
  bottom: 22px;
  border-right: 3px solid var(--paper);
  border-bottom: 3px solid var(--paper);
}

.pipe-core {
  position: relative;
  width: 150px;
  aspect-ratio: 1;
  transition: transform 260ms ease;
}

.pipe-core span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 98px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b8b8b4, #ffffff 55%, #c5c5c1);
  box-shadow: inset -10px -8px 18px rgba(0, 0, 0, 0.16), 0 12px 18px rgba(0, 0, 0, 0.26);
  transform-origin: 0 50%;
}

.pipe-core span:nth-child(1) { transform: rotate(0deg) translateX(0); }
.pipe-core span:nth-child(2) { transform: rotate(60deg) translateX(0); }
.pipe-core span:nth-child(3) { transform: rotate(120deg) translateX(0); }
.pipe-core span:nth-child(4) { transform: rotate(180deg) translateX(0); }
.pipe-core span:nth-child(5) { transform: rotate(240deg) translateX(0); }
.pipe-core span:nth-child(6) { transform: rotate(300deg) translateX(0); }

.partner-control {
  display: grid;
  grid-template-columns: 1fr 58px 58px;
  min-height: 58px;
}

.partner-control span,
.partner-control button {
  display: grid;
  place-items: center;
  border: 0;
  border-right: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.18);
  text-transform: uppercase;
}

.partner-control button {
  font-size: 2rem;
  font-weight: 900;
  transition: background 180ms ease;
}

.partner-control button:hover {
  background: var(--orange);
}

.partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
}

.partners button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 118px;
  border: 0;
  border-right: 1px solid var(--line-strong);
  background: rgba(246, 246, 243, 0.48);
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 900;
  transition: background 180ms ease, transform 180ms ease;
}

.partners button:last-child {
  border-right: 0;
}

.partners button:hover {
  background: var(--paper-soft);
  transform: translateY(-3px);
}

.logo {
  display: inline-block;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
}

.logo-hex {
  border: 12px solid var(--ink);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
}

.logo-triangle {
  background: conic-gradient(from 45deg, var(--ink), transparent 24%, var(--ink) 25% 34%, transparent 35%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.logo-cube {
  background:
    linear-gradient(30deg, transparent 38%, var(--ink) 39% 56%, transparent 57%),
    linear-gradient(150deg, transparent 38%, var(--ink) 39% 56%, transparent 57%),
    linear-gradient(90deg, transparent 38%, var(--ink) 39% 56%, transparent 57%);
  border: 5px solid var(--ink);
}

.logo-pixels {
  background:
    linear-gradient(90deg, var(--ink) 50%, transparent 0) 0 0 / 18px 18px,
    linear-gradient(90deg, transparent 50%, var(--ink) 0) 9px 9px / 18px 18px;
}

.section {
  padding: clamp(70px, 8vw, 120px) clamp(22px, 4vw, 70px);
  border-bottom: 1px solid var(--line-strong);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 0.9fr);
  gap: clamp(26px, 4vw, 70px);
  align-items: start;
  margin-bottom: clamp(36px, 5vw, 72px);
}

.eyebrow {
  margin: 0;
  color: var(--orange);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading h2,
.final-cta h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 5.2rem);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.feature-card {
  min-height: 330px;
  padding: clamp(24px, 3vw, 42px);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(246, 246, 243, 0.34);
}

.feature-card h3 {
  margin: 58px 0 18px;
  font-size: clamp(1.35rem, 2vw, 2.15rem);
  line-height: 1;
  text-transform: uppercase;
}

.feature-card p {
  max-width: 29ch;
  min-height: 78px;
  margin: 0 0 32px;
  color: var(--muted);
}

.card-index {
  display: inline-grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--orange);
  font-weight: 900;
}

.feature-card button,
.case-row,
.system-strip button,
.member,
.faq-item {
  border: 1px solid var(--line-strong);
  background: transparent;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.feature-card button {
  min-height: 44px;
  padding: 0.7rem 1rem;
  text-transform: uppercase;
}

.feature-card button:hover,
.case-row:hover,
.system-strip button:hover,
.member:hover,
.faq-item:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.case-list {
  border-top: 1px solid var(--line-strong);
}

.case-row {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 0.35fr) minmax(190px, 0.5fr);
  width: 100%;
  min-height: 96px;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 48px);
  border-width: 0 0 1px;
  text-align: left;
}

.case-row span {
  font-size: clamp(1.25rem, 2.2vw, 2.4rem);
  font-weight: 900;
  text-transform: uppercase;
}

.case-row strong {
  color: var(--orange);
}

.case-row em {
  color: var(--muted);
  font-style: normal;
}

.system-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 220px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.system-strip button {
  display: grid;
  align-content: space-between;
  min-height: 220px;
  padding: 28px;
  border-width: 0 1px 1px 0;
  text-align: left;
}

.system-strip span {
  text-transform: uppercase;
}

.system-strip strong {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.8;
}

.quote-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-strong);
}

.quote {
  min-height: 260px;
  margin: 0;
  padding: clamp(28px, 4vw, 52px);
  background: rgba(246, 246, 243, 0.5);
}

.quote p {
  max-width: 44ch;
  margin: 0 0 34px;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.22;
}

.quote cite {
  color: var(--orange);
  font-style: normal;
  text-transform: uppercase;
}

.team-grid {
  grid-template-columns: repeat(3, 1fr);
}

.member {
  display: grid;
  min-height: 240px;
  align-content: space-between;
  padding: 30px;
  border: 0;
  background: rgba(246, 246, 243, 0.5);
  text-align: left;
}

.member span {
  color: var(--orange);
  text-transform: uppercase;
}

.member strong {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: 0.02em;
  line-height: 0.8;
  text-transform: uppercase;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  display: grid;
  grid-template-columns: 1fr 60px;
  width: 100%;
  min-height: 86px;
  align-items: center;
  padding-left: clamp(20px, 4vw, 48px);
  border-width: 0 0 1px;
  text-align: left;
}

.faq-item span {
  font-size: clamp(1.15rem, 2vw, 2rem);
  text-transform: uppercase;
}

.faq-item strong {
  display: grid;
  height: 100%;
  place-items: center;
  border-left: 1px solid var(--line-strong);
  font-size: 2rem;
}

.final-cta {
  display: grid;
  gap: 34px;
  min-height: 58svh;
  align-content: center;
  padding: clamp(70px, 10vw, 150px) clamp(22px, 6vw, 100px);
  border-bottom: 1px solid var(--line-strong);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.58);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(18, 18, 18, 0.16) 0) 0 0 / 74px 100%,
    linear-gradient(180deg, transparent calc(100% - 1px), rgba(18, 18, 18, 0.16) 0) 0 0 / 100% 74px,
    var(--paper-soft);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.28);
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.modal.is-open .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 1.5rem;
}

.modal-close:hover {
  background: var(--ink);
  color: var(--paper);
}

.modal-panel h2 {
  margin: 22px 0 18px;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 0.92;
  text-transform: uppercase;
}

.modal-panel p:not(.eyebrow) {
  max-width: 42ch;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes botFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-18px) rotate(1deg);
  }
}

@media (max-width: 1180px) {
  :root {
    --rail: 0px;
  }

  .rail {
    display: none;
  }

  .site-header {
    grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1fr);
  }

  .nav-links {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    min-height: 58px;
    overflow-x: auto;
    border-top: 1px solid var(--line);
  }

  .header-actions {
    border-left: 0;
  }

  .hero-bottom {
    grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  }

  .hero-aside {
    grid-column: 1 / -1;
    grid-template-columns: 1fr minmax(260px, 0.45fr);
    grid-template-rows: auto;
    border-top: 1px solid var(--line-strong);
  }

  .scan-card {
    min-height: 220px;
    border-bottom: 0;
    border-right: 1px solid var(--line-strong);
  }

  .partner-control {
    grid-template-columns: 1fr 58px 58px;
    align-self: stretch;
  }
}

@media (max-width: 860px) {
  :root {
    --banner: 54px;
    --header: 133px;
    --topbar: calc(var(--banner) + var(--header));
  }

  .demo-banner {
    flex-wrap: wrap;
    row-gap: 0;
    line-height: 1.25;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-header::before,
  .site-header::after {
    display: none;
  }

  .brand {
    min-height: 74px;
    border-right: 0;
    border-bottom: 0;
    padding-inline: 16px;
  }

  .header-actions {
    min-height: 74px;
    padding-inline: 12px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .ecosystem-link {
    display: none;
  }

  .hero-title-shell {
    min-height: 250px;
  }

  .hero-title-shell h1 {
    font-size: clamp(4.8rem, 23vw, 10rem);
  }

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

  .hero-copy,
  .hero-stage,
  .hero-aside {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

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

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

  .scan-card {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .partners,
  .cards-grid,
  .system-strip,
  .team-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .partners button {
    justify-content: flex-start;
    min-height: 90px;
    padding-inline: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .section-heading,
  .case-row {
    grid-template-columns: 1fr;
  }

  .case-row {
    gap: 8px;
    padding-block: 22px;
  }
}

@media (max-width: 560px) {
  .nav-links {
    gap: 16px;
    padding-inline: 16px;
  }

  .header-actions {
    padding-inline: 16px;
  }

  .button {
    min-height: 44px;
    padding-inline: 1rem;
    font-size: 0.86rem;
  }

  .hero-copy {
    gap: 32px;
  }

  .hero-copy p {
    max-width: none;
  }

  .section {
    padding-inline: 18px;
  }

  .final-cta {
    padding-inline: 18px;
  }

  .modal {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
