:root {
  --ink: #14181c;
  --ink-2: #2a2f36;
  --muted: #5f6b78;
  --muted-2: #98a2ad;
  --steel: #2b4c6f;
  --steel-2: #1f3a57;
  --accent: #b94a1c;
  --accent-2: #9f3d16;
  --bg: #f6f7f8;
  --bg-2: #eef2f5;
  --panel: #ffffff;
  --rule: #d5dbe0;
  --rule-2: #e5e9ed;
  --hair: rgba(20, 24, 28, 0.08);
  --grid: rgba(43, 76, 111, 0.06);
  --dark: #0e1115;
  --f-display: "Inter Tight", "Inter", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1240px;
  --pad: 40px;
  --sec-pad: clamp(56px, 7vw, 88px);
  --head-mb: clamp(32px, 4.5vw, 52px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--f-body);
  color: var(--ink);
  background:
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(180deg, var(--grid) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11", "tnum";
  font-size: 16px;
  line-height: 1.5;
}

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

button,
input,
select {
  font: inherit;
}

svg {
  display: block;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section {
  position: relative;
  padding: var(--sec-pad) 0;
  border-top: 1px solid var(--rule);
}

section:first-of-type {
  border-top: none;
}

.section-head {
  max-width: 780px;
  margin-bottom: var(--head-mb);
}

.section-marker {
  display: block;
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head > .section-marker {
  margin-bottom: 14px;
}

.section-marker::before {
  content: none;
}

.section-marker.compact {
  margin-bottom: 14px;
}

.section-marker.dark {
  color: var(--accent);
}

.section-title {
  max-width: 22ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.section-intro {
  max-width: 62ch;
  margin: 20px 0 0;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.55;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-2);
}

.btn-ghost {
  border: 1px solid var(--rule);
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  border-color: var(--steel);
  color: var(--steel);
}

.arr {
  display: inline-flex;
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(246, 247, 248, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav.scrolled {
  border-bottom-color: var(--rule);
  background: rgba(246, 247, 248, 0.94);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--steel);
}

.brand-mark::before {
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.brand-mark::after {
  clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
  transform: translateX(4px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

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

.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
}

.nav-links .nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(780px, calc(100svh - 64px));
  overflow: hidden;
  padding: clamp(76px, 8vw, 108px) 0 clamp(52px, 6vw, 72px);
  background: #dfe7ed;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 50%;
}

.hero-shade {
  background:
    linear-gradient(
      90deg,
      rgba(246, 247, 248, 0.97) 0%,
      rgba(246, 247, 248, 0.93) 33%,
      rgba(246, 247, 248, 0.62) 54%,
      rgba(246, 247, 248, 0.12) 82%,
      rgba(246, 247, 248, 0) 100%
    ),
    linear-gradient(0deg, rgba(246, 247, 248, 0.46) 0%, rgba(246, 247, 248, 0) 44%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-copy {
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--steel);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  max-width: 10ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: clamp(54px, 6.4vw, 86px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.hero-sub {
  max-width: 56ch;
  margin: 28px 0 0;
  color: var(--ink-2);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.diagram-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.svg-label,
.svg-copy {
  font-family: var(--f-mono);
}

.svg-label {
  fill: var(--steel);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
}

.svg-label.muted {
  fill: #5b6066;
}

.svg-label.ops {
  fill: #9fb4c7;
}

.svg-label.live-label {
  fill: #9fb4c7;
  font-size: 10px;
}

.small-label {
  font-size: 9px;
}

.svg-copy {
  fill: #dfe7ee;
  font-size: 13px;
  font-weight: 500;
}

/* Problem */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
  background: var(--panel);
}

.problem-card {
  min-height: 310px;
  padding: 30px 28px;
  border-right: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.72);
}

.problem-card:last-child {
  border-right: none;
}

.card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  color: var(--steel);
}

.card-icon svg {
  width: 42px;
  height: 42px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.accent-stroke {
  stroke: var(--accent);
}

.problem-card h3,
.ops-copy h3 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.problem-card p,
.how-step p,
.ops-copy p,
.note-block p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.bridge,
.honesty {
  max-width: 48ch;
  margin: 42px 0 0;
  color: var(--ink-2);
  font-family: var(--f-display);
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.bridge strong,
.honesty strong {
  color: var(--accent);
  font-weight: 500;
}

/* Cell */

.robot-video {
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--dark);
}

.robot-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 36px;
  border: 1px solid var(--rule);
  background: var(--rule);
}

.how-step {
  min-height: 150px;
  padding: 24px;
  background: var(--panel);
}

.how-step span,
.tag,
.note-block span,
.source-line,
.footer-contact {
  color: var(--steel);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.diagram {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--panel);
}

.diagram-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.diagram-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.diagram-scroll svg {
  min-width: 900px;
  width: 100%;
}

.scroll-hint {
  display: none;
  padding: 12px 18px 16px;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 36px;
  border: 1px solid var(--rule);
  background: var(--rule);
}

.spec {
  min-height: 170px;
  padding: 24px;
  background: var(--bg-2);
}

.spec strong {
  display: block;
  margin: 20px 0 8px;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}

.spec span:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.ops-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
  margin-top: 56px;
}

.split {
  border: 1px solid var(--rule);
  background: var(--panel);
}

.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-row > * {
  padding: 22px 24px;
}

.split-row > * + * {
  border-left: 1px solid var(--rule);
}

.split-head {
  border-bottom: 1px solid var(--rule);
  color: var(--steel);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.split ul {
  margin: 0;
  color: var(--ink-2);
  list-style: none;
}

.split li + li {
  margin-top: 12px;
}

.split li::before {
  content: "—";
  margin-right: 10px;
  color: var(--muted-2);
}

.merista-list li::before {
  color: var(--accent);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 42px;
}

.note-block {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--steel);
  padding: 28px;
  background: rgba(255, 255, 255, 0.72);
}

.note-block.accent {
  border-left-color: var(--accent);
}

.note-block.accent span {
  color: var(--accent);
}

.honesty {
  max-width: 58ch;
}

/* Team */

.source-line {
  margin: 20px 0 0;
  color: var(--muted);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--rule);
  background: var(--panel);
}

.metric {
  min-height: 178px;
  padding: 24px;
  border-right: 1px solid var(--rule);
}

.metric:last-child {
  border-right: none;
}

.metric strong {
  display: block;
  color: var(--steel);
  font-family: var(--f-display);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.metric span {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.team-bridge {
  max-width: 54ch;
}

/* Vision */

.vision-section {
  background: #fff;
}

.vision-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.vision-copy {
  max-width: 62ch;
}

.vision-copy p {
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.vision-copy p + p {
  margin-top: 18px;
  color: var(--muted);
}

/* Ask and footer */

.ask-section {
  border-top: none;
  background: var(--dark);
  color: #fff;
}

.ask-grid {
  max-width: 760px;
}

.ask-section .section-title {
  margin-top: 18px;
  color: #fff;
}

.ask-sub {
  max-width: 58ch;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.58;
}

.ask-actions {
  margin-top: 32px;
}

.ask-actions p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.ask-actions a:not(.btn) {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer {
  padding: 52px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0d10;
  color: rgba(255, 255, 255, 0.58);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
}

.footer-brand {
  margin-bottom: 14px;
  color: #fff;
}

.footer .brand-mark::before,
.footer .brand-mark::after {
  border-color: rgba(255, 255, 255, 0.72);
}

.footer p {
  max-width: 58ch;
  margin: 8px 0 0;
}

.footer-links {
  display: grid;
  gap: 10px;
  min-width: 180px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.float-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.float-cta.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

  .hero-grid {
    gap: 44px;
  }

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

  .metric {
    border-bottom: 1px solid var(--rule);
  }

  .metric:nth-child(3n) {
    border-right: none;
  }

  .float-cta {
    display: none;
  }
}

@media (max-width: 860px) {
  :root {
    --pad: 24px;
  }

  .nav-inner {
    height: auto;
    min-height: 64px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-links {
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .problem-grid,
  .how-grid,
  .spec-grid,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .problem-card,
  .metric {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }

  .problem-card:last-child,
  .metric:last-child {
    border-bottom: none;
  }

  .scroll-hint {
    display: block;
  }

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

@media (max-width: 560px) {
  :root {
    --pad: 18px;
  }

  body {
    font-size: 15px;
  }

  .hero {
    min-height: calc(100svh - 112px);
    padding-top: 70px;
    padding-bottom: 48px;
  }

  .hero-media img {
    object-position: 70% 50%;
  }

  .hero-shade {
    background:
      linear-gradient(
        180deg,
        rgba(246, 247, 248, 0.97) 0%,
        rgba(246, 247, 248, 0.88) 42%,
        rgba(246, 247, 248, 0.3) 100%
      ),
      linear-gradient(90deg, rgba(246, 247, 248, 0.85) 0%, rgba(246, 247, 248, 0.1) 100%);
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(46px, 14vw, 68px);
  }

  .hero-sub,
  .section-intro,
  .ask-sub {
    font-size: 16px;
  }

  .btn {
    width: 100%;
  }

  .hero-ctas {
    width: 100%;
  }

  .diagram-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .split-row {
    grid-template-columns: 1fr;
  }

  .split-row > * + * {
    border-top: 1px solid var(--rule);
    border-left: none;
  }

}
