/* SANGFOR Agent Builder Demo Center
 * Palette follows the Sangfor brand: deep navy, Sangfor blue (#005ED9) and the green / sky
 * accents of the Sangfor and Agent Builder logos. Light theme only, no external fonts. */
:root {
  --navy-950: #061733;
  --navy-900: #0a1f44;
  --navy-800: #102a5c;
  --navy-700: #1a3a78;
  --blue: #005ed9;
  --blue-600: #004cb3;
  --blue-50: #eaf2fd;
  --blue-100: #d6e6fb;
  --sky: #4db8ff;
  --green: #14c417;
  --green-600: #0c8f3a;
  --green-50: #e7f7ec;
  --amber-600: #9a5b00;
  --amber-50: #fff4e0;

  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --text: #12161a;
  --text-2: #4a5566;
  --text-3: #7a8496;
  --border: #e2e7ef;
  --border-2: #cfd7e3;

  --shadow-sm: 0 1px 2px rgba(10, 31, 68, .06);
  --shadow: 0 1px 2px rgba(10, 31, 68, .05), 0 6px 20px -8px rgba(10, 31, 68, .14);
  --shadow-lg: 0 24px 60px -24px rgba(6, 23, 51, .45);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1240px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body { margin: 0; font: 15px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.drawer-open { overflow: hidden; }
img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { width: 16px; height: 16px; flex: none; }
h1, h2, h3, h4 { letter-spacing: -.01em; line-height: 1.25; }
code { font-family: var(--mono); font-size: .92em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
.noscript { background: var(--amber-50); color: var(--amber-600); padding: 12px 24px; text-align: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--navy-950); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.site-header .container { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none !important; }
.brand-logo { height: 36px; width: auto; display: block; }
.brand-sep { width: 1px; height: 24px; background: rgba(255, 255, 255, .22); }
.brand-sub { color: #c6d3ea; font-size: 15px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-nav a { color: #c6d3ea; padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; text-decoration: none; }
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.site-nav a.btn { color: #fff; margin-left: 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--blue-50); }
.btn-outline-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .32); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }
.link-btn { border: 0; background: none; color: var(--blue); font-weight: 600; padding: 0; font-size: 14px; }

/* ---------- Badges, tags ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-live { background: var(--green-50); color: var(--green-600); }
.badge-guided { background: var(--amber-50); color: var(--amber-600); }
.cover .badge-live { background: rgba(20, 196, 23, .16); color: #8ff09a; }
.cover .badge-guided { background: rgba(255, 190, 80, .16); color: #ffd28a; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); padding: 2px 9px; border-radius: 99px; }
.tags-dark .tag { color: #d5e0f3; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); }
.ind-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--sky); }
.ind-dot.ind-healthcare { background: #36c2b0; }
.ind-dot.ind-hospitality { background: #e8b04e; }
.ind-dot.ind-it-service { background: #4db8ff; }
.ind-dot.ind-education { background: #9aa4ff; }
.ind-dot.ind-finance { background: #5bd06a; }
.ind-dot.ind-manufacturing { background: #b7c3d6; }

/* ---------- Branded cover (cards, drawer, detail hero) ---------- */
.cover { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 58%, #123a7c 100%); isolation: isolate; }
.cover-arcs { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 105% 120%, rgba(77, 184, 255, .22) 0 34%, transparent 34.5%),
    radial-gradient(120% 90% at 105% 120%, transparent 0 44%, rgba(20, 196, 23, .16) 44.5% 47%, transparent 47.5%),
    radial-gradient(120% 90% at 105% 120%, transparent 0 55%, rgba(77, 184, 255, .12) 55.5% 57%, transparent 57.5%),
    radial-gradient(60% 80% at 0% 0%, rgba(0, 94, 217, .35), transparent 70%); }
.cover-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cover-ind { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #c6d3ea; }
.cover-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(4px); }
.cover-icon svg { width: 26px; height: 26px; }
.cover-icon-lg { width: 72px; height: 72px; border-radius: 18px; }
.cover-icon-lg svg { width: 34px; height: 34px; }

/* ---------- Hero ---------- */
.hero { background: var(--navy-950); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(0, 94, 217, .38), transparent 60%),
    radial-gradient(700px 400px at 10% 120%, rgba(20, 196, 23, .12), transparent 60%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 52px; }
.hero-kicker { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.hero h1 { margin: 0; font-size: 48px; line-height: 1.08; letter-spacing: -.03em; font-weight: 700; max-width: 820px; }
.hero h1 span { color: #a9c8f5; }
.hero-sub { margin: 16px 0 28px; font-size: 18px; color: #b9c7e0; max-width: 680px; }
.hero-mark { width: 240px; height: 240px; justify-self: end; opacity: .95; filter: drop-shadow(0 30px 60px rgba(0, 94, 217, .45)); }
.finder-controls { display: flex; gap: 10px; max-width: 760px; }
.search-wrap { position: relative; flex: 1; }
.search-wrap > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); line-height: 0; }
.search-wrap svg { width: 18px; height: 18px; }
.search { width: 100%; height: 50px; border-radius: 10px; border: 1px solid transparent; background: #fff; padding: 0 48px 0 46px; font: inherit; font-size: 15.5px; color: var(--text); outline: none; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }
.search:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(77, 184, 255, .3); }
.search::-webkit-search-cancel-button { display: none; }
.search-key { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 12px var(--mono); color: var(--text-3); border: 1px solid var(--border); border-radius: 5px; padding: 1px 7px; background: var(--surface-2); }
.select-wrap select { height: 50px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; padding: 0 36px 0 14px; font: inherit; font-size: 14.5px; max-width: 260px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c6d3ea' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.select-wrap select option { color: var(--text); background: #fff; }

/* ---------- Filter bar ---------- */
.filterbar { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.filterbar-inner { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--border); background: #fff; color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--border-2); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip .count { font-size: 12px; opacity: .6; }
.result-bar { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--text-3); white-space: nowrap; }

/* ---------- Gallery ---------- */
.gallery-section { padding: 28px 0 72px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.gcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, border-color .2s; }
.gcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-2); }
.gcard .cover { height: 136px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; }
.gcard .cover-icon { align-self: flex-end; }
.gcard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.gcard h3 { margin: 0 0 6px; font-size: 18.5px; }
.gcard-link { color: var(--text); text-decoration: none !important; }
.gcard-link::after { content: ""; }
.gcard:hover .gcard-link { color: var(--blue); }
.gcard-body > p { margin: 0 0 14px; color: var(--text-2); font-size: 14.5px; flex: 1; }
.gcard .tags { margin-bottom: 16px; }
.gcard-foot { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.gcard-more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.gcard:hover .gcard-more { color: var(--blue); }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 56px 20px; color: var(--text-2); background: #fff; border: 1px dashed var(--border-2); border-radius: var(--radius); }

/* ---------- Drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(6, 23, 51, .45); opacity: 0; transition: opacity .25s; }
.drawer-scrim.open { opacity: 1; }
.drawer { position: fixed; z-index: 61; top: 12px; right: 12px; bottom: 12px; width: min(760px, calc(100vw - 24px)); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain; transform: translateX(calc(100% + 24px)); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.drawer.open { transform: none; }
.drawer-head { padding: 26px 30px 26px; }
.drawer-head h2 { margin: 16px 0 8px; font-size: 30px; letter-spacing: -.02em; }
.drawer-tagline { margin: 0 0 20px; color: #c6d3ea; font-size: 16px; max-width: 600px; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.drawer-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; z-index: 2; }
.drawer-close:hover { background: rgba(255, 255, 255, .24); }
.drawer-head .cover-top { padding-right: 52px; justify-content: flex-start; }
.drawer-body { padding: 6px 30px 34px; }
.dlabel { margin: 26px 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.story div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--text-2); }
.story strong { display: block; color: var(--navy-900); margin-bottom: 4px; font-size: 13px; }
.mini-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mini-node { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 10px; padding: 7px 11px; font-size: 13.5px; color: var(--navy-900); }
.mini-node em { display: block; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); }
.mini-arrow { color: var(--text-3); line-height: 0; }
.mini-arrow svg { width: 14px; height: 14px; }
.drawer-full { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; font-weight: 600; }

/* ---------- Shared content blocks ---------- */
.creds { display: flex; flex-direction: column; gap: 8px; }
.cred { display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 14px; border: 1px dashed var(--border-2); border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.cred code { background: #fff; border: 1px solid var(--border); padding: 2px 8px; border-radius: 6px; color: var(--navy-900); }
.cred-slash { color: var(--text-3); }
.cred-note { color: var(--text-3); font-size: 13px; margin-left: 6px; flex: 1; }
.samples { display: flex; flex-direction: column; gap: 8px; }
.sample { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.sample > div { flex: 1; }
.sample q { quotes: "“" "”"; font-size: 14.5px; }
.sample small { display: block; margin-top: 4px; color: var(--text-3); font-size: 12.5px; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border-2); background: #fff; color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn:hover { border-color: var(--blue); color: var(--blue); }
.copy-btn.copied { border-color: var(--green-600); color: var(--green-600); }
.copy-mini { height: 28px; padding: 0 10px; font-size: 12px; }
.guide { list-style: none; margin: 0; padding: 0; counter-reset: g; }
.guide li { position: relative; padding: 0 0 18px 46px; counter-increment: g; }
.guide li::before { content: counter(g); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--navy-900); color: #fff; font-weight: 700; font-size: 13.5px; display: grid; place-items: center; }
.guide li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 34px; bottom: 4px; width: 1px; background: var(--border-2); }
.guide h3, .guide h4 { margin: 3px 0 4px; font-size: 15.5px; }
.guide p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.guide-compact li { padding-bottom: 14px; }
.notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 12px 14px; border-radius: 10px; background: var(--amber-50); color: var(--amber-600); font-size: 13.5px; }
.notice p { margin: 0; }
.notice svg { margin-top: 2px; }
.notice-top { margin-top: 20px; }

/* ---------- Marketing sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.section-head h2 { margin: 0 0 10px; font-size: 32px; letter-spacing: -.02em; color: var(--navy-900); }
.section-head p { margin: 0; color: var(--text-2); font-size: 16.5px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pillar { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.pillar .ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--navy-900); color: var(--sky); margin-bottom: 14px; }
.pillar .ico svg { width: 20px; height: 20px; }
.pillar h3 { margin: 0 0 6px; font-size: 16.5px; color: var(--navy-900); }
.pillar p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 22px 22px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); counter-increment: s; }
.step::before { content: "0" counter(s); display: block; font: 700 13px var(--mono); color: var(--blue); margin-bottom: 12px; }
.step::after { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--blue), var(--sky), var(--green)); }
.step h3 { margin: 0 0 6px; font-size: 16.5px; color: var(--navy-900); }
.step p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.patterns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pattern { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.pattern h3 { margin: 0 0 6px; color: var(--navy-900); }
.pattern > p { margin: 0 0 18px; color: var(--text-2); }
.flow { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.flow-node { flex: 1; text-align: center; padding: 12px 8px; border-radius: 10px; background: #fff; border: 1px solid var(--border); font-weight: 600; font-size: 14px; color: var(--navy-900); }
.flow-node small { display: block; font-weight: 400; color: var(--text-3); font-size: 12px; }
.flow-node.is-ab { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.flow-node.is-ab small { color: var(--sky); }
.flow-arrow { color: var(--text-3); line-height: 0; }
.examples { margin: 0; font-size: 13.5px; color: var(--text-3); }
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 36px 40px; border-radius: 20px; color: #fff; background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); }
.cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 94, 217, .45), transparent 70%); pointer-events: none; }
.cta-mark { width: 88px; height: 88px; }
.cta h2 { margin: 0 0 6px; font-size: 26px; }
.cta p { margin: 0; color: #b9c7e0; max-width: 620px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 28px 0; color: var(--text-3); font-size: 13.5px; }
.footer-inner { display: flex; align-items: center; gap: 24px; }
.footer-logo { height: 40px; width: auto; }
.site-footer p { margin: 2px 0; }

/* ---------- Detail page ---------- */
.detail-hero { padding: 26px 0 44px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 6px; color: #c6d3ea; font-size: 14px; font-weight: 500; margin-bottom: 22px; }
.breadcrumb:hover { color: #fff; }
.detail-hero-grid { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 22px; align-items: start; }
.detail-hero .cover-top { justify-content: flex-start; }
.detail-hero h1 { margin: 12px 0 8px; font-size: 38px; letter-spacing: -.025em; }
.detail-hero .tagline { margin: 0 0 16px; font-size: 17.5px; color: #c6d3ea; max-width: 760px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.detail-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 44px; padding: 36px 0 72px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.toc p { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.toc a { color: var(--text-2); padding: 6px 12px; border-left: 2px solid var(--border); text-decoration: none; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--blue); border-color: var(--blue); font-weight: 600; }
.dsection { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 30px; margin-bottom: 20px; }
.dsection > h2 { margin: 0 0 6px; font-size: 22px; color: var(--navy-900); }
.dsection > .sub { margin: 0 0 18px; color: var(--text-2); }
.dsection > h2 + :not(.sub) { margin-top: 16px; }
.subhead { margin: 26px 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.ov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ov { padding: 16px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.ov h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.ov p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.entry-list { display: flex; flex-direction: column; gap: 10px; }
.entry { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; }
.entry h3 { margin: 0 0 4px; font-size: 16px; }
.entry p { margin: 0; color: var(--text-2); font-size: 14px; }
.entry .url { display: block; margin-top: 6px; font: 12.5px var(--mono); color: var(--text-3); word-break: break-all; }
.points, .data-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.points li, .data-list li { position: relative; padding-left: 24px; color: var(--text-2); }
.points li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: linear-gradient(135deg, var(--blue), var(--green)); }
.data-list li::before { content: ""; position: absolute; left: 6px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.pipeline { display: flex; flex-direction: column; gap: 8px; }
.pipe-step { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; }
.pipe-type { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--blue-50); color: var(--blue); border: 1px solid var(--blue-100); }
.pipe-type.t-ai { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.pipe-type.t-knowledge, .pipe-type.t-retrieval { background: var(--green-50); color: var(--green-600); border-color: #c7ebd2; }
.pipe-body h4 { margin: 0 0 2px; font-size: 15px; }
.pipe-body p { margin: 0; color: var(--text-2); font-size: 14px; }
.cap-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cap { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.cap svg { color: var(--green-600); margin-top: 3px; }
.cap strong { display: block; font-size: 14.5px; }
.cap span { color: var(--text-2); font-size: 13.5px; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related .gcard h3 { font-size: 16.5px; }
.related .gcard .cover { height: 108px; }
.video-box { aspect-ratio: 16 / 9; width: 100%; border-radius: 12px; overflow: hidden; background: #000; }
.video-box iframe, .video-box video { width: 100%; height: 100%; border: 0; display: block; }
.not-found { text-align: center; padding: 96px 20px; }
.not-found h1 { font-size: 34px; color: var(--navy-900); }
.not-found p { color: var(--text-2); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 99; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .grid-4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; }
  .cta-mark { display: none; }
}
@media (max-width: 820px) {
  :root { --header-h: 58px; }
  .container { padding: 0 18px; }
  .site-nav a:not(.btn) { display: none; }
  .brand-sep, .brand-sub { display: none; }
  .brand-logo { height: 32px; }
  .hero-inner { padding-top: 36px; padding-bottom: 32px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .finder-controls { flex-direction: column; }
  .select-wrap select { max-width: none; width: 100%; height: 46px; }
  .search { height: 48px; }
  .filterbar-inner { flex-direction: column; align-items: stretch; gap: 0; }
  .result-bar { margin: 0 0 10px; }
  .gallery { grid-template-columns: 1fr; }
  .patterns, .ov-grid, .story, .cap-list, .related { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
  .toc { display: none; }
  .detail-hero-grid { grid-template-columns: 1fr; }
  .detail-hero h1 { font-size: 30px; }
  .dsection { padding: 20px 18px; }
  .entry { flex-direction: column; align-items: flex-start; }
  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; transform: translateY(100%); }
  .drawer-head, .drawer-body { padding-left: 20px; padding-right: 20px; }
  .drawer-head h2 { font-size: 24px; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 26px; }
  .cred { flex-wrap: wrap; }
  .cred .copy-btn { margin-left: auto; }
  .cred-note { order: 3; flex-basis: 100%; margin-left: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 520px) {
  .grid-4, .steps { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow-node { width: 100%; }
  .flow-arrow { transform: rotate(90deg); }
  .pipe-step { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
