/* Radius scale: 6px controls, 10px product frame, 12px grouped feature content.
   Layer scale: header 10, skip link 20; the native dialog uses the top layer. */
:root {
  color-scheme: light;
  --canvas: #f8f9f5;
  --surface: #ffffff;
  --surface-muted: #eef1eb;
  --text: #202a24;
  --muted: #5e6961;
  --accent: #316147;
  --accent-muted: #e5ede3;
  --line: #dce2d8;
  --button-bg: #253f30;
  --button-text: #f9fbf7;
  --button-hover: #35593f;
  --frame: #dfe7d9;
  --focus: #397450;
  --sans: 'Be Vietnam Pro', sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --canvas: #151a17;
  --surface: #1b221d;
  --surface-muted: #202921;
  --text: #edf1e9;
  --muted: #b3bfb4;
  --accent: #adc9aa;
  --accent-muted: #2b382c;
  --line: #354136;
  --button-bg: #d6e5cc;
  --button-text: #1a2f21;
  --button-hover: #ecf5e7;
  --frame: #29342a;
  --focus: #b6d5ae;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; }
body { font: 400 15px/1.65 var(--sans); color: var(--text); background: var(--canvas); -webkit-font-smoothing: antialiased; }
body, .site-shell { overflow: hidden; }
.site-shell { height: 100svh; width: 100%; }
.site-scroll { height: 100%; overflow-y: auto; overflow-x: clip; scroll-behavior: smooth; scrollbar-gutter: stable; }
::selection { color: var(--text); background: var(--accent-muted); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
button, a, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { -webkit-appearance: none; appearance: none; }
button:disabled { cursor: not-allowed; }
button, a { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
section[id], details[id], main[id] { scroll-margin-top: 100px; }
.container { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 20; padding: 10px 18px; border-radius: 6px; color: var(--button-text); background: var(--button-bg); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--canvas); border-bottom: 1px solid var(--line); }
.header-inner { height: 76px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 19px; font-weight: 600; letter-spacing: -0.65px; }
.brand-vn { color: var(--accent); }
.desktop-nav { display: flex; gap: 26px; align-items: center; margin-left: auto; color: var(--muted); font-size: 12px; }
.desktop-nav a, .site-footer nav a { white-space: nowrap; }
.desktop-nav a:hover, .site-footer nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.theme-toggle, .menu-toggle, .dialog-close { border: 0; background: transparent; padding: 10px; min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 6px; }
.theme-toggle:hover, .menu-toggle:hover, .dialog-close:hover { background: var(--accent-muted); }
.theme-toggle { display: none; }
.has-js .theme-toggle { display: grid; }
.theme-icon-light { display: none; }
.theme-icon-dark { display: block; }
:root[data-theme='dark'] .theme-icon-light { display: block; }
:root[data-theme='dark'] .theme-icon-dark { display: none; }
.menu-toggle { display: none; }
.mobile-nav { padding-block: 0 18px; display: none; gap: 4px; }
:root.has-js .mobile-nav:not([data-open='true']) { display: none; }
.mobile-nav a { padding: 10px 4px; font-size: 14px; }
.mobile-nav a:hover { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.button-primary { background: var(--button-bg); color: var(--button-text); }
.button-primary:hover { background: var(--button-hover); }
.button-outline { border-color: var(--line); background: transparent; }
.button-outline:hover { background: var(--accent-muted); border-color: var(--accent); }
.button-small { min-height: 38px; padding: 9px 13px; gap: 12px; font-size: 11px; }
.button:active { transform: scale(0.98); }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; }
.text-link:hover { color: var(--accent); }
.text-link:hover .icon { transform: translateX(3px); }
.text-link .icon { transition: transform 160ms ease; }

.hero { padding-block: 62px 48px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 500; letter-spacing: 1.1px; margin-bottom: 21px; }
.hero h1 { font-size: clamp(42px, 5.1vw, 68px); font-weight: 500; letter-spacing: -2.9px; line-height: 1.23; }
.hero h1 span { color: var(--accent); }
.hero-description { color: var(--muted); font-size: 15px; line-height: 1.8; margin-top: 23px; max-width: 580px; }
.hero-actions { display: flex; gap: 32px; align-items: center; margin-top: 26px; }
.not-found { min-height: calc(100svh - 77px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 56px; }
.not-found h1 { font-size: clamp(32px, 4.5vw, 60px); font-weight: 500; letter-spacing: -1.5px; line-height: 1.3; }
.not-found .button { margin-top: 28px; }
.product-tabs { display: flex; gap: 6px; align-items: center; padding-bottom: 13px; }
.product-tab { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.product-tab[aria-selected='true'] { color: var(--text); border-color: var(--line); background: var(--surface); }
.product-tab:hover { color: var(--text); background: var(--accent-muted); }
.product-stage { padding: 12px; border-radius: 10px; background: var(--surface-muted); border: 1px solid var(--line); }
.product-panel { border-radius: 4px; overflow: hidden; }
.screenshot-link { display: block; position: relative; background: #fff; aspect-ratio: 2772 / 1724; border-radius: 4px; overflow: hidden; cursor: zoom-in; }
.screenshot-link img { width: 100%; height: 100%; object-fit: contain; }
.screenshot-link:focus-visible { outline-offset: -4px; }
.product-caption { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 36px; padding-top: 17px; font-size: 11px; color: var(--muted); }
.product-caption p { max-width: 620px; }
.product-caption > span { font-size: 10px; white-space: nowrap; }
.image-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: #eff4ed; background: #202820; text-align: center; }
.noscript-note { margin-top: 16px; font-size: 12px; }
.noscript-note a { text-decoration: underline; }

.section-spacing { padding-block: 105px 0; }
.section-intro { max-width: 650px; margin-bottom: 43px; }
h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 500; line-height: 1.32; letter-spacing: -1.2px; }
.section-intro > p { color: var(--muted); font-size: 14px; max-width: 540px; margin-top: 19px; line-height: 1.8; }
.capability-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; }
.capability { padding: 30px 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.capability h3 { font-size: 19px; line-height: 1.5; font-weight: 500; letter-spacing: -0.35px; margin-top: 19px; }
.capability p { margin-top: 12px; max-width: 440px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.feature-icon { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.capability-data { background: var(--accent-muted); }
.feature-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.feature-tags li { color: var(--accent); border: 1px solid var(--line); border-radius: 4px; padding: 3px 10px; font-size: 10px; }
.capability .text-link { margin-top: 24px; font-size: 12px; }
.capability-note { display: block; margin-top: 22px; color: var(--muted); font-size: 10px; }
.capability-risk { background: transparent; }
.capability-paper { background: var(--surface-muted); }

.showcase-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 70px; margin-bottom: 34px; }
.showcase-intro .eyebrow { margin-bottom: 16px; }
.showcase-intro > p { color: var(--muted); font-size: 14px; line-height: 1.85; max-width: 470px; padding-bottom: 3px; }
.showcase-figure, .evidence-figure { margin: 0; min-width: 0; }
.showcase-figure > .screenshot-link { border: 1px solid var(--line); border-radius: 8px; }
.showcase-figure figcaption { display: flex; justify-content: space-between; gap: 20px; padding-top: 16px; color: var(--muted); font-size: 11px; }
.evidence-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.evidence-copy { display: grid; grid-template-columns: 1fr 1fr; column-gap: 70px; border-top: 1px solid var(--line); padding-block: 25px; }
.evidence-copy .eyebrow { display: block; margin-bottom: 13px; font-size: 10px; }
.evidence-copy h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.4px; line-height: 1.5; }
.evidence-copy p { grid-column: 2; grid-row: 1 / 3; align-self: end; font-size: 13px; color: var(--muted); line-height: 1.85; }
.evidence-figure > .screenshot-link { border: 1px solid var(--line); border-radius: 6px; }
.evidence-figure figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; padding-top: 14px; }
.evidence-figure figcaption .icon { width: 14px; height: 14px; }
.evidence-note { color: var(--muted); font-size: 11px; line-height: 1.8; max-width: 740px; margin-top: 27px; }

.workflow-section { margin-top: 105px; background: var(--surface-muted); padding-block: 79px; }
.workflow-section .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px 65px; align-items: start; }
.workflow-section .section-intro { margin-bottom: 0; }
.workflow-list { list-style: none; }
.workflow-list li { display: grid; grid-template-columns: 92px 1fr 18px; align-items: start; gap: 20px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.workflow-list li:first-child { padding-top: 0; }
.workflow-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.workflow-name { font-family: var(--mono); font-size: 11px; color: var(--accent); padding-top: 5px; }
.workflow-list h3 { font-size: 14px; line-height: 1.6; font-weight: 500; }
.workflow-list p { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.8; }
.workflow-list .icon { margin-top: 5px; color: var(--muted); width: 14px; height: 14px; }
.workflow-footnote { display: flex; gap: 12px; align-items: center; grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 26px; color: var(--muted); font-size: 11px; }
.workflow-footnote .icon { color: var(--accent); }

.mcp-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.mcp-copy > p:not(.eyebrow) { color: var(--muted); margin-top: 22px; font-size: 14px; line-height: 1.8; max-width: 430px; }
.mcp-copy .text-link { margin-top: 25px; }
.mcp-flow { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.mcp-flow-heading { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 20px 23px; font-family: var(--mono); font-size: 12px; }
.mcp-flow-heading .icon { color: var(--accent); }
.mcp-flow-heading > span:last-child { margin-left: auto; color: var(--muted); font-family: var(--sans); font-size: 9px; }
.mcp-flow ol { list-style: none; padding: 21px 23px; }
.mcp-flow li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 11px; }
.mcp-flow li span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.mcp-flow code { font: 10px/1.6 var(--mono); color: var(--accent); overflow-wrap: anywhere; text-align: right; }
.mcp-flow > p { background: var(--surface-muted); color: var(--muted); font-size: 10px; padding: 16px 23px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }

.faq-section { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: start; gap: 70px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 22px; list-style: none; cursor: pointer; padding-block: 22px; font-size: 13px; font-weight: 500; line-height: 1.8; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-list summary .icon { width: 16px; height: 16px; color: var(--muted); transition: transform 180ms ease; }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-answer { padding: 0 36px 23px 0; font-size: 12px; line-height: 1.9; color: var(--muted); }

.closing-section { margin-block: 103px 84px; }
.closing-content { background: var(--accent-muted); border: 1px solid var(--line); border-radius: 12px; padding: 56px 60px; }
.closing-content h2 { font-size: 42px; letter-spacing: -1.5px; }
.closing-content > p { margin-top: 17px; color: var(--muted); font-size: 13px; }
.closing-content .button { margin-top: 25px; }
.site-footer { padding-block: 0 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.footer-top .brand { font-size: 16px; }
.site-footer nav { display: flex; gap: 28px; font-size: 11px; color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 21px; color: var(--muted); font-size: 10px; }

.image-dialog { width: min(1388px, calc(100% - 48px)); max-height: calc(100svh - 48px); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }
.image-dialog[open] { display: flex; flex-direction: column; }
.image-dialog::backdrop { background: rgb(12 18 13 / 80%); }
.dialog-toolbar { display: flex; flex: 0 0 auto; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.dialog-toolbar h2 { font-size: 13px; letter-spacing: 0; }
.dialog-zoom { margin-left: auto; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 11px; white-space: nowrap; }
.dialog-zoom:hover, .dialog-zoom[aria-pressed='true'] { background: var(--accent-muted); }
.dialog-original { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.dialog-original:hover { color: var(--accent); }
.site-shell:has(+ .image-dialog[open]) .site-scroll { overflow-y: hidden; }
.dialog-viewport { min-height: 0; overflow: auto; overscroll-behavior: contain; background: #fff; }
.dialog-image { width: 100%; height: auto; }
.image-dialog[data-zoom='detail'] .dialog-image { width: 1386px; max-width: none; }
.dialog-error { padding: 48px 24px; color: var(--muted); text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity 550ms ease, transform 550ms cubic-bezier(0.16, 1, 0.3, 1); }
  .reveal-pending { opacity: 0; transform: translateY(12px); }
}
@media (prefers-reduced-motion: reduce) {
  .site-scroll { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

@media (min-width: 1600px) {
  .container { width: min(1200px, calc(100% - 144px)); }
  .hero { padding-block: 74px 58px; }
  .hero h1 { font-size: 74px; }
}
@media (min-width: 1024px) {
  .product-section { width: min(1386px, calc(100% - 64px)); }
}
@media (max-width: 1100px) {
  .desktop-nav { gap: 17px; font-size: 11px; }
  .header-inner { gap: 20px; }
  .header-actions { gap: 10px; }
  .mcp-section { gap: 40px; }
  .mcp-flow li { align-items: flex-start; flex-direction: column; gap: 4px; }
  .mcp-flow code { text-align: left; }
}
@media (max-width: 1023px) {
  .desktop-nav { display: none; }
  .header-actions { margin-left: auto; }
  .has-js .menu-toggle { display: grid; }
  .mobile-nav { display: grid; }
  .container { width: calc(100% - 64px); }
  .workflow-section .container { gap: 40px; }
  .workflow-list li { grid-template-columns: 80px 1fr 14px; gap: 16px; }
  .faq-section { gap: 40px; }
  .product-caption { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 767px) {
  .container { width: calc(100% - 40px); }
  .header-inner { height: 66px; gap: 10px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 25px; height: 25px; }
  .header-cta { display: none; }
  .header-actions { gap: 4px; }
  .theme-toggle, .menu-toggle { padding: 12px; }
  .hero { padding-block: 43px 36px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.25px; margin-bottom: 20px; max-width: 280px; }
  .hero h1 { font-size: clamp(31px, 6.9vw, 49px); letter-spacing: -1.4px; line-height: 1.32; }
  .hero-description { font-size: 13px; max-width: 390px; margin-top: 21px; }
  .desktop-break { display: none; }
  .hero-actions { gap: 25px; margin-top: 24px; flex-wrap: wrap; }
  .button { min-height: 46px; padding-inline: 15px; gap: 16px; font-size: 12px; }
  .text-link { font-size: 12px; gap: 8px; }
  .product-tabs { gap: 2px; display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: 10px; }
  .product-tab { padding: 11px 5px; min-height: 46px; font-size: 10px; white-space: normal; line-height: 1.6; text-wrap: balance; }
  .product-stage { padding: 8px; border-radius: 8px; }
  .product-caption { padding-top: 13px; font-size: 10px; gap: 8px; }
  .product-caption > span { font-size: 9px; }
  .section-spacing { padding-top: 70px; }
  h2 { font-size: 29px; letter-spacing: -0.8px; }
  .section-intro { margin-bottom: 27px; }
  .section-intro > p { font-size: 13px; margin-top: 17px; }
  .capability-grid { grid-template-columns: 1fr; gap: 12px; }
  .capability { padding: 26px; }
  .capability h3 { font-size: 18px; }
  .capability p { font-size: 12px; }
  .showcase-intro { grid-template-columns: 1fr; gap: 18px; margin-bottom: 25px; }
  .showcase-intro > p { font-size: 13px; }
  .showcase-figure figcaption { flex-direction: column; gap: 4px; font-size: 10px; padding-top: 12px; }
  .evidence-grid { grid-template-columns: 1fr; gap: 35px; }
  .evidence-copy { grid-template-columns: 1fr; padding-block: 23px; }
  .evidence-copy h3 { font-size: 18px; }
  .evidence-copy p { grid-column: auto; grid-row: auto; margin-top: 12px; font-size: 12px; }
  .evidence-figure figcaption, .evidence-note { font-size: 10px; }
  .workflow-section { margin-top: 70px; padding-block: 55px; }
  .workflow-section .container { grid-template-columns: 1fr; gap: 35px; }
  .workflow-list li { grid-template-columns: 78px 1fr 14px; gap: 14px; padding-block: 21px; }
  .workflow-list h3 { font-size: 13px; }
  .workflow-list p { font-size: 11px; }
  .workflow-name { font-size: 10px; }
  .workflow-footnote { padding-top: 21px; font-size: 10px; }
  .mcp-section { grid-template-columns: 1fr; gap: 29px; }
  .mcp-copy > p:not(.eyebrow) { font-size: 13px; margin-top: 18px; }
  .mcp-flow-heading { padding: 17px; }
  .mcp-flow-heading > span:last-child { font-size: 8px; }
  .mcp-flow ol { padding: 15px 17px; }
  .mcp-flow li { flex-direction: row; align-items: baseline; gap: 8px; }
  .mcp-flow li span { font-size: 9px; }
  .mcp-flow code { font-size: 9px; text-align: right; }
  .mcp-flow > p { padding: 15px 17px; font-size: 9px; }
  .faq-section { grid-template-columns: 1fr; gap: 28px; }
  .faq-list summary { padding-block: 20px; font-size: 12px; }
  .faq-answer { font-size: 11px; padding-right: 15px; }
  .closing-section { margin-block: 70px 56px; }
  .closing-content { padding: 35px 26px; }
  .closing-content h2 { font-size: 33px; letter-spacing: -1px; }
  .closing-content > p { font-size: 12px; }
  .footer-top { align-items: flex-start; flex-direction: column; gap: 21px; }
  .footer-bottom { flex-direction: column; gap: 10px; font-size: 9px; }
  .site-footer { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .image-dialog { width: calc(100% - 24px); max-height: calc(100svh - 24px); }
  .dialog-toolbar { flex-wrap: wrap; gap: 8px 16px; padding: 8px 12px; }
  .dialog-toolbar h2 { flex-basis: 100%; font-size: 11px; }
  .dialog-zoom { margin-left: 0; }
  .dialog-close { margin-left: auto; }
}

@media (max-width: 359px) {
  .hero h1 { font-size: 26px; letter-spacing: -1.1px; }
  .hero-actions { gap: 18px; }
  .hero-actions .button { font-size: 11px; padding-inline: 13px; gap: 12px; }
  .hero-actions .text-link { font-size: 11px; }
  .mcp-flow-heading > span:last-child { display: none; }
}
