:root {
  --ink: #0b1715;
  --forest: #16211f;
  --forest-2: #213532;
  --mint: #69c8aa;
  --mint-soft: #dff4ec;
  --paper: #f3f1ea;
  --white: #fffefa;
  --quiet: #60706c;
  --line: rgba(22, 33, 31, 0.14);
  --shadow: 0 28px 80px rgba(11, 23, 21, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.shell { width: min(1180px, 90vw); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 241, 234, 0.9);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.brand span { display: grid; gap: 0.1rem; }
.brand strong { font-size: 1rem; letter-spacing: -0.02em; }
.brand small { color: var(--quiet); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; }
nav { display: flex; align-items: center; gap: 1.7rem; }
nav a { color: var(--quiet); text-decoration: none; font-size: 0.9rem; }
nav a:hover, nav a:focus-visible { color: var(--ink); }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--forest);
  border-radius: 8px;
  color: var(--white);
  background: var(--forest);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); background: var(--forest-2); }
.button-small { min-height: 40px; padding: 0.55rem 0.9rem; }
.text-link { font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 0.2rem; }

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.82fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
  padding: 7rem 0;
}
.eyebrow {
  margin: 0 0 1.3rem;
  color: #347f69;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; letter-spacing: -0.045em; }
h1 { max-width: 760px; margin-bottom: 1.6rem; font-size: clamp(3.6rem, 7vw, 6.9rem); line-height: 0.92; font-weight: 760; }
h2 { max-width: 820px; margin-bottom: 1.1rem; font-size: clamp(2.5rem, 4.6vw, 4.7rem); line-height: 0.98; }
h3 { margin-bottom: 0.75rem; font-size: 1.35rem; line-height: 1.1; }
.lede { max-width: 720px; margin: 0; color: var(--quiet); font-size: 1.2rem; line-height: 1.7; }
.actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.signals { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.7rem; }
.signals span { padding: 0.5rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 254, 250, 0.55); color: var(--quiet); font-size: 0.78rem; }

.matter-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(105, 200, 170, 0.26);
  border-radius: 22px;
  background: var(--forest);
  box-shadow: var(--shadow);
  color: var(--white);
}
.matter-preview::before { content: ""; position: absolute; inset: -30% 30% 60% -20%; border-radius: 50%; background: rgba(105, 200, 170, 0.16); filter: blur(20px); }
.preview-head, .preview-foot { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem; }
.preview-head { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.preview-head div { display: grid; gap: 0.35rem; }
.preview-head strong { font-size: 0.95rem; }
.label, .client-request > span { color: var(--mint); font-size: 0.64rem; letter-spacing: 0.13em; }
.status { padding: 0.42rem 0.6rem; border-radius: 999px; background: var(--mint-soft); color: var(--forest); font-size: 0.68rem; font-weight: 800; }
.client-request { position: relative; margin: 1.35rem; padding: 1rem; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.client-request p { margin: 0.55rem 0 0; color: #d9e4df; font-family: Georgia, serif; font-size: 1rem; line-height: 1.55; }
.progress-list { position: relative; display: grid; gap: 0.3rem; padding: 0 1.35rem 1.35rem; }
.progress-list > div { display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem; border-radius: 9px; color: #9eaca7; }
.progress-list > div.active { background: rgba(105, 200, 170, 0.1); color: var(--white); }
.progress-list > div.complete { color: #d9e4df; }
.progress-list i { width: 30px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%; color: var(--mint); font-size: 0.65rem; font-style: normal; }
.progress-list span { display: grid; gap: 0.2rem; }
.progress-list strong { font-size: 0.82rem; }
.progress-list small { color: #92a29d; }
.preview-foot { border-top: 1px solid rgba(255, 255, 255, 0.1); color: #92a29d; font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.08em; }

.workflow-section, .model-section { background: var(--forest); color: var(--white); }
.workflow-section .shell, .system-section, .model-grid { padding-top: 7rem; padding-bottom: 7rem; }
.workflow-section .eyebrow, .model-section .eyebrow { color: var(--mint); }
.section-heading > p:last-child { max-width: 650px; color: #aab7b3; line-height: 1.7; }
.lifecycle { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; margin: 3.8rem 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.lifecycle li { position: relative; display: grid; gap: 0.45rem; padding: 1.6rem 1rem 0 0; }
.lifecycle li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }
.lifecycle span { color: var(--mint); font-size: 0.65rem; }
.lifecycle strong { font-size: 0.92rem; }
.lifecycle small { color: #81918c; line-height: 1.4; }

.narrow { max-width: 900px; }
.system-section .section-heading > p:last-child { color: var(--quiet); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 3.5rem; }
.feature-grid article { min-height: 300px; display: flex; flex-direction: column; padding: 1.8rem; border: 1px solid var(--line); background: var(--white); }
.feature-number { margin-bottom: auto; color: #347f69; font-size: 0.72rem; font-weight: 800; }
.feature-grid p { margin: 0; color: var(--quiet); line-height: 1.65; }

.model-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.75fr); gap: 7rem; align-items: center; }
.model-copy { max-width: 610px; color: #aab7b3; font-size: 1.1rem; line-height: 1.75; }
.boundary-card { border: 1px solid rgba(255, 255, 255, 0.14); }
.boundary-card > div { padding: 1.5rem; }
.boundary-card > div + div { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.boundary-card span { display: block; margin-bottom: 0.6rem; color: var(--mint); font-size: 0.63rem; letter-spacing: 0.13em; }
.boundary-card strong { font-size: 1.6rem; }
.boundary-card p { margin: 0.7rem 0 0; color: #9eaca7; line-height: 1.55; }

.cta-section { display: flex; justify-content: space-between; align-items: end; gap: 3rem; padding-top: 7rem; padding-bottom: 7rem; }
.cta-section h2 { max-width: 880px; margin-bottom: 0; }
footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; padding-top: 2rem; padding-bottom: 2rem; }
.footer-inner > div { display: grid; gap: 0.4rem; }
.footer-inner span, .footer-inner a { color: var(--quiet); font-size: 0.82rem; }

.intent-hero { min-height: 620px; display: flex; flex-direction: column; justify-content: center; padding-top: 6rem; padding-bottom: 6rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 2.5rem; color: var(--quiet); font-size: 0.85rem; }
.intent-section { padding-top: 7rem; padding-bottom: 7rem; }
.intent-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); gap: 5rem; align-items: start; padding-top: 7rem; padding-bottom: 7rem; }
.body-copy, .light-card p, .dark-card p, .intent-grid p, .intent-flow p { color: var(--quiet); line-height: 1.7; }
.light-card, .dark-card, .intent-grid article { padding: 1.6rem; border: 1px solid var(--line); background: var(--white); }
.dark-card { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04); }
.dark-card p { color: #aab7b3; }
.intent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 3rem; }
.intent-grid p { margin-bottom: 0; }
.intent-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 3rem; background: rgba(255, 255, 255, 0.14); }
.intent-flow article { padding: 1.5rem; background: var(--forest); }
.intent-flow span { display: block; margin-bottom: 2rem; color: var(--mint); font-size: 0.7rem; }
.intent-flow p { color: #aab7b3; }

@media (max-width: 920px) {
  nav { display: none; }
  .hero, .model-grid { grid-template-columns: 1fr; }
  .intent-split, .intent-grid, .intent-flow { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 5rem 0; }
  .matter-preview { max-width: 620px; }
  .lifecycle { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 230px; }
  .model-grid { gap: 3rem; }
}

@media (max-width: 620px) {
  .site-header { min-height: 70px; }
  .brand small, .site-header > .button { display: none; }
  h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .actions, .cta-section, .footer-inner { align-items: flex-start; flex-direction: column; }
  .lifecycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-head, .preview-foot { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
