:root {
  --bg: #0b1020;
  --panel: #10192b;
  --panel-2: #0f1730;
  --text: #e8eef8;
  --muted: #9fb2d1;

  --accent: #66a3ff;
  --accent-2: #6ee7ff;

  --radius: 16px;
  --radius-lg: 22px;

  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-6: 28px;
  --space-8: 36px;

  --shadow-1: 0 16px 50px rgba(6, 14, 35, .45);
  --shadow-2: 0 10px 32px rgba(15, 35, 75, .50);

  --glass: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  --stroke: 1px solid rgba(255, 255, 255, .06);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 18px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  -webkit-font-smoothing: antialiased;
}

.bg-auras {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 120%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(1300px 650px at 15% -10%, #1b2d5a55 0%, transparent 60%),
    radial-gradient(1000px 560px at 90% 10%, #0c6abf44 0%, transparent 60%),
    radial-gradient(900px 480px at 50% 120%, #0aa7c844 0%, transparent 60%);
  animation: bgPulse 10s ease-in-out infinite;
  filter: saturate(1.05);
}

@keyframes bgPulse {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.01);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(10, 16, 34, .65), rgba(10, 16, 34, .25));
  border-bottom: var(--stroke);
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 16px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: var(--glass);
  border: var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  font-weight: 700;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.nav-btn.is-active {
  background: linear-gradient(180deg, rgba(116, 173, 255, .22), rgba(116, 173, 255, .08));
  border-color: rgba(118, 178, 255, .4);
}

.wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(20px, 3.2vw, 40px);
}

.section-title {
  font-size: clamp(20px, 1.4vw + 10px, 28px);
  margin: 0 0 var(--space-4) 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: "";
  inline-size: 12px;
  block-size: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 24px rgba(102, 163, 255, .4);
}

.panel {
  background: var(--panel);
  border: var(--stroke);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-1);
}
.grid-4 {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
}

.grid-5 {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.grid-pyramid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

@media (min-width: 1025px) {
  .grid-pyramid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .grid-pyramid > :nth-child(1) {
    grid-column: 1 / span 2;
  }
  .grid-pyramid > :nth-child(2) {
    grid-column: 3 / span 2;
  }
  .grid-pyramid > :nth-child(3) {
    grid-column: 5 / span 2;
  }

  .grid-pyramid > :nth-child(4) {
    grid-column: 2 / span 2;
  }
  .grid-pyramid > :nth-child(5) {
    grid-column: 4 / span 2;
  }
}

@media (max-width: 1024px) and (min-width: 641px) {
  .grid-pyramid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-pyramid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--panel);
  margin-bottom: 10px;
  border: var(--stroke);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-2);
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .45), 0 0 0 1px rgba(116, 173, 255, .22) inset;
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background:
    radial-gradient(420px 180px at 15% -10%, rgba(102, 163, 255, .22), transparent 60%),
    radial-gradient(360px 160px at 120% 20%, rgba(110, 231, 255, .16), transparent 60%);
  filter: blur(10px);
}

.row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.avatar {
  inline-size: 64px;
  block-size: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #cfe0ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}

.avatar.is-circle {
  border-radius: 999px;
}

.name {
  font-weight: 800;
  letter-spacing: .2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--glass);
  border: var(--stroke);
  font-size: 14px;
  color: var(--muted);
}

.media {
  inline-size: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rules-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-link:hover .card {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}
.rule {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--glass);
  border: var(--stroke);
}

.rule .dot {
  inline-size: 10px;
  block-size: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(102, 163, 255, .35);
  margin-top: 8px;
}

.network-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 25px;
  border-radius: 999px;
  background: var(--glass);
  border: var(--stroke);
  font-weight: 700;
}

.chip .dot {
  inline-size: 10px;
  block-size: 10px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
}

.chip.ton {
  color: #09a8fd;
}

.chip.sol {
  color: #9900ff;
}

.chip.arb {
  color: #0be3ff;
}

.perks {
  display: grid;
  gap: 12px;
}

.perk {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--panel);
  border: var(--stroke);
  border-radius: 14px;
  padding: 12px 14px;
}

.perk .icon {
  inline-size: 56px;
  block-size: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
}

.perk .title {
  font-weight: 800;
}

.perk .desc {
  color: var(--muted);
}

.section {
  margin-block: clamp(24px, 6vw, 56px);
}

.panel,
.card,
.perk {
  animation: fadeIn .5s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.pixel {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 9999;
  background: #66a3ff;
  --dx: 0px;
  --dy: 0px;
  --life: 700ms;
  --scale: .6;
  animation: pixelDrift var(--life) ease-out forwards;
  will-change: transform, opacity;
  transform: translate(-50%, -50%); 
}

.about-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 20px;
}

.elegia-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px 40px;
  width: min(800px, 90%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.elegia-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.elegia-card .row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 15px;
}

.elegia-card .name {
  font-size: 1.4em;
  font-weight: 600;
}

.elegia-card .muted {
  font-size: 0.9em;
  opacity: 0.8;
  margin-top: 4px;
}

.elegia-card .social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.elegia-card .social-icons a {
  width: 28px;
  height: 28px;
  color: var(--muted, #b5b5b5);
  transition: color 0.2s ease, transform 0.2s ease;
}

.elegia-card .social-icons a:hover {
  color: var(--accent, #7289da);
  transform: scale(1.15);
}

.elegia-card .social-icons svg {
  width: 100%;
  height: 100%;
}


@keyframes pixelDrift {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(var(--scale)); }
}

#glowGrid {
  position: fixed;
  inset: 0;
  z-index: -2;          
  pointer-events: none; 
  background: var(--bg);
  image-rendering: pixelated; 
}
