/* ==========================================================================
   okforge.dev
   ========================================================================== */

:root {
  --navy-950: #06121f;
  --navy-925: #081725;
  --navy-900: #0a1929;
  --navy-850: #0d2133;
  --navy-800: #10283d;
  --navy-700: #183a54;

  --teal-500: #22bdb8;
  --teal-400: #35d4cf;
  --teal-300: #6ce7e2;
  --teal-200: #a7f2ef;

  --forge-red: #d8342c;
  --forge-red-hover: #eb443a;
  --forge-red-soft: #fff0ee;

  --paper: #f6f3ec;
  --paper-dark: #ebe6db;
  --white: #ffffff;

  --text-dark: #17212b;
  --text-body: #34414c;
  --text-muted: #66727e;
  --text-light: #dce7ed;
  --text-light-muted: #9eb1bd;

  --border-light: #dcdedc;
  --border-dark: rgba(255, 255, 255, 0.13);

  --content-width: 1180px;
  --reading-width: 780px;

  --radius-small: 8px;
  --radius-medium: 14px;
  --radius-large: 22px;

  --shadow-small:
    0 2px 4px rgba(15, 24, 32, 0.04),
    0 10px 30px rgba(15, 24, 32, 0.07);

  --shadow-large:
    0 25px 70px rgba(10, 25, 41, 0.18);

  --section-space: clamp(5.25rem, 9vw, 8.5rem);

  --font-sans:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --font-mono:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
}


/* ==========================================================================
   Reset and base elements
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
canvas,
video,
iframe {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--teal-400);
  outline-offset: 4px;
}

::selection {
  background: var(--teal-300);
  color: var(--navy-950);
}

h1,
h2,
h3,
p,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text-dark);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 950px;
  margin-bottom: 1.6rem;
  font-size: clamp(3rem, 7vw, 6.35rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.35rem, 4.8vw, 4.4rem);
}

h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

p {
  margin-bottom: 1.25rem;
}

strong {
  color: inherit;
}

code {
  font-family: var(--font-mono);
}


/* ==========================================================================
   Accessibility helpers
   ========================================================================== */

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 9999;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-small);
  background: var(--white);
  color: var(--navy-950);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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


/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: min(calc(100% - 3rem), var(--content-width));
  margin-inline: auto;
}

.reading-width {
  max-width: var(--reading-width);
}

.centered {
  text-align: center;
}

.section {
  position: relative;
  padding-block: var(--section-space);
}

.section-light {
  background: var(--paper);
}

.section-tinted {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.4),
      rgba(255, 255, 255, 0)
    ),
    var(--paper-dark);
}

.section-dark {
  background: var(--navy-950);
  color: var(--text-light);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-heading {
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

.section-heading.centered {
  max-width: 850px;
  margin-inline: auto;
}

.section-heading > p:not(.eyebrow) {
  max-width: 750px;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
}

.section-heading.centered > p:not(.eyebrow) {
  margin-inline: auto;
}

.section-dark .section-heading > p:not(.eyebrow) {
  color: var(--text-light-muted);
}

.section-closing {
  max-width: 760px;
  margin: 3rem auto 0;
  color: var(--text-muted);
  font-size: 1.08rem;
  text-align: center;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--forge-red);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.3;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: var(--teal-300);
}


/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  background: rgba(6, 18, 31, 0);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.09);
  background: rgba(6, 18, 31, 0.93);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
}

.site-nav {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--forge-red);
  font-size: 1.5rem;
  transform: rotate(45deg);
}

.brand-name {
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.nav-links > a:not(.button) {
  color: #d7e3e9;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links > a:not(.button):hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-small);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin-block: 5px;
  border-radius: 999px;
  background: var(--white);
}


/* ==========================================================================
   Buttons and text links
   ========================================================================== */

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.centered-buttons {
  justify-content: center;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--forge-red);
  background: var(--forge-red);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(216, 52, 44, 0.22);
}

.button-primary:hover {
  border-color: var(--forge-red-hover);
  background: var(--forge-red-hover);
  box-shadow: 0 14px 34px rgba(216, 52, 44, 0.3);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
}

.button-outline:hover {
  border-color: var(--teal-300);
  background: rgba(53, 212, 207, 0.1);
}

.button-small {
  min-height: 40px;
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--forge-red);
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.section-dark .text-link {
  color: var(--teal-300);
}


/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: grid;
  min-height: min(900px, 96vh);
  align-items: center;
  overflow: hidden;
  padding-block: clamp(9rem, 16vh, 12rem) clamp(5rem, 11vh, 8rem);
  background:
    radial-gradient(
      circle at 72% 26%,
      rgba(26, 139, 145, 0.23),
      transparent 32%
    ),
    linear-gradient(140deg, var(--navy-950), var(--navy-850));
}

.hero-graph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  filter: brightness(1.15);
}

.hero-shade {
  position: absolute;
  inset: 0;
  opacity: 0.70;
  background:
    radial-gradient(
      ellipse at 31% 47%,
      rgba(6, 18, 31, 0.97) 0%,
      rgba(6, 18, 31, 0.86) 27%,
      rgba(6, 18, 31, 0.44) 54%,
      rgba(6, 18, 31, 0.1) 78%
    ),
    linear-gradient(
      90deg,
      rgba(6, 18, 31, 0.94) 0%,
      rgba(6, 18, 31, 0.63) 47%,
      rgba(6, 18, 31, 0.1) 100%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  text-wrap: balance;
}

.hero-summary {
  max-width: 750px;
  margin-bottom: 2rem;
  color: #c6d6df;
  font-size: clamp(1.12rem, 2vw, 1.36rem);
  line-height: 1.65;
}

.hero-example-link {
  margin-top: 1.5rem;
}

.credibility-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 3rem;
  margin-bottom: 0;
  color: #91a8b5;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}


/* ==========================================================================
   Why okforge
   ========================================================================== */

.lead-emphasis {
  margin-block: 2rem;
  color: var(--text-dark);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  line-height: 1.35;
}

.comparison-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.4rem;
  margin-top: 3.5rem;
}

.comparison-card {
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.58);
}

.comparison-card-featured {
  border-color: rgba(34, 189, 184, 0.42);
  background:
    linear-gradient(
      145deg,
      rgba(53, 212, 207, 0.1),
      rgba(255, 255, 255, 0.72)
    );
  box-shadow: var(--shadow-small);
}

.card-kicker,
.component-type {
  margin-bottom: 0.65rem;
  color: var(--forge-red);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.check-list,
.feature-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.8rem;
  border-bottom: 1px solid rgba(23, 33, 43, 0.09);
}

.check-list li::before {
  position: absolute;
  top: 0.72rem;
  left: 0;
  color: var(--text-muted);
  content: "—";
}

.feature-list {
  display: grid;
  gap: 1.1rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.8rem;
}

.feature-list li::before {
  position: absolute;
  top: 0.08rem;
  left: 0;
  color: var(--teal-500);
  font-weight: 900;
  content: "✓";
}

.feature-list strong {
  display: block;
  margin-bottom: 0.12rem;
  color: var(--text-dark);
}

.statement {
  max-width: 920px;
  margin: 4rem auto 0;
  padding: 1.7rem 2rem;
  border-left: 4px solid var(--forge-red);
  background: rgba(255, 255, 255, 0.52);
  color: var(--text-dark);
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  font-weight: 650;
  line-height: 1.5;
}


/* ==========================================================================
   Pipeline
   ========================================================================== */

.pipeline-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.pipeline-grid::before {
  position: absolute;
  top: 3.4rem;
  right: 15%;
  left: 15%;
  z-index: 0;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(34, 189, 184, 0.5),
      transparent
    );
  content: "";
}

.pipeline-card {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-small);
}

.step-number {
  position: absolute;
  top: 1.2rem;
  right: 1.3rem;
  color: rgba(23, 33, 43, 0.16);
  font-size: 2.2rem;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.step-icon {
  display: grid;
  width: 3.7rem;
  height: 3.7rem;
  margin-bottom: 2rem;
  place-items: center;
  border: 1px solid rgba(34, 189, 184, 0.38);
  border-radius: 50%;
  background: rgba(53, 212, 207, 0.09);
  color: var(--teal-500);
  font-size: 1.65rem;
}

.card-lead {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.45;
}


/* ==========================================================================
   Video
   ========================================================================== */

.video-shell {
  position: relative;
  width: min(100%, 1120px);
  aspect-ratio: 3 / 2;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(108, 231, 226, 0.28);
  border-radius: var(--radius-large);
  background:
    radial-gradient(
      circle at 60% 35%,
      rgba(35, 169, 171, 0.22),
      transparent 35%
    ),
    var(--navy-900);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.035),
    0 25px 85px rgba(0, 0, 0, 0.38),
    0 0 75px rgba(35, 189, 184, 0.08);
}

.video-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(
      120deg,
      rgba(6, 18, 31, 0.55),
      rgba(6, 18, 31, 0.2)
    );
}

.video-placeholder-graphic {
  position: absolute;
  inset: 10%;
  opacity: 0.7;
  background:
    linear-gradient(
      90deg,
      transparent 49.7%,
      rgba(108, 231, 226, 0.22) 50%,
      transparent 50.3%
    ),
    linear-gradient(
      20deg,
      transparent 49.7%,
      rgba(108, 231, 226, 0.16) 50%,
      transparent 50.3%
    ),
    linear-gradient(
      -24deg,
      transparent 49.7%,
      rgba(108, 231, 226, 0.13) 50%,
      transparent 50.3%
    );
}

.video-node {
  position: absolute;
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal-300);
  box-shadow:
    0 0 10px var(--teal-300),
    0 0 30px rgba(108, 231, 226, 0.5);
}

.video-node-one {
  top: 22%;
  left: 27%;
}

.video-node-two {
  top: 61%;
  left: 65%;
}

.video-node-three {
  top: 28%;
  left: 74%;
  background: var(--forge-red);
  box-shadow:
    0 0 10px var(--forge-red),
    0 0 30px rgba(216, 52, 44, 0.45);
}

.video-play {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 60px;
  padding: 0.9rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(6, 18, 31, 0.84);
  color: var(--white);
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.video-play:hover {
  border-color: var(--teal-300);
  background: rgba(10, 25, 41, 0.94);
  transform: scale(1.03);
}

.play-symbol {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--forge-red);
  font-size: 0.84rem;
  text-indent: 0.12em;
}

.video-link {
  margin: 1.35rem 0 0;
  text-align: center;
}


/* ==========================================================================
   Benefits
   ========================================================================== */

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

.benefit-card {
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.48);
}

.benefit-card p:last-child {
  margin-bottom: 0;
}

.benefit-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--forge-red-soft);
  color: var(--forge-red);
  font-size: 1.4rem;
}


/* ==========================================================================
   Dade Code example
   ========================================================================== */

.example-layout,
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.example-copy h2 {
  font-size: clamp(2.35rem, 4vw, 3.8rem);
}

.attribution {
  margin-top: 1.3rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.attribution a {
  color: var(--text-dark);
  font-weight: 650;
}

.browser-preview {
  overflow: hidden;
  border: 1px solid rgba(23, 33, 43, 0.16);
  border-radius: var(--radius-medium);
  background: var(--white);
  color: var(--text-body);
  text-decoration: none;
  box-shadow: var(--shadow-large);
  transform: perspective(1400px) rotateY(-2deg) rotateX(1deg);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.browser-preview:hover {
  text-decoration: none;
  box-shadow:
    0 32px 90px rgba(10, 25, 41, 0.24);
  transform: perspective(1400px) rotateY(0) rotateX(0) translateY(-4px);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 42px;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #dfe3e5;
  background: #edf0f1;
}

.browser-bar > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a9b1b6;
}

.browser-bar > div {
  flex: 1;
  margin-left: 0.5rem;
  padding: 0.27rem 0.7rem;
  overflow: hidden;
  border-radius: 5px;
  background: var(--white);
  color: #768087;
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-content {
  display: grid;
  min-height: 400px;
  grid-template-columns: 34% 66%;
}

.browser-content aside {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.5rem 1.1rem;
  border-right: 1px solid #e4e7e8;
  background: #f5f6f6;
  font-size: 0.72rem;
}

.browser-content aside strong {
  margin-bottom: 0.7rem;
  color: var(--navy-900);
  font-size: 0.82rem;
}

.browser-content aside span {
  padding: 0.4rem 0.55rem;
  border-radius: 4px;
}

.browser-content aside span:first-of-type {
  background: rgba(53, 212, 207, 0.13);
  color: #146b69;
  font-weight: 700;
}

.browser-content article {
  padding: clamp(1.5rem, 4vw, 2.6rem);
}

.browser-content article h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.preview-kicker {
  color: var(--forge-red);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.preview-citation {
  margin-top: 2rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--teal-500);
  background: rgba(53, 212, 207, 0.08);
  color: #34535a;
  font-size: 0.74rem;
}


/* ==========================================================================
   Components
   ========================================================================== */

.component-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.component-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.62);
}

.component-card-featured {
  border-color: rgba(34, 189, 184, 0.42);
  box-shadow: var(--shadow-small);
}

.component-card pre {
  max-width: 100%;
  margin: auto 0 1.25rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: var(--radius-small);
  background: var(--navy-950);
  color: var(--teal-200);
  font-size: 0.76rem;
  line-height: 1.5;
}

.component-card .text-link {
  align-self: flex-start;
}

.notice {
  margin-top: 1.8rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(216, 52, 44, 0.22);
  border-radius: var(--radius-small);
  background: var(--forge-red-soft);
  color: #6a2c29;
  font-size: 0.9rem;
}


/* ==========================================================================
   MCP
   ========================================================================== */

.split-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.split-layout > div:first-child > p:not(.eyebrow) {
  color: var(--text-light-muted);
}

.inline-statement {
  margin: 2rem 0 0;
  padding: 1.2rem 1.35rem;
  border-left: 3px solid var(--teal-400);
  background: rgba(255, 255, 255, 0.045);
  color: var(--white);
  font-weight: 650;
}

.mcp-diagram {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-large);
  background:
    radial-gradient(
      circle at 50% 44%,
      rgba(53, 212, 207, 0.12),
      transparent 45%
    ),
    rgba(255, 255, 255, 0.025);
}

.client-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.client-row span {
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #dce8ed;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
}

.diagram-lines {
  width: 1px;
  height: 48px;
  margin: 0 auto;
  background:
    linear-gradient(
      var(--teal-400),
      rgba(53, 212, 207, 0.12)
    );
}

.mcp-node,
.knowledge-node {
  width: min(100%, 310px);
  margin-inline: auto;
  padding: 1rem;
  border-radius: var(--radius-medium);
  text-align: center;
}

.mcp-node {
  border: 1px solid rgba(53, 212, 207, 0.5);
  background: rgba(53, 212, 207, 0.09);
  box-shadow: 0 0 30px rgba(53, 212, 207, 0.08);
}

.mcp-node small {
  display: block;
  color: var(--teal-300);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mcp-node strong {
  display: block;
  color: var(--white);
  font-size: 1.35rem;
}

.diagram-arrow {
  padding: 0.55rem;
  color: var(--teal-400);
  text-align: center;
}

.knowledge-node {
  border: 1px solid rgba(216, 52, 44, 0.42);
  background: rgba(216, 52, 44, 0.09);
}

.knowledge-node strong,
.knowledge-node span {
  display: block;
}

.knowledge-node strong {
  color: var(--white);
}

.knowledge-node span {
  margin-top: 0.2rem;
  color: var(--text-light-muted);
  font-size: 0.72rem;
}


/* ==========================================================================
   Local-first
   ========================================================================== */

.local-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.local-benefit-grid article {
  padding: 1.55rem;
  border-top: 3px solid var(--teal-500);
  background: rgba(255, 255, 255, 0.45);
}

.local-benefit-grid article p:last-child {
  margin-bottom: 0;
}

.architecture-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 3rem;
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.56);
}

.architecture-flow span:nth-child(odd) {
  padding: 0.55rem 0.75rem;
  border-radius: 7px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
}

.architecture-flow span:nth-child(even) {
  color: var(--forge-red);
  font-weight: 900;
}


/* ==========================================================================
   Final call to action
   ========================================================================== */

.final-cta {
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(53, 212, 207, 0.18),
      transparent 42%
    ),
    var(--navy-950);
}

.final-cta .container {
  max-width: 900px;
}

.final-cta h2 {
  text-wrap: balance;
}

.final-cta > .container > p:not(.eyebrow) {
  max-width: 730px;
  margin-right: auto;
  margin-left: auto;
  color: var(--text-light-muted);
  font-size: 1.12rem;
}

.agent-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}

.agent-callout strong,
.agent-callout span {
  display: block;
}

.agent-callout strong {
  color: var(--white);
}

.agent-callout > div > span {
  margin-top: 0.2rem;
  color: var(--text-light-muted);
  font-size: 0.86rem;
}


/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-block: 4.5rem 2rem;
  background: #030b12;
  color: #9cb0bc;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.7fr) repeat(3, minmax(145px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}

.footer-brand {
  max-width: 330px;
}

.footer-brand > p {
  margin-top: 1.2rem;
  font-size: 0.9rem;
}

.footer-brand .footer-credit {
  color: #6f8694;
  font-size: 0.78rem;
}

.footer-grid h2 {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: 0.83rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.footer-grid a {
  color: #9cb0bc;
  font-size: 0.83rem;
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.75rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--teal-300);
  text-decoration: none;
}


/* ==========================================================================
   Responsive layout
   ========================================================================== */

@media (max-width: 1000px) {
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .component-card {
    min-height: auto;
  }

  .component-card pre {
    margin-top: 1.25rem;
  }

  .example-layout,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .browser-preview {
    width: min(100%, 760px);
    margin-inline: auto;
    transform: none;
  }

  .mcp-diagram {
    width: min(100%, 680px);
    margin-inline: auto;
  }

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

  .footer-brand {
    max-width: none;
  }
}


@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 2rem), var(--content-width));
  }

  .site-nav {
    min-height: 72px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 72px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    border-top: 1px solid var(--border-dark);
    background: rgba(6, 18, 31, 0.98);
    padding: 1rem;
    backdrop-filter: blur(18px);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links > a:not(.button),
  .nav-links .button {
    width: 100%;
    justify-content: flex-start;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-small);
  }

  .nav-links > a:not(.button) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .hero {
    min-height: 760px;
    padding-top: 9rem;
  }

  .hero-shade {
    background:
      linear-gradient(
        90deg,
        rgba(6, 18, 31, 0.96),
        rgba(6, 18, 31, 0.58)
      );
  }

  .comparison-grid,
  .pipeline-grid,
  .local-benefit-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-grid::before {
    display: none;
  }

  .pipeline-card {
    padding: 1.6rem;
  }

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


@media (max-width: 620px) {
  h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .section {
    padding-block: 4.5rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero-summary {
    font-size: 1.05rem;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .button {
    width: 100%;
  }

  .credibility-line {
    gap: 0.4rem 0.55rem;
    font-size: 0.7rem;
  }

  .comparison-card {
    padding: 1.35rem;
  }

  .statement {
    padding: 1.25rem 1.35rem;
  }

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

  .video-play {
    min-height: 52px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .play-symbol {
    width: 1.85rem;
    height: 1.85rem;
  }

  .browser-content {
    min-height: 330px;
    grid-template-columns: 1fr;
  }

  .browser-content aside {
    display: none;
  }

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

  .architecture-flow {
    align-items: stretch;
    flex-direction: column;
  }

  .architecture-flow span {
    text-align: center;
  }

  .architecture-flow span:nth-child(even) {
    transform: rotate(90deg);
  }

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

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


/* ==========================================================================
   Reduced motion and print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .hero-graph {
    animation: none;
  }

  .browser-preview {
    transform: none;
  }
}


@media print {
  .site-header,
  .hero-graph,
  .hero-shade,
  .video-shell,
  .agent-callout {
    display: none;
  }

  body {
    background: var(--white);
    color: #000000;
  }

  .section,
  .hero {
    min-height: auto;
    padding-block: 2rem;
    background: var(--white);
    color: #000000;
  }

  .section-dark h1,
  .section-dark h2,
  .section-dark h3 {
    color: #000000;
  }
}

/* Real okforge navigation and footer logo */
.brand-logo {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  object-fit: contain;
}

/* 404 page */
.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(
      circle at 70% 25%,
      rgba(53, 212, 207, 0.18),
      transparent 35%
    ),
    var(--navy-950);
}

.error-card {
  width: min(100%, 720px);
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-light-muted);
  box-shadow: var(--shadow-large);
}

.error-brand {
  margin-bottom: 3rem;
}

.error-card h1 {
  max-width: 650px;
  color: var(--white);
  font-size: clamp(2.5rem, 7vw, 5rem);
}

.error-card > p:not(.eyebrow) {
  max-width: 540px;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
