
:root{
  --bg:#f5f7fb;
  --bg-soft:#eef3fb;
  --panel:#ffffff;
  --line:#e5ebf4;
  --line-strong:#d9e3f0;
  --text:#102448;
  --muted:#6f8099;
  --blue:#2f6df6;
  --blue-soft:#eaf1ff;
  --green:#10b981;
  --green-soft:#eafaf4;
  --orange:#f59e0b;
  --orange-soft:#fff5e6;
  --red:#ef4444;
  --red-soft:#fff0f1;
  --purple:#8b5cf6;
  --purple-soft:#f4efff;
  --shadow:0 18px 45px rgba(16, 36, 72, 0.06);
  --radius:22px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:linear-gradient(180deg,#f8fbff 0%, #f4f7fb 100%);
  color:var(--text);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
a{color:inherit;text-decoration:none}
img,svg{max-width:100%;display:block}
button{font:inherit}

.shell{
  width:min(1280px, calc(100% - 48px));
  margin:0 auto;
}

.topbar{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(248,251,255,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.brand-mark{
  width:44px;height:44px;border-radius:14px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#2f6df6 0%, #11b4f5 100%);
  color:#fff;font-weight:800;
  box-shadow:0 10px 20px rgba(47,109,246,.18);
}
.brand-copy small{
  display:block;
  color:var(--muted);
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:12px;
  margin-bottom:2px;
}
.brand-copy strong{
  font-size:18px;
  line-height:1.1;
}
.nav{
  display:flex;gap:24px;align-items:center;flex-wrap:wrap;
}
.nav a{
  color:var(--muted);
  font-weight:600;
}
.nav a:hover,.nav a.active{color:var(--text)}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  padding:0 20px;
  border-radius:16px;
  border:1px solid transparent;
  background:linear-gradient(180deg,#3577ff 0%, #2f6df6 100%);
  color:#fff;
  font-weight:700;
  box-shadow:0 12px 22px rgba(47,109,246,.15);
}
.btn:hover{filter:brightness(.98)}
.btn-ghost{
  background:#fff;
  border-color:var(--line-strong);
  color:var(--text);
  box-shadow:none;
}
.btn-danger{
  background:#fff;
  color:var(--red);
  border-color:#f5c2c7;
}

.hero{
  padding:64px 0 28px;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:28px;
}
.card, .panel{
  background:rgba(255,255,255,.94);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.hero-copy{
  padding:40px;
}
.eyebrow{
  color:#64748b;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:13px;
  font-weight:800;
  margin:0 0 12px 0;
}
.hero h1{
  font-size:clamp(40px, 6vw, 72px);
  line-height:.96;
  margin:0 0 20px 0;
  letter-spacing:-.04em;
}
.lead{
  color:#23395f;
  font-size:20px;
  line-height:1.6;
  margin:0 0 22px 0;
  max-width:760px;
}
.hero-actions{
  display:flex;gap:12px;flex-wrap:wrap;
  margin-bottom:22px;
}
.pill-row,.chip-strip{
  display:flex;flex-wrap:wrap;gap:10px;
}
.pill,.chip{
  padding:10px 14px;
  border-radius:999px;
  font-weight:700;
  color:#2f5cb6;
  background:var(--blue-soft);
}
.hero-side{
  padding:22px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
  align-content:start;
}
.summary-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
}
.summary-card small{
  color:var(--muted);display:block;margin-bottom:8px;font-size:13px
}
.summary-card strong{
  font-size:36px;line-height:1;color:var(--text)
}
.summary-card.blue strong{color:var(--blue)}
.summary-card.green strong{color:var(--green)}
.summary-card.orange strong{color:var(--orange)}
.summary-card.red strong{color:var(--red)}
.summary-card.purple strong{color:var(--purple)}

.section{
  padding:28px 0;
}
.section-kicker{
  margin:0 0 10px;
  color:#6b7f98;
  font-size:13px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.section h2{
  font-size:clamp(30px, 4vw, 56px);
  line-height:1.03;
  letter-spacing:-.03em;
  margin:0 0 16px;
  max-width:980px;
}
.subtle{color:var(--muted);margin:0}
.three-up,.module-preview,.medallion-grid,.metric-grid,.table-grid,.progress-groups,.chart-grid,.spotlight-stack{
  display:grid;gap:20px;
}
.three-up{grid-template-columns:repeat(3,1fr)}
.module-preview{grid-template-columns:repeat(2,1fr)}
.medallion-grid{grid-template-columns:repeat(3,1fr)}
.preview-card,.mini-card{
  padding:24px;
}
.preview-card h3{margin:0 0 10px;font-size:24px}
.preview-card p{margin:0 0 18px;color:var(--muted);line-height:1.65}
.metric-line{
  display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:18px
}
.metric-line strong{
  font-size:34px;letter-spacing:-.03em
}
.metric-line span{color:var(--muted);font-size:14px}
.preview-card .btn-link{
  color:var(--blue);font-weight:700
}

.medallion{
  padding:24px;
}
.layer-badge{
  display:inline-flex;
  width:max-content;
  padding:8px 12px;
  border-radius:999px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:12px;
  margin-bottom:12px;
}
.badge-bronze{background:#fff4e5;color:#b66a00}
.badge-silver{background:#eef2f7;color:#5b6b7d}
.badge-gold{background:#fff9db;color:#a77a00}
.medallion h3{margin:0 0 10px;font-size:24px}
.medallion p{margin:0;color:var(--muted);line-height:1.7}
.medallion .pill-row{margin-top:16px}
.arch-flow{
  display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:14px;align-items:stretch;margin-top:22px
}
.arch-step{
  padding:22px
}
.arrow{
  display:grid;place-items:center;color:#87a0c5;font-size:28px;font-weight:700
}
.cta-block{
  padding:28px;
  display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;
}

.demo-shell{
  display:grid;
  grid-template-columns:290px 1fr;
  gap:28px;
  width:min(1460px, calc(100% - 32px));
  margin:28px auto 40px;
}
.sidebar{
  position:sticky;top:88px;height:calc(100vh - 112px);
  padding:20px;
  overflow:auto;
}
.demo-brand{
  display:flex;align-items:center;gap:12px;padding-bottom:18px;border-bottom:1px solid var(--line)
}
.sidebar-status{
  margin-top:16px;
  padding:14px 16px;
  border-radius:18px;
  background:#f7fbff;
  border:1px solid var(--line);
  color:var(--muted);
  line-height:1.6;
}
.sidebar-group{
  margin-top:20px;
}
.sidebar-group h4{
  margin:0 0 12px;
  color:#5f7189;
  font-size:13px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.side-link{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 16px;
  border-radius:16px;
  color:#3f5475;
  font-weight:700;
  margin-bottom:8px;
  border:1px solid transparent;
}
.side-link:hover{background:#f6f9ff}
.side-link.active{
  background:#edf4ff;
  color:var(--blue);
  border-color:#cfe0ff;
}
.side-link small{
  color:#7d8ea6;font-weight:700
}

.demo-main{display:grid;gap:22px}
.demo-head{
  padding:28px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:20px;
  align-items:end;
}
.demo-head h1{
  font-size:clamp(36px, 4vw, 60px);
  margin:0 0 10px;
  line-height:1.02;
  letter-spacing:-.035em;
}
.demo-meta{
  display:flex;gap:10px;flex-wrap:wrap;
}
.meta-pill{
  padding:10px 14px;border-radius:999px;background:var(--blue-soft);color:#2f5cb6;font-weight:700
}
.action-row{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.notice{
  padding:18px 20px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#f8fbff;
  color:#284468;
  font-weight:700;
}
.notice.info{background:#f7fbff}
.notice.success{background:#ecfbf4;color:#106a46;border-color:#cdeedb}
.notice.warning{background:#fff8ec;color:#8c5a00;border-color:#f5dfb2}
.notice.critical{background:#fff1f2;color:#8f2130;border-color:#f2cad0}

.metric-grid{grid-template-columns:repeat(4,1fr)}
.metric-item{
  padding:20px;
}
.metric-item .value{
  font-size:42px;line-height:1;font-weight:800;letter-spacing:-.04em;margin-bottom:8px
}
.metric-item .label{color:var(--muted);font-weight:600;line-height:1.5}
.metric-item.blue .value{color:var(--blue)}
.metric-item.green .value{color:var(--green)}
.metric-item.orange .value{color:var(--orange)}
.metric-item.red .value{color:var(--red)}
.metric-item.purple .value{color:var(--purple)}

.chart-grid.two{grid-template-columns:repeat(2,1fr)}
.chart-card{padding:22px}
.chart-card.span-2{grid-column:span 2}
.chart-card h3,.table-card h3,.group-card h3,.spotlight-head h3{
  margin:0 0 6px;font-size:26px;letter-spacing:-.02em
}
.chart-card p,.table-card p,.group-card p,.spotlight-head p{margin:0 0 16px;color:var(--muted)}
.chart-card .chart-frame{
  padding:10px 4px 0;
}
.legend-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
}
.legend-row{
  display:flex;justify-content:space-between;gap:12px;
  padding:10px 12px;border-radius:14px;background:#f8fbff;border:1px solid var(--line)
}
.legend-row span{color:#445671;font-weight:700}
.legend-row strong{font-size:15px}
.legend-row.green strong{color:var(--green)}
.legend-row.red strong{color:var(--red)}
.legend-row.orange strong{color:var(--orange)}
.legend-row.neutral strong{color:var(--text)}
.callout{
  margin-top:16px;
  padding:14px 16px;border-radius:16px;border:1px solid var(--line)
}
.callout.warning{background:#fff8ec;border-color:#f6dfb0;color:#7a5000}
.callout.info{background:#f5f9ff;border-color:#d9e5fb;color:#2d4d7b}
.callout.success{background:#ecfbf4;border-color:#cdeedb;color:#0e6a44}
.callout.critical{background:#fff1f2;border-color:#f2cad0;color:#8f2130}
.callout strong{display:block;margin-bottom:4px}

.table-grid{grid-template-columns:repeat(2,1fr)}
.table-card{padding:22px;overflow:auto}
.table-card.span-2{grid-column:span 2}
table{
  width:100%;
  border-collapse:collapse;
  min-width:620px;
}
thead th{
  text-align:left;
  font-size:13px;
  color:#6d809a;
  font-weight:800;
  letter-spacing:.03em;
  padding:0 0 12px;
  border-bottom:1px solid var(--line);
}
tbody td{
  padding:14px 0;
  border-bottom:1px solid #eef2f7;
  color:#223b5e;
  vertical-align:top;
}
tbody tr:last-child td{border-bottom:none}

.progress-groups{grid-template-columns:repeat(2,1fr)}
.group-card{padding:22px}
.progress-item{
  margin-top:14px;
  padding:14px 16px;
  border-radius:16px;
  background:#f8fbff;
  border:1px solid var(--line);
}
.progress-head{
  display:flex;justify-content:space-between;gap:12px;align-items:flex-start;
  margin-bottom:10px;
}
.progress-head strong{font-size:16px}
.progress-head .badge{
  padding:6px 10px;border-radius:999px;background:#eef5ff;color:#4362b4;font-weight:700;font-size:12px
}
.progress-meta{
  display:flex;justify-content:space-between;gap:12px;margin-top:8px;color:var(--muted);font-size:13px
}
.track{
  height:10px;border-radius:999px;background:#edf2f7;overflow:hidden
}
.track > span{
  display:block;height:100%;border-radius:999px;background:var(--blue)
}
.track.green > span{background:var(--green)}
.track.orange > span{background:var(--orange)}
.track.red > span{background:var(--red)}

.spotlight-wrap{padding:22px}
.spotlight-head{margin-bottom:14px}
.spotlight-stack{grid-template-columns:1fr}
.spot-card{
  padding:18px;
  border-radius:20px;
  border:1px solid var(--line);
  background:#fff;
}
.spot-card.critical{background:#fff2f3;border-color:#f2cad0}
.spot-card.warning{background:#fff8ec;border-color:#f5dfb2}
.spot-card.amber{background:#fffaf0;border-color:#f3e0ba}
.spot-card.info{background:#f7fbff;border-color:#d9e5fb}
.spot-card.success{background:#eefaf4;border-color:#cfeede}
.spot-top,.spot-bottom{
  display:flex;justify-content:space-between;gap:14px;align-items:flex-start;flex-wrap:wrap
}
.spot-top strong{font-size:30px;line-height:1}
.spot-title{font-size:30px;line-height:1.06;letter-spacing:-.03em;margin-bottom:8px}
.spot-sub{
  display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-weight:700
}
.spot-badge{
  padding:6px 10px;border-radius:999px;background:#fff;border:1px solid rgba(0,0,0,.06);font-size:12px
}
.spot-progress{margin:16px 0 14px}
.spot-footer{
  color:#5b6f89;font-weight:700
}

.matrix-grid{grid-template-columns:repeat(4,1fr)}
.mini-card h3{margin:0 0 8px;font-size:40px;letter-spacing:-.04em}
.mini-card p{margin:0;color:var(--muted)}
.mini-card.critical{background:#fff2f3;border-color:#f2cad0}
.mini-card.warning{background:#fff8ec;border-color:#f6dfb0}
.mini-card.amber{background:#fffaf0;border-color:#f2e4c3}
.mini-card.success{background:#eefaf4;border-color:#cfeede}

.footer{
  padding:28px 0 44px;color:#70819a;font-size:14px;text-align:center
}

@media (max-width: 1180px){
  .hero, .arch-flow, .demo-head, .demo-shell{grid-template-columns:1fr}
  .sidebar{position:relative;top:0;height:auto}
}
@media (max-width: 980px){
  .three-up,.module-preview,.medallion-grid,.metric-grid,.table-grid,.progress-groups,.chart-grid.two,.matrix-grid{grid-template-columns:1fr}
  .chart-card.span-2,.table-card.span-2{grid-column:auto}
  .hero-side{grid-template-columns:1fr 1fr}
}
@media (max-width: 700px){
  .shell{width:min(100%, calc(100% - 24px))}
  .topbar-inner,.demo-head{padding-left:0;padding-right:0}
  .hero-copy,.preview-card,.medallion,.panel,.card,.demo-head,.sidebar{padding:18px}
  .hero-side{grid-template-columns:1fr}
  .metric-line strong,.spot-title,.spot-top strong,.demo-head h1,.hero h1{font-size:34px}
}


/* ==== INVERSE LOGISTICS + LAYOUT PATCH ==== */
.shell{width:min(1320px, calc(100% - 40px));}
.demo-shell{
  grid-template-columns:300px minmax(0,1fr);
  gap:20px;
  width:min(1680px, calc(100% - 24px));
}
.sidebar{padding-right:14px}
.demo-main{display:grid;gap:22px;min-width:0;overflow-x:hidden}
.chart-grid.one,
.table-grid,
.table-grid.one{grid-template-columns:minmax(0,1fr)}
.chart-card.span-2,
.table-card.span-2{grid-column:1 / -1}
.chart-card,.table-card,.group-card,.spotlight-wrap{min-width:0}
.chart-frame{width:100%;overflow:hidden}
.chart-frame svg{width:100%;height:auto;display:block}
.table-card{padding:26px 26px 18px;overflow-x:auto}
.table-wrap{width:100%;overflow-x:auto}
.table-card table{width:100%;min-width:0;table-layout:auto}
.table-card th,.table-card td{white-space:nowrap}
.module-preview{grid-template-columns:repeat(3,1fr)}
.hero-side{align-content:start}
@media (max-width: 1280px){
  .module-preview{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 1180px){
  .demo-shell{grid-template-columns:1fr;width:min(100%, calc(100% - 24px))}
  .sidebar{position:relative;top:0;height:auto;padding-right:20px}
}\n\n

/* ==== FLOW ARCHITECTURE PATCH ==== */
.architecture-intro{
  max-width: 980px;
  margin-bottom: 26px;
}

.flow-architecture{
  display: grid;
  gap: 14px;
}

.flow-row{
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.flow-row-head{
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.flow-row-head h3{
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.08;
  color: var(--ink);
}

.flow-row-head p{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.flow-step{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  color: #285fcf;
  font-weight: 800;
  font-size: 16px;
  flex: 0 0 auto;
}

.flow-arrow{
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  color: #5f6fd6;
  line-height: 1;
}

.flow-box-grid{
  display: grid;
  gap: 14px;
}

.flow-box-grid.cols-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.flow-box-grid.cols-4{ grid-template-columns: repeat(4, minmax(0,1fr)); }
.flow-box-grid.cols-5{ grid-template-columns: repeat(5, minmax(0,1fr)); }

.flow-box{
  background: #f7f9fd;
  border: 1px solid #dbe4f3;
  border-radius: 18px;
  padding: 18px 16px;
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.flow-box small{
  display: block;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--muted);
}

.flow-box.emphasis{
  background: linear-gradient(180deg, #eef5ff 0%, #f8fbff 100%);
  border-color: #bfd4ff;
  color: #204c9d;
}

.flow-box.tier strong{
  font-size: 22px;
  line-height: 1;
}

.bronze-box{
  background: linear-gradient(180deg, #fff8ef 0%, #fff 100%);
}

.silver-box{
  background: linear-gradient(180deg, #f6f8fc 0%, #fff 100%);
}

.gold-box{
  background: linear-gradient(180deg, #fffbea 0%, #fff 100%);
}

@media (max-width: 1200px){
  .flow-box-grid.cols-5,
  .flow-box-grid.cols-4{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 860px){
  .flow-box-grid.cols-3,
  .flow-box-grid.cols-4,
  .flow-box-grid.cols-5{
    grid-template-columns: 1fr;
  }

  .flow-row-head{
    flex-direction: column;
  }

  .flow-row-head h3{
    font-size: 24px;
  }
}
\n
/* ==== HOME LANDING REFRAME PATCH ==== */
.hero-v2{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:28px;
  align-items:stretch;
  padding:56px 0 26px;
}

.hero-v2-copy,
.hero-v2-context{
  background:rgba(255,255,255,.82);
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow);
}

.hero-v2-copy{padding:42px}
.hero-v2-context{
  padding:22px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  align-content:start;
}

.hero-v2 h1{
  font-size:clamp(42px,5.2vw,72px);
  line-height:.96;
  letter-spacing:-.04em;
  margin:8px 0 18px;
  max-width:980px;
}

.hero-lead{
  font-size:18px;
  line-height:1.58;
  max-width:880px;
  color:var(--muted);
}

.hero-chips{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:22px;
}

.hero-chips span{
  padding:12px 16px;
  border-radius:999px;
  background:#eef4ff;
  color:#315dad;
  font-weight:700;
  font-size:15px;
}

.context-card{
  background:#f7f9fd;
  border:1px solid #dbe4f3;
  border-radius:20px;
  padding:18px;
}

.context-kicker{
  margin:0 0 10px;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:12px;
  font-weight:800;
  color:#6e7f9f;
}

.context-card h3{
  margin:0 0 8px;
  font-size:28px;
  line-height:1.05;
}

.context-card p{
  margin:0;
  font-size:16px;
  line-height:1.5;
  color:var(--muted);
}

.section-title-tight{
  font-size:clamp(34px,4vw,56px);
  line-height:1.02;
  letter-spacing:-.035em;
  max-width:1200px;
  margin-bottom:18px;
}

.value-grid .card,
.module-card{
  padding:26px;
}

.module-card h3,
.value-grid .card h3{
  font-size:28px;
  line-height:1.06;
  margin-bottom:10px;
}

.module-card p,
.value-grid .card p{
  font-size:17px;
  line-height:1.55;
}

.demo-module-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.flow-row-head h3{
  font-size:24px;
}

.flow-row-head p,
.architecture-intro{
  font-size:17px;
  line-height:1.55;
}

.flow-box{
  font-size:16px;
  line-height:1.35;
  min-height:82px;
}

@media (max-width: 1180px){
  .hero-v2{
    grid-template-columns:1fr;
  }

  .hero-v2-context{
    grid-template-columns:1fr 1fr;
  }

  .demo-module-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 820px){
  .hero-v2-copy{padding:30px}
  .hero-v2-context,
  .demo-module-grid{
    grid-template-columns:1fr;
  }

  .hero-v2 h1{
    font-size:clamp(34px,10vw,52px);
  }

  .section-title-tight{
    font-size:clamp(28px,8vw,40px);
  }
}
