:root {
  --bg: #101018;
  --accent: #7564FF;
  --light: #ECE3FF;
  --text: #F4F1FF;
  --muted: rgba(236, 227, 255, 0.68);
  --line: rgba(236, 227, 255, 0.10);
  --card-bg: rgba(40, 34, 78, 0.38);
  --card-border: rgba(150, 132, 255, 0.24);
  --radius: 18px;
  --gutter: 24px;
  --maxw: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Background glow (planet arc top-right) ---------- */
.glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.glow::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -380px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 50%, rgba(117, 100, 255, 0.42), rgba(70, 40, 190, 0.18) 45%, transparent 70%);
  filter: blur(40px);
}
.glow::after {
  content: "";
  position: absolute;
  top: 60px;
  right: -760px;
  width: 1000px;
  height: 1000px;
  border-radius: 50%;
  border-top: 2px solid rgba(225, 215, 255, 0.9);
  border-left: 1px solid rgba(190, 170, 255, 0.25);
  box-shadow: -4px -6px 24px rgba(160, 140, 255, 0.5), inset 8px 14px 50px rgba(117, 100, 255, 0.3);
  transform: rotate(-30deg);
  background: radial-gradient(circle at 30% 10%, rgba(117, 100, 255, 0.16), rgba(16, 16, 24, 0.0) 50%);
}

header, main, footer { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(16, 16, 24, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 19px;
  white-space: nowrap;
}
.logo__mark { width: 30px; height: 30px; flex: none; }

.nav { display: flex; gap: 40px; }
.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  opacity: 0.9;
  transition: color .2s, opacity .2s;
}
.nav a:hover { color: var(--light); opacity: 1; text-shadow: 0 0 12px rgba(117,100,255,.8); }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(135deg, rgba(60, 50, 120, 0.42), rgba(30, 26, 60, 0.38));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 18px;
  border-radius: 999px;
  background: rgba(117, 100, 255, 0.28);
  border: 1px solid rgba(150, 132, 255, 0.25);
  color: var(--light);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.badge--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px rgba(117, 100, 255, 0.55);
}

/* ---------- Hero ---------- */
.hero { padding-top: 44px; }
.hero__title {
  margin: 0 0 22px;
  font-size: clamp(38px, 7.2vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #FFFFFF 40%, var(--light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.status {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 690px;
  padding: 24px 40px 28px 36px;
  border-color: rgba(140, 120, 255, 0.5);
  background: linear-gradient(120deg, rgba(117, 100, 255, 0.22), rgba(40, 32, 90, 0.35) 60%, rgba(117, 100, 255, 0.12));
}
.status__body { flex: 1; min-width: 0; }
.status__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #A99BFF;
}
.status__head .badge { font-size: 12px; padding: 3px 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.status__title {
  margin: 4px 0 16px;
  font-size: clamp(20px, 3vw, 27px);
  font-weight: 700;
  line-height: 1.25;
}

.progress {
  position: relative;
  height: 5px;
  border-radius: 999px;
  background: rgba(236, 227, 255, 0.16);
}
.progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(117, 100, 255, 0.35), var(--accent) 45%, #B6A9FF);
  box-shadow: 0 0 12px rgba(117, 100, 255, 0.9);
}
.progress__fill::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.7), 0 0 22px 6px rgba(117, 100, 255, 0.85);
}

/* ---------- Sections ---------- */
.section { padding-top: 44px; }
.section:last-child { padding-bottom: 80px; }
.section__title {
  margin: 0 0 18px;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}

/* Details table */
.details { margin: 0; padding: 6px 24px 6px 36px; }
.details__row {
  display: grid;
  grid-template-columns: minmax(180px, 288px) 1fr;
  gap: 8px 24px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.details__row:last-child { border-bottom: 0; }
.details dt { font-size: 15px; color: var(--muted); font-weight: 500; }
.details dd {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: normal;
}
.link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(236, 227, 255, 0.6);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
.link:hover { color: #B6A9FF; text-decoration-color: var(--accent); }

/* Documents */
.docs { list-style: none; margin: 0; padding: 4px 24px; }
.docs > li { border-bottom: 1px solid var(--line); }
.docs > li:last-child { border-bottom: 0; }
.doc {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 14px 0;
  text-decoration: none;
  color: inherit;
}
.doc-wrap { padding: 0; }
.doc__icon {
  flex: none;
  width: 110px;
  display: flex;
  justify-content: center;
  padding-right: 24px;
  margin-right: 30px;
  border-right: 1px solid var(--line);
  color: #D9CCFF;
  align-self: stretch;
  align-items: center;
}
.doc__icon svg { width: 44px; height: 54px; filter: drop-shadow(0 0 8px rgba(117, 100, 255, 0.45)); }
.doc__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.doc__title { font-size: 18px; font-weight: 500; line-height: 1.35; }
.doc:not(.doc--ready) .doc__status { cursor: not-allowed; }
.doc--ready { cursor: pointer; }
.doc--ready:hover .doc__title { color: #B6A9FF; }

/* ---------- 404 ---------- */
.notfound {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 80px;
}
.notfound__card {
  width: 100%;
  max-width: 560px;
  padding: 40px 32px 44px;
  text-align: center;
  border-color: rgba(140, 120, 255, 0.5);
  background: linear-gradient(140deg, rgba(117, 100, 255, 0.22), rgba(40, 32, 90, 0.35) 60%, rgba(117, 100, 255, 0.12));
}
.notfound__code {
  margin: 0;
  font-size: clamp(88px, 18vw, 140px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #FFFFFF 20%, #A99BFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(117, 100, 255, 0.55));
}
.notfound__title { margin: 12px 0 8px; font-size: clamp(22px, 3.4vw, 28px); font-weight: 700; line-height: 1.25; }
.notfound__text { margin: 0 0 28px; color: var(--muted); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(117, 100, 255, 0.55);
  transition: background .2s, box-shadow .2s;
}
.button:hover { background: #8676FF; box-shadow: 0 0 28px rgba(117, 100, 255, 0.8); }

/* ---------- Footer ---------- */
.footer {
  margin-top: auto;
  border-top: 1px solid rgba(150, 132, 255, 0.35);
  background:
    radial-gradient(ellipse 60% 120% at 0% 0%, rgba(117, 100, 255, 0.45), transparent 60%),
    radial-gradient(ellipse 50% 120% at 100% 100%, rgba(117, 100, 255, 0.40), transparent 60%),
    linear-gradient(180deg, #2A1F6B 0%, #1B1545 55%, #140F33 100%);
  padding: 36px 0 26px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(236, 227, 255, 0.18);
}
.footer__company { max-width: 600px; }
.logo--footer { font-size: 20px; margin-bottom: 14px; }
.footer__ids, .footer__addr { margin: 0; font-size: 16px; color: var(--light); }
.footer__ids { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; }
.footer__addr { overflow-wrap: anywhere; }
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 70px;
  min-width: 260px;
  border-left: 1px solid rgba(236, 227, 255, 0.18);
}
.footer__nav-title { margin: 0 0 6px; font-weight: 700; font-size: 19px; }
.footer__nav a { text-decoration: none; color: var(--light); padding-left: 4px; }
.footer__nav a:hover { color: #fff; text-shadow: 0 0 12px rgba(117,100,255,.9); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
}
.footer__warning { display: flex; align-items: center; gap: 18px; }
.footer__warning svg { flex: none; width: 26px; height: 26px; color: var(--light); }
.footer__warning p, .footer__copy { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.footer__copy { white-space: nowrap; color: var(--light); }

/* ---------- Accessibility ---------- */
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Tablet ---------- */
@media (max-width: 860px) {
  .details { padding: 6px 22px; }
  .details__row { grid-template-columns: 190px 1fr; }
  .footer__nav { padding-left: 32px; min-width: 0; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  :root { --gutter: 16px; --radius: 16px; }
  html { scroll-padding-top: 72px; }
  .header__inner { height: 58px; }
  .logo { font-size: 15px; gap: 8px; }
  .logo__mark { width: 24px; height: 24px; }
  .nav { gap: 18px; }
  .nav a { font-size: 14px; }

  .hero { padding-top: 30px; }
  .status { padding: 18px 20px 22px; }
  .status__label { font-size: 11px; }

  .section { padding-top: 36px; }
  .details { padding: 4px 18px; }
  .details__row { grid-template-columns: 1fr; gap: 3px; padding: 12px 0; }
  .details dt { font-size: 13px; }
  .details dd { font-size: 15px; }

  .docs { padding: 4px 16px; }
  .doc__icon { width: 56px; padding-right: 14px; margin-right: 16px; }
  .doc__icon svg { width: 32px; height: 40px; }
  .doc__title { font-size: 15.5px; }
  .badge { font-size: 13px; padding: 4px 14px; }

  .footer__top { grid-template-columns: 1fr; gap: 24px; padding-bottom: 26px; }
  .footer__nav { border-left: 0; padding-left: 0; border-top: 1px solid rgba(236,227,255,.18); padding-top: 20px; }
  .footer__ids, .footer__addr { font-size: 14px; }
  .logo--footer { font-size: 17px; }
  .footer__warning { align-items: flex-start; gap: 12px; }
  .footer__copy { white-space: normal; }
  .glow::before { right: -480px; }
  .glow::after { right: -760px; top: 40px; }
}

@media (max-width: 360px) {
  .logo__text { font-size: 13px; }
  .nav { gap: 12px; }
}
