:root {
  --bg: #060f20;
  --bg-alt: #0a1a35;
  --surface: rgba(13, 29, 55, 0.64);
  --surface-strong: rgba(10, 24, 48, 0.88);
  --text: #e7f0ff;
  --muted: #a0b8de;
  --accent: #4dd3ff;
  --accent-2: #7f66ff;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(77, 211, 255, 0.2), transparent 60%),
    radial-gradient(900px 520px at 95% -10%, rgba(127, 102, 255, 0.2), transparent 58%),
    linear-gradient(180deg, var(--bg), var(--bg-alt));
}

#fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

#cursor-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(90, 180, 255, 0.18) 0%, rgba(90, 180, 255, 0.03) 45%, transparent 75%);
  transition: opacity 0.25s ease;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    radial-gradient(transparent 0, transparent 1px, rgba(255, 255, 255, 1) 1px, rgba(255, 255, 255, 1) 2px);
  background-size: 3px 3px;
  z-index: 1;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(6, 15, 32, 0.68);
  border-bottom: 1px solid var(--line-soft);
  z-index: 30;
}

.topbar__inner {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand strong {
  display: block;
  letter-spacing: 0.04em;
}

.brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(77, 211, 255, 0.3);
}

.topbar__nav {
  display: flex;
  gap: 16px;
}

.topbar__nav a {
  color: #cfe1ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.hero {
  position: relative;
  padding: 78px 0 26px;
  z-index: 2;
}

.hero__bg {
  position: absolute;
  inset: -90px 0 auto;
  height: 430px;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 40%, rgba(77, 211, 255, 0.3), transparent 55%),
    radial-gradient(circle at 75% 33%, rgba(127, 102, 255, 0.26), transparent 57%);
  filter: blur(20px);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
}

.hero h1 {
  margin: 0 0 14px;
  line-height: 1.02;
  font-size: clamp(36px, 5vw, 64px);
  max-width: 14ch;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: #d6e5ff;
  background: rgba(255, 255, 255, 0.06);
}

.hero__org {
  margin: 0;
  color: #dbe7ff;
  font-size: 18px;
}

.hero__lead {
  margin: 14px 0 28px;
  max-width: 66ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-card,
.panel,
.feature {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.hero-card::after,
.panel::after,
.feature::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    350px circle at var(--mx, 50%) var(--my, 50%),
    rgba(110, 198, 255, 0.2),
    transparent 48%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.hero-card:hover::after,
.panel:hover::after,
.feature:hover::after {
  opacity: 1;
}

.hero-card {
  padding: 24px;
  align-self: stretch;
  animation: float-card 6s ease-in-out infinite;
}

.hero-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.hero-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: #dce8ff;
  line-height: 1.55;
}

.section {
  padding: 18px 0 30px;
  position: relative;
  z-index: 2;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel {
  padding: 24px;
}

.panel h2 {
  margin: 0 0 8px;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stats div {
  padding: 14px 12px;
  border-radius: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--line-soft);
}

.stats span {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #f3f8ff;
  margin-bottom: 4px;
}

.stats small {
  color: var(--muted);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  padding: 20px;
}

.feature h3 {
  margin: 0 0 8px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.panel--registry {
  padding: 24px;
}

.section__head {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.section__head h2 {
  margin: 0;
}

.subtitle {
  margin: 6px 0 0;
  color: var(--muted);
}

.meta {
  color: var(--muted);
  margin-bottom: 12px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn--primary {
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.btn--ghost {
  padding: 12px 20px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.btn--small {
  padding: 10px 14px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: auto;
  background: rgba(2, 10, 23, 0.54);
  position: relative;
  z-index: 2;
}

.registry-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.registry-table th,
.registry-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 12px;
  text-align: left;
  vertical-align: top;
}

.registry-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #c8dbff;
  background: rgba(255, 255, 255, 0.02);
}

.registry-table td {
  color: #e8efff;
}

.registry-table tr:hover td {
  background: rgba(255, 255, 255, 0.05);
}

.registry-table tr:last-child td {
  border-bottom: none;
}

.doc-link {
  color: #98e5ff;
  text-decoration: none;
  font-weight: 700;
}

.pagination {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pagination__info {
  color: var(--muted);
  margin-right: 10px;
  font-size: 14px;
}

.pagination__btn {
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.pagination__btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination__btn.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.footer {
  margin-top: 30px;
  border-top: 1px solid var(--line-soft);
  position: relative;
  z-index: 2;
}

.footer__inner {
  min-height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer a {
  color: #b2d7ff;
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    filter 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 980px) {
  .topbar__nav {
    display: none;
  }

  .hero__grid,
  .split,
  .cards-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
  }

  #cursor-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card {
    animation: none;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
