:root {
  --bg: #f6ede0;
  --bg-deep: #efe3d1;
  --paper: rgba(255, 252, 247, 0.82);
  --paper-strong: #fffaf2;
  --ink: #14110f;
  --muted: #60544b;
  --border: rgba(20, 17, 15, 0.13);
  --accent: #d36d43;
  --accent-deep: #b65229;
  --accent-soft: rgba(211, 109, 67, 0.15);
  --sage: #6b8672;
  --gold: #d2b77c;
  --shadow: 0 30px 60px rgba(77, 50, 26, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 999px;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(211, 109, 67, 0.18), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(107, 134, 114, 0.22), transparent 24%),
    linear-gradient(180deg, #f8f1e5 0%, #f1e5d3 100%);
  font-family: "Manrope", "Noto Sans", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 17, 15, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 17, 15, 0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  opacity: 0.4;
  z-index: -3;
}

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

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

code,
pre {
  font-family: "IBM Plex Mono", "SFMono-Regular", "Consolas", monospace;
}

pre {
  margin: 0;
}

code:not(pre code) {
  padding: 0.12rem 0.38rem;
  border-radius: 0.5rem;
  background: rgba(20, 17, 15, 0.06);
  font-size: 0.94em;
}

.site-shell {
  position: relative;
  overflow: clip;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.65;
  pointer-events: none;
  z-index: -2;
}

.ambient-left {
  width: 28rem;
  height: 28rem;
  left: -8rem;
  top: 12rem;
  background: radial-gradient(circle, rgba(211, 109, 67, 0.34), transparent 66%);
}

.ambient-right {
  width: 32rem;
  height: 32rem;
  right: -9rem;
  top: 30rem;
  background: radial-gradient(circle, rgba(107, 134, 114, 0.3), transparent 68%);
}

.page-frame {
  max-width: calc(var(--max-width) + 2.5rem);
  margin: 0 auto;
  padding: 0.5rem 1.25rem 3rem;
}

main {
  display: grid;
  gap: clamp(2.75rem, 5vw, 5rem);
  padding-top: 0;
}

.site-header {
  position: sticky;
  top: 0.9rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.72rem 1.05rem;
  margin-top: 0;
  background: rgba(255, 248, 238, 0.8);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(77, 50, 26, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink), #2f2925);
  color: #fff5eb;
  font-family: "Fraunces", "Noto Serif", serif;
  font-size: 0.96rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand-text {
  display: grid;
  gap: 0.1rem;
}

.brand-text strong {
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
}

.site-nav,
.header-actions,
.footer-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-copy,
.hero-visual,
.hero-panel,
.docs-hero-panel,
.docs-card,
.pipeline-illustration,
.pipeline-explainer {
  min-width: 0;
}

.site-nav a,
.ghost-link {
  color: var(--muted);
  font-size: 0.88rem;
}

.primary-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-link {
  min-height: 2.55rem;
  padding: 0 1rem;
  background: var(--ink);
  color: #fff8f2;
  font-weight: 700;
}

.ghost-link {
  min-height: 2.3rem;
  padding: 0 0.35rem;
}

.primary-link:hover,
.button:hover {
  transform: translateY(-2px);
}

.section {
  padding-top: 0;
}

.hero {
  --hero-visual-offset: clamp(2.5rem, 4vw, 4.25rem);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 2.4rem;
  align-items: center;
  min-height: calc(100svh - 5.5rem);
  margin-top: -1.25rem;
}

.hero-copy {
  max-width: 42rem;
  align-self: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-deep);
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.proof-intro h2,
.cta-card h2 {
  margin: 0;
  font-family: "Fraunces", "Noto Serif", serif;
  font-size: clamp(3.5rem, 7vw, 6.55rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero h1 span {
  color: var(--accent-deep);
  font-style: italic;
}

.hero-summary,
.section-heading p,
.quote-text,
.capability-card p,
.roadmap-step p,
.expert-stack p,
.proof-card p,
.safety-card p,
.cta-card .eyebrow + h2 + p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-summary {
  max-width: 36rem;
  margin: 1.5rem 0 0;
}

.hero-actions,
.cta-actions {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.button {
  min-height: 3.5rem;
  padding: 0 1.4rem;
  border: 1px solid var(--border);
  font-weight: 800;
}

.button-primary {
  background: var(--ink);
  color: #fff8f0;
  box-shadow: 0 18px 40px rgba(20, 17, 15, 0.18);
}

.button-secondary {
  background: rgba(255, 252, 247, 0.72);
}

.hero-points {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 2rem 0 0;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 700;
  color: #342d29;
  line-height: 1.55;
}

.hero-points li::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #f0c59b);
  box-shadow: 0 0 0 0.35rem rgba(211, 109, 67, 0.12);
}

.hero-visual {
  position: relative;
  min-height: 44rem;
  perspective: 1600px;
}

.hero-panel,
.floating-card,
.quote-callout,
.capability-card,
.launch-roadmap,
.expert-stack article,
.proof-frame,
.docs-frame,
.docs-card,
.docs-hero-panel,
.safety-card,
.cta-card,
.logo-row {
  border: 1px solid rgba(20, 17, 15, 0.09);
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  margin-top: var(--hero-visual-offset);
  padding: 1.35rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 250, 244, 0.92)),
    linear-gradient(160deg, rgba(211, 109, 67, 0.08), rgba(107, 134, 114, 0.06));
  transform: rotateY(-12deg) rotateX(6deg);
}

.panel-topline {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.panel-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(20, 17, 15, 0.08);
  font-size: 0.85rem;
  font-weight: 800;
}

.panel-pill.muted {
  color: var(--muted);
  background: rgba(20, 17, 15, 0.04);
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1rem;
}

.metric-card,
.sheet-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  padding: 1.2rem;
  min-height: 12rem;
  border: 1px solid rgba(20, 17, 15, 0.08);
}

.metric-card-wide {
  grid-row: span 2;
}

.metric-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.metric-value {
  margin-top: 0.45rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  word-break: break-word;
}

.metric-card-wide .metric-value {
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1.05;
}

.metric-foot {
  margin: 0.95rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.chart-line {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 0.5rem;
  min-height: 10rem;
}

.chart-line span {
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, rgba(211, 109, 67, 0.18), rgba(211, 109, 67, 0.92));
}

.chart-line span:nth-child(1) {
  height: 36%;
}

.chart-line span:nth-child(2) {
  height: 48%;
}

.chart-line span:nth-child(3) {
  height: 62%;
}

.chart-line span:nth-child(4) {
  height: 56%;
}

.chart-line span:nth-child(5) {
  height: 80%;
}

.stack-bars {
  margin-top: 1.3rem;
  display: flex;
  align-items: end;
  gap: 0.45rem;
  min-height: 6rem;
}

.stack-bars span {
  flex: 1;
  border-radius: 14px 14px 5px 5px;
  background: linear-gradient(180deg, rgba(107, 134, 114, 0.22), rgba(107, 134, 114, 0.9));
}

.stack-bars span:nth-child(1) {
  height: 36%;
}

.stack-bars span:nth-child(2) {
  height: 56%;
}

.stack-bars span:nth-child(3) {
  height: 82%;
}

.stack-bars span:nth-child(4) {
  height: 64%;
}

.donut {
  width: 8rem;
  height: 8rem;
  margin-top: 0.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 1) 36%, transparent 37%),
    conic-gradient(var(--accent) 0 62%, rgba(20, 17, 15, 0.09) 62% 100%);
}

.donut span {
  font-weight: 800;
  font-size: 1.3rem;
}

.donut span::before {
  content: "62%";
}

.sheet-card {
  display: grid;
  gap: 0.9rem;
}

.sheet-head,
.sheet-rows span {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

.sheet-head {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(20, 17, 15, 0.08);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.sheet-rows {
  display: grid;
  gap: 0.8rem;
}

.sheet-rows span {
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: rgba(246, 237, 224, 0.8);
}

.sheet-rows b,
.sheet-rows i {
  font-style: normal;
  font-size: 0.94rem;
}

.sheet-rows i {
  text-align: right;
  overflow-wrap: anywhere;
}

.floating-card {
  position: absolute;
  width: min(19rem, 78%);
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 249, 241, 0.86);
  backdrop-filter: blur(18px);
}

.floating-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.floating-card strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.floating-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.floating-card-left {
  left: -2.4rem;
  bottom: 4rem;
  animation: drift 8.5s ease-in-out infinite;
}

.floating-card-right {
  right: -1.8rem;
  top: calc(5rem + var(--hero-visual-offset));
  animation: drift 10s ease-in-out infinite reverse;
}

.logo-row {
  display: grid;
  gap: 1.3rem;
  padding: 1.5rem 1.7rem;
  background: rgba(255, 249, 241, 0.64);
  border-radius: 24px;
}

.logo-row p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
}

.logo-strip span {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(20, 17, 15, 0.05);
  color: #4a3c33;
}

.quote-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(211, 109, 67, 0.13), rgba(255, 255, 255, 0.84));
}

.quote-mark {
  font-family: "Fraunces", "Noto Serif", serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--accent-deep);
}

.quote-text {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.35;
  color: #2f2925;
}

.quote-source {
  margin: 1rem 0 0;
  font-weight: 800;
  color: var(--muted);
}

.section-heading {
  max-width: 58rem;
}

.section-heading.narrow {
  max-width: 44rem;
}

.section-heading h2,
.proof-intro h2,
.cta-card h2 {
  font-size: clamp(2.7rem, 5.6vw, 4.7rem);
}

.pipeline-layout {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 1.25rem;
  align-items: start;
}

.pipeline-illustration,
.pipeline-step-card {
  border: 1px solid rgba(20, 17, 15, 0.09);
  box-shadow: var(--shadow);
}

.pipeline-illustration {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 244, 0.9)),
    linear-gradient(140deg, rgba(211, 109, 67, 0.08), rgba(107, 134, 114, 0.06));
}

.pipeline-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
}

.pipeline-node {
  min-height: 11.5rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(20, 17, 15, 0.08);
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.pipeline-node-label {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pipeline-node strong {
  font-size: 1rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.pipeline-node span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pipeline-mask {
  display: inline-flex;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: rgba(211, 109, 67, 0.14);
  color: var(--accent-deep);
}

.pipeline-arrow {
  position: relative;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(20, 17, 15, 0.18), rgba(211, 109, 67, 0.55));
}

.pipeline-arrow::after {
  content: "";
  position: absolute;
  right: -0.15rem;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-top: 2px solid rgba(211, 109, 67, 0.72);
  border-right: 2px solid rgba(211, 109, 67, 0.72);
  transform: translateY(-50%) rotate(45deg);
}

.pipeline-example {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pipeline-example-block {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(20, 17, 15, 0.04);
}

.pipeline-example-block p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pipeline-explainer {
  display: grid;
  gap: 1rem;
}

.pipeline-step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem;
  border-radius: 24px;
  background: rgba(255, 250, 243, 0.86);
}

.pipeline-step-card span {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 17, 15, 0.08);
  font-weight: 800;
}

.pipeline-step-card h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.pipeline-step-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.shape-divider-frame {
  position: relative;
  min-height: clamp(16rem, 34vw, 24rem);
  border-radius: clamp(26px, 4vw, 38px);
  overflow: hidden;
  background: #080808;
  border: 1px solid rgba(20, 17, 15, 0.12);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.shape-divider-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.flow-lab-frame {
  position: relative;
  min-height: clamp(30rem, 58vw, 42rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: clamp(30px, 4vw, 40px);
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(143, 201, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.92), rgba(8, 8, 8, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(10, 10, 10, 0.34);
  isolation: isolate;
}

.flow-lab-copy,
.flow-lab-stage,
.flow-lab-footer {
  position: relative;
  z-index: 1;
  backdrop-filter: blur(14px);
}

.flow-lab-copy,
.flow-lab-stage {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 12, 16, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.flow-lab-copy {
  grid-column: 1 / span 5;
  align-self: start;
  padding: 1.35rem;
  border-radius: 26px;
}

.flow-lab-copy .eyebrow {
  color: #8fc9ff;
}

.flow-lab-copy h2 {
  margin: 0;
  color: #f5f8fc;
  font-family: "Fraunces", "Noto Serif", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.flow-lab-copy p:last-child {
  margin: 1rem 0 0;
  color: rgba(228, 235, 243, 0.78);
  font-size: 1rem;
  line-height: 1.72;
}

.flow-lab-stage {
  padding: 1.2rem;
  border-radius: 24px;
}

.flow-lab-stage-input {
  grid-column: 1 / span 4;
  grid-row: 2;
  align-self: end;
}

.flow-lab-stage-center {
  grid-column: 5 / span 4;
  grid-row: 2;
  align-self: center;
}

.flow-lab-stage-output {
  grid-column: 9 / span 4;
  grid-row: 2;
  align-self: start;
}

.flow-lab-label {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: rgba(143, 201, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flow-lab-stage .docs-code {
  margin-top: 0;
  background: rgba(7, 9, 13, 0.92);
  color: #f2f6fb;
}

.flow-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.flow-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: rgba(143, 201, 255, 0.12);
  border: 1px solid rgba(143, 201, 255, 0.18);
  color: #f4f7fb;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.flow-chip:nth-child(2) {
  background: rgba(255, 0, 85, 0.12);
  border-color: rgba(255, 0, 85, 0.22);
}

.flow-chip:nth-child(3) {
  background: rgba(255, 204, 0, 0.12);
  border-color: rgba(255, 204, 0, 0.22);
}

.flow-lab-footer {
  grid-column: 2 / span 10;
  grid-row: 3;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0.8rem;
  border-radius: 24px;
  background: rgba(7, 9, 13, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.flow-stat {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.flow-stat span {
  display: block;
  color: rgba(214, 222, 232, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-stat strong {
  display: block;
  margin-top: 0.45rem;
  color: #f5f8fc;
  font-size: 1rem;
  line-height: 1.45;
}

.flow-lab-canvas-shell {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.flow-lab-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.flow-lab-gui {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
}

.capability-grid,
.safety-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.capability-card,
.safety-card {
  padding: 1.5rem;
  border-radius: 28px;
  background: rgba(255, 250, 243, 0.86);
}

.capability-card-accent {
  background:
    linear-gradient(160deg, rgba(211, 109, 67, 0.16), rgba(255, 251, 245, 0.92)),
    rgba(255, 250, 243, 0.86);
}

.capability-card-dark {
  background:
    linear-gradient(135deg, rgba(20, 17, 15, 0.95), rgba(55, 43, 35, 0.94)),
    rgba(20, 17, 15, 0.95);
  color: #fff6ee;
}

.capability-card-dark p,
.capability-card-dark a {
  color: rgba(255, 246, 238, 0.74);
}

.capability-card h3,
.roadmap-step h3,
.expert-stack h3,
.proof-card h3,
.safety-card h3 {
  margin: 1rem 0 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.capability-card p,
.proof-card p,
.safety-card p,
.expert-stack p {
  margin: 0.85rem 0 0;
  font-size: 0.98rem;
}

.capability-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent-deep);
  font-weight: 800;
}

.capability-visual {
  display: grid;
  gap: 0.55rem;
  min-height: 12rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  overflow: hidden;
}

.visual-query {
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
}

.visual-query span,
.visual-dashboard span,
.visual-automation span {
  border-radius: 18px;
}

.visual-query span:nth-child(1) {
  background: rgba(20, 17, 15, 0.12);
  min-height: 30%;
}

.visual-query span:nth-child(2) {
  background: rgba(211, 109, 67, 0.7);
  min-height: 60%;
}

.visual-query span:nth-child(3) {
  background: rgba(107, 134, 114, 0.75);
  min-height: 84%;
}

.visual-sheet {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.visual-sheet span {
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(20, 17, 15, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(20, 17, 15, 0.08) 1px, transparent 1px),
    rgba(246, 237, 224, 0.94);
  background-size: 24px 24px;
}

.visual-dashboard {
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr 1fr;
}

.visual-dashboard span:nth-child(1) {
  grid-row: span 2;
  background: linear-gradient(180deg, rgba(211, 109, 67, 0.18), rgba(211, 109, 67, 0.88));
}

.visual-dashboard span:nth-child(2) {
  background: rgba(20, 17, 15, 0.12);
}

.visual-dashboard span:nth-child(3) {
  background: rgba(107, 134, 114, 0.65);
}

.visual-automation {
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
}

.visual-automation span:nth-child(1),
.visual-automation span:nth-child(3) {
  min-height: 0.7rem;
  background: rgba(255, 246, 238, 0.22);
}

.visual-automation span:nth-child(2) {
  min-height: 6rem;
  background: linear-gradient(180deg, rgba(255, 246, 238, 0.86), rgba(255, 246, 238, 0.48));
}

.launch-layout {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 1.25rem;
}

.launch-roadmap,
.expert-stack article,
.proof-frame,
.cta-card {
  background: rgba(255, 250, 243, 0.86);
}

.launch-roadmap {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: var(--radius-xl);
}

.roadmap-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
}

.roadmap-step span,
.proof-card span {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 17, 15, 0.08);
  font-weight: 800;
}

.roadmap-step p {
  margin: 0.55rem 0 0;
  font-size: 0.96rem;
}

.expert-stack {
  display: grid;
  gap: 1rem;
}

.expert-stack article {
  padding: 1.5rem;
  border-radius: 28px;
}

.role-tag {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-frame {
  padding: 1.6rem;
  border-radius: var(--radius-xl);
}

.docs-hero {
  min-height: auto;
  align-items: start;
}

.docs-hero-panel,
.docs-frame {
  padding: 1.6rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 243, 0.86);
}

.docs-panel-title {
  margin: 0.75rem 0 0;
  font-family: "Fraunces", "Noto Serif", serif;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
}

.docs-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.docs-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.docs-card {
  padding: 1.25rem;
  border-radius: 24px;
  background: rgba(246, 237, 224, 0.72);
}

.docs-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.docs-card-step {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 17, 15, 0.08);
  font-weight: 800;
}

.docs-card h3 {
  margin: 1rem 0 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.docs-code {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #181310;
  color: #fff6ee;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 0.94rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow-x: auto;
}

.docs-output {
  margin: 0.9rem 0 0;
  font-weight: 800;
  color: var(--accent-deep);
}

.docs-link {
  display: inline-flex;
  margin-top: 1.25rem;
  color: var(--accent-deep);
  font-weight: 800;
}

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

.proof-card {
  padding: 1.25rem;
  border-radius: 24px;
  background: rgba(246, 237, 224, 0.72);
}

.proof-card span {
  margin-bottom: 1rem;
}

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

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(211, 109, 67, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 250, 243, 0.95), rgba(246, 237, 224, 0.95));
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 3rem 0 1rem;
}

.footer-brand .brand-mark {
  width: 2.45rem;
  height: 2.45rem;
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms ease;
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -14px, 0);
  }
}

@media (max-width: 1320px) {
  .floating-card-left {
    left: 1rem;
    bottom: 2rem;
  }

  .floating-card-right {
    right: 1rem;
    top: calc(3.25rem + var(--hero-visual-offset));
  }
}

@media (max-width: 1120px) {
  .hero {
    --hero-visual-offset: 0rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

  .hero-visual {
    min-height: 38rem;
  }

  .hero-panel {
    transform: none;
  }

  .floating-card-left {
    left: 1rem;
    bottom: 1rem;
  }

  .floating-card-right {
    right: 1rem;
    top: 1rem;
  }

  .logo-strip,
  .docs-grid,
  .proof-grid,
  .safety-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline-layout {
    grid-template-columns: 1fr;
  }

  .pipeline-track {
    grid-template-columns: 1fr;
  }

  .pipeline-arrow {
    width: 2px;
    height: 2rem;
    justify-self: center;
    background: linear-gradient(180deg, rgba(20, 17, 15, 0.18), rgba(211, 109, 67, 0.55));
  }

  .pipeline-arrow::after {
    right: 50%;
    top: auto;
    bottom: -0.12rem;
    transform: translateX(50%) rotate(135deg);
  }

  .launch-layout,
  .cta-card {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 860px) {
  .site-header,
  .site-nav,
  .header-actions,
  .site-footer,
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    position: static;
  }

  .page-frame {
    padding-inline: 1rem;
  }

  main {
    gap: 2.5rem;
    padding-top: 1.75rem;
  }

  .hero h1,
  .section-heading h2,
  .proof-intro h2,
  .cta-card h2 {
    font-size: clamp(2.7rem, 13vw, 4.6rem);
  }

  .panel-grid,
  .capability-grid,
  .docs-grid,
  .pipeline-example,
  .safety-grid,
  .proof-grid,
  .logo-strip {
    grid-template-columns: 1fr;
  }

  .quote-callout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .metric-card-wide {
    grid-row: span 1;
  }

  .shape-divider-frame {
    min-height: clamp(14rem, 42vw, 20rem);
  }

  .flow-lab-frame {
    min-height: clamp(32rem, 68vw, 42rem);
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .flow-lab-copy {
    grid-column: 1 / -1;
  }

  .flow-lab-stage-input {
    grid-column: 1 / span 3;
    grid-row: 2;
  }

  .flow-lab-stage-center {
    grid-column: 4 / span 3;
    grid-row: 2;
  }

  .flow-lab-stage-output {
    grid-column: 3 / span 4;
    grid-row: 3;
  }

  .flow-lab-footer {
    grid-column: 1 / -1;
    grid-row: 4;
  }
}

@media (max-width: 560px) {
  .page-frame {
    padding-inline: 0.8rem;
  }

  .site-header {
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
  }

  .brand {
    gap: 0.6rem;
  }

  .brand-mark,
  .footer-brand .brand-mark {
    width: 2.2rem;
    height: 2.2rem;
  }

  .hero {
    gap: 2rem;
  }

  .hero-actions,
  .cta-actions {
    align-items: stretch;
  }

  .site-nav,
  .header-actions,
  .footer-links {
    width: 100%;
    gap: 0.75rem;
  }

  .site-nav a,
  .footer-links a {
    width: 100%;
    display: inline-flex;
    align-items: center;
    min-height: 2.1rem;
  }

  .ghost-link {
    width: 100%;
    min-height: 2.9rem;
    padding: 0 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 252, 247, 0.72);
  }

  .button,
  .primary-link {
    width: 100%;
  }

  .hero-visual {
    min-height: auto;
  }

  .floating-card {
    position: static;
    width: 100%;
    margin-top: 1rem;
    animation: none;
  }

  .hero-panel {
    padding: 1rem;
  }

  .metric-card,
  .sheet-card,
  .capability-card,
  .docs-card,
  .safety-card,
  .proof-card,
  .flow-lab-copy,
  .flow-lab-stage,
  .flow-lab-footer,
  .flow-stat {
    border-radius: 22px;
  }

  .cta-card,
  .pipeline-illustration,
  .quote-callout,
  .docs-frame,
  .docs-hero-panel,
  .launch-roadmap {
    padding: 1.3rem;
  }

  .flow-lab-frame {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .flow-lab-copy,
  .flow-lab-stage-input,
  .flow-lab-stage-center,
  .flow-lab-stage-output,
  .flow-lab-footer {
    grid-column: auto;
    grid-row: auto;
  }

  .flow-lab-copy,
  .flow-lab-stage,
  .flow-lab-footer {
    padding: 1rem;
  }

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

  .flow-lab-canvas-shell {
    min-height: 18rem;
    position: relative;
    inset: auto;
    order: -1;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .flow-lab-gui {
    display: none;
  }

  .hero h1,
  .section-heading h2,
  .proof-intro h2,
  .cta-card h2 {
    font-size: clamp(2.25rem, 13vw, 3.35rem);
  }

  .hero-summary,
  .section-heading p,
  .quote-text,
  .capability-card p,
  .roadmap-step p,
  .expert-stack p,
  .proof-card p,
  .safety-card p,
  .cta-card .eyebrow + h2 + p,
  .docs-note,
  .pipeline-step-card p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .sheet-head,
  .sheet-rows span,
  .pipeline-step-card,
  .roadmap-step {
    grid-template-columns: 1fr;
  }

  .sheet-rows i {
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
