:root{
  --bg:#0b0f19;
  --surface:#111827;
  --surface2:#0f172a;
  --stroke:rgba(255,255,255,.10);
  --text:#e5e7eb;
  --muted:rgba(229,231,235,.75);
  --muted2:rgba(229,231,235,.55);
  --shadow: 0 10px 24px rgba(0,0,0,.35);
  --shadow2: 0 6px 14px rgba(0,0,0,.28);
  --focus:#93c5fd;
  --accent:#60a5fa;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.5;
}

.container{
  width:min(1100px, calc(100% - 40px));
  margin-inline:auto;
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  text-decoration:none;
  font-weight:700;
  letter-spacing:-.02em;
}
.brand__mark{
  width:40px;
  height:40px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background: var(--surface);
  border:1px solid rgba(255,255,255,.10);
}
.brand__mark--sm{
  width:32px;
  height:32px;
  border-radius:10px;
  box-shadow:none;
}
.brand__text{ font-size:18px; }

.header__right{ display:flex; align-items:center; gap:12px; }
.lang{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
}
.lang__label{ color: var(--muted2); font-weight:700; font-size:12px; }
.lang__select{
  appearance:none;
  background: transparent;
  border:1px solid rgba(255,255,255,.10);
  color: var(--text);
  padding:6px 10px;
  border-radius: 10px;
  font-weight:800;
  font-size:12px;
}
.lang__select:focus-visible{
  outline: 3px solid rgba(147,197,253,.25);
  outline-offset: 2px;
}

.hero{
  padding:26px 0 22px;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:26px;
  align-items:start;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.02);
  color:var(--muted);
  font-weight:700;
  font-size:13px;
}

h1{
  margin:14px 0 10px;
  font-size: clamp(34px, 3.5vw, 52px);
  line-height:1.05;
  letter-spacing:-.04em;
}

.lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size:16px;
  max-width: 52ch;
}
.lead strong{ color: var(--text); font-weight:700; }

.hero__actions{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin: 18px 0 18px;
}

.btn{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.02);
  color:var(--text);
  padding:12px 14px;
  border-radius:14px;
  font-weight:700;
  font-size:14px;
  text-decoration:none;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn--sm{
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.btn:active{ transform: translateY(0px); }
.btn:focus-visible{
  outline: 3px solid rgba(147,197,253,.25);
  outline-offset: 2px;
}
.btn--primary{
  border-color: rgba(96,165,250,.55);
  background: rgba(96,165,250,.16);
  box-shadow: var(--shadow2);
}
.btn--primary:hover{
  border-color: rgba(96,165,250,.75);
  background: rgba(96,165,250,.20);
}
.btn--ghost{
  background: rgba(255,255,255,.02);
}

.metrics{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 8px;
}
.metric{
  padding:10px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  min-width: 110px;
}
.metric__k{
  font-size:18px;
  font-weight:800;
  letter-spacing:-.03em;
}
.metric__v{
  font-size:12px;
  color:var(--muted2);
  font-weight:700;
}

.panel{
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  background: var(--surface2);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel__header{
  padding:18px 18px 14px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.panel__title{ font-weight:800; letter-spacing:-.03em; }
.panel__subtitle{ color:var(--muted2); font-weight:600; font-size:13px; margin-top:2px; }
.status{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  font-weight:700;
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
}
.status__dot{
  width:8px;height:8px;border-radius:99px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.10);
}

.panel__grid{
  display:grid;
  gap:12px;
  padding:14px;
}

.card{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px 14px 12px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  text-decoration:none;
  color:var(--text);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background: rgba(12,16,34,.62);
}
.card:focus-visible{
  outline: 3px solid rgba(167,139,250,.35);
  outline-offset: 2px;
}
.card__top{
  display:flex;
  gap:12px;
  align-items:center;
}
.icon{
  width:42px;
  height:42px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}
.icon--code{ border-color: rgba(96,165,250,.30); }
.icon--eng{ border-color: rgba(34,197,94,.30); }
.icon--abi{ border-color: rgba(249,115,22,.30); }
.card__meta{ min-width:0; }
.card__title{ font-weight:900; letter-spacing:-.03em; }
.card__url{ color:var(--muted2); font-weight:700; font-size:12px; margin-top:1px; }
.card__desc{
  margin:0;
  color:var(--muted);
  font-weight:600;
  font-size:13px;
}
.card__cta{
  margin-top:2px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color: rgba(234,240,255,.92);
  font-weight:800;
  font-size:13px;
}
.arrow{ opacity:.9; }

.panel__footer{
  padding: 0 14px 16px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.note{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding: 12px;
}
.note__title{ font-weight:900; letter-spacing:-.03em; font-size:13px; }
.note__text{ margin-top:4px; color:var(--muted2); font-weight:650; font-size:12px; line-height:1.45; }

.footer{
  padding: 18px 0 30px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  border-top:1px solid rgba(255,255,255,.08);
}
.footer__left{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.footer__brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.footer__text{ font-weight:900; letter-spacing:-.02em; }
.footer__muted{ color:var(--muted2); font-weight:650; font-size:12px; }
.footer__right{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.footer__link{
  color:var(--muted);
  text-decoration:none;
  font-weight:750;
  font-size:13px;
  padding:6px 10px;
  border-radius:12px;
  border:1px solid transparent;
}
.footer__link:hover{
  color:var(--text);
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(17,24,39,.92);
  border:1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow2);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 750;
  font-size: 13px;
  opacity: 0;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
  backdrop-filter: blur(10px);
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.is-on{
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

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