:root {
  --bg: #040711;
  --bg2: #090e1d;
  --surface: rgba(10, 16, 31, 0.92);
  --line: rgba(120, 147, 228, 0.22);
  --ink: #ecf2ff;
  --muted: #94a2c9;
  --primary: #3f75ff;
  --primary-2: #8c4dff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg), var(--bg2));
}

.bg-grid,
.bg-radial,
.bg-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-grid {
  background-image: linear-gradient(to right, rgba(120, 140, 210, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 140, 210, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

.bg-radial {
  background:
    radial-gradient(circle at 18% 18%, rgba(49, 188, 218, 0.18), transparent 34%),
    radial-gradient(circle at 84% 24%, rgba(120, 74, 255, 0.2), transparent 33%);
}

.bg-vignette {
  background: linear-gradient(180deg, rgba(2, 4, 10, 0.2), rgba(2, 4, 10, 0.7));
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1540px, calc(100% - 24px));
  margin: 12px auto;
  display: grid;
  gap: 10px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(20, 25, 47, 0.74);
  backdrop-filter: blur(10px);
  padding: 8px 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.brand span {
  display: grid;
}

.brand strong {
  font-family: "Syne", sans-serif;
  letter-spacing: 0.06em;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: #d8e1ff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hero-stage {
  min-height: calc(100vh - 90px);
  border: 1px solid var(--line);
  border-radius: 22px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(3, 8, 21, 0.68), rgba(3, 8, 21, 0.82)),
    radial-gradient(circle at 50% 45%, rgba(12, 26, 58, 0.8), rgba(3, 8, 20, 0.94));
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-content {
  text-align: center;
  max-width: 920px;
  padding: 20px;
}

.hero-logo {
  width: min(180px, 26vw);
  border-radius: 28px;
  filter: drop-shadow(0 0 22px rgba(116, 176, 255, 0.4));
}

h1,
h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
}

h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 6vw, 4.4rem);
  letter-spacing: 0.04em;
}

.hero-content p {
  margin: 8px 0 0;
  color: #a8b6e4;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.02em;
}

.about-block {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(8, 13, 27, 0.86);
}

.about-card {
  padding: 20px;
}

.about-card h2 {
  margin-bottom: 10px;
}

.about-card p {
  margin: 0 0 12px;
  color: #c3d0f4;
  line-height: 1.65;
  max-width: 86ch;
}

.highlight-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(148, 77, 255, 0.55);
}

.highlight-strip[hidden] {
  display: none !important;
}

.highlight-item {
  background: linear-gradient(135deg, rgba(114, 64, 228, 0.94), rgba(146, 89, 255, 0.94));
  padding: 18px 14px;
  text-align: center;
}

.highlight-item strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 2rem;
}

.highlight-item span {
  color: #efe9ff;
  font-size: 0.95rem;
}

.highlight-strip.disabled {
  opacity: 0.42;
  filter: grayscale(0.25);
  pointer-events: none;
}

.faq-block {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 13, 27, 0.86);
  padding: 18px;
  display: grid;
  gap: 10px;
}

.faq-grid {
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid rgba(120, 147, 228, 0.24);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(9, 16, 31, 0.84);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: #e5ecff;
}

.faq-item p {
  margin: 10px 0 0;
  color: #b8c6ef;
}

.site-footer {
  text-align: center;
  color: #9aa9d4;
  font-size: 0.9rem;
  padding: 8px 0 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 9px 14px;
  color: #e5ecff;
  text-decoration: none;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.btn.primary {
  border-color: rgba(102, 126, 255, 0.55);
  background: linear-gradient(135deg, rgba(63, 117, 255, 0.95), rgba(140, 77, 255, 0.95));
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.stats-panel {
  position: fixed;
  z-index: 25;
  top: 14px;
  right: 14px;
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 24, 0.97);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
  padding: 14px;
  display: grid;
  gap: 12px;
  transform: translateX(calc(100% + 18px));
  transition: transform 180ms ease;
}

.stats-panel.open {
  transform: translateX(0);
}

.stats-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(2, 5, 14, 0.5);
}

.stats-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats-head-actions {
  display: flex;
  gap: 8px;
}

.top-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.stat-card {
  border: 1px solid rgba(134, 156, 228, 0.18);
  border-radius: 14px;
  padding: 10px;
  background: rgba(7, 12, 27, 0.9);
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.stat-value {
  margin: 7px 0 0;
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(134, 156, 228, 0.18);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(134, 156, 228, 0.12);
  font-size: 0.92rem;
}

th {
  color: #a8b7e2;
  font-weight: 700;
}

td {
  color: #e4ecff;
}

.muted {
  color: var(--muted);
}

@media (max-width: 860px) {
  .top-nav {
    display: grid;
    gap: 8px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero-stage {
    min-height: calc(100vh - 145px);
  }

  .top-stats {
    grid-template-columns: 1fr;
  }

  .highlight-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
