:root {
  --bg: #050711;
  --bg-2: #0b1030;
  --panel: rgba(11, 15, 36, 0.92);
  --panel-soft: rgba(14, 18, 44, 0.84);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --pink: #ff42b3;
  --purple: #925cff;
  --cyan: #22d7ff;
  --orange: #ff9162;
  --line: rgba(255, 95, 194, 0.38);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.48);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(255, 66, 179, 0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(34, 215, 255, 0.12), transparent 25%),
    linear-gradient(180deg, #040611 0%, #070c1e 40%, #04050b 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 62, 181, 0.28), transparent 12%),
    linear-gradient(transparent 0 78%, rgba(10, 14, 33, 0.28) 78% 100%);
}

body::after {
  opacity: 0.28;
  background:
    linear-gradient(180deg, transparent 0 67%, rgba(255,255,255,0.02) 67% 68%, transparent 68% 100%),
    linear-gradient(90deg, transparent 0 7%, rgba(255,255,255,0.03) 7% 8%, transparent 8% 20%, rgba(255,255,255,0.025) 20% 21%, transparent 21% 36%, rgba(255,255,255,0.02) 36% 37%, transparent 37% 52%, rgba(255,255,255,0.03) 52% 53%, transparent 53% 71%, rgba(255,255,255,0.02) 71% 72%, transparent 72% 100%);
  transform: translateY(54%);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.tree-card {
  width: 100%;
  max-width: 430px;
  padding: 24px 14px 18px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(8, 10, 25, 0.95), rgba(6, 9, 22, 0.96));
  border: 1px solid rgba(255, 79, 187, 0.35);
  box-shadow:
    0 0 0 1px rgba(125, 93, 255, 0.12) inset,
    0 0 35px rgba(255, 58, 173, 0.12),
    0 0 50px rgba(34, 215, 255, 0.06),
    var(--shadow);
}

.hero {
  position: relative;
  padding: 20px 16px 26px;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(5, 7, 17, 0.30), rgba(5, 7, 17, 0.66) 56%, rgba(5, 7, 17, 0.94) 100%),
    radial-gradient(circle at top center, rgba(255, 75, 193, 0.12), transparent 45%),
    url('assets/hero-neon-bg.png') center bottom / cover no-repeat;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.hero::before {
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 66, 179, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(3, 5, 14, 0.62));
}

.hero::after {
  background: linear-gradient(90deg, rgba(255, 66, 179, 0.18), transparent 28%, transparent 70%, rgba(34, 215, 255, 0.14));
  mix-blend-mode: screen;
  opacity: 0.62;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #ff78cb;
}

.title {
  margin: 0;
  text-align: center;
  font-size: clamp(3.3rem, 13vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ff62b7 0%, #ff9c62 34%, #b57fff 68%, #65e2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(255, 78, 182, 0.16);
}

.title span {
  background: linear-gradient(135deg, #ba7fff 0%, #65e2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  max-width: 280px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.subtitle strong {
  color: #ff78cb;
  font-weight: 700;
}

.steps {
  margin-top: 14px;
  padding: 14px 14px 15px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 66, 179, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(8, 11, 32, 0.96), rgba(8, 11, 30, 0.90));
  border: 1px solid rgba(255, 66, 179, 0.66);
  box-shadow:
    inset 0 0 0 1px rgba(34, 215, 255, 0.04),
    0 0 20px rgba(255, 66, 179, 0.10);
}

.steps h2 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 800;
  color: #ffffff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: start;
}

.step-item {
  position: relative;
  text-align: center;
  min-width: 0;
  padding: 0 7px;
}

.step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 0;
  width: 1px;
  height: 56px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 16%,
    rgba(255, 255, 255, 0.16) 84%,
    transparent 100%
  );
  opacity: 0.72;
}

.step-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.045), transparent 58%),
    rgba(20, 22, 48, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.018),
    0 0 16px rgba(255, 66, 179, 0.04);
}

.step-icon img {
  width: 23px;
  height: 23px;
  display: block;
}

.step-icon-cyan {
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.018),
    0 0 16px rgba(34, 215, 255, 0.05);
}

.step-number {
  width: 24px;
  height: 24px;
  margin: 0 auto 7px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 66, 179, 0.92);
  color: #ff67c8;
  background: rgba(10, 12, 32, 0.96);
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 800;
  box-shadow:
    0 0 10px rgba(255, 66, 179, 0.18),
    inset 0 0 8px rgba(255, 66, 179, 0.05);
}

.step-item:nth-child(3) .step-number {
  border-color: rgba(34, 215, 255, 0.72);
  color: #29d8ff;
  box-shadow:
    0 0 10px rgba(34, 215, 255, 0.16),
    inset 0 0 8px rgba(34, 215, 255, 0.04);
}

.step-item p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.18;
  color: rgba(255, 255, 255, 0.86);
}

.links-list {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.links-group {
  display: grid;
  gap: 10px;
}

.links-group-required {
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 73, 181, 0.1), rgba(34, 215, 255, 0.04));
  border: 1px solid rgba(255, 73, 181, 0.24);
  box-shadow: inset 0 0 0 1px rgba(34, 215, 255, 0.05);
}

.links-heading {
  padding: 2px 4px 4px;
}

.links-heading h2,
.links-heading p {
  margin: 0;
}

.links-heading h2 {
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 800;
}

.links-heading p:not(.section-kicker) {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.35;
}

.section-kicker {
  margin-bottom: 5px;
  color: #24d7ff;
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.links-heading-optional {
  padding-top: 0;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  padding: 12px 14px;
  border-radius: 22px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, rgba(8, 12, 31, 0.92), rgba(9, 12, 29, 0.8));
  border: 1px solid rgba(255, 73, 181, 0.28);
  box-shadow: inset 0 0 0 1px rgba(120, 90, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 95, 194, 0.55);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(255, 62, 181, 0.08);
}

.link-card:active {
  transform: scale(0.985);
}

.link-card:focus-visible {
  outline: 2px solid #7ce9ff;
  outline-offset: 3px;
}

.link-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.avatar {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.avatar-image {
  object-fit: cover;
  background: transparent;
  padding: 0;
}

.link-title {
  min-width: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.link-arrow {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 76, 190, 0.55);
  color: #ff8dd4;
  font-size: 1.4rem;
}

.page-footer {
  padding-top: 14px;
}

.page-footer p {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.68);
}

@media (min-width: 480px) {
  .tree-card {
    max-width: 500px;
    padding: 24px 18px 20px;
  }

  .hero,
  .steps {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (min-width: 768px) {
  .page {
    padding: 28px;
  }

  .tree-card {
    max-width: 560px;
  }

  .title {
    font-size: clamp(4.2rem, 9vw, 5.6rem);
  }

  .subtitle {
    max-width: 380px;
  }
}
