:root{
  --bg:#eaf3fb;
  --bg-deep:#dcebf8;
  --surface:#ffffff;
  --primary:#0a5aa8;
  --primary-dark:#063f78;
  --teal:#00a6ad;
  --success:#1fa363;
  --success-dark:#158056;
  --text:#152531;
  --text-muted:#5c7186;
  --locked:#c6d6e4;
  --locked-line:#b7cadb;
  --warn:#e2a63c;
  --danger:#e2574c;
  --radius-lg:22px;
  --radius-md:16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
*{box-sizing:border-box;}
html,body{
  margin:0; padding:0; min-height:100%;
  background:var(--bg);
  font-family: "Segoe UI", "Heebo", -apple-system, BlinkMacSystemFont, sans-serif;
  color:var(--text);
  -webkit-tap-highlight-color:transparent;
}
body{
  background:
    radial-gradient(circle at 88% 6%, rgba(0,166,173,.12), transparent 30rem),
    radial-gradient(circle at 4% 92%, rgba(31,163,99,.09), transparent 26rem),
    var(--bg);
}

/* ---------- Hero ---------- */
.hub-hero{
  max-width:960px; margin:0 auto;
  padding: calc(48px + var(--safe-top)) 24px 20px;
  text-align:center;
}
.hub-brand{
  display:inline-flex; align-items:center; gap:10px;
  color:var(--primary); font-size:14px; font-weight:800; letter-spacing:.02em;
  background:var(--surface); padding:7px 16px; border-radius:20px;
  box-shadow:0 4px 12px rgba(10,60,110,0.1);
}
.hub-brand-dot{
  width:10px; height:10px; border-radius:50%;
  background:linear-gradient(135deg,var(--primary),var(--teal));
}
.hub-title{
  margin:20px auto 10px; font-size:clamp(28px,5vw,42px); font-weight:800;
  color:var(--primary-dark); letter-spacing:-.03em; line-height:1.15;
  max-width:720px;
}
.hub-subtitle{
  margin:0 auto; max-width:560px; color:var(--text-muted);
  font-size:15.5px; line-height:1.7;
}

/* ---------- Explainer ---------- */
.hub-explainer{
  max-width:960px; margin:8px auto 0; padding:0 24px;
  display:grid; grid-template-columns:1.1fr 1fr; gap:18px;
}
.explainer-card{
  background:var(--surface); border-radius:var(--radius-lg);
  padding:24px 24px 22px;
  box-shadow:0 10px 26px rgba(15,55,95,0.08);
  border:1px solid rgba(183,202,219,0.35);
}
.explainer-title{
  margin:0 0 12px; font-size:16.5px; font-weight:800; color:var(--primary-dark);
}
.explainer-lead{
  margin:0; font-size:14px; line-height:1.75; color:var(--text);
}
.explainer-points{
  list-style:none; margin:16px 0 0; padding:0;
  display:flex; flex-direction:column; gap:12px;
}
.explainer-points li{
  display:flex; align-items:flex-start; gap:10px;
  font-size:13px; line-height:1.65; color:var(--text-muted);
}
.explainer-num{
  flex-shrink:0; width:22px; height:22px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:11.5px; font-weight:800; color:#fff;
  background:linear-gradient(135deg,var(--primary),var(--teal));
}
.explainer-howto{background:linear-gradient(180deg,#f3f9fd,var(--surface));}
.explainer-steps{
  margin:0; padding-inline-start:22px;
  display:flex; flex-direction:column; gap:10px;
  font-size:13.5px; line-height:1.7; color:var(--text);
}
.explainer-steps li{padding-inline-start:4px;}

/* ---------- Grid ---------- */
.hub-grid{
  max-width:960px; margin:36px auto 0; padding:0 24px 20px;
  display:grid; grid-template-columns:repeat(auto-fit, minmax(270px,1fr));
  gap:22px;
}

.hub-card{
  position:relative; display:flex; flex-direction:column; gap:14px;
  background:var(--surface); border-radius:var(--radius-lg);
  padding:24px 22px 22px;
  box-shadow:0 10px 26px rgba(15,55,95,0.10);
  border:1px solid rgba(183,202,219,0.35);
  transition: transform .2s cubic-bezier(.22,.9,.32,1), box-shadow .2s ease, border-color .2s ease;
}
.hub-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 34px rgba(15,55,95,0.16);
  border-color:rgba(0,166,173,0.35);
}

.hub-card-top{display:flex; align-items:flex-start; justify-content:space-between; gap:10px;}
.hub-card-icon{
  font-size:26px; width:52px; height:52px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,var(--primary),var(--teal));
  border-radius:16px; color:#fff;
  box-shadow:0 6px 14px rgba(10,90,168,0.32);
}

.status-pill{
  display:inline-flex; align-items:center; gap:6px;
  font-size:11px; font-weight:800; padding:5px 11px; border-radius:20px;
  white-space:nowrap;
}
.status-pill::before{content:""; width:7px; height:7px; border-radius:50%; flex-shrink:0;}
.status-pill.status-ready{background:#e3f6ec; color:var(--success-dark);}
.status-pill.status-ready::before{background:var(--success);}
.status-pill.status-early{background:#fdf3df; color:#8a6414;}
.status-pill.status-early::before{background:var(--warn);}

.hub-card-body{flex:1; display:flex; flex-direction:column; gap:6px;}
.hub-card-role{font-size:17.5px; font-weight:800; color:var(--primary-dark);}
.hub-card-desc{font-size:13.5px; color:var(--text-muted); line-height:1.6; margin:0;}
.hub-card-note{
  font-size:12px; color:var(--text-muted); line-height:1.6; margin:0;
  padding-top:8px; border-top:1px dashed var(--locked-line);
}

.hub-card-link{
  display:flex; align-items:center; justify-content:center; gap:8px;
  text-decoration:none; border:none; border-radius:14px;
  padding:12px 14px; font-size:14px; font-weight:800; cursor:pointer;
  background:linear-gradient(135deg,var(--primary),var(--teal)); color:#fff;
  box-shadow:0 8px 18px rgba(10,90,168,0.24);
  transition:transform .15s ease, filter .15s ease;
}
.hub-card-link:hover{filter:brightness(1.05);}
.hub-card-link:active{transform:scale(0.97);}
.hub-card-link .arrow{transition:transform .15s ease; font-size:15px;}
.hub-card-link:hover .arrow{transform:translateX(-3px);}

/* ---------- Footer ---------- */
.hub-footer{
  max-width:960px; margin:8px auto 0; padding:18px 24px calc(40px + var(--safe-bottom));
  text-align:center;
}
.hub-footer-stripe{
  height:2px; border-radius:999px; margin:0 auto 12px;
  width:min(220px, 60%);
  background:linear-gradient(90deg, var(--primary), var(--teal));
}
.hub-footer-text{color:var(--text-muted); font-size:12px; line-height:1.6; margin:0 0 4px;}
.hub-footer-brand{color:var(--primary-dark); font-size:11.5px; font-weight:800; letter-spacing:.3px;}

/* ---------- Mobile ---------- */
@media (max-width:560px){
  .hub-hero{padding: calc(36px + var(--safe-top)) 18px 14px;}
  .hub-grid{padding:0 18px 20px; gap:16px;}
  .hub-card{padding:20px 18px 18px;}
  .hub-explainer{padding:0 18px; grid-template-columns:1fr;}
  .explainer-card{padding:20px 18px 18px;}
}
@media (max-width:820px) and (min-width:561px){
  .hub-explainer{grid-template-columns:1fr;}
}
