:root {
  --kb-deep: #071b16;
  --kb-green: #0d382b;
  --kb-green-bright: #1f6a4d;
  --kb-gold: #f1b24a;
  --kb-cream: #f4eddc;
}

.kb-body {
  background:
    radial-gradient(circle at 82% 10%, rgba(24, 106, 76, 0.22), transparent 34rem),
    radial-gradient(circle at 18% 48%, rgba(241, 178, 74, 0.06), transparent 28rem),
    var(--bg);
}

.kb-body header.scrolled { background: rgba(7, 27, 22, 0.78); }
.kb-main { overflow: hidden; }

.kb-hero {
  position: relative;
  min-height: min(860px, 92svh);
  display: flex;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 132px var(--pad) 100px;
}

.kb-hero::before {
  content: '';
  position: absolute;
  width: min(68vw, 820px);
  aspect-ratio: 1;
  right: -22%;
  top: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31,106,77,.19) 0 25%, rgba(31,106,77,.07) 26% 48%, transparent 49%);
  filter: blur(1px);
}

.kb-hero-copy { position: relative; z-index: 2; max-width: 980px; }
.kb-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a8bcb3;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.kb-eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--kb-gold); box-shadow: 0 0 20px var(--kb-gold); }
.kb-title-lockup { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); margin: 32px 0 28px; }
.kb-title-lockup img { width: clamp(64px, 7vw, 96px); height: clamp(64px, 7vw, 96px); border-radius: 22%; object-fit: cover; box-shadow: 0 22px 70px rgba(0,0,0,.35); }
.kb-title-lockup h1 { font: 800 clamp(64px, 12vw, 168px)/.86 var(--grotesk); letter-spacing: -.055em; text-transform: uppercase; }
.kb-title-lockup h1 span { color: var(--kb-gold); }
.kb-lead { max-width: 860px; font: 500 clamp(26px, 3.2vw, 46px)/1.25 var(--grotesk); letter-spacing: -.025em; color: var(--kb-cream); }
.kb-tags { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 36px; }
.kb-tags span { padding: 8px 14px; border: 1px solid rgba(168,188,179,.2); border-radius: 999px; color: #9cb2a8; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; background: rgba(7,27,22,.34); }

.kb-showcase { max-width: 1540px; margin: 0 auto; padding: 0 var(--pad) clamp(86px, 10vw, 144px); }
.kb-window { border: 1px solid rgba(168,188,179,.18); border-radius: 20px; overflow: hidden; background: #061712; box-shadow: 0 40px 120px rgba(0,0,0,.44), 0 0 80px rgba(31,106,77,.08); }
.kb-window-bar { min-height: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 0 20px; border-bottom: 1px solid rgba(168,188,179,.13); color: #90a69c; font-size: 13px; letter-spacing: .04em; }
.kb-window-dots { display: flex; gap: 7px; }
.kb-window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #234b3d; }
.kb-window-dots i:nth-child(2) { background: #91713a; }
.kb-window-dots i:nth-child(3) { background: #255c46; }
.kb-live { justify-self: end; display: inline-flex; align-items: center; gap: 7px; color: #aac3b8; }
.kb-live i { width: 6px; height: 6px; border-radius: 50%; background: #67c395; box-shadow: 0 0 12px rgba(103,195,149,.8); }
.kb-window figure { margin: 0; }
.kb-window img { display: block; width: 100%; height: auto; }
.kb-window figcaption { padding: 14px 20px 16px; color: #789086; font-size: 12px; letter-spacing: .04em; border-top: 1px solid rgba(168,188,179,.1); }

.kb-proof { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid rgba(168,188,179,.15); }
.kb-proof div { padding: 30px 26px; }
.kb-proof div + div { border-left: 1px solid rgba(168,188,179,.15); }
.kb-proof strong { display: block; font: 600 clamp(24px, 2.7vw, 34px)/1 var(--grotesk); letter-spacing: -.02em; color: var(--kb-cream); }
.kb-proof span { display: block; margin-top: 9px; color: #7e978c; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }

.kb-section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: clamp(34px, 5vw, 62px); }
.kb-section-head .section-label { margin-bottom: 0; }
.kb-section-head > p:last-child { max-width: 430px; color: #91a79d; font-size: 16px; text-align: right; }
.kb-flow-section, .kb-features { padding-block: clamp(74px, 9vw, 122px); }

.kb-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1.08fr; align-items: stretch; }
.kb-flow article { min-height: 226px; display: flex; flex-direction: column; padding: 28px; border: 1px solid rgba(168,188,179,.16); border-radius: 14px; background: rgba(7,27,22,.28); }
.kb-flow article.is-source { border-color: rgba(241,178,74,.45); background: linear-gradient(150deg, rgba(241,178,74,.1), rgba(7,27,22,.34)); }
.kb-flow article > span { margin-bottom: auto; color: #698579; font-size: 12px; }
.kb-flow article b { font: 600 22px/1.2 var(--grotesk); color: var(--kb-cream); }
.kb-flow article small { display: block; margin-top: 11px; color: #8da298; font-size: 14px; line-height: 1.55; }
.kb-flow > i { width: 34px; align-self: center; color: rgba(241,178,74,.45); font-style: normal; text-align: center; }

.kb-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kb-feature { min-height: 480px; display: flex; flex-direction: column; padding: 24px 26px 32px; border: 1px solid rgba(168,188,179,.15); border-radius: 16px; background: linear-gradient(160deg, rgba(13,56,43,.28), rgba(255,255,255,.01)); }
.kb-feature-visual { min-height: 208px; margin-bottom: 32px; border-radius: 10px; overflow: hidden; background: #071b16; border: 1px solid rgba(168,188,179,.1); }
.kb-feature-num { margin-top: auto; margin-bottom: 18px; color: #708c81; font-size: 12px; }
.kb-feature h3 { font: 600 27px/1.2 var(--grotesk); letter-spacing: -.02em; color: var(--kb-cream); }
.kb-feature p { margin-top: 15px; color: #95a99f; font-size: 16px; line-height: 1.68; }
.kb-editor-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: #f4eddc;
}
.kb-editor-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kb-feature-extract .kb-feature-visual { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 24px 16px; }
.kb-feature-extract .kb-feature-visual span { padding: 13px 12px; border: 1px solid rgba(168,188,179,.18); border-radius: 8px; color: #8fa59b; font: 600 12px/1.25 var(--grotesk); text-align: center; }
.kb-feature-extract .kb-feature-visual span.active { border-color: rgba(241,178,74,.55); color: var(--kb-gold); background: rgba(241,178,74,.08); }
.kb-feature-extract .kb-feature-visual i { color: rgba(241,178,74,.45); font-style: normal; }
.kb-output-list { display: flex; flex-direction: column; justify-content: center; padding: 14px 22px; }
.kb-output-list span { display: flex; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(168,188,179,.1); color: #829b90; font-size: 12px; }
.kb-output-list span:last-child { border: 0; }
.kb-output-list b { min-width: 54px; color: var(--kb-gold); font: 600 14px var(--grotesk); letter-spacing: .04em; }

.kb-case { max-width: 1080px; padding-block: clamp(20px, 4vw, 54px) clamp(76px, 9vw, 118px); }
.kb-case-card { padding: clamp(28px, 5vw, 62px); border: 1px solid rgba(241,178,74,.25); border-radius: 18px; background: linear-gradient(135deg, rgba(13,56,43,.72), rgba(7,27,22,.82)); box-shadow: 0 24px 72px rgba(0,0,0,.2); }
.kb-case-label { color: #8ea59a; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.kb-case blockquote { margin-top: 20px; max-width: 900px; color: var(--kb-cream); font: 600 clamp(30px, 4.2vw, 48px)/1.25 var(--grotesk); letter-spacing: -.025em; }
.kb-case-result { max-width: 780px; margin-top: 26px; color: #a1b4ab; font-size: 17px; line-height: 1.65; }

@media (max-width: 900px) {
  .kb-hero { min-height: 760px; }
  .kb-proof { grid-template-columns: repeat(2, 1fr); }
  .kb-proof div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(168,188,179,.15); }
  .kb-proof div:nth-child(4) { border-top: 1px solid rgba(168,188,179,.15); }
  .kb-flow { grid-template-columns: 1fr 28px 1fr; row-gap: 14px; }
  .kb-flow > i:nth-of-type(2) { display: none; }
  .kb-flow article:nth-of-type(3) { grid-column: 1; }
  .kb-flow article:nth-of-type(4) { grid-column: 3; }
  .kb-feature-grid { grid-template-columns: 1fr; }
  .kb-feature { min-height: 0; }
  .kb-feature-visual { min-height: 220px; }
  .kb-feature-num { margin-top: 0; }
}

@media (max-width: 600px) {
  .kb-body { --pad: clamp(18px, 5.4vw, 24px); }
  .kb-hero { min-height: 0; padding-top: 96px; padding-bottom: 54px; align-items: flex-start; }
  .kb-hero::before { width: 88vw; right: -46%; top: -8%; opacity: .72; }
  .kb-hero-copy { width: 100%; min-width: 0; }
  .kb-eyebrow { max-width: 100%; flex-wrap: wrap; gap: 7px; font-size: 10px; letter-spacing: .085em; line-height: 1.45; }
  .kb-title-lockup { align-items: center; gap: 12px; margin: 24px 0 22px; }
  .kb-title-lockup img { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 10px; }
  .kb-title-lockup h1 { min-width: 0; max-width: 100%; font-size: clamp(40px, 12.8vw, 52px); line-height: .9; }
  .kb-lead { max-width: 100%; font-size: clamp(21px, 5.9vw, 24px); line-height: 1.32; }
  .kb-tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px; margin-top: 28px; }
  .kb-tags span { display: grid; place-items: center; min-height: 36px; padding: 7px 6px; font-size: 9.5px; line-height: 1.25; text-align: center; white-space: normal; }
  .kb-showcase { padding-bottom: 42px; }
  .kb-window { border-radius: 12px; }
  .kb-window-bar { grid-template-columns: auto 1fr; min-height: 42px; padding: 0 12px; }
  .kb-window-bar > span:nth-child(2) { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .kb-live { display: none; }
  .kb-window img { width: 100%; max-width: 100%; height: auto; transform: none; object-fit: contain; }
  .kb-window figcaption { padding: 12px 14px 14px; font-size: 11px; line-height: 1.5; }
  .kb-proof div { min-width: 0; padding: 18px 14px; }
  .kb-proof strong { font-size: clamp(19px, 5.5vw, 22px); white-space: nowrap; }
  .kb-proof span { margin-top: 7px; font-size: 10px; line-height: 1.35; }
  .kb-case { padding-block: 22px 62px; }
  .kb-case-card { padding: 24px 20px; border-radius: 14px; }
  .kb-case-label { font-size: 9.5px; line-height: 1.5; }
  .kb-case blockquote { margin-top: 16px; font-size: clamp(24px, 7vw, 28px); line-height: 1.28; }
  .kb-case-result { margin-top: 20px; font-size: 15px; line-height: 1.6; }
  .kb-section-head { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 28px; }
  .kb-section-head > p:last-child { max-width: 100%; font-size: 14px; line-height: 1.5; text-align: left; }
  .kb-flow-section, .kb-features { padding-block: 54px; }
  .kb-flow { grid-template-columns: 1fr; }
  .kb-flow > i { display: grid; width: auto; height: 24px; place-items: center; transform: rotate(90deg); font-size: 14px; }
  .kb-flow article:nth-of-type(3), .kb-flow article:nth-of-type(4) { grid-column: auto; }
  .kb-flow > i:nth-of-type(2) { display: grid; }
  .kb-flow article { min-height: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: 18px; border-radius: 12px; }
  .kb-flow article > span { grid-row: 1 / span 2; margin: 2px 0 0; }
  .kb-flow article b { font-size: 20px; }
  .kb-flow article small { margin-top: 7px; font-size: 13.5px; line-height: 1.5; }
  .kb-feature-grid { gap: 14px; }
  .kb-feature { padding: 14px 14px 24px; border-radius: 14px; }
  .kb-feature-visual { min-height: 164px; margin-bottom: 22px; }
  .kb-editor-preview { min-height: 0; }
  .kb-feature-num { margin-bottom: 12px; }
  .kb-feature h3 { font-size: 22px; }
  .kb-feature p { margin-top: 12px; font-size: 14.5px; line-height: 1.6; }
  .kb-feature-extract .kb-feature-visual { padding: 18px 10px; }
  .kb-feature-extract .kb-feature-visual span { padding: 11px 7px; font-size: 10.5px; }
  .kb-output-list { padding: 10px 18px; }
  .kb-output-list span { padding: 9px 0; }
  .kb-body footer { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 26px; }
  .kb-body .footer-links { width: 100%; justify-content: space-between; }
}

@media (max-width: 360px) {
  .kb-title-lockup { gap: 10px; }
  .kb-title-lockup img { width: 42px; height: 42px; }
  .kb-title-lockup h1 { font-size: 39px; }
  .kb-tags span { font-size: 9px; }
}
