/* =====================================================================
   ACADNEX — Theme tokens
   Change values here (not in markup) to re-theme the whole site.
   LAYOUT MODE: single viewport, no scroll (see .page-shell rules below).
===================================================================== */
:root{
  --navy-950:#0b1229;
  --navy-900:#0e1530;
  --navy-800:#111a3a;
  --sidebar:#12183a;
  --indigo-600:#4f46e5;
  --indigo-500:#6366f1;
  --violet-500:#7c6ff0;
  --purple-grad: linear-gradient(90deg,#5b52ea 0%, #4338ca 100%);
  --text-heading:#0f172a;
  --text-body:#64748b;
  --text-muted:#94a3b8;
  --border:#e6e8f0;
  --bg-page:#ffffff;
  --bg-soft:#f7f8fc;
  --green:#22c55e;
  --blue:#3b82f6;
  --orange:#f97316;
  --shadow-card: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --shadow-lg: 0 16px 36px -14px rgba(15,23,60,.28);
  --radius-sm:6px;
  --radius-md:10px;
  --radius-lg:16px;
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,*::before,*::after{box-sizing:border-box;}
html,body{
  height:100%;
  width:100%;
  margin:0;
  overflow:hidden;        /* no vertical or horizontal scroll, ever */
}
body{
  font-family:var(--font-sans);
  color:var(--text-heading);
  background:var(--bg-page);
  -webkit-font-smoothing:antialiased;
  line-height:1.4;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;}
ul{margin:0;padding:0;list-style:none;}
h1,h2,h3,h4,h5,p{margin:0;}
:focus-visible{outline:2px solid var(--indigo-500); outline-offset:2px;}
@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important;}
}

.container{
  width:100%;
  max-width:1400px;
  margin:0 auto;
  padding:0 clamp(16px,2.4vw,32px);
}

/* =====================================================================
   Page shell — everything fits in exactly one viewport, no scrollbars.
   header + features + stats are fixed-proportion rows; hero absorbs
   whatever vertical space is left so the total is always 100vh.
===================================================================== */
.page-shell{
  height:100vh;
  width:100vw;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.page-shell > main{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
}

/* =====================================================================
   Header
===================================================================== */
.site-header{
  border-bottom:1px solid var(--border);
  background:#fff;
  flex:0 0 auto;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding-top:clamp(8px,1.4vh,14px);
  padding-bottom:clamp(8px,1.4vh,14px);
}
.brand{display:flex;align-items:center;gap:10px;}
.brand-mark{
  width:clamp(30px,4vh,38px);height:clamp(30px,4vh,38px);
  border-radius:10px;
  background:var(--navy-950);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.brand-mark svg{width:56%;height:56%;}
.brand-text-name{
  font-size:clamp(14px,2vh,18px);
  font-weight:800;
  letter-spacing:.1px;
  color:var(--navy-950);
  line-height:1.1;
}
.brand-text-tag{
  font-size:clamp(8.5px,1.05vh,10.5px);
  color:var(--text-muted);
  font-weight:500;
  margin-top:1px;
}

.main-nav{display:flex;align-items:center;gap:clamp(14px,2vw,28px);}
.main-nav a{
  font-size:clamp(11px,1.5vh,14px);
  font-weight:600;
  color:#374151;
  display:flex;align-items:center;gap:4px;
  white-space:nowrap;
}
.main-nav a.is-active{color:var(--indigo-600);}
.main-nav a svg{width:11px;height:11px;opacity:.7;}

.header-cta{display:flex;align-items:center;gap:10px;flex-shrink:0;}
.btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:700;
  font-size:clamp(11px,1.4vh,13.5px);
  padding:clamp(7px,1.1vh,10px) clamp(12px,1.6vw,18px);
  border-radius:8px;
  border:1px solid transparent;
  cursor:pointer;
  white-space:nowrap;
}
.btn svg{width:12px;height:12px;}
.btn-dark{background:var(--navy-950);color:#fff;}
.btn-primary{background:var(--purple-grad);color:#fff;box-shadow:0 6px 14px -6px rgba(79,70,229,.45);}
.btn-outline{background:#fff;color:var(--indigo-600);border-color:#c7c9f5;}
.btn-lg{padding:clamp(9px,1.4vh,13px) clamp(16px,2vw,22px);font-size:clamp(12px,1.5vh,14.5px);border-radius:9px;}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:6px;}
.nav-toggle svg{width:22px;height:22px;}

/* =====================================================================
   Hero — flexible row, fills all remaining vertical space
===================================================================== */
.hero{
  flex:1 1 auto;
  min-height:0;
  display:flex;
  align-items:center;
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,0.92fr) minmax(0,1.08fr);
  gap:clamp(20px,3vw,44px);
  align-items:center;
  width:100%;
  height:100%;
  max-height:100%;
  padding:clamp(6px,1vh,14px) 0;
}
.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:clamp(8px,1.3vh,14px);
  min-height:0;
}
.eyebrow-pill{
  display:inline-block;
  width:fit-content;
  background:#eef0fd;
  color:var(--indigo-600);
  font-size:clamp(9.5px,1.15vh,12px);
  font-weight:700;
  padding:clamp(5px,.8vh,8px) clamp(10px,1.2vw,15px);
  border-radius:999px;
}
.hero h1{
  font-size:clamp(24px,4.6vh,42px);
  line-height:1.06;
  font-weight:800;
  letter-spacing:-.7px;
  color:var(--navy-950);
}
.hero h1 .accent{
  display:block;
  background:linear-gradient(90deg,#635bff,#4338ca);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero p.lede{
  font-size:clamp(10.5px,1.45vh,14.5px);
  color:var(--text-body);
  max-width:480px;
  line-height:1.55;
}
.hero-highlights{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(8px,1.2vw,16px);
  max-width:520px;
}
.highlight-item{display:flex;flex-direction:column;align-items:flex-start;gap:clamp(4px,.8vh,8px);}
.highlight-ico{
  width:clamp(28px,4.4vh,40px);height:clamp(28px,4.4vh,40px);
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
}
.highlight-ico svg{width:48%;height:48%;}
.highlight-item span{font-size:clamp(9px,1.15vh,11.5px);font-weight:700;color:var(--navy-950);line-height:1.25;}
.ico-indigo{background:#ece9fe;color:#6d5ff5;}
.ico-green{background:#e5f8ee;color:#1fac6a;}
.ico-orange{background:#fff1e6;color:#f2803d;}
.ico-blue{background:#e7f1ff;color:#3b82f6;}

.hero-actions{display:flex;gap:10px;}

/* ---- dashboard mock ---- */
.hero-visual{height:100%;min-height:0;display:flex;align-items:center;}
.dash-shell{
  background:#fff;
  border-radius:16px;
  box-shadow:var(--shadow-lg);
  border:1px solid var(--border);
  overflow:hidden;
  display:grid;
  grid-template-columns:clamp(120px,15.5vw,190px) 1fr;
  width:100%;
  height:100%;
  max-height:100%;
}
.dash-sidebar{
  background:var(--sidebar);
  padding:clamp(8px,1.2vh,16px) clamp(6px,.9vh,12px);
  color:#c9cdea;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.dash-brand{display:flex;align-items:center;gap:8px;padding:2px 6px clamp(8px,1.4vh,16px);flex:0 0 auto;}
.dash-brand .mark{width:22px;height:22px;border-radius:6px;background:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.dash-brand .mark svg{width:13px;height:13px;color:var(--navy-950);}
.dash-brand-text{line-height:1.15;}
.dash-brand-text .n{font-size:11px;font-weight:800;color:#fff;}
.dash-brand-text .t{font-size:7px;color:#8890c4;font-weight:600;}
.dash-nav{display:flex;flex-direction:column;gap:1px;flex:1 1 auto;min-height:0;justify-content:space-between;}
.dash-nav a{
  display:flex;align-items:center;justify-content:space-between;
  gap:6px;
  font-size:clamp(9px,1.05vh,11px);
  font-weight:600;
  padding:clamp(5px,.85vh,8px) 8px;
  border-radius:7px;
  color:#a8ade0;
}
.dash-nav a .l{display:flex;align-items:center;gap:7px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.dash-nav a svg{width:12px;height:12px;flex-shrink:0;}
.dash-nav a.active{background:var(--indigo-600);color:#fff;}
.dash-nav a .chev{width:9px;height:9px;opacity:.6;flex-shrink:0;}

.dash-main{padding:clamp(10px,1.6vh,20px) clamp(12px,1.8vw,22px);background:#fbfbfe;overflow:hidden;display:flex;flex-direction:column;height:100%;}
.dash-topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:clamp(6px,1.2vh,14px);flex:0 0 auto;}
.dash-topbar h3{font-size:clamp(12px,1.6vh,15px);font-weight:800;color:var(--navy-950);}
.dash-top-right{display:flex;align-items:center;gap:12px;}
.dash-bell{position:relative;width:24px;height:24px;border-radius:7px;background:#fff;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;}
.dash-bell svg{width:12px;height:12px;color:#475569;}
.dash-bell .dot{position:absolute;top:-3px;right:-3px;width:12px;height:12px;background:#ef4444;border-radius:50%;color:#fff;font-size:7px;display:flex;align-items:center;justify-content:center;font-weight:700;}
.dash-admin{display:flex;align-items:center;gap:7px;}
.dash-admin .av{width:24px;height:24px;border-radius:50%;background:#e2e5f7;display:flex;align-items:center;justify-content:center;}
.dash-admin .av svg{width:12px;height:12px;color:#6366f1;}
.dash-admin .txt{line-height:1.2;}
.dash-admin .txt .n{font-size:9.5px;font-weight:700;color:var(--navy-950);}
.dash-admin .txt .r{font-size:7.5px;color:var(--text-muted);}

.dash-welcome{margin-bottom:clamp(4px,.9vh,10px); display:flex; align-items:flex-start; justify-content:space-between; gap:10px;flex:0 0 auto;}
.dash-welcome h4{font-size:clamp(11px,1.5vh,14px);font-weight:800;color:var(--navy-950);}
.dash-welcome p{margin:2px 0 0;font-size:9.5px;color:var(--text-muted);}
.dash-year{font-size:9px;border:1px solid var(--border);background:#fff;border-radius:7px;padding:5px 8px;font-weight:600;color:#475569;display:flex;align-items:center;gap:5px;white-space:nowrap;}

.dash-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:clamp(4px,.9vh,10px);flex:0 0 auto;}
.dash-stat{background:#fff;border:1px solid var(--border);border-radius:10px;padding:clamp(5px,.8vh,9px) 10px;}
.dash-stat .lbl{display:flex;align-items:center;gap:5px;font-size:8.5px;color:var(--text-muted);font-weight:600;margin-bottom:3px;}
.dash-stat .lbl svg{width:10px;height:10px;}
.dash-stat .val{font-size:clamp(13px,1.9vh,17px);font-weight:800;color:var(--navy-950);}
.dash-stat .sub{font-size:7.5px;color:var(--text-muted);margin-top:1px;}

.dash-sectitle{font-size:10.5px;font-weight:800;color:var(--navy-950);margin-bottom:6px;flex:0 0 auto;}
.dash-rings{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:clamp(4px,.9vh,10px);flex:0 0 auto;}
.dash-ring-card{background:#fff;border:1px solid var(--border);border-radius:10px;padding:clamp(5px,.7vh,8px);text-align:center;}
.dash-ring-card .cap{font-size:7.5px;font-weight:700;color:#475569;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ring{
  width:clamp(26px,3.6vh,36px);height:clamp(26px,3.6vh,36px);border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto;
  position:relative;
}
.ring span{font-size:8.5px;font-weight:800;color:var(--navy-950);width:68%;height:68%;}

.dash-lower{display:grid;grid-template-columns:1fr 1.15fr;gap:10px;flex:1 1 auto;min-height:0;}
.dash-panel{background:#fff;border:1px solid var(--border);border-radius:10px;padding:clamp(7px,1vh,11px);overflow:hidden;display:flex;flex-direction:column;min-height:0;}
.dash-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px;flex:0 0 auto;}
.dash-panel-head h5{font-size:9.5px;font-weight:800;color:var(--navy-950);}
.dash-panel-head .sel{font-size:7.5px;color:var(--text-muted);border:1px solid var(--border);border-radius:6px;padding:2px 5px;}
.activity-list{flex:1 1 auto;min-height:0;overflow:hidden;display:flex;flex-direction:column;}
.activity-item{display:flex;align-items:center;gap:6px;padding:clamp(2px,.5vh,5px) 0;border-bottom:1px dashed #edeef4;flex:1 1 0;min-height:0;}
.activity-item:last-child{border-bottom:none;}
.activity-item .dotc{width:5px;height:5px;border-radius:50%;flex-shrink:0;}
.activity-item p{margin:0;font-size:8.5px;color:#334155;font-weight:600;line-height:1.3;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.activity-item time{font-size:7px;color:var(--text-muted);white-space:nowrap;}

.mini-bars{flex:1 1 auto;min-height:0;display:flex;align-items:flex-end;gap:5px;}
.mini-bars .bar-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:4px;}
.mini-bars .bar{width:100%;border-radius:3px 3px 0 0;background:linear-gradient(180deg,#8b7ff0,#4f46e5);}
.mini-bars .bar-lbl{font-size:6px;color:var(--text-muted);font-weight:700;}

/* =====================================================================
   Features strip — single compact row, fixed height
===================================================================== */
.features{
  background:var(--bg-soft);
  flex:0 0 auto;
  padding:clamp(10px,1.8vh,18px) 0;
  border-top:1px solid var(--border);
}
.section-head{text-align:center;max-width:640px;margin:0 auto clamp(8px,1.4vh,14px);}
.section-head h2{font-size:clamp(15px,2.2vh,21px);font-weight:800;color:var(--navy-950);letter-spacing:-.3px;}
.section-head p{margin-top:4px;font-size:clamp(9.5px,1.2vh,12px);color:var(--text-body);}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:clamp(8px,1.1vw,14px);
}
.feature-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:clamp(10px,1.5vh,16px) clamp(10px,1.1vw,14px);
}
.feature-ico{
  width:clamp(26px,3.6vh,34px);height:clamp(26px,3.6vh,34px);
  border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:8px;
}
.feature-ico svg{width:50%;height:50%;}
.feature-card h3{font-size:clamp(10.5px,1.3vh,12.5px);font-weight:800;color:var(--navy-950);margin-bottom:4px;line-height:1.25;}
.feature-card p{font-size:clamp(8.5px,1.05vh,10.5px);color:var(--text-body);line-height:1.45;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}

/* =====================================================================
   Stats bar — thin dark strip, includes footer line
===================================================================== */
.stats-bar{
  background:var(--navy-950);
  flex:0 0 auto;
  padding:clamp(9px,1.5vh,14px) 0;
}
.stats-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.stat-list{display:flex;align-items:stretch;flex:1 1 auto;}
.stat-cell{
  display:flex;align-items:center;gap:10px;
  padding:0 clamp(14px,2vw,26px);
}
.stat-cell:first-child{padding-left:0;}
.stat-cell + .stat-cell{border-left:1px solid rgba(255,255,255,.1);}
.stat-ico{
  width:clamp(28px,3.8vh,36px);height:clamp(28px,3.8vh,36px);border-radius:9px;
  background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.stat-ico svg{width:52%;height:52%;color:#fff;}
.stat-cell .num{font-size:clamp(13px,1.9vh,18px);font-weight:800;color:#fff;line-height:1.1;}
.stat-cell .lab{font-size:clamp(9px,1.05vh,11px);color:#a9adce;font-weight:600;margin-top:1px;}

.footer-line{
  font-size:clamp(8.5px,1vh,10.5px);
  color:#7d82a8;
  flex:0 0 auto;
  white-space:nowrap;
  padding-left:16px;
  border-left:1px solid rgba(255,255,255,.1);
}
.footer-line a{color:#a9adce;}
.footer-line a:hover{color:#fff;}

/* =====================================================================
   Responsive — mobile keeps no horizontal scroll; vertical scroll is
   allowed here only because six stacked sections truly cannot occupy
   one small phone screen at a legible size.
===================================================================== */
@media (max-width: 860px){
  html,body{overflow-x:hidden;overflow-y:auto;height:auto;}
  .page-shell{height:auto;min-height:100vh;overflow:visible;}
  .main-nav{display:none;}
  .nav-toggle{display:inline-flex;}
  .header-cta .btn-dark{display:none;}
  .hero{overflow:visible;padding:20px 0;}
  .hero-grid{grid-template-columns:1fr;height:auto;}
  .dash-shell{height:auto;min-height:420px;}
  .feature-grid{grid-template-columns:repeat(3,1fr);}
  .stats-inner{flex-wrap:wrap;row-gap:12px;}
  .footer-line{border-left:none;padding-left:0;flex-basis:100%;text-align:center;}
}
@media (max-width: 600px){
  .hero-highlights{grid-template-columns:repeat(2,1fr);}
  .dash-sidebar{display:none;}
  .dash-shell{grid-template-columns:1fr;}
  .feature-grid{grid-template-columns:repeat(2,1fr);}
  .dash-stats, .dash-rings{grid-template-columns:repeat(2,1fr);}
  .dash-lower{grid-template-columns:1fr;}
  .stat-cell{border-left:none !important;flex:0 0 50%;padding:6px 0;}
}
