/* TR 2025 Dashboard
   Design goals: clean, serious, modern; avoids flashy gimmicks but keeps interactions crisp.
*/

:root{
  --bg: #0b1220;
  --bg2:#0f1b33;
  --card:#0f1a30cc;
  --text:#eaf0ff;
  --muted:#b5c1df;
  --line:#1f2c4a;
  --accent:#58c4ff;
  --accent2:#9cffc7;
  --warn:#ffd28a;
  --shadow: 0 10px 30px rgba(0,0,0,.25);

  --radius: 18px;
  --radius2: 24px;

  --font: "Noto Sans SC", system-ui, -apple-system, Segoe UI, Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Source Serif 4", ui-serif, Georgia, "Times New Roman", serif;

  --max: 1120px;
}

:root[data-theme="light"]{
  --bg:#f7f9ff;
  --bg2:#eef3ff;
  --card:#ffffffcc;
  --text:#0b1220;
  --muted:#42516f;
  --line:#d9e2ff;
  --accent:#0068ff;
  --accent2:#0b8a57;
  --warn:#b45309;
  --shadow: 0 10px 25px rgba(10,22,60,.10);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background: radial-gradient(900px 500px at 25% -10%, rgba(88,196,255,.25), transparent 60%),
              radial-gradient(700px 400px at 85% 10%, rgba(156,255,199,.18), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  overflow-x:hidden;
}

a{color:inherit}
.skip{
  position:absolute; left:-999px; top:8px;
  background:var(--card); padding:8px 10px; border-radius:10px;
}
.skip:focus{left:10px; z-index:999}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(10,18,32,.85), rgba(10,18,32,.55));
  border-bottom:1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px;
}
:root[data-theme="light"] .topbar{
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.55));
}
.topbar__left{display:flex; gap:12px; align-items:center}
.logo{height:42px; width:auto; border-radius:10px; box-shadow:var(--shadow)}
.brand__title{font-weight:800; letter-spacing:.3px}
.brand__sub{font-size:12px; color:var(--muted); margin-top:2px}
.topbar__right{display:flex; gap:10px; align-items:center}

.page{max-width:var(--max); margin:0 auto; padding:18px 16px 48px}

.hero{
  display:grid;
  grid-template-columns: 1.3fr .9fr;
  gap:16px;
  margin-top:10px;
  align-items:stretch;
  position:relative;
}
.hero__bg{
  position:absolute; inset:-120px -120px auto -120px; height:380px;
  background: radial-gradient(600px 250px at 30% 50%, rgba(88,196,255,.22), transparent 60%),
              radial-gradient(560px 260px at 70% 50%, rgba(156,255,199,.16), transparent 60%);
  filter: blur(0px);
  pointer-events:none;
}
.hero__content{
  position:relative;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius: var(--radius2);
  padding:22px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero__kicker{display:flex; gap:10px; align-items:center; color:var(--muted); font-size:13px}
.badge{height:26px; width:auto; border-radius:8px}
.hero__title{
  margin:10px 0 8px;
  font-size:36px; line-height:1.15;
}
.hero__lead{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.7;
}
.hero__cta{display:flex; gap:10px; margin-top:16px; flex-wrap:wrap}
.hero__meta{display:flex; gap:10px; margin-top:14px; flex-wrap:wrap}
.chip{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--muted);
}

.hero__side{display:flex; flex-direction:column; gap:16px}
.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card--glass{background: rgba(255,255,255,.08)}
.card__header{
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
}
.card__title{font-weight:800}
.card__sub{font-size:12px; color:var(--muted)}
.card__content{padding:16px}

.toc{display:grid; gap:8px}
.toc a{
  text-decoration:none;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
  background: rgba(255,255,255,.04);
  color:var(--muted);
  transition: transform .12s ease, border-color .12s ease, color .12s ease;
}
.toc a:hover{
  transform: translateY(-1px);
  border-color: var(--line);
  color: var(--text);
}

.section{margin-top:22px}
.section__header{margin-bottom:12px}
.section__title{margin:0; font-size:22px}
.section__desc{margin:6px 0 0; color:var(--muted); line-height:1.6}

.grid{display:grid; gap:14px}
.grid--kpi{grid-template-columns: repeat(4, 1fr)}
.kpi{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px;
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
}
.kpi__label{color:var(--muted); font-size:12px}
.kpi__value{font-size:30px; font-weight:900; margin-top:6px; letter-spacing:.2px}
.kpi__unit{font-size:14px; margin-left:4px; color:var(--muted)}
.kpi__hint{margin-top:8px; color:var(--muted); font-size:12px}

.notice{
  margin-top:14px;
  display:flex; gap:12px;
  border:1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  padding:14px 16px;
}
.notice__icon{
  width:28px; height:28px;
  border-radius:10px;
  display:grid; place-items:center;
  background: rgba(88,196,255,.18);
  border:1px solid var(--line);
  color:var(--text);
  font-weight:900;
}
.notice__title{font-weight:800}
.notice__text{color:var(--muted); margin-top:4px; line-height:1.6}

.grid--charts{grid-template-columns: repeat(3, 1fr)}
.mini{display:flex; gap:14px; margin-top:10px; color:var(--muted); font-size:12px}
.dot{display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:6px; background: var(--accent)}
.dot--b{background: var(--accent2)}

.btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 12px;
  border-radius: 14px;
  cursor:pointer;
  text-decoration:none;
  font-weight:700;
  display:inline-flex; gap:8px; align-items:center;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(88,196,255,.45)}
.btn--primary{
  background: linear-gradient(180deg, rgba(88,196,255,.18), rgba(88,196,255,.08));
  border-color: rgba(88,196,255,.45);
}
.btn--ghost{
  background: transparent;
}
.btn__icon{opacity:.9}

.grid--two{grid-template-columns: 1fr 1fr}
.steps{list-style:none; padding:0; margin:0; display:grid; gap:12px}
.steps li{display:flex; gap:12px}
.steps__dot{
  width:28px; height:28px; border-radius:10px;
  display:grid; place-items:center;
  background: rgba(156,255,199,.13);
  border:1px solid var(--line);
  font-weight:900;
}
.steps__title{font-weight:800}
.steps__text{color:var(--muted); margin-top:2px; line-height:1.6}

.actions{display:flex; flex-wrap:wrap; gap:10px}
.divider{height:1px; background:var(--line); margin:14px 0}

.accordion{display:grid; gap:10px}
.accordion__btn{
  width:100%;
  text-align:left;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  display:flex; justify-content:space-between; align-items:center;
  font-weight:800;
}
.accordion__btn:hover{border-color: rgba(156,255,199,.45)}
.accordion__panel{
  border:1px solid var(--line);
  border-top:0;
  border-radius: 0 0 14px 14px;
  padding:12px;
  color:var(--muted);
  background: rgba(255,255,255,.03);
  line-height:1.7;
}

.grid--three{grid-template-columns: repeat(3, 1fr)}
.bullets{margin:0; padding-left:18px; color:var(--muted); line-height:1.8}
.pillset{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}
.pill{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  color:var(--muted);
}

.quote{
  margin:0;
  padding:14px 14px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  line-height:1.7;
}
.quote--serif{font-family:var(--serif); font-size:16px}

.tableWrap{overflow:auto; border-radius: var(--radius); border:1px solid var(--line)}
.table{border-collapse:collapse; width:100%; min-width:640px; background: rgba(255,255,255,.02)}
.table th,.table td{padding:10px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top}
.table th{font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.6px}
.table td{color:var(--text)}
.table tbody tr:hover{background: rgba(88,196,255,.05)}

.spark__title{font-weight:900; margin-bottom:10px}
.spark__bar{height:12px; border-radius:999px; border:1px solid var(--line); background: rgba(255,255,255,.03); overflow:hidden}
.spark__fill{height:100%; background: linear-gradient(90deg, var(--accent), var(--accent2))}

.timeline{display:grid; gap:12px}
.timeline__item{
  display:flex; gap:12px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  padding:14px;
}
.timeline__pin{
  width:30px; height:30px; border-radius:12px;
  display:grid; place-items:center;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-weight:900;
}
.timeline__title{font-weight:900}
.timeline__text{color:var(--muted); margin-top:4px; line-height:1.6}

.grid--team{grid-template-columns: repeat(3, 1fr)}
.roles{list-style:none; padding:0; margin:0; display:grid; gap:10px}
.roles li{display:flex; justify-content:space-between; gap:14px; border:1px solid var(--line); border-radius:14px; padding:10px 12px; background: rgba(255,255,255,.03)}
.roles__k{color:var(--muted); font-size:12px}
.roles__v{font-weight:800}

.footer{
  margin-top:18px;
  border-top:1px solid var(--line);
  padding-top:16px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
}
.footer__brand{display:flex; gap:10px; align-items:center}
.footer__brand img{height:34px; width:auto; border-radius:10px; border:1px solid var(--line); background:#fff}
.footer__title{font-weight:900}
.footer__sub{font-size:12px; color:var(--muted); margin-top:2px}

/* Segmented control */
.seg{display:flex; gap:6px; background: rgba(255,255,255,.04); border:1px solid var(--line); padding:4px; border-radius:999px}
.seg__btn{
  border:0; background: transparent; color:var(--muted);
  padding:8px 10px; border-radius:999px; cursor:pointer; font-weight:900; font-size:12px;
}
.seg__btn.is-active{background: rgba(88,196,255,.14); color: var(--text);}

/* Modal */
.modal{position:fixed; inset:0; z-index:100}
.modal__backdrop{position:absolute; inset:0; background: rgba(0,0,0,.45)}
.modal__panel{
  position:relative;
  max-width: 720px;
  margin: 6vh auto 0;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  border:1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
}
:root[data-theme="light"] .modal__panel{
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.86));
}
.modal__header{display:flex; justify-content:space-between; align-items:center; padding:14px 16px; border-bottom:1px solid var(--line)}
.modal__title{font-weight:900}
.modal__sub{font-size:12px; color:var(--muted); margin-top:2px}
.modal__content{padding:16px}

/* Toast */
.toast{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.65);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow);
}

/* Small helpers */
.small{font-size:12px}
.muted{color:var(--muted)}

/* Responsive */
@media (max-width: 980px){
  .hero{grid-template-columns: 1fr}
  .grid--kpi{grid-template-columns: repeat(2, 1fr)}
  .grid--charts{grid-template-columns: 1fr}
  .grid--two{grid-template-columns: 1fr}
  .grid--three{grid-template-columns: 1fr}
  .grid--team{grid-template-columns: 1fr}
  .hero__title{font-size:30px}
}
