@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Variable.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  --ds-background-100: hsla(0, 0%, 100%, 1);
  --ds-background-200: hsla(0, 0%, 98%, 1);
  --ds-gray-100: hsla(0, 0%, 95%, 1);
  --ds-gray-200: hsla(0, 0%, 92%, 1);
  --ds-gray-300: hsla(0, 0%, 90%, 1);
  --ds-gray-500: hsla(0, 0%, 79%, 1);
  --ds-gray-800: hsla(0, 0%, 49%, 1);
  --ds-gray-900: hsla(0, 0%, 30%, 1);
  --ds-gray-1000: hsla(0, 0%, 9%, 1);
  --ds-gray-alpha-100: #0000000d;
  --ds-gray-alpha-200: #00000015;
  --ds-gray-alpha-300: #0000001a;
  --ds-gray-alpha-500: #00000036;
  --ds-blue-100: hsla(212, 100%, 97%, 1);
  --ds-blue-300: hsla(210, 100%, 94%, 1);
  --ds-blue-700: hsla(212, 100%, 48%, 1);
  --ds-green-100: hsla(120, 60%, 96%, 1);
  --ds-green-300: hsla(120, 60%, 91%, 1);
  --ds-green-700: hsla(131, 41%, 46%, 1);
  --ds-amber-100: hsla(39, 100%, 95%, 1);
  --ds-amber-300: hsla(43, 96%, 90%, 1);
  --ds-amber-700: hsla(39, 100%, 57%, 1);
  --ds-red-100: hsla(0, 100%, 97%, 1);
  --ds-red-300: hsla(0, 100%, 95%, 1);
  --ds-red-700: hsla(358, 75%, 59%, 1);
  --ds-purple-100: hsla(276, 100%, 97%, 1);
  --ds-purple-300: hsla(274, 78%, 95%, 1);
  --ds-purple-700: hsla(272, 51%, 54%, 1);
  --ds-teal-100: hsla(169, 70%, 96%, 1);
  --ds-teal-300: hsla(168, 70%, 90%, 1);
  --ds-teal-700: hsla(173, 80%, 36%, 1);
  --bg: var(--ds-background-100);
  --fg: var(--ds-gray-1000);
  --muted: var(--ds-gray-900);
  --subtle: var(--ds-background-200);
  --line: var(--ds-gray-alpha-300);
  --line-strong: var(--ds-gray-alpha-500);
  --line-hover: var(--ds-gray-alpha-500);
  --accent: var(--ds-blue-700);
  --success: var(--ds-green-700);
  --section-accent: var(--fg);
  --section-soft: var(--subtle);
  --section-border: var(--line);
  --radius: 0;
  --grid-unit: 48px;
  --content-width: 1104px;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, "Roboto Mono", Menlo, Monaco, "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;
  --sans: "Geist", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  --shadow-sm: 0 0 0 1px var(--ds-gray-alpha-100);
  --shadow-md: 0 0 0 1px var(--ds-gray-alpha-200);
  --shadow-hover: 0 0 0 1px var(--ds-gray-alpha-500);
  --transition: all 0.16s ease;
  --grid-color: rgba(0, 0, 0, 0.055);
  --grid-node: rgba(0, 0, 0, 0.09);
  --spotlight-x: 1512px;
  --spotlight-y: 320px;
  --spotlight-opacity: 0.48;
}

@media (max-width: 1200px) {
  :root {
    --content-width: 960px;
  }
}

@media (max-width: 1056px) {
  :root {
    --content-width: 864px;
  }
}

@media (max-width: 960px) {
  :root {
    --content-width: 768px;
  }
}

@media (max-width: 864px) {
  :root {
    --content-width: 672px;
  }
}

@media (max-width: 768px) {
  :root {
    --content-width: 576px;
  }
}

@media (max-width: 672px) {
  :root {
    --content-width: 480px;
  }
}

@media (max-width: 576px) {
  :root {
    --content-width: 384px;
  }
}

@media (max-width: 432px) {
  :root {
    --content-width: 336px;
  }
}

@media (max-width: 384px) {
  :root {
    --content-width: 288px;
  }
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricprecision;
}

body::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc((100% - var(--content-width)) / 2 - 960px);
  z-index: 0;
  width: calc(var(--content-width) + 1920px);
  pointer-events: none;
  background:
    radial-gradient(circle at 0 0, var(--grid-node) 0 1px, transparent 1.5px),
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-position: 0 0;
  background-size: var(--grid-unit) var(--grid-unit);
  opacity: 0.82;
  content: "";
}

body::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc((100% - var(--content-width)) / 2 - 960px);
  z-index: 0;
  width: calc(var(--content-width) + 1920px);
  pointer-events: none;
  background:
    radial-gradient(circle at 0 0, rgba(0, 112, 243, 0.34) 0 1px, transparent 1.5px),
    linear-gradient(rgba(0, 112, 243, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 112, 243, 0.16) 1px, transparent 1px);
  background-position: 0 0;
  background-size: var(--grid-unit) var(--grid-unit);
  opacity: calc(var(--spotlight-opacity) * 0.82);
  -webkit-mask-image: radial-gradient(
    520px circle at var(--spotlight-x) var(--spotlight-y),
    #000 0%,
    rgba(0, 0, 0, 0.72) 34%,
    transparent 72%
  );
  mask-image: radial-gradient(
    520px circle at var(--spotlight-x) var(--spotlight-y),
    #000 0%,
    rgba(0, 0, 0, 0.72) 34%,
    transparent 72%
  );
  transition: opacity 0.28s ease;
  content: "";
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 95px;
  width: var(--content-width);
  margin: 0 auto;
  padding: 0;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.brand-wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.brand-wordmark::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  background: var(--ds-blue-700);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: brand-scan 4.8s ease-in-out infinite;
}

@keyframes brand-scan {
  0%,
  18% {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
  }

  38%,
  62% {
    opacity: 1;
    transform: scaleX(1);
    transform-origin: left;
  }

  82%,
  100% {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: right;
  }
}

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

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  padding: 0 14px;
  transition: var(--transition);
}

.nav a:hover,
.nav a.active {
  border-color: var(--ds-blue-300);
  background: var(--ds-blue-100);
  color: var(--fg);
}

.nav a.active::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 1px;
  background: var(--ds-blue-700);
  content: "";
}

main {
  position: relative;
  z-index: 1;
  width: var(--content-width);
  margin: 0 auto;
  padding: 48px 0 96px;
}

#overview {
  --section-accent: var(--fg);
  --section-soft: var(--subtle);
  --section-border: var(--line);
}

#pipeline {
  --section-accent: var(--ds-blue-700);
  --section-soft: var(--ds-blue-100);
  --section-border: var(--ds-blue-300);
}

#deliverable {
  --section-accent: var(--fg);
  --section-soft: var(--subtle);
  --section-border: var(--line);
}

#architecture {
  --section-accent: var(--fg);
  --section-soft: var(--subtle);
  --section-border: var(--line);
}

#costs {
  --section-accent: var(--fg);
  --section-soft: var(--ds-amber-100);
  --section-border: var(--ds-amber-300);
}

#costs .section-title h2::before {
  background: var(--ds-amber-700);
}

#costs .label {
  color: var(--fg);
}

#risks {
  --section-accent: var(--ds-red-700);
  --section-soft: var(--ds-red-100);
  --section-border: var(--ds-red-300);
}

#decisions {
  --section-accent: var(--fg);
  --section-soft: var(--subtle);
  --section-border: var(--line);
}

.hero {
  border-bottom: 1px solid var(--line);
  height: 576px;
  padding: 48px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 672px) 384px;
  gap: 48px;
  align-items: start;
}

.label {
  display: inline-flex;
  width: 192px;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-height: 0;
  border: 1px solid var(--section-border);
  background: var(--section-soft);
  color: var(--section-accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 0 12px;
  box-shadow: var(--shadow-sm);
}

.label::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--fg);
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 768px;
  margin-top: 24px;
  font-size: 72px;
  font-weight: 600;
  line-height: 80px;
  letter-spacing: 0;
}

h2 {
  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: 0;
}

.section-title h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title h2::before {
  display: inline-block;
  flex: 0 0 auto;
  width: 4px;
  height: 24px;
  background: var(--section-accent);
  content: "";
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--muted);
}

.lead {
  max-width: 672px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 20px;
  line-height: 32px;
}

.lead::before {
  display: block;
  width: 96px;
  height: 1px;
  margin-bottom: 23px;
  background: var(--line-strong);
  content: "";
}

.hero-card,
.card,
.step,
.code-panel,
.architecture-panel,
.ateam-schema,
.risk-card,
.price-card {
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.hero-card:hover,
.card:hover,
.step:hover,
.code-panel:hover,
.architecture-panel:hover,
.ateam-schema:hover,
.risk-card:hover,
.price-card:hover {
  border-color: var(--line-hover);
  box-shadow: var(--shadow-hover);
}

.hero-card:hover,
.card:hover,
.step:hover,
.code-panel:hover,
.architecture-panel:hover,
.ateam-schema:hover,
.risk-card:hover,
.price-card:hover {
  transform: translateY(-1px);
}

.hero-card {
  position: relative;
  --module-accent: var(--ds-green-700);
  --module-soft: var(--ds-green-100);
  border-color: var(--ds-green-300);
  height: 288px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.hero-card::before,
.step::before,
.price-card.recommended::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: 1px;
  background: var(--module-accent, var(--section-accent));
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--module-accent, var(--muted));
  line-height: 20px;
}

.dot {
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid var(--ds-green-300);
  background: var(--success);
}

.facts {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
}

.facts div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.facts div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.facts span {
  color: var(--muted);
  font-size: 14px;
}

.facts strong {
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.section {
  padding: 96px 0 0;
  scroll-margin-top: 0;
}

.section-title {
  display: grid;
  gap: 16px;
  align-content: start;
  height: 192px;
  max-width: 768px;
  margin-bottom: 48px;
}

.section-title p {
  max-width: 672px;
  font-size: 16px;
  line-height: 24px;
}

.pipeline {
  position: relative;
  display: grid;
  gap: 48px;
  counter-reset: pipeline-step;
}

.pipeline:before {
  position: absolute;
  top: 32px;
  bottom: 32px;
  left: 35px;
  width: 2px;
  background: var(--ds-blue-700);
  content: "";
}

.step {
  position: relative;
  --module-accent: var(--section-accent);
  --module-soft: var(--section-soft);
  --module-border: var(--section-border);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  height: 240px;
  padding: 32px;
  border-color: var(--module-border);
  background: var(--bg);
  overflow: hidden;
}

.step::after {
  position: absolute;
  top: 31px;
  right: 31px;
  color: var(--ds-gray-alpha-500);
  content: "phase " counter(pipeline-step, decimal-leading-zero);
  counter-increment: pipeline-step;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}

.pipeline .step {
  --module-accent: var(--ds-blue-700);
  --module-soft: var(--ds-blue-100);
  --module-border: var(--ds-blue-300);
}

.step-index {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--module-border);
  background: var(--module-soft);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--module-accent);
  box-shadow: 0 0 0 4px var(--bg);
  z-index: 2;
  transition: var(--transition);
}

.step:hover .step-index {
  border-color: var(--module-accent);
  color: var(--module-accent);
}

.step-body {
  display: grid;
  gap: 12px;
  max-width: 816px;
}

.step-meta {
  color: var(--module-accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.step-body p {
  max-width: 768px;
  font-size: 15px;
  line-height: 24px;
}

.step ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.step li {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--module-border);
  background: var(--module-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  padding: 0 14px;
  transition: var(--transition);
}

.step li:hover {
  border-color: var(--line-hover);
  color: var(--fg);
}

.cards {
  display: grid;
  gap: 48px;
  counter-reset: card-item;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  --module-accent: var(--fg);
  --module-soft: var(--subtle);
  --module-border: var(--line);
  position: relative;
  height: 240px;
  border-color: var(--module-border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card::after {
  position: absolute;
  top: 31px;
  right: 31px;
  color: var(--ds-gray-800);
  content: counter(card-item, decimal-leading-zero);
  counter-increment: card-item;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.card::before,
.code-panel::before,
.architecture-panel::before,
.ateam-schema::before,
.risk-card::before,
.price-card::after,
.decision-list::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: 1px;
  background: var(--module-accent, var(--section-accent));
  content: "";
}

.card h3 {
  max-width: 216px;
  color: var(--fg);
}

.card p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 24px;
  flex-grow: 1;
}

.architecture {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 528px));
  gap: 48px;
}

.code-panel {
  --module-accent: var(--fg);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 384px;
  overflow: hidden;
}

.code-line {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  height: 64px;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  cursor: crosshair;
  transition: var(--transition);
}

.code-line:hover,
.code-line:focus-visible {
  background: var(--subtle);
}

.code-line.ateam-option {
  background: var(--ds-blue-100);
}

.code-line.ateam-option::after {
  position: absolute;
  right: 16px;
  top: 50%;
  color: var(--ds-blue-700);
  content: "A-Team capable";
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 12px;
  opacity: 0.72;
  transform: translateY(-50%);
}

.code-line.ateam-option strong {
  padding-right: 116px;
}

.code-line:last-child {
  border-bottom: 0;
}

.code-line span {
  color: var(--ds-blue-700);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}

.code-line strong {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.architecture-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 288px;
  min-height: 144px;
  border: 1px solid var(--ds-blue-300);
  background: var(--bg);
  box-shadow: var(--shadow-hover);
  color: var(--fg);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--tooltip-x, 0), var(--tooltip-y, 0), 0);
  transition: opacity 0.12s ease;
}

.architecture-tooltip.is-visible {
  opacity: 1;
}

.architecture-tooltip::before {
  display: block;
  height: 1px;
  background: var(--ds-blue-700);
  content: "";
}

.architecture-tooltip-kicker {
  display: block;
  padding: 22px 24px 0;
  color: var(--ds-blue-700);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  text-transform: uppercase;
}

.architecture-tooltip-title {
  display: block;
  padding: 8px 24px 0;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.architecture-tooltip-body {
  margin: 0;
  padding: 10px 24px 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.architecture-panel {
  --module-accent: var(--fg);
  position: relative;
  height: 384px;
  display: grid;
  border-color: var(--line);
  overflow: hidden;
}

.architecture-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  height: 96px;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  transition: var(--transition);
}

.architecture-item:hover {
  background: var(--subtle);
}

.architecture-item:last-child {
  border-bottom: 0;
}

.architecture-item span {
  color: var(--ds-blue-700);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}

.architecture-item strong {
  display: block;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.architecture-item p {
  max-width: 360px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.ateam-schema {
  --module-accent: var(--ds-blue-700);
  --module-soft: var(--ds-blue-100);
  --module-border: var(--ds-blue-300);
  position: relative;
  display: grid;
  grid-template-rows: 192px 192px;
  height: 384px;
  border-color: var(--module-border);
  overflow: visible;
}

.ateam-schema-header {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 32px;
  border-bottom: 1px solid var(--module-border);
}

.ateam-schema-header span {
  color: var(--module-accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-transform: uppercase;
}

.ateam-schema-header strong {
  color: var(--fg);
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
}

.ateam-schema-header p {
  max-width: 360px;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

.ateam-service-list {
  position: relative;
  display: grid;
  grid-template-rows: repeat(3, 64px);
}

.ateam-service-list::before {
  position: absolute;
  top: 32px;
  bottom: 32px;
  left: 31px;
  width: 1px;
  background: var(--module-accent);
  content: "";
  opacity: 0.5;
}

.ateam-service {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--module-border);
  padding: 0 24px 0 0;
  background: var(--bg);
  transition: var(--transition);
}

.ateam-service:last-child {
  border-bottom: 0;
}

.ateam-service::before {
  position: absolute;
  top: 50%;
  left: -49px;
  width: 48px;
  height: 1px;
  background: var(--module-accent);
  content: "";
}

.ateam-service::after {
  position: absolute;
  top: calc(50% - 4px);
  left: -4px;
  width: 8px;
  height: 8px;
  background: var(--module-accent);
  content: "";
}

.ateam-service:hover {
  background: var(--module-soft);
}

.ateam-service > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--module-accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.ateam-service strong {
  display: block;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.ateam-service p {
  max-width: 360px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
}

.risk-card {
  --module-accent: var(--ds-red-700);
  --module-soft: var(--ds-red-100);
  --module-border: var(--ds-red-300);
  position: relative;
  display: grid;
  grid-template-rows: 24px auto 1fr;
  align-content: start;
  gap: 16px;
  height: 288px;
  border-color: var(--module-border);
  padding: 32px;
  overflow: hidden;
}

.risk-card:hover {
  background: var(--module-soft);
}

.risk-index {
  color: var(--module-accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.risk-card h3 {
  max-width: 176px;
  font-size: 20px;
  line-height: 28px;
}

.risk-card p {
  align-self: start;
  max-width: 200px;
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
}

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

.price-card {
  --module-accent: var(--fg);
  --module-soft: var(--subtle);
  --module-border: var(--line);
  display: flex;
  flex-direction: column;
  height: 432px;
  border-color: var(--module-border);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.price-card::after {
  height: 1px;
}

.price-card:nth-child(1) {
  --module-accent: var(--fg);
  --module-soft: var(--ds-background-200);
  --module-border: var(--ds-gray-alpha-300);
}

.price-card:nth-child(2) {
  --module-accent: var(--ds-green-700);
  --module-soft: var(--ds-green-100);
  --module-border: var(--ds-green-300);
}

.price-card:nth-child(3) {
  --module-accent: var(--fg);
  --module-soft: var(--ds-background-200);
  --module-border: var(--ds-gray-alpha-300);
}

.price-card.recommended {
  border-color: var(--module-accent);
  box-shadow: var(--shadow-hover);
}

.price-card.recommended::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--module-accent);
}

.price-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
}

.price-head strong,
.price-grid strong {
  font-variant-numeric: tabular-nums;
}

.price-card h3 {
  margin-top: 32px;
  font-size: 24px;
  line-height: 32px;
  color: var(--fg);
}

.price-card.recommended .price-head,
.price-card.recommended h3 {
  color: var(--module-accent);
}

.price-card p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 24px;
}

.price-grid {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 32px;
}

.price-grid div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.price-grid span {
  color: var(--muted);
  font-size: 14px;
}

.price-grid strong {
  text-align: right;
  font-size: 14px;
  font-weight: 600;
}

.decision-list {
  --module-accent: var(--fg);
  --module-soft: var(--subtle);
  --module-border: var(--line);
  position: relative;
  display: grid;
  height: 576px;
  border: 1px solid var(--module-border);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.decision-list div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 0;
  border-bottom: 1px solid var(--line);
  padding: 24px;
  transition: var(--transition);
}

.decision-list div:hover {
  background: var(--module-soft);
}

.decision-list div:last-child {
  border-bottom: 0;
}

.decision-list span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}

.decision-list div {
  color: var(--fg);
  font-size: 15px;
  line-height: 24px;
}

.decision-list strong {
  font-size: 15px;
  font-weight: 500;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0;
  padding: 0;
}

.footer::before {
  display: block;
  width: var(--content-width);
  height: 95px;
  margin: 0 auto;
  padding-top: 35px;
  content: "Saelia | web demo program";
  font-family: var(--mono);
  font-size: 12px;
  line-height: 20px;
  text-transform: uppercase;
}

@media (max-width: 1056px) {
  h1 {
    font-size: 64px;
    line-height: 72px;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    height: 143px;
    justify-content: center;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero-grid,
  .architecture,
  .pricing,
  .cards.three,
  .cards.four,
  .risk-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero-card,
  .step,
  .card,
  .code-panel,
  .architecture-panel,
  .ateam-schema,
  .risk-card,
  .price-card,
  .decision-list {
    height: auto;
  }

  .hero {
    height: 864px;
    padding: 48px 0 0;
  }

  .hero-grid {
    gap: 48px;
    grid-template-rows: 432px 288px;
  }

  .hero-grid > div:first-child {
    height: 432px;
  }

  .hero-card {
    height: 288px;
  }

  .step {
    height: 384px;
  }

  .card {
    height: 288px;
  }

  .code-panel,
  .architecture-panel,
  .ateam-schema,
  .price-card {
    height: 384px;
  }

  .risk-card {
    height: 240px;
  }

  .decision-list {
    height: 576px;
  }

  .pipeline:before {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --content-width: calc(100vw - 32px);
    --grid-unit: 32px;
  }

  main {
    padding: 32px 0 72px;
  }

  body::before,
  body::after {
    left: 0;
    width: 100%;
  }

  .topbar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(14px);
  }

  .topbar-inner {
    width: var(--content-width);
    height: auto;
    min-height: 144px;
    padding: 16px 0 14px;
    gap: 12px;
    overflow: hidden;
  }

  .brand,
  .brand-wordmark {
    min-height: 32px;
  }

  .brand {
    font-size: 15px;
    line-height: 20px;
  }

  .brand-wordmark::after {
    bottom: 2px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0;
    overflow: visible;
    padding: 0 0 2px;
  }

  .nav a {
    min-height: 36px;
    justify-content: center;
    padding: 0 6px;
    font-size: 12px;
  }

  h1 {
    max-width: 100%;
    margin-top: 20px;
    font-size: 44px;
    line-height: 48px;
  }

  h2 {
    font-size: 34px;
    line-height: 40px;
  }

  h3 {
    font-size: 19px;
    line-height: 28px;
  }

  .label {
    width: 100%;
    height: 48px;
    justify-content: flex-start;
    padding: 0 16px;
  }

  .lead {
    max-width: 100%;
    margin-top: 20px;
    font-size: 16px;
    line-height: 26px;
  }

  .lead::before {
    width: 64px;
    margin-bottom: 19px;
  }

  .hero {
    height: auto;
    padding: 32px 0 48px;
  }

  .hero-grid {
    display: block;
  }

  .hero-grid > div:first-child,
  .hero-card {
    height: auto;
  }

  .hero-card {
    margin-top: 32px;
    padding: 24px;
  }

  .status-line {
    padding-bottom: 16px;
    font-size: 12px;
  }

  .facts {
    gap: 14px;
    margin-top: 20px;
  }

  .facts div {
    gap: 12px;
    padding-bottom: 10px;
  }

  .facts span,
  .facts strong {
    font-size: 13px;
  }

  .section {
    padding-top: 72px;
  }

  .section-title {
    height: auto;
    margin-bottom: 32px;
    gap: 14px;
  }

  .section-title h2 {
    gap: 10px;
  }

  .section-title h2::before {
    width: 3px;
    height: 24px;
  }

  .section-title p {
    font-size: 15px;
    line-height: 24px;
  }

  .pipeline,
  .cards,
  .architecture,
  .pricing,
  .risk-grid {
    gap: 24px;
  }

  .step {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    height: auto;
    min-height: 0;
    padding: 24px;
  }

  .step::after {
    top: 23px;
    right: 23px;
    font-size: 10px;
  }

  .step-index {
    width: 40px;
    height: 40px;
    font-size: 13px;
    box-shadow: 0 0 0 3px var(--bg);
  }

  .step-body {
    gap: 10px;
    padding-top: 2px;
  }

  .step-body p {
    font-size: 14px;
    line-height: 23px;
  }

  .step ul {
    gap: 8px;
    margin-top: 8px;
  }

  .step li {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .card,
  .risk-card,
  .price-card,
  .code-panel,
  .architecture-panel,
  .ateam-schema,
  .decision-list {
    height: auto;
  }

  .card,
  .risk-card,
  .price-card {
    min-height: 0;
    padding: 24px;
  }

  .card::after {
    top: 23px;
    right: 23px;
  }

  .card h3,
  .risk-card h3,
  .risk-card p {
    max-width: none;
  }

  .card p,
  .risk-card p,
  .price-card p {
    font-size: 14px;
    line-height: 23px;
  }

  .code-panel {
    overflow: visible;
  }

  .code-line {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    min-height: 72px;
    height: auto;
    padding: 16px;
  }

  .code-line strong {
    font-size: 12px;
    line-height: 18px;
    overflow-wrap: anywhere;
  }

  .code-line.ateam-option::after {
    display: none;
  }

  .code-line.ateam-option strong {
    padding-right: 0;
  }

  .architecture-tooltip {
    display: none;
  }

  .architecture-panel {
    display: block;
  }

  .architecture-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    height: auto;
    min-height: 104px;
    padding: 20px 16px;
  }

  .architecture-item p {
    max-width: none;
  }

  .ateam-schema {
    display: block;
    overflow: hidden;
  }

  .ateam-schema-header {
    padding: 24px;
  }

  .ateam-schema-header strong {
    font-size: 20px;
    line-height: 28px;
  }

  .ateam-schema-header p {
    max-width: none;
    font-size: 13px;
    line-height: 21px;
  }

  .ateam-service-list {
    display: block;
  }

  .ateam-service-list::before,
  .ateam-service::before,
  .ateam-service::after {
    display: none;
  }

  .ateam-service {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    min-height: 96px;
    padding: 18px 16px 18px 0;
  }

  .ateam-service > span {
    width: 48px;
    height: auto;
  }

  .ateam-service p {
    max-width: none;
  }

  .price-card h3 {
    margin-top: 28px;
    font-size: 22px;
    line-height: 30px;
  }

  .price-head {
    align-items: flex-start;
    gap: 12px;
    font-size: 11px;
  }

  .price-grid {
    margin-top: 40px;
    padding-top: 0;
  }

  .risk-card {
    grid-template-rows: auto;
    gap: 12px;
  }

  .decision-list {
    display: block;
  }

  .decision-list div {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px;
    min-height: 96px;
    padding: 20px 16px;
    font-size: 14px;
    line-height: 23px;
  }

  .footer::before {
    width: var(--content-width);
    height: 80px;
    padding-top: 28px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    opacity: 0.72;
  }

  body::after {
    animation: none;
    opacity: 0;
    content: none;
  }

  .brand-wordmark::after {
    animation: none;
    opacity: 0.35;
    transform: scaleX(1);
  }
}

@media print {
  .topbar {
    display: none;
  }

  body {
    background: #ffffff;
  }

  main {
    max-width: none;
    padding: 0;
  }

  .section {
    break-inside: avoid;
    padding-top: 48px;
  }

  .hero-card,
  .card,
  .step,
  .code-panel,
  .architecture-panel,
  .risk-card,
  .price-card,
  .decision-list {
    box-shadow: none;
  }
}
