/* ═══════════════════════════════════════
   BenefitCore Suite — Product Brochure
   Bold & Colorful Design
   ═══════════════════════════════════════ */

:root {
  --bc:#d9e840; --bcD:#c5d42e;
  --eb:#2563eb; --ebL:#dbeafe; --ebBg:#eff6ff;
  --bm:#10b981; --bmL:#d1fae5; --bmBg:#ecfdf5;
  --pp:#f59e0b; --ppL:#fef3c7; --ppBg:#fffbeb;
  --si:#059669; --siL:#d1fae5;
  --lm:#ef4444; --lmL:#fee2e2; --lmBg:#fef2f2;
  --ac:#14b8a6; --acL:#ccfbf1; --acD:#0d9488;
  --dk:#0f172a; --md:#475569; --lt:#94a3b8; --ltr:#e2e8f0;
  --bg:#ffffff;
}

* { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior:smooth; }

body {
  font-family:'Inter','Segoe UI',system-ui,sans-serif;
  color:var(--md);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

.container { max-width:1100px; margin:0 auto; padding:0 24px; }

img { max-width:100%; }

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4 { color:var(--dk); font-weight:800; letter-spacing:-0.03em; line-height:1.15; }

.section-label {
  display:inline-block;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1.5px;
  color:var(--lt);
  margin-bottom:6px;
}

.section-title {
  font-size:42px;
  margin-bottom:8px;
}

.section-sub {
  font-size:17px;
  color:var(--lt);
  max-width:620px;
  margin-bottom:36px;
}

.section { padding:80px 0; }

/* ═══ NAV ═══ */
.nav {
  position:fixed; top:0; left:0; right:0;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 28px;
  z-index:100;
  background:rgba(15,23,42,0.85);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(255,255,255,0.06);
}

.nav-back {
  display:flex; align-items:center; gap:4px;
  color:rgba(255,255,255,0.4); text-decoration:none;
  font-size:12px; font-weight:500;
  padding:5px 10px; border-radius:6px;
  border:1px solid rgba(255,255,255,0.08);
  transition:all 0.15s;
  white-space:nowrap;
}
.nav-back:hover { color:#fff; border-color:rgba(255,255,255,0.15); background:rgba(255,255,255,0.05); }

.logo { display:flex; align-items:center; gap:8px; }
.logo-box {
  width:28px; height:28px; border-radius:6px;
  background:var(--bc); color:var(--dk);
  display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:12px;
}
.logo-text { font-weight:800; font-size:16px; color:#fff; letter-spacing:-0.02em; }
.logo-text span { font-weight:300; color:rgba(255,255,255,0.3); }

.nav-links { display:flex; gap:20px; }
.nav-links a {
  color:rgba(255,255,255,0.6); text-decoration:none;
  font-size:13px; font-weight:500;
  transition:color 0.15s;
}
.nav-links a:hover { color:#fff; }

.nav-cta {
  padding:7px 16px; border-radius:6px;
  background:var(--bc); color:var(--dk);
  font-size:13px; font-weight:700; text-decoration:none;
  transition:background 0.15s;
}
.nav-cta:hover { background:var(--bcD); }

/* ═══ HERO ═══ */
.hero {
  min-height:100vh;
  background:linear-gradient(135deg,#0f172a 0%,#1e1b4b 45%,#312e81 100%);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  position:relative; overflow:hidden;
  padding:100px 24px 60px;
}

.hero::before {
  content:''; position:absolute;
  top:-40%; right:-20%; width:600px; height:600px;
  background:radial-gradient(circle,rgba(217,232,64,0.08) 0%,transparent 60%);
  pointer-events:none;
}

.hero-content { max-width:780px; text-align:center; position:relative; z-index:1; }

.hero-badge {
  display:inline-block;
  padding:6px 16px; border-radius:20px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.08);
  font-size:12px; font-weight:600; color:var(--bc);
  margin-bottom:16px;
}

.hero h1 {
  font-size:56px; color:#fff;
  margin-bottom:12px;
}
.hero h1 span {
  display:block;
  background:linear-gradient(135deg,var(--bc) 0%,#fbbf24 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.hero p {
  font-size:17px; color:rgba(255,255,255,0.55);
  margin-bottom:24px; line-height:1.7;
  max-width:600px; margin-left:auto; margin-right:auto;
}

.hero-cta { display:flex; gap:12px; justify-content:center; margin-bottom:28px; }

.btn {
  display:inline-flex; align-items:center; gap:6px;
  padding:12px 28px; border-radius:8px;
  font-size:14px; font-weight:700; text-decoration:none;
  transition:all 0.15s;
}
.btn-primary { background:var(--bc); color:var(--dk); }
.btn-primary:hover { background:var(--bcD); transform:translateY(-1px); }
.btn-outline {
  border:1.5px solid rgba(255,255,255,0.15); color:#fff;
}
.btn-outline:hover { border-color:rgba(255,255,255,0.3); background:rgba(255,255,255,0.05); }

.hero-modules { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }
.hero-modules span {
  padding:5px 14px; border-radius:20px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.06);
  font-size:12px; color:rgba(255,255,255,0.4); font-weight:500;
}

.hero-scroll {
  position:absolute; bottom:28px;
  font-size:11px; color:rgba(255,255,255,0.2); font-weight:500;
  letter-spacing:1px; text-transform:uppercase;
  animation:bounce 2s infinite;
}

@keyframes bounce {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(6px); }
}

/* ═══ HUB ═══ */
.hub-section { background:#ffffff; position:relative; }
.hub-section::before {
  content:''; position:absolute; top:0; left:0; right:0; height:4px;
  background:linear-gradient(90deg,var(--bc),var(--eb),var(--bm),var(--pp),var(--si),var(--lm));
}

.hub-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; }

.hub-card {
  background:#fff; border-radius:12px; padding:24px;
  border:1px solid rgba(0,0,0,0.04);
  box-shadow:0 1px 3px rgba(0,0,0,0.02);
  transition:transform 0.2s, box-shadow 0.2s;
}
.hub-card:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(0,0,0,0.06); }

.hub-icon {
  width:32px; height:32px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:14px;
  margin-bottom:10px;
}

.hub-card h3 { font-size:16px; margin-bottom:4px; }
.hub-card p { font-size:13px; color:var(--md); line-height:1.6; }

/* ═══ SYSTEM SECTIONS ═══ */
.sys-header {
  display:flex; align-items:flex-start; gap:24px;
  margin-bottom:36px;
}

.sys-badge {
  width:64px; height:64px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:26px; flex-shrink:0;
}

.sys-label {
  display:inline-block;
  font-size:11px; font-weight:700; text-transform:uppercase;
  letter-spacing:1.2px; margin-bottom:2px;
}

.sys-info h2 { font-size:34px; margin-bottom:4px; }
.sys-info p { font-size:15px; color:rgba(255,255,255,0.65); max-width:600px; }

.sys-features { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }

.sys-card {
  padding:18px 20px; border-radius:10px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.06);
  transition:transform 0.2s, background 0.2s;
}
.sys-card:hover { transform:translateY(-2px); background:rgba(255,255,255,0.1); }

.sys-card h4 { font-size:14px; margin-bottom:3px; }
.sys-card p { font-size:13px; line-height:1.6; }

/* EB Section */
.eb-section { background:var(--eb); }
.eb-section .sys-badge { background:rgba(255,255,255,0.15); color:#fff; }
.eb-section .sys-label { color:rgba(255,255,255,0.4); }
.eb-section .sys-info h2 { color:#fff; }
.eb-section .sys-card h4 { color:#fff; }
.eb-section .sys-card p { color:rgba(255,255,255,0.7); }

/* BM Section */
.bm-section { background:var(--bm); }
.bm-section .sys-badge { background:rgba(255,255,255,0.15); color:#fff; }
.bm-section .sys-label { color:rgba(255,255,255,0.4); }
.bm-section .sys-info h2 { color:#fff; }
.bm-section .sys-card h4 { color:#fff; }
.bm-section .sys-card p { color:rgba(255,255,255,0.7); }

/* PP Section */
.pp-section { background:var(--pp); }
.pp-section .sys-badge { background:rgba(255,255,255,0.15); color:#fff; }
.pp-section .sys-label { color:rgba(255,255,255,0.4); }
.pp-section .sys-info h2 { color:#fff; }
.pp-section .sys-card h4 { color:#fff; }
.pp-section .sys-card p { color:rgba(255,255,255,0.7); }

/* SI Section */
.si-section { background:var(--si); }
.si-section .sys-badge { background:rgba(255,255,255,0.15); color:#fff; }
.si-section .sys-label { color:rgba(255,255,255,0.4); }
.si-section .sys-info h2 { color:#fff; }
.si-section .sys-card h4 { color:#fff; }
.si-section .sys-card p { color:rgba(255,255,255,0.7); }

/* LM Section */
.lm-section { background:var(--lm); }
.lm-section .sys-badge { background:rgba(255,255,255,0.15); color:#fff; }
.lm-section .sys-label { color:rgba(255,255,255,0.4); }
.lm-section .sys-info h2 { color:#fff; }
.lm-section .sys-card h4 { color:#fff; }
.lm-section .sys-card p { color:rgba(255,255,255,0.7); }

/* ═══ ARCHITECTURE ═══ */
.arch-section {
  background:linear-gradient(180deg,#f8fafc 0%,#f1f5f9 100%);
  position:relative;
  overflow:hidden;
}
.arch-section::before {
  content:''; position:absolute; top:-30%; right:-10%;
  width:500px; height:500px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(217,232,64,0.06) 0%,transparent 60%);
  pointer-events:none;
}

/* ── Diagram Container ── */
.arch-diagram {
  position:relative;
  width:100%; max-width:860px;
  height:600px;
  margin:0 auto 40px;
}

/* ── Hub Pill (vertical backbone) ── */
.arch-pill {
  position:absolute;
  top:20px; bottom:60px;
  left:50%; width:110px;
  transform:translateX(-50%);
  z-index:6;
  border-radius:55px;
  background:rgba(15,23,42,0.85);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 12px 48px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.1);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.arch-pill-glow {
  position:absolute;
  inset:-8px;
  border-radius:63px;
  background:linear-gradient(135deg,var(--bc),var(--bcD),var(--bc));
  opacity:0.15;
  animation:pulse-pill 3s ease-in-out infinite;
  z-index:0;
  pointer-events:none;
}
@keyframes pulse-pill {
  0%,100% { transform:scale(1); opacity:0.12; }
  50% { transform:scale(1.04); opacity:0.22; }
}
.arch-pill-ring {
  position:absolute;
  inset:-3px;
  border-radius:58px;
  border:10px solid #d9e840;
  z-index:0;
  pointer-events:none;
}
.arch-pill-inner {
  position:absolute;
  inset:0;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
}
.pill-content {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
}
.pill-content strong {
  font-size:16px;
  font-weight:800;
  color:#fff;
  writing-mode:vertical-rl;
  transform:rotate(180deg);
}
.pill-content span {
  font-size:10px;
  color:var(--bc);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:2px;
}
.pill-line {
  width:32px;
  height:1px;
  background:rgba(255,255,255,0.06);
}
.pill-dot {
  width:5px; height:5px; border-radius:50%;
  background:var(--bc);
  animation:pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; }
  50% { opacity:0.3; }
}

/* ── Nodes ── */
.arch-node {
  position:absolute; z-index:2;
  width:195px;
  display:flex; align-items:center; gap:12px;
  padding:13px 14px;
  background:rgba(255,255,255,0.85);
  backdrop-filter:blur(8px);
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.04);
  box-shadow:0 4px 16px rgba(0,0,0,0.03);
  transition:transform 0.25s, box-shadow 0.25s;
}
.arch-node:hover {
  transform:translateY(-2px);
  box-shadow:0 8px 28px rgba(0,0,0,0.06);
}

.an-box {
  width:34px; height:34px; border-radius:9px;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:14px; flex-shrink:0;
}

.an-text strong {
  display:block; font-size:12px; color:var(--dk);
  font-weight:700;
}
.an-text span {
  font-size:9px; color:var(--lt); display:block;
  margin-top:1px;
}

/* ── Side labels ── */
.arch-side-label {
  position:absolute;
  top:-12px;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:2px;
  color:rgba(71,85,105,0.6);
  z-index:2;
  white-space:nowrap;
}
.al-modules { right:10px; }
.al-storage { left:10px; }

/* ── Right side: subsystems ── */
.an-eb { top:15px; right:10px; }
.an-eb .an-box { background:rgba(37,99,235,0.12); color:var(--eb); }
.an-eb .an-text strong { color:var(--eb); }

.an-bm { top:95px; right:10px; }
.an-bm .an-box { background:rgba(16,185,129,0.12); color:var(--bm); }
.an-bm .an-text strong { color:var(--bm); }

.an-pp { top:175px; right:10px; }
.an-pp .an-box { background:rgba(245,158,11,0.12); color:var(--pp); }
.an-pp .an-text strong { color:var(--pp); }

.an-si { top:255px; right:10px; }
.an-si .an-box { background:rgba(5,150,105,0.12); color:var(--si); }
.an-si .an-text strong { color:var(--si); }

.an-lm { top:335px; right:10px; }
.an-lm .an-box { background:rgba(239,68,68,0.12); color:var(--lm); }
.an-lm .an-text strong { color:var(--lm); }

.an-fu { top:415px; right:10px; }
.an-fu .an-box { background:#f1f5f9; color:var(--lt); }
.an-fu .an-text strong { color:var(--lt); }

/* ── Left side: data sources ── */
.an-md { top:15px; left:10px; }
.an-md .an-box { background:rgba(100,116,139,0.12); color:#64748b; }
.an-md .an-text strong { color:#64748b; }

.an-fd { top:95px; left:10px; }
.an-fd .an-box { background:rgba(100,116,139,0.12); color:#64748b; }
.an-fd .an-text strong { color:#64748b; }

.an-cd { top:175px; left:10px; }
.an-cd .an-box { background:rgba(100,116,139,0.12); color:#64748b; }
.an-cd .an-text strong { color:#64748b; }

.an-od { top:255px; left:10px; }
.an-od .an-box { background:rgba(100,116,139,0.12); color:#64748b; }
.an-od .an-text strong { color:#64748b; }

.an-sp { top:335px; left:10px; }
.an-sp .an-box { background:rgba(100,116,139,0.12); color:#64748b; }
.an-sp .an-text strong { color:#64748b; }

/* ── Connector Lines ── */
.arch-line { position:absolute; z-index:1; }

.arch-line .al-body {
  position:absolute; top:0; left:0; right:0; bottom:0;
  border-radius:2px;
}

/* Arrowheads */
.al-arrow {
  position:absolute; z-index:2;
  width:0; height:0;
  border-style:solid;
  top:-6px;
  border-width:7px 0 7px 11px;
}
.al-arrow-l { transform:rotate(180deg); }
.al-arrow-r { } /* right-pointing (default) */

/* Label on connector */
.al-label {
  position:absolute; z-index:2;
  display:flex; flex-direction:column;
  gap:2px;
  white-space:nowrap;
}
.al-dir {
  font-size:10px; font-weight:600;
  display:flex; align-items:center; gap:3px;
  line-height:1.2;
}
.al-dir::before { font-size:11px; }

/* ── RIGHT CONNECTORS: Pill → Subsystems ── */

/* EB */
.al-eb { top:45px; left:490px; right:210px; height:2px; }
.al-eb .al-body { background:linear-gradient(90deg,transparent 0%,var(--eb) 30%,var(--eb) 100%); }
.al-eb .al-arrow { right:-3px; border-color:transparent transparent transparent var(--eb); }
.al-eb .al-label { top:-28px; right:50px; align-items:flex-end; }
.al-eb .al-dir { color:var(--eb); }
.al-eb .al-dir:first-child::before { content:'→'; margin-right:3px; }
.al-eb .al-dir:last-child::before { content:'←'; margin-right:3px; }

/* BM */
.al-bm { top:125px; left:490px; right:210px; height:2px; }
.al-bm .al-body { background:linear-gradient(90deg,transparent 0%,var(--bm) 30%,var(--bm) 100%); }
.al-bm .al-arrow { right:-3px; border-color:transparent transparent transparent var(--bm); }
.al-bm .al-label { top:-28px; right:50px; align-items:flex-end; }
.al-bm .al-dir { color:var(--bm); }
.al-bm .al-dir:first-child::before { content:'→'; margin-right:3px; }
.al-bm .al-dir:last-child::before { content:'←'; margin-right:3px; }

/* PP */
.al-pp { top:205px; left:490px; right:210px; height:2px; }
.al-pp .al-body { background:linear-gradient(90deg,transparent 0%,var(--pp) 30%,var(--pp) 100%); }
.al-pp .al-arrow { right:-3px; border-color:transparent transparent transparent var(--pp); }
.al-pp .al-label { top:-28px; right:50px; align-items:flex-end; }
.al-pp .al-dir { color:var(--pp); }
.al-pp .al-dir:first-child::before { content:'→'; margin-right:3px; }
.al-pp .al-dir:last-child::before { content:'←'; margin-right:3px; }

/* SI */
.al-si { top:285px; left:490px; right:210px; height:2px; }
.al-si .al-body { background:linear-gradient(90deg,transparent 0%,var(--si) 30%,var(--si) 100%); }
.al-si .al-arrow { right:-3px; border-color:transparent transparent transparent var(--si); }
.al-si .al-label { top:-28px; right:50px; align-items:flex-end; }
.al-si .al-dir { color:var(--si); }
.al-si .al-dir:first-child::before { content:'→'; margin-right:3px; }
.al-si .al-dir:last-child::before { content:'←'; margin-right:3px; }

/* LM */
.al-lm { top:365px; left:490px; right:210px; height:2px; }
.al-lm .al-body { background:linear-gradient(90deg,transparent 0%,var(--lm) 30%,var(--lm) 100%); }
.al-lm .al-arrow { right:-3px; border-color:transparent transparent transparent var(--lm); }
.al-lm .al-label { top:-28px; right:50px; align-items:flex-end; }
.al-lm .al-dir { color:var(--lm); }
.al-lm .al-dir:first-child::before { content:'→'; margin-right:3px; }
.al-lm .al-dir:last-child::before { content:'←'; margin-right:3px; }

/* FU (dashed) */
.al-fu { top:445px; left:490px; right:210px; height:0; border-top:2px dashed rgba(148,163,184,0.5); }
.al-fu .al-label { top:-22px; right:50px; align-items:flex-end; }
.al-fu .al-dir { color:var(--lt); }
.al-fu .al-dir::before { content:'→'; margin-right:3px; }

/* ── LEFT CONNECTORS: Data Sources → Pill ── */

/* MD */
.al-md { top:45px; left:210px; right:490px; height:2px; }
.al-md .al-body { background:linear-gradient(270deg,transparent 0%,#64748b 30%,#64748b 100%); }
.al-md .al-arrow { right:-3px; border-color:transparent transparent transparent #64748b; }
.al-md .al-label { top:-22px; left:50px; align-items:flex-start; }
.al-md .al-dir { color:#64748b; }
.al-md .al-dir::before { content:'→'; margin-right:3px; }

/* FD */
.al-fd { top:125px; left:210px; right:490px; height:2px; }
.al-fd .al-body { background:linear-gradient(270deg,transparent 0%,#64748b 30%,#64748b 100%); }
.al-fd .al-arrow { right:-3px; border-color:transparent transparent transparent #64748b; }
.al-fd .al-label { top:-22px; left:50px; align-items:flex-start; }
.al-fd .al-dir { color:#64748b; }
.al-fd .al-dir::before { content:'→'; margin-right:3px; }

/* CD */
.al-cd { top:205px; left:210px; right:490px; height:2px; }
.al-cd .al-body { background:linear-gradient(270deg,transparent 0%,#64748b 30%,#64748b 100%); }
.al-cd .al-arrow { right:-3px; border-color:transparent transparent transparent #64748b; }
.al-cd .al-label { top:-22px; left:50px; align-items:flex-start; }
.al-cd .al-dir { color:#64748b; }
.al-cd .al-dir::before { content:'→'; margin-right:3px; }

/* OD */
.al-od { top:285px; left:210px; right:490px; height:2px; }
.al-od .al-body { background:linear-gradient(270deg,transparent 0%,#64748b 30%,#64748b 100%); }
.al-od .al-arrow { right:-3px; border-color:transparent transparent transparent #64748b; }
.al-od .al-label { bottom:-22px; left:50px; align-items:flex-start; }
.al-od .al-dir { color:#64748b; }
.al-od .al-dir::before { content:'→'; margin-right:3px; }

/* SP */
.al-sp { top:365px; left:210px; right:490px; height:2px; }
.al-sp .al-body { background:linear-gradient(270deg,transparent 0%,#64748b 30%,#64748b 100%); }
.al-sp .al-arrow { right:-3px; border-color:transparent transparent transparent #64748b; }
.al-sp .al-label { bottom:-22px; left:50px; align-items:flex-start; }
.al-sp .al-dir { color:#64748b; }
.al-sp .al-dir::before { content:'→'; margin-right:3px; }

/* ── Connector Dots ── */
.arch-line .al-dot {
  position:absolute; width:6px; height:6px; border-radius:50%;
  top:-2px; z-index:3;
}

/* Right side dots (flow Hub → sub) */
.al-eb .al-dot, .al-bm .al-dot, .al-pp .al-dot, .al-si .al-dot, .al-lm .al-dot {
  animation:flow-right 2.5s ease-in-out infinite;
}
@keyframes flow-right {
  0% { opacity:1; left:30%; }
  70% { opacity:0; }
  100% { opacity:0; left:85%; }
}

.al-eb .al-dot { background:var(--eb); animation-delay:0s; }
.al-bm .al-dot { background:var(--bm); animation-delay:0.4s; }
.al-pp .al-dot { background:var(--pp); animation-delay:0.8s; }
.al-si .al-dot { background:var(--si); animation-delay:1.2s; }
.al-lm .al-dot { background:var(--lm); animation-delay:1.6s; }

/* Left side dots (flow source → Hub) */
.al-md .al-dot, .al-fd .al-dot, .al-cd .al-dot {
  animation:flow-right 2.5s ease-in-out infinite;
}
.al-md .al-dot { background:#64748b; animation-delay:0.2s; }
.al-fd .al-dot { background:#64748b; animation-delay:0.6s; }
.al-cd .al-dot { background:#64748b; animation-delay:1.0s; }

/* ── Badge on diagram ── */
.arch-badge {
  position:absolute;
  bottom:-24px; left:50%; transform:translateX(-50%);
  font-size:10px; font-weight:600; color:var(--lt);
  background:rgba(255,255,255,0.7);
  padding:5px 16px; border-radius:20px;
  z-index:2;
  white-space:nowrap;
}

/* ── Accounting Cross-Cutting Bar ── */
.arch-accounting {
  position:absolute;
  bottom:12px;
  left:15px; right:15px;
  height:36px;
  z-index:7;
  background:linear-gradient(135deg,var(--ac),var(--acD));
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px solid rgba(0,0,0,0.06);
  box-shadow:0 4px 16px rgba(20,184,166,0.15);
}
.arch-accounting strong {
  font-size:11px; font-weight:700;
  text-transform:uppercase;
  letter-spacing:1.5px;
  color:#fff;
}
.arch-accounting span {
  font-size:10px;
  color:rgba(255,255,255,0.7);
}

/* ── Accounting Connectors (dashed lines from each subsystem down to bar) ── */
.ac-line {
  position:absolute;
  z-index:1;
  width:2px;
  border-left:2px dashed rgba(20,184,166,0.3);
  pointer-events:none;
}
.ac-line-eb { left:753px; top:75px; height:472px; }
.ac-line-bm { left:753px; top:155px; height:392px; }
.ac-line-pp { left:753px; top:235px; height:312px; }
.ac-line-si { left:753px; top:315px; height:232px; }
.ac-line-lm { left:753px; top:395px; height:152px; }

/* ── Workflow Card ── */
.arch-workflow {
  max-width:860px; margin:0 auto;
  background:rgba(255,255,255,0.75);
  backdrop-filter:blur(12px);
  border-radius:14px;
  padding:24px 28px;
  border:1px solid rgba(0,0,0,0.04);
  box-shadow:0 4px 24px rgba(0,0,0,0.02);
}

.arch-workflow h3 {
  font-size:14px; margin-bottom:14px;
  display:flex; align-items:center; gap:8px;
  color:var(--dk);
}
.arch-workflow h3::before {
  content:''; width:3px; height:16px;
  background:linear-gradient(180deg,var(--bc),var(--eb));
  border-radius:2px;
}

.workflow-steps {
  display:grid;
  grid-template-columns:1fr 1fr 1fr 1fr 1fr;
  gap:8px;
  align-items:stretch;
}

.wf-step {
  background:rgba(255,255,255,0.6);
  border:1px solid rgba(0,0,0,0.03);
  border-radius:10px;
  padding:12px 10px;
  text-align:center;
  transition:transform 0.2s, box-shadow 0.2s;
  position:relative;
}
.wf-step:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.04); }

.wf-step::after {
  content:'→';
  position:absolute;
  right:-10px; top:50%;
  transform:translateY(-50%);
  font-size:14px;
  color:var(--ltr);
  font-weight:300;
}
.wf-step:last-child::after { display:none; }

.wf-dot {
  width:8px; height:8px; border-radius:50%;
  margin:0 auto 5px;
}

.wf-step strong {
  display:block;
  font-size:11px; font-weight:700;
  margin-bottom:2px;
}
.wf-step span {
  font-size:10px; color:var(--lt);
  line-height:1.4; display:block;
}

/* ═══ WHY ═══ */
.why-section { background:var(--dk); }
.why-section .section-label { color:rgba(255,255,255,0.3); }
.why-section .section-title { color:#fff; }
.why-section .section-sub { color:rgba(255,255,255,0.4); }

.why-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; }

.why-card {
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:12px; padding:24px;
  transition:transform 0.2s;
}
.why-card:hover { transform:translateY(-2px); }

.why-num {
  width:32px; height:32px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:14px;
  margin-bottom:10px;
}

.why-card h3 { color:#fff; font-size:16px; margin-bottom:4px; }
.why-card p { font-size:13px; color:rgba(255,255,255,0.55); line-height:1.6; }

/* ═══ FOOTER ═══ */
.footer {
  background:#0b1120;
  border-top:1px solid rgba(255,255,255,0.04);
  padding:48px 0 32px;
}

.footer-content { text-align:center; }
.footer .logo { justify-content:center; margin-bottom:8px; }
.footer .logo-text { font-size:18px; }

.footer-content p { font-size:14px; color:rgba(255,255,255,0.3); margin-bottom:20px; }

.footer-links { display:flex; gap:16px; justify-content:center; margin-bottom:16px; }
.footer-links a { color:rgba(255,255,255,0.4); text-decoration:none; font-size:13px; transition:color 0.15s; }
.footer-links a:hover { color:var(--bc); }

.footer-contact { font-size:13px; color:rgba(255,255,255,0.2); margin-bottom:16px; }
.footer-contact span { margin:0 4px; }
.footer-copy { font-size:11px; color:rgba(255,255,255,0.15); }

/* ═══ RESPONSIVE ═══ */
@media (max-width:900px) {
  .nav-links, .nav-cta { display:none; }
  .hero h1 { font-size:36px; }
  .hub-grid, .sys-features, .why-grid { grid-template-columns:1fr 1fr; }
  .section-title { font-size:32px; }
  .sys-info h2 { font-size:26px; }
  .sys-header { flex-direction:column; gap:12px; }
  .arch-side-label { font-size:8px; top:-8px; }
  .arch-diagram { height:440px; }
  .arch-node { width:175px; padding:10px 11px; }
  .ac-line { display:none; }
  .arch-accounting { bottom:8px; left:12px; right:12px; height:28px; }
  .arch-accounting strong { font-size:9px; letter-spacing:1px; }
  .arch-accounting span { display:none; }
  .arch-node .an-box { width:28px; height:28px; font-size:12px; }
  .arch-pill { width:90px; top:15px; bottom:60px; }
  .arch-pill-inner { gap:3px; }
  .pill-content strong { font-size:14px; }
  .pill-content span { font-size:8px; letter-spacing:2px; }
  .pill-tags span { font-size:7px; padding:1px 6px; }

  /* Right side */
  .an-eb { top:12px; right:0; } .an-bm { top:74px; right:0; }
  .an-pp { top:136px; right:0; } .an-si { top:198px; right:0; }
  .an-lm { top:260px; right:0; } .an-fu { top:322px; right:0; }
  /* Left side (aligned to first 5 right connectors) */
  .an-md { top:12px; left:0; } .an-fd { top:74px; left:0; }
  .an-cd { top:136px; left:0; } .an-od { top:198px; left:0; }
  .an-sp { top:260px; left:0; }

  /* Right connectors */
  .al-eb { top:36px; left:calc(50% + 50px); right:175px; }
  .al-bm { top:98px; left:calc(50% + 50px); right:175px; }
  .al-pp { top:160px; left:calc(50% + 50px); right:175px; }
  .al-si { top:222px; left:calc(50% + 50px); right:175px; }
  .al-lm { top:284px; left:calc(50% + 50px); right:175px; }
  .al-fu { top:346px; left:calc(50% + 50px); right:175px; }
  /* Left connectors (aligned to right) */
  .al-md { top:36px; left:175px; right:calc(50% + 50px); }
  .al-fd { top:98px; left:175px; right:calc(50% + 50px); }
  .al-cd { top:160px; left:175px; right:calc(50% + 50px); }
  .al-od { top:222px; left:175px; right:calc(50% + 50px); }
  .al-sp { top:284px; left:175px; right:calc(50% + 50px); }

  .al-dir { font-size:8px!important; }
  .al-arrow { top:-5px!important; border-width:6px 0 6px 9px!important; }
  .workflow-steps { grid-template-columns:1fr 1fr 1fr; }
  .wf-step::after { display:none; }
}

@media (max-width:600px) {
  .hero h1 { font-size:28px; }
  .section-title { font-size:26px; }
  .hub-grid, .sys-features, .why-grid { grid-template-columns:1fr; }
  .hero-cta { flex-direction:column; align-items:center; }
  .section { padding:48px 0; }
  .sys-info h2 { font-size:22px; }

  /* ── Scale down entire diagram to fit ~340px width ── */
  .arch-diagram { height:360px; overflow-x:auto; }

  /* Compact nodes: 95px wide, keep code + title, hide descriptions */
  .arch-node { width:95px; padding:5px; gap:5px; }
  .arch-node .an-box { width:14px; height:14px; font-size:6px; border-radius:4px; }
  .an-text strong { font-size:6.5px; }
  .an-text span { display:none; }

  /* Wider hub pill, short connectors */
  .arch-pill { width:100px; top:10px; bottom:80px; border-radius:50px; }
  .arch-pill-inner { gap:2px; }
  .pill-content strong { font-size:9px; }
  .pill-content span { font-size:7px; letter-spacing:0.5px; }
  .pill-line { width:20px; }
  .pill-dot { width:3px; height:3px; }

  .arch-accounting { bottom:6px; left:6px; right:6px; height:18px; border-radius:6px; }
  .arch-accounting strong { font-size:6px; letter-spacing:0.5px; }
  .arch-accounting span { display:none; }
  .arch-badge { bottom:-12px; font-size:6px; padding:2px 8px; }
  .ac-line { display:none; }

  /* Side labels hidden */
  .arch-side-label { display:none; }

  /* Left-side nodes */
  .an-md { top:8px; left:0; }  .an-fd { top:56px; left:0; }
  .an-cd { top:104px; left:0; } .an-od { top:152px; left:0; }
  .an-sp { top:200px; left:0; }

  /* Right-side nodes */
  .an-eb { top:8px; right:0; }   .an-bm { top:56px; right:0; }
  .an-pp { top:104px; right:0; } .an-si { top:152px; right:0; }
  .an-lm { top:200px; right:0; } .an-fu { top:248px; right:0; }

  /* Left connectors: from node right edge (95px) → pill left edge (calc(50%-50px)) */
  .al-md { top:22px; left:95px; right:calc(50% + 50px); }
  .al-fd { top:70px; left:95px; right:calc(50% + 50px); }
  .al-cd { top:118px; left:95px; right:calc(50% + 50px); }
  .al-od { top:166px; left:95px; right:calc(50% + 50px); }
  .al-sp { top:214px; left:95px; right:calc(50% + 50px); }

  /* Right connectors: from pill right edge (calc(50%+50px)) → node left edge (right:95px) */
  .al-eb { top:22px; left:calc(50% + 50px); right:95px; }
  .al-bm { top:70px; left:calc(50% + 50px); right:95px; }
  .al-pp { top:118px; left:calc(50% + 50px); right:95px; }
  .al-si { top:166px; left:calc(50% + 50px); right:95px; }
  .al-lm { top:214px; left:calc(50% + 50px); right:95px; }
  .al-fu { top:262px; left:calc(50% + 50px); right:95px; }

  .al-dir { font-size:6px!important; }
  .al-arrow { border-width:3px 0 3px 5px!important; top:-2px!important; }
  .al-label, .al-dot { display:none; }

  .workflow-steps { grid-template-columns:1fr; }
  .wf-step { max-width:260px; margin:0 auto; }
}
