:root {
  --bg-top: #05070d;
  --bg-bottom: #091019;
  --panel: rgba(10, 15, 24, 0.9);
  --panel-soft: rgba(16, 24, 36, 0.8);
  --line: rgba(104, 134, 176, 0.16);
  --line-strong: rgba(255, 214, 92, 0.22);
  --text: #f7fbff;
  --muted: #8ea0b7;
  --yellow: #ffca45;
  --yellow-soft: rgba(255, 202, 69, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 14% 12%, rgba(42, 96, 72, 0.28), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(48, 82, 142, 0.22), transparent 28%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(circle at center top, rgba(255, 202, 69, 0.05), transparent 35%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.34) 100%);
}

.bg-columns {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.18));
}

.bg-particles {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 9px;
  height: 9px;
  opacity: 0;
  background: linear-gradient(135deg, #7cf0ff, #4bc889 55%, #ffe57b);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  filter: drop-shadow(0 0 8px rgba(124, 240, 255, 0.2));
  animation: particle-rise linear infinite;
}

@keyframes particle-rise {
  0% {
    transform: translateY(30px) scale(0.7) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-140px) scale(1.06) rotate(180deg);
    opacity: 0;
  }
}

.logo-corner {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 210, 92, 0.45);
  background: rgba(11, 17, 28, 0.88);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  z-index: 10;
}

.logo-corner:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(255, 223, 133, 0.92);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.44), 0 0 0 10px rgba(255, 202, 69, 0.1);
}

.logo-corner img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.hero {
  width: calc(100vw - 24px);
  margin: 14px auto 18px;
  padding: 18px 28px 16px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(13, 20, 31, 0.94), rgba(8, 12, 20, 0.9)),
    linear-gradient(90deg, rgba(255, 202, 69, 0.1), transparent);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  text-align: center;
}

.hero-kicker {
  margin: 0;
  color: #7bdcb2;
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.hero-title {
  margin: 8px 0 8px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 0.95;
  font-family: "Impact", "Bahnschrift", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  animation: title-enter 0.7s cubic-bezier(0.22, 0.8, 0.22, 1);
}

.hero-title .yellow {
  display: block;
  color: var(--yellow);
  text-shadow: 0 0 16px rgba(255, 202, 69, 0.38);
}

@keyframes title-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-subtitle {
  max-width: 980px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hero-status {
  margin: 18px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(126, 160, 193, 0.26);
  background: rgba(13, 20, 31, 0.82);
  color: #dcecff;
  font-size: 13px;
}

.container {
  width: calc(100vw - 24px);
  margin: 0 auto 26px;
}

.roles-root {
  display: grid;
  gap: 22px;
}

.hierarchy-row {
  position: relative;
  padding: 16px 14px 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(12, 18, 28, 0.94), rgba(8, 12, 20, 0.88));
  overflow: hidden;
}

.hierarchy-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 999px;
  background: var(--role-color, rgba(255, 202, 69, 0.7));
  box-shadow: 0 0 18px color-mix(in srgb, var(--role-color, #ffca45) 45%, transparent);
}

.hierarchy-row::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--role-color, #ffca45) 12%, transparent), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  pointer-events: none;
}

.hierarchy-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--role-color, #ffca45) 18%, rgba(11, 16, 26, 0.92));
  border: 1px solid color-mix(in srgb, var(--role-color, #ffca45) 46%, rgba(255, 255, 255, 0.08));
  color: var(--role-color, #ffca45);
  font-family: "Impact", "Bahnschrift", sans-serif;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.members-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.member-card {
  width: 146px;
  min-height: 188px;
  padding: 16px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(17, 24, 37, 0.96), rgba(9, 14, 24, 0.96)),
    linear-gradient(180deg, color-mix(in srgb, var(--role-color, #ffca45) 8%, transparent), transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.member-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--role-color, #ffca45) 52%, rgba(255, 255, 255, 0.12));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.member-avatar-wrap {
  width: 84px;
  height: 84px;
  padding: 4px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--role-color, #ffca45) 68%, #fff), rgba(255, 255, 255, 0.12));
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.02);
}

.member-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #0b111a;
}

.member-name {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  word-break: break-word;
}

.member-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--role-color, #ffca45);
  color: #081019;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
}

.footer {
  width: calc(100vw - 24px);
  margin: 0 auto 26px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 15, 24, 0.95), rgba(8, 12, 20, 0.92));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.footer-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.footer-logo:hover {
  transform: translateY(-1px) scale(1.05);
  filter: drop-shadow(0 10px 18px rgba(255, 174, 53, 0.3));
}

.footer-title {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 900;
}

.footer-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer-links a {
  color: #dbeaff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(104, 134, 176, 0.2);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  transform: translateY(-1px);
  color: #fff2bf;
  border-color: rgba(255, 202, 69, 0.42);
}

@media (max-width: 820px) {
  .logo-corner {
    width: 64px;
    height: 64px;
  }

  .logo-corner img {
    width: 46px;
    height: 46px;
  }

  .hero {
    margin-top: 86px;
    padding-inline: 18px;
  }

  .hero-title {
    font-size: clamp(30px, 10vw, 52px);
  }

  .members-grid {
    gap: 12px;
  }

  .member-card {
    width: calc(50% - 8px);
    min-width: 145px;
  }
}

@media (max-width: 560px) {
  .member-card {
    width: 100%;
  }

  .footer {
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
  }
}
