

/* ==== from resources/architecture.html ==== */

:root {
  --purple: #5b2ee6;
  --purple-dark: #4320bd;
  --purple-soft: #eee9ff;
  --purple-light: #9a6cff;
  --green: #29a96b;
  --green-soft: #e9f8f1;
  --green-text: #168653;
  --orange: #ee8c20;
  --orange-soft: #fff3e4;
  --orange-text: #cc6d07;
  --red: #df3c54;
  --red-soft: #fdecef;
  --red-text: #c92b44;
  --teal: #0d9488;
  --teal-soft: #d5f5ef;
  --teal-text: #0a7768;
  --bg: #f7f8fa;
  --panel: #ffffff;
  --text: #17171b;
  --muted: #6f7078;
  --muted-2: #9a9aa3;
  --border: #e5e5eb;
  --soft: #f2f1f7;
  --shadow: 0 8px 24px rgba(36, 24, 70, .08);
  --shadow-lg: 0 16px 48px rgba(36, 24, 70, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --gradient: linear-gradient(135deg, #5b2ee6, #9a6cff);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ==================== Top Bar ==================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: 60px; display: flex; align-items: center;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.topbar-logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }
.topbar-logo .logo-mark {
  width: 32px; height: 32px; border-radius: 8px; background: var(--gradient);
  color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 13px;
}
.topbar-actions { display: flex; gap: 10px; }
.topbar-back {
  padding: 7px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: #393a41; border: 1px solid var(--border); background: #fff; transition: .2s;
}
.topbar-back:hover { box-shadow: 0 4px 14px rgba(0,0,0,.06); color: var(--purple); }
.topbar-back.primary { background: var(--gradient); color: #fff; border-color: transparent; }
.topbar-back.primary:hover { color: #fff; box-shadow: 0 4px 14px rgba(91,46,230,.3); }

/* ==================== Breadcrumb ==================== */
.breadcrumb { padding: 20px 0 0; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--purple); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ==================== Hero ==================== */
.hero { padding: 40px 0 48px; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px; background: var(--purple-soft);
  font-size: 13px; font-weight: 600; color: var(--purple); margin-bottom: 18px;
}
.hero h1 { font-size: 36px; font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; line-height: 1.25; }
.hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 680px; margin: 0 auto; }

/* ==================== Overview (Pyramid Top) ==================== */
.arch-overview {
  background: linear-gradient(135deg, #241063 0%, #5b2ee6 60%, #7b4fff 100%);
  color: #fff; border-radius: var(--radius); padding: 28px 32px;
  margin-bottom: 48px; box-shadow: 0 12px 40px rgba(91,46,230,.25);
}
.arch-ov-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.arch-ov-title { font-size: 18px; font-weight: 700; line-height: 1.45; }
.arch-ov-title .ov-gold { color: #ffe08a; font-weight: 800; }
.arch-ov-sum { font-size: 13px; opacity: .88; line-height: 1.6; max-width: 380px; text-align: right; margin-top: 2px; }
.arch-ov-flow { display: flex; align-items: stretch; gap: 8px; }
.arch-ov-step {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}
.arch-ov-step .aos-no { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; opacity: .72; }
.arch-ov-step .aos-name { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; margin: 4px 0 6px; }
.arch-ov-step .aos-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: #241063; background: #ffe08a; border-radius: 100px; padding: 2px 11px;
}
.arch-ov-step .aos-out { display: block; font-size: 11px; opacity: .82; line-height: 1.45; margin-top: 6px; }
.arch-ov-arrow { display: flex; align-items: center; font-size: 18px; color: #d9c9ff; flex-shrink: 0; }
.arch-ov-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.arch-ov-loop { font-size: 13px; font-weight: 600; color: #ffe08a; }
.arch-ov-base { font-size: 13px; opacity: .92; }
.arch-ov-base b { color: #fff; }

/* ==================== Sections ==================== */
.section { padding: 48px 0; }
.section:nth-child(even) { background: var(--panel); }
.section-head { margin-bottom: 32px; }
.section-eyebrow {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; margin-bottom: 12px;
}
.section h2 { font-size: 26px; font-weight: 700; letter-spacing: -.5px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.section h2 .step-badge {
  width: 36px; height: 36px; border-radius: 10px; background: var(--gradient);
  color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 800; flex-shrink: 0;
}
.section-desc { font-size: 15px; color: var(--muted); max-width: 680px; }
.section-tagline {
  display: inline-block; font-size: 14px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; margin-bottom: 10px;
}

/* ==================== Capability Cards ==================== */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cap-card {
  background: var(--panel); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.section:nth-child(even) .cap-card { background: var(--bg); }
.cap-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cap-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cap-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  font-size: 20px; flex-shrink: 0;
}
.cap-card h4 { font-size: 16px; font-weight: 700; }
.cap-card p { font-size: 14px; color: #3a3a42; margin-bottom: 14px; flex: 1; }
.cap-card .cap-out {
  font-size: 12px; font-weight: 600; color: var(--purple);
  background: var(--purple-soft); border-radius: 8px; padding: 6px 12px; margin-bottom: 12px;
}
.cap-link {
  font-size: 13px; font-weight: 600; color: var(--purple); display: inline-flex; align-items: center; gap: 4px;
  border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto;
}
.cap-link:hover { text-decoration: underline; }

/* step colors */
.step-1 .cap-icon { background: var(--purple-soft); color: var(--purple); }
.step-1 .section-eyebrow, .step-1 .section-tagline { background: var(--purple-soft); color: var(--purple); }
.step-2 .cap-icon { background: var(--green-soft); color: var(--green-text); }
.step-2 .section-eyebrow, .step-2 .section-tagline { background: var(--green-soft); color: var(--green-text); }
.step-3 .cap-icon { background: var(--orange-soft); color: var(--orange-text); }
.step-3 .section-eyebrow, .step-3 .section-tagline { background: var(--orange-soft); color: var(--orange-text); }
.step-4 .cap-icon { background: var(--red-soft); color: var(--red-text); }
.step-4 .section-eyebrow, .step-4 .section-tagline { background: var(--red-soft); color: var(--red-text); }

/* ==================== Base Section ==================== */
.base-section {
  background: var(--soft); padding: 48px 0;
}
.base-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.base-card {
  background: var(--panel); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 20px; text-align: center; box-shadow: var(--shadow);
}
.base-card .bc-icon { font-size: 28px; margin-bottom: 8px; }
.base-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--purple); }
.base-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ==================== CTA ==================== */
.cta-banner {
  background: var(--gradient); border-radius: var(--radius);
  padding: 40px; text-align: center; color: #fff; margin: 48px 0;
}
.cta-banner h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.cta-banner p { font-size: 15px; opacity: .9; margin-bottom: 20px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-button {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 700; transition: .2s;
}
.cta-button.primary { background: #fff; color: var(--purple); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.cta-button.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.2); }
.cta-button.ghost { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.cta-button.ghost:hover { background: rgba(255,255,255,.25); }

/* ==================== Footer ==================== */
.footer {
  background: #17142a; color: #9a9aa3; padding: 32px 0;
  text-align: center; font-size: 13px;
}
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.footer-links a { color: #9a9aa3; font-size: 13px; transition: .2s; }
.footer-links a:hover { color: #fff; }

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .hero h1 { font-size: 26px; }
  .cap-grid { grid-template-columns: 1fr; }
  .base-grid { grid-template-columns: 1fr 1fr; }
  .arch-ov-flow { flex-direction: column; gap: 8px; }
  .arch-ov-arrow { display: none; }
  .arch-ov-head { flex-direction: column; }
  .arch-ov-sum { text-align: left; max-width: 100%; }
  .cta-banner { padding: 28px 20px; }
}
