:root{
  --bg:#0b1220;
  --panel:#0f1b33;
  --card:#101f3f;
  --text:#e9eefc;
  --muted:#b7c3e3;
  --line:rgba(255,255,255,.12);
  --primary:#5aa7ff;
  --primary2:#8bd3ff;
  --radius:16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --fontScale: 1;
}

body[data-contrast="high"]{
  --bg:#000;
  --panel:#000;
  --card:#000;
  --text:#fff;
  --muted:#fff;
  --line:#fff;
  --primary:#fff;
  --primary2:#fff;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(900px 600px at 20% -10%, rgba(90,167,255,.20), transparent 60%),
              radial-gradient(700px 500px at 110% 30%, rgba(139,211,255,.14), transparent 60%),
              var(--bg);
  color:var(--text);
  font-size: calc(16px * var(--fontScale));
  line-height:1.45;
}

a{color:inherit}
.muted{color:var(--muted)}
.small{font-size:.92rem}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;}

.container{
  width:min(1140px, 92vw);
  margin-inline:auto;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px; height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px;
  width:auto; height:auto;
  padding:10px 12px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:10px;
  z-index:1000;
}

.sr-only{
  position:absolute!important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:3px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:.85rem;
  background: rgba(255,255,255,.06);
}

.topbar{
  background: rgba(0,0,0,.18);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
}
.topbar__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 0;
  gap:12px;
}
.topbar__left{display:flex; align-items:center; gap:10px}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
  text-decoration:none;
  cursor:pointer;
  transition: transform .08s ease, background .15s ease;
}
.btn:hover{ background: rgba(255,255,255,.10); }
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: linear-gradient(90deg, rgba(90,167,255,.95), rgba(139,211,255,.95));
  border-color: transparent;
  color:#07101f;
  font-weight:700;
}
body[data-contrast="high"] .btn--primary{
  background:#fff;
  color:#000;
}
.btn--ghost{background:transparent}
.btn--small{padding:9px 12px; border-radius:10px}

.nav{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(11,18,32,.72);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}
.brand__logo{
  width:42px; height:42px;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(90,167,255,.85), rgba(139,211,255,.45));
  box-shadow: var(--shadow);
}
.brand__text{display:flex; flex-direction:column; line-height:1.1}

.nav__toggle{
  display:none;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
}
.nav__toggle-icon{
  display:block;
  width:22px; height:2px;
  background: var(--text);
  position:relative;
}
.nav__toggle-icon::before,
.nav__toggle-icon::after{
  content:"";
  position:absolute;
  left:0;
  width:22px; height:2px;
  background: var(--text);
}
.nav__toggle-icon::before{top:-7px}
.nav__toggle-icon::after{top:7px}

.nav__menu{
  display:flex;
  align-items:center;
  gap:6px;
  list-style:none;
  margin:0;
  padding:0;
}
.nav__item{position:relative}
.nav__link, .dropdown__trigger{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
  background:transparent;
  color:var(--text);
  text-decoration:none;
  cursor:pointer;
}
.nav__link:hover, .dropdown__trigger:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
}

.dropdown__menu{
  position:absolute;
  top: calc(100% + 10px);
  left:0;
  min-width: 260px;
  padding:8px;
  margin:0;
  list-style:none;
  border:1px solid var(--line);
  border-radius:14px;
  background: rgba(15,27,51,.92);
  box-shadow: var(--shadow);
  display:none;
}
.dropdown__menu a{
  display:block;
  padding:10px 10px;
  border-radius:10px;
  text-decoration:none;
}
.dropdown__menu a:hover{background: rgba(255,255,255,.08)}
.dropdown[data-open="true"] .dropdown__menu{display:block}

.hero{
  padding:34px 0 18px;
}
.hero__inner{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:stretch;
}
.hero__copy{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:26px;
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
}
.hero__card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:22px;
  background: rgba(15,27,51,.72);
  box-shadow: var(--shadow);
}
.lead{font-size:1.08rem; color:var(--muted)}
.hero__actions{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px}

.section{padding:22px 0}
.section__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.grid{display:grid; gap:14px}
.grid--3{grid-template-columns: repeat(3, 1fr)}

.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:18px;
  background: rgba(16,31,63,.72);
  box-shadow: var(--shadow);
}
.card p{color:var(--muted)}
.cardlink{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  text-decoration:none;
}
.cardlink:hover{background: rgba(255,255,255,.09)}

.stack{display:grid; gap:10px}
.h3{margin:0 0 10px 0; font-size:1.05rem}

.news{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px;
  background: rgba(255,255,255,.04);
}
.news__thumb{
  height:110px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border:1px dashed rgba(255,255,255,.16);
  margin-bottom:10px;
}
.news__title{margin:0 0 6px 0}
.news__title a{text-decoration:none}
.news__excerpt{color:var(--muted); margin:8px 0 0 0}

.footer{
  margin-top:18px;
  border-top:1px solid var(--line);
  background: rgba(0,0,0,.22);
}
.footer__inner{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  padding:22px 0;
}
.footer__links{
  margin:8px 0 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
}
.footer__links a{color:var(--muted); text-decoration:none}
.footer__links a:hover{color:var(--text)}

.help{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:60;
}
.help__fab{
  border:1px solid var(--line);
  background: rgba(15,27,51,.92);
  color:var(--text);
  padding:12px 14px;
  border-radius:999px;
  box-shadow: var(--shadow);
  cursor:pointer;
}
.help__panel{
  width: min(360px, 92vw);
  margin-top:10px;
  border:1px solid var(--line);
  border-radius: 16px;
  background: rgba(15,27,51,.95);
  box-shadow: var(--shadow);
}
.help__panel-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 12px 8px 12px;
  border-bottom:1px solid var(--line);
}
.help__panel-body{
  padding:12px;
  display:grid;
  gap:10px;
}

/* Responsive */
@media (max-width: 920px){
  .hero__inner{grid-template-columns: 1fr}
  .grid--3{grid-template-columns: 1fr}
  .footer__inner{grid-template-columns: 1fr}
  .nav__toggle{display:inline-flex}
  .nav__menu{
    position:absolute;
    top: 100%;
    left:0;
    right:0;
    padding:10px;
    margin:0;
    background: rgba(11,18,32,.96);
    border-bottom:1px solid var(--line);
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
  }
  .nav[data-open="true"] .nav__menu{display:flex}
  .dropdown__menu{position:static; box-shadow:none; background: rgba(255,255,255,.04)}
}