:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --soft: #eef3ef;
  --ink: #17211d;
  --muted: #627067;
  --line: #d8ded6;
  --green: #2f6f5e;
  --dark: #18241f;
  --blue: #376a8a;
  --amber: #9a6a14;
  --red: #9b3d32;
  --shadow: 0 18px 44px rgba(24, 36, 31, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0;
  line-height: 1.7;
  margin: 0;
  overflow-x: hidden;
  width: 100%;
}
a { color: inherit; text-decoration: none; }
img { display: block; height: auto; max-width: 100%; }
.siteHeader {
  align-items: center;
  background: rgba(246, 247, 244, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 64px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}
.siteBrand { color: var(--dark); font-size: 17px; font-weight: 800; white-space: nowrap; }
.siteNav { align-items: center; display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.siteNav a { border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 700; padding: 7px 10px; }
.siteNav a:hover { background: var(--soft); color: var(--dark); }
.sectionBand { border-bottom: 1px solid var(--line); }
.sectionInner { margin: 0 auto; max-width: 1180px; padding: 72px 24px; }
.hero { background: var(--soft); }
.heroGrid {
  align-items: center;
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(430px, 0.95fr) minmax(480px, 1.05fr);
  min-height: calc(100svh - 64px);
  padding-bottom: 40px;
  padding-top: 40px;
}
.heroText,
.heroVisual {
  min-width: 0;
}
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: 0; margin: 0 0 10px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { color: var(--dark); margin-bottom: 20px; }
.heroTitle {
  display: grid;
  gap: 12px;
  line-height: 1.05;
  max-width: 620px;
}
.titleTools {
  color: var(--blue);
  display: block;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.titleMain {
  color: var(--dark);
  display: block;
  font-size: 50px;
  font-weight: 900;
  line-height: 1.06;
}
.titleMain span { display: block; }
.titleBadge {
  align-items: center;
  background: var(--dark);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 20px;
  font-weight: 900;
  justify-self: start;
  line-height: 1;
  min-height: 38px;
  padding: 8px 16px;
}
h2 { color: var(--dark); font-size: 40px; line-height: 1.2; margin-bottom: 14px; }
h3 { color: var(--dark); font-size: 18px; line-height: 1.35; margin-bottom: 10px; }
.lead { color: #344139; font-size: 17px; line-height: 1.85; margin-bottom: 22px; max-width: 640px; }
.roleBlock { border-left: 4px solid var(--green); display: grid; gap: 3px; margin-bottom: 20px; padding-left: 14px; }
.storyBlock {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 0;
  padding: 16px;
}
.storyBlock span,
.roleBlock span, .metricStrip span, .highlightItem span, .flowList span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.storyBlock p { color: #344139; font-size: 15px; line-height: 1.8; margin: 6px 0 0; }
.roleBlock strong { color: var(--dark); font-size: 15px; overflow-wrap: anywhere; }
.tagList { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 26px; padding: 0; }
.tagList li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #344139;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
}
.heroActions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { align-items: center; border-radius: 6px; display: inline-flex; font-weight: 800; min-height: 42px; padding: 10px 16px; }
.button.primary { background: var(--green); color: #fff; }
.button.secondary { background: var(--surface); border: 1px solid var(--line); color: var(--dark); }
.heroVisual { margin: 0; }
.heroVisual img, .highlightItem img, .screenGrid img {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.heroVisual img {
  max-height: min(430px, 48svh);
  object-fit: contain;
  width: 100%;
}
figcaption { color: var(--muted); font-size: 13px; margin-top: 10px; }
.overviewBand, .highlightsBand, .screensBand { background: var(--surface); }
.contextGrid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 28px; }
.metricStrip { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 64px; }
.metricStrip div, .comparisonColumn, .featureItem, .noteItem {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.metricStrip div { min-height: 142px; }
.metricStrip strong { color: var(--dark); display: block; font-size: 28px; line-height: 1.2; margin: 9px 0; }
.metricStrip p, .sectionHeader p, .featureItem p, .noteItem p,
.comparisonColumn li, .timeline p, .flowList p, .highlightItem p { color: var(--muted); }
.lead,
.roleBlock strong,
.storyBlock p,
.metricStrip p,
.sectionHeader p,
.featureItem p,
.noteItem p,
.comparisonColumn li,
.timeline p,
.flowList p,
.highlightItem p {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.sectionHeader { margin-bottom: 30px; max-width: 790px; }
.sectionHeader.compact { margin-bottom: 22px; }
.beforeAfter { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comparisonColumn.after { border-color: #a9cbbf; }
.checkList { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.checkList li { border-top: 1px solid var(--line); padding-top: 10px; }
.flowBand { background: #f2f5f7; }
.flowList { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); list-style: none; margin: 0; padding: 0; }
.flowList li {
  background: var(--surface);
  border: 1px solid #d5dfe4;
  border-radius: 8px;
  min-height: 190px;
  padding: 16px;
}
.flowList strong { color: var(--dark); display: block; margin: 9px 0; }
.featureGrid, .notesGrid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.featureItem, .noteItem { background: var(--surface); min-height: 210px; }
.featureItem span { color: var(--blue); display: block; font-size: 13px; font-weight: 800; margin-top: 16px; }
.architectureBand { background: var(--dark); color: #eef3ef; }
.architectureBand h2, .architectureBand h3 { color: #fff; }
.architectureBand .sectionHeader p, .architectureBand .eyebrow { color: #a8c6ba; }
.systemOverview { padding-bottom: 40px; }
.systemDiagram {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, .9fr) 72px minmax(430px, 1.8fr) 86px minmax(220px, .9fr);
}
.diagramColumn,
.diagramCore {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}
.diagramColumn {
  display: grid;
  gap: 12px;
  padding: 20px;
}
.diagramKicker,
.coreHeader span,
.coreNode span {
  color: #a8c6ba;
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.diagramColumn h3 {
  font-size: 22px;
  margin: 0;
}
.diagramMiniCard,
.coreNode {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  min-width: 0;
  padding: 16px;
}
.diagramMiniCard strong,
.coreNode strong {
  color: #fff;
  display: block;
  font-size: 16px;
  line-height: 1.35;
}
.diagramMiniCard p,
.coreNode p {
  color: #bcd3ca;
  font-size: 13px;
  line-height: 1.65;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.diagramConnector {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.diagramConnector span {
  align-items: center;
  background: #dbece5;
  border-radius: 999px;
  color: var(--dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  line-height: 1.3;
  min-height: 40px;
  padding: 8px 10px;
  position: relative;
  text-align: center;
}
.diagramConnector span::before,
.diagramConnector span::after {
  background: #dbece5;
  content: "";
  height: 2px;
  position: absolute;
  top: 50%;
  width: 22px;
}
.diagramConnector span::before { right: 100%; }
.diagramConnector span::after { left: 100%; }
.diagramCore {
  padding: 20px;
}
.coreHeader {
  border-bottom: 1px solid rgba(255,255,255,.18);
  margin-bottom: 14px;
  padding-bottom: 14px;
}
.coreHeader strong {
  color: #fff;
  display: block;
  font-size: 26px;
  line-height: 1.25;
  margin-top: 4px;
}
.coreGrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.coreNode.wide { grid-column: 1 / -1; }
.diagramSteps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.diagramSteps li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  min-height: 150px;
  padding: 14px;
}
.diagramSteps span {
  align-items: center;
  background: #dbece5;
  border-radius: 999px;
  color: var(--dark);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  margin-bottom: 10px;
  width: 28px;
}
.diagramSteps strong {
  color: #fff;
  display: block;
}
.diagramSteps p {
  color: #bcd3ca;
  font-size: 13px;
  line-height: 1.6;
  margin: 6px 0 0;
}
.architectureGrid { display: grid; gap: 30px; grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr); }
.architectureMap { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.archNode {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  min-height: 90px;
  padding: 14px;
}
.archNode span { color: #bcd3ca; display: block; font-size: 12px; font-weight: 700; margin-top: 4px; }
.archArrow { align-items: center; color: #bcd3ca; display: flex; font-size: 12px; font-weight: 800; justify-content: center; }
.techPanel { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255,255,255,.22); border-radius: 8px; padding: 22px; }
.techList { display: grid; gap: 12px; margin: 0; }
.techList div { border-top: 1px solid rgba(255,255,255,.18); display: grid; gap: 2px; padding-top: 12px; }
.techList dt { color: #a8c6ba; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.techList dd { margin: 0; }
.llmStrategy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  margin-top: 18px;
  padding: 16px;
}
.llmStrategy h4 { color: #fff; font-size: 16px; margin: 0 0 8px; }
.llmStrategy p { color: #bcd3ca; font-size: 14px; margin: 0; }
.highlightList { display: grid; gap: 28px; }
.highlightItem { align-items: center; display: grid; gap: 28px; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); }
.highlightItem.reverse { grid-template-columns: minmax(320px, .92fr) minmax(0, 1.08fr); }
.highlightItem.reverse img { order: 2; }
.highlightItem img { max-height: 420px; object-fit: contain; width: 100%; }
.highlightItem h3 { font-size: 28px; }
.notesGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.screenGrid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.screenGrid figure { margin: 0; }
.screenGrid img { object-fit: contain; width: 100%; }
.timeline { border-left: 2px solid var(--line); display: grid; gap: 18px; list-style: none; margin: 0; padding: 0 0 0 20px; }
.timeline li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; position: relative; }
.timeline li::before { background: var(--green); border: 4px solid var(--bg); border-radius: 999px; content: ""; height: 14px; left: -28px; position: absolute; top: 22px; width: 14px; }
.timeline span { color: var(--blue); display: block; font-size: 12px; font-weight: 800; margin-bottom: 4px; }
.timeline strong { color: var(--dark); display: block; font-size: 18px; }
.timeline p { margin: 5px 0 0; }
.siteFooter { background: var(--dark); color: #eef3ef; }
.footerInner { align-items: center; display: flex; gap: 16px; justify-content: space-between; padding-bottom: 24px; padding-top: 24px; }
.footerInner span { color: #a8c6ba; font-size: 13px; }
@media (max-width: 1040px) {
  .heroGrid, .architectureGrid { grid-template-columns: minmax(0, 1fr); }
  .heroGrid { min-height: auto; }
  .heroVisual img { max-height: none; }
  .contextGrid, .metricStrip, .featureGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .systemDiagram {
    grid-template-columns: minmax(0, 1fr);
  }
  .diagramConnector {
    min-height: 34px;
  }
  .diagramConnector span::before,
  .diagramConnector span::after {
    display: none;
  }
  .diagramSteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flowList { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .notesGrid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .siteHeader { align-items: flex-start; flex-direction: column; gap: 8px; position: static; }
  .siteNav { justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; width: 100%; }
  .sectionInner { max-width: 100%; overflow: hidden; padding: 54px 28px 54px 18px; width: 100%; }
  .heroGrid { gap: 28px; padding-bottom: 36px; padding-top: 36px; }
  .heroText, .heroTitle, .lead, .roleBlock, .tagList, .heroActions {
    max-width: min(100%, calc(100vw - 46px));
    width: min(100%, calc(100vw - 46px));
  }
  .heroVisual { display: none; }
  .titleTools { font-size: 16px; }
  .titleMain { font-size: 36px; }
  .titleBadge { font-size: 16px; min-height: 34px; padding: 8px 14px; }
  h2 { font-size: 30px; }
  .lead { font-size: 15px; line-height: 1.8; word-break: break-all; }
  .roleBlock strong { word-break: break-all; }
  .contextGrid, .metricStrip, .beforeAfter, .featureGrid, .flowList, .screenGrid, .architectureMap,
  .highlightItem, .highlightItem.reverse, .coreGrid, .diagramSteps { grid-template-columns: minmax(0, 1fr); }
  .highlightItem.reverse img { order: 0; }
  .metricStrip div, .featureItem, .noteItem { min-height: 0; }
  .diagramSteps li { min-height: 0; }
  .footerInner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .heroText, .heroTitle, .lead, .roleBlock, .tagList, .heroActions {
    max-width: 340px;
    width: 100%;
  }
}
@media (max-width: 430px) {
  .sectionInner { padding-left: 18px; padding-right: 18px; }
  .heroText, .heroTitle, .lead, .roleBlock, .tagList, .heroActions {
    max-width: min(340px, calc(100vw - 36px));
    width: min(340px, calc(100vw - 36px));
  }
  .titleMain { font-size: 34px; }
}
