/* ── Colour tokens (matching app_colors.dart) ── */
:root {
  --bg:             #090B13;
  --surface:        #10142A;
  --surface-alt:    #181D3A;
  --primary:        #4A3FBE;
  --accent:         #7B72D8;
  --gradient-start: #5B4FCF;
  --gradient-end:   #9B59B6;
  --highlight:      #FFC857;
  --highlight-deep: #f3b72f;
  --border:         #2A2F5C;
  --text:           #F5F7FF;
  --muted:          #B6BED8;
  --ok:             #2e7d32;
}

* {
  box-sizing: border-box;
}

/* ── Base ── */
html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100%;
  overflow-x: hidden;
}

/* ── Animated background — multi-layer blob system ── */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(420px circle at 12% 18%, rgba(91, 79, 207, 0.18), transparent 65%),
    radial-gradient(340px circle at 88% 12%, rgba(155, 89, 182, 0.14), transparent 65%),
    radial-gradient(280px circle at 8% 82%, rgba(155, 89, 182, 0.11), transparent 65%),
    radial-gradient(200px circle at 70% 75%, rgba(91, 79, 207, 0.08), transparent 65%),
    var(--bg);
  animation: blobDrift1 8s ease-in-out infinite alternate;
}

body::after {
  background:
    radial-gradient(300px circle at 65% 30%, rgba(123, 114, 216, 0.07), transparent 60%),
    radial-gradient(220px circle at 30% 60%, rgba(155, 89, 182, 0.06), transparent 60%),
    radial-gradient(180px circle at 85% 70%, rgba(74, 63, 190, 0.05), transparent 60%);
  animation: blobDrift2 12s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes blobDrift1 {
  0%   { background-position: 0% 0%, 100% 0%, 0% 100%, 70% 75%, 0 0; }
  100% { background-position: 6% 10%, 90% 8%, 5% 88%, 75% 68%, 0 0; }
}

@keyframes blobDrift2 {
  0%   { background-position: 65% 30%, 30% 60%, 85% 70%; }
  100% { background-position: 58% 22%, 36% 68%, 78% 78%; }
}

/* ── Grid overlay (matches AuthFlowPanelShell 48px grid) ── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(91, 79, 207, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 79, 207, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
}

/* ── Floating particle dust ── */
.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(123, 114, 216, 0.40);
  animation: particleFloat linear infinite;
}

.particle:nth-child(odd) {
  background: rgba(255, 200, 87, 0.25);
}

@keyframes particleFloat {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

a {
  color: var(--highlight);
  text-decoration: none;
}

a:hover {
  color: #ffd57b;
}

.container {
  width: min(1040px, 92%);
  margin: 0 auto;
}

/* ── Header — glass morphism ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(9, 11, 19, 0.72);
  border-bottom: 1px solid rgba(91, 79, 207, 0.30);
  box-shadow: 0 4px 20px rgba(91, 79, 207, 0.12);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 96px;
}

.brand {
  color: #fff;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 78px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(91, 79, 207, 0.30));
  transition: filter 300ms ease;
}

.brand:hover .brand-logo {
  filter: drop-shadow(0 0 18px rgba(91, 79, 207, 0.50));
}

.links {
  display: flex;
  gap: 14px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(91, 79, 207, 0.30);
  background: linear-gradient(160deg, rgba(24, 29, 58, 0.90), rgba(16, 20, 42, 0.92));
  color: var(--text);
  cursor: pointer;
  padding: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.nav-toggle:hover {
  border-color: rgba(123, 114, 216, 0.50);
  box-shadow: 0 0 12px rgba(91, 79, 207, 0.20);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.links a {
  color: var(--text);
  opacity: 0.9;
  position: relative;
  transition: text-shadow 200ms ease, color 200ms ease;
}

.links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--highlight), var(--highlight-deep));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 250ms ease-out;
}

.links a:hover {
  color: var(--highlight);
  text-shadow: 0 0 14px rgba(255, 200, 87, 0.45);
}

.links a:hover::after {
  transform: scaleX(1);
}

.links a[aria-current="page"] {
  color: var(--highlight);
}

.links a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 350ms ease-out, transform 350ms ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero ── */
.hero {
  padding: 82px 0 30px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--highlight);
  font-weight: 700;
  letter-spacing: 2.5px;
  font-size: 13px;
  text-transform: uppercase;
  animation: fadeSlideUp 600ms ease-out backwards;
  text-shadow: 0 0 20px rgba(255, 200, 87, 0.30);
}

/* Animated gradient text on hero h1 */
.hero h1 {
  margin: 0;
  font-size: clamp(30px, 6.5vw, 56px);
  font-weight: 900;
  line-height: 1.06;
  max-width: 800px;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #e0dcff 25%,
    var(--accent) 50%,
    var(--highlight) 75%,
    #ffffff 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeSlideUp 600ms ease-out 100ms backwards, textShimmer 6s ease-in-out infinite;
}

@keyframes textShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

h1 {
  margin: 0;
  font-size: clamp(30px, 6.5vw, 52px);
  line-height: 1.08;
  max-width: 780px;
}

.subtext {
  margin: 18px 0 0;
  color: var(--muted);
  max-width: 660px;
  line-height: 1.65;
  font-size: 17px;
  animation: fadeSlideUp 600ms ease-out 200ms backwards;
}

.cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: fadeSlideUp 600ms ease-out 300ms backwards;
}

/* ── Buttons — match AppPrimaryButton ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  min-width: 260px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 170ms ease-out, box-shadow 170ms ease-out, border-color 170ms ease-out;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(160deg, #3D35A0, #4A3FBE);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow:
    0 4px 20px rgba(91, 79, 207, 0.35),
    0 8px 28px rgba(10, 14, 33, 0.40);
  animation: btnPulse 3s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(91, 79, 207, 0.35), 0 8px 28px rgba(10, 14, 33, 0.40); }
  50%      { box-shadow: 0 4px 28px rgba(91, 79, 207, 0.55), 0 8px 36px rgba(10, 14, 33, 0.45); }
}

.btn-primary:hover {
  box-shadow:
    0 6px 32px rgba(91, 79, 207, 0.55),
    0 10px 36px rgba(10, 14, 33, 0.45);
  animation: none;
}

.btn-secondary {
  color: #ffffff;
  background: linear-gradient(160deg, rgba(24, 29, 58, 0.80), rgba(16, 20, 42, 0.80));
  border-color: rgba(91, 79, 207, 0.30);
  box-shadow: 0 8px 20px rgba(10, 14, 33, 0.42);
}

.btn-secondary:hover {
  border-color: rgba(123, 114, 216, 0.55);
  box-shadow:
    0 6px 28px rgba(91, 79, 207, 0.25),
    0 10px 32px rgba(10, 14, 33, 0.45);
}

.store-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.btn-primary .store-icon,
.btn-secondary .store-icon {
  color: #ffffff;
}

.btn-text {
  line-height: 1;
  letter-spacing: 0.15px;
}

.btn.is-disabled {
  opacity: 0.50;
  pointer-events: none;
  background: var(--surface-alt);
  border-color: var(--border);
  box-shadow: none;
  animation: none;
}

.note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* ── Gold section divider (matches AppSectionDivider) ── */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px 0 24px;
  max-width: 360px;
  margin: 0 auto;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--highlight), transparent);
  opacity: 0.45;
}

.section-divider-diamond {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--highlight), var(--highlight-deep));
  transform: rotate(45deg);
  margin: 0 14px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(255, 200, 87, 0.35);
  animation: diamondPulse 3s ease-in-out infinite;
}

@keyframes diamondPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 200, 87, 0.35); }
  50%      { box-shadow: 0 0 18px rgba(255, 200, 87, 0.55); }
}

/* ── Sections ── */
.section {
  padding: 24px 0 40px;
}

.section-label {
  text-align: center;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.section-subtitle {
  text-align: center;
  margin: 0 auto 28px;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

/* ── Grids ── */
.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ── Cards — glass morphism ── */
.card {
  position: relative;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: linear-gradient(
    165deg,
    rgba(16, 20, 42, 0.82),
    rgba(24, 29, 58, 0.72),
    rgba(91, 79, 207, 0.20)
  );
  border: 1px solid rgba(91, 79, 207, 0.30);
  border-radius: 22px;
  padding: 24px 22px 22px 28px;
  box-shadow:
    0 10px 24px rgba(9, 11, 19, 0.55),
    0 4px 28px rgba(91, 79, 207, 0.16);
  overflow: hidden;
  transition: transform 280ms ease-out, box-shadow 280ms ease-out, border-color 280ms ease-out;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(123, 114, 216, 0.50);
  box-shadow:
    0 16px 40px rgba(9, 11, 19, 0.65),
    0 8px 44px rgba(91, 79, 207, 0.30);
}

/* Left accent stripe — glows on hover */
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--gradient-start), var(--accent));
  opacity: 0.65;
  transition: opacity 280ms ease, box-shadow 280ms ease;
}

.card:hover::before {
  opacity: 1;
  box-shadow: 0 0 12px rgba(91, 79, 207, 0.50);
}

/* Community card variant — category-coloured accent stripe */
.community-card::before {
  background: linear-gradient(180deg, var(--card-accent, var(--gradient-start)), var(--card-accent, var(--accent)));
}

.community-card:hover::before {
  box-shadow: 0 0 12px var(--card-accent, rgba(91, 79, 207, 0.50));
}

/* Top-right corner glow */
.card::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 79, 207, 0.14), transparent 65%);
  pointer-events: none;
  transition: opacity 280ms ease;
}

.card:hover::after {
  opacity: 1.4;
}

.card:nth-child(2)::after {
  background: radial-gradient(circle, rgba(155, 89, 182, 0.12), transparent 65%);
}

.card:nth-child(3)::after {
  background: radial-gradient(circle, rgba(123, 114, 216, 0.12), transparent 65%);
}

/* Card icon */
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 22px;
  position: relative;
  background: linear-gradient(135deg, rgba(91, 79, 207, 0.20), rgba(155, 89, 182, 0.12));
  border: 1px solid rgba(91, 79, 207, 0.25);
  box-shadow: 0 0 16px rgba(91, 79, 207, 0.15);
  transition: box-shadow 280ms ease, border-color 280ms ease;
}

.card:hover .card-icon {
  box-shadow: 0 0 22px rgba(91, 79, 207, 0.30);
  border-color: rgba(123, 114, 216, 0.40);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--accent);
  filter: drop-shadow(0 0 4px rgba(123, 114, 216, 0.40));
}

.card-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(123, 114, 216, 0.30));
}

.card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  position: relative;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  position: relative;
  font-size: 14px;
}

/* ── Badge category cards ── */
.badge-category-card {
  position: relative;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: linear-gradient(
    165deg,
    rgba(16, 20, 42, 0.82),
    rgba(24, 29, 58, 0.72),
    rgba(91, 79, 207, 0.18)
  );
  border: 1px solid rgba(91, 79, 207, 0.30);
  border-radius: 22px;
  padding: 24px;
  box-shadow:
    0 10px 24px rgba(9, 11, 19, 0.55),
    0 4px 28px rgba(91, 79, 207, 0.14);
  overflow: hidden;
  text-align: center;
  transition: transform 280ms ease-out, box-shadow 280ms ease-out, border-color 280ms ease-out;
}

.badge-category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 114, 216, 0.45);
  box-shadow:
    0 14px 36px rgba(9, 11, 19, 0.60),
    0 6px 36px rgba(91, 79, 207, 0.24);
}

/* Corner glow */
.badge-category-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 87, 0.08), transparent 65%);
  pointer-events: none;
}

.badge-category-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: var(--highlight);
  text-shadow: 0 0 16px rgba(255, 200, 87, 0.20);
}

.badge-category-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.badge-tier-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-img-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.badge-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.40));
  transition: transform 300ms ease-out, filter 300ms ease-out;
}

.badge-img-wrap:hover .badge-img {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 12px rgba(255, 200, 87, 0.35));
}

.badge-img-wrap::after {
  content: attr(data-tier);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 200ms ease;
}

.badge-img-wrap:hover::after {
  opacity: 1;
}

/* ── Tier strip (colour dots) ── */
.tier-strip {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 8px 0 16px;
  flex-wrap: wrap;
}

.tier-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tier-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  position: relative;
  transition: transform 280ms ease;
}

.tier-badge:hover .tier-dot {
  transform: scale(1.15);
}

.tier-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.25;
}

.tier-bronze  { background: linear-gradient(135deg, #CD7F32, #A0622E); color: #CD7F32; }
.tier-silver  { background: linear-gradient(135deg, #C0C0C0, #8E8E8E); color: #C0C0C0; }
.tier-gold    { background: linear-gradient(135deg, #FFC857, #f3b72f); color: #FFC857;
  box-shadow: 0 0 14px rgba(255, 200, 87, 0.35); }
.tier-diamond { background: linear-gradient(135deg, #B9F2FF, #7DD3E8); color: #B9F2FF;
  box-shadow: 0 0 14px rgba(185, 242, 255, 0.28); }
.tier-obsidian { background: linear-gradient(135deg, var(--accent), var(--gradient-start)); color: var(--accent);
  box-shadow: 0 0 14px rgba(123, 114, 216, 0.35); }
.tier-mythic  { background: linear-gradient(135deg, #FF4444, #CC2222); color: #FF4444;
  box-shadow: 0 0 16px rgba(255, 68, 68, 0.40); }

.tier-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Chain completionist badges ── */
.chain-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.chain-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 280ms ease;
}

.chain-badge-wrap:hover {
  transform: translateY(-4px);
}

.chain-badge-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.50));
  transition: filter 300ms ease, transform 300ms ease;
}

.chain-badge-wrap:hover .chain-badge-img {
  filter: drop-shadow(0 6px 16px rgba(255, 200, 87, 0.30));
  transform: scale(1.08);
}

.chain-badge-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* ── Tag chips (climbing styles) ── */
.tag-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 0 auto;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(24, 29, 58, 0.80), rgba(16, 20, 42, 0.75));
  border: 1px solid rgba(91, 79, 207, 0.25);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.tag-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 114, 216, 0.45);
  box-shadow: 0 4px 14px rgba(91, 79, 207, 0.20);
}

.tag-chip-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 3px rgba(123, 114, 216, 0.30));
}

/* ── Climbing type cards ── */
.type-card {
  display: flex;
  align-items: center;
  gap: 20px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: linear-gradient(
    165deg,
    rgba(16, 20, 42, 0.82),
    rgba(24, 29, 58, 0.72),
    rgba(91, 79, 207, 0.18)
  );
  border: 1px solid rgba(91, 79, 207, 0.30);
  border-radius: 22px;
  padding: 24px 28px;
  box-shadow:
    0 10px 24px rgba(9, 11, 19, 0.55),
    0 4px 24px rgba(91, 79, 207, 0.14);
  transition: transform 280ms ease-out, box-shadow 280ms ease-out, border-color 280ms ease-out;
}

.type-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 114, 216, 0.45);
  box-shadow:
    0 14px 36px rgba(9, 11, 19, 0.60),
    0 6px 32px rgba(91, 79, 207, 0.24);
}

.type-card-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(91, 79, 207, 0.25));
  transition: transform 300ms ease;
}

.type-card:hover .type-card-icon {
  transform: scale(1.08);
}

.type-card-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.type-card-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

/* ── Community banner ── */
.community-banner {
  text-align: center;
  padding: 48px 28px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: linear-gradient(
    165deg,
    rgba(16, 20, 42, 0.72),
    rgba(24, 29, 58, 0.58),
    rgba(91, 79, 207, 0.16)
  );
  border: 1px solid rgba(91, 79, 207, 0.25);
  border-radius: 22px;
  box-shadow:
    0 10px 28px rgba(9, 11, 19, 0.50),
    0 4px 24px rgba(91, 79, 207, 0.12);
  position: relative;
  overflow: hidden;
}

.community-banner::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 79, 207, 0.14), transparent 60%);
  pointer-events: none;
}

.community-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  position: relative;
}

.community-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.community-banner .cta-row {
  animation: none;
}

.cta-row-center {
  justify-content: center;
  margin-top: 24px;
}

/* ── Doc pages ── */
.doc-main {
  padding: 28px 0 72px;
}

.doc-card {
  position: relative;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: linear-gradient(
    165deg,
    rgba(16, 20, 42, 0.82),
    rgba(24, 29, 58, 0.72),
    rgba(91, 79, 207, 0.18)
  );
  border: 1px solid rgba(91, 79, 207, 0.30);
  border-radius: 22px;
  padding: 32px;
  box-shadow:
    0 16px 34px rgba(9, 11, 19, 0.55),
    0 4px 28px rgba(91, 79, 207, 0.16);
  overflow: hidden;
}

.doc-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--highlight), var(--highlight-deep));
  opacity: 0.50;
}

.doc-card h1 {
  margin-top: 0;
  font-size: clamp(26px, 5vw, 36px);
  color: var(--highlight);
}

.doc-card h2 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--highlight);
}

.doc-card p,
.doc-card li {
  color: var(--text);
  line-height: 1.6;
}

.doc-card ul {
  margin: 0;
  padding-left: 20px;
}

.doc-card a {
  transition: text-shadow 200ms ease;
}

.doc-card a:hover {
  text-shadow: 0 0 10px rgba(255, 200, 87, 0.35);
}

.muted {
  color: var(--muted);
}

/* ── Footer — glass morphism ── */
.site-footer {
  border-top: 1px solid rgba(91, 79, 207, 0.30);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: linear-gradient(
    180deg,
    rgba(16, 20, 42, 0.60),
    rgba(9, 11, 19, 0.82)
  );
  box-shadow: 0 -4px 20px rgba(91, 79, 207, 0.10);
  margin-top: 24px;
}

.footer-wrap {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 14px;
  margin: 0;
}

.footer-links a {
  transition: text-shadow 200ms ease;
}

.footer-links a:hover {
  text-shadow: 0 0 10px rgba(255, 200, 87, 0.35);
}

/* ── Animations ── */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .brand-logo {
    height: 64px;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2x2 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .tier-strip {
    gap: 18px;
  }

  .chain-grid {
    gap: 16px;
  }

  .type-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .nav {
    min-height: 84px;
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 8px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .links {
    width: 100%;
    flex-direction: column;
    gap: 8px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    background: rgba(24, 29, 58, 0.88);
    border: 1px solid rgba(91, 79, 207, 0.30);
    border-radius: 14px;
    padding: 12px;
    box-shadow:
      0 8px 28px rgba(9, 11, 19, 0.55),
      0 4px 16px rgba(91, 79, 207, 0.12);
  }

  body.js-nav-ready .links {
    display: none;
  }

  body.js-nav-ready .links.is-open {
    display: flex;
  }

  .links a {
    display: block;
    padding: 8px 8px;
    border-radius: 8px;
    transition: background 150ms ease, color 200ms ease, text-shadow 200ms ease;
  }

  .links a:hover {
    background: rgba(91, 79, 207, 0.12);
  }

  .community-banner {
    padding: 36px 18px;
  }

  .badge-img {
    width: 42px;
    height: 42px;
  }

  .chain-badge-img {
    width: 56px;
    height: 56px;
  }

  .tag-grid {
    gap: 8px;
  }

  .tag-chip {
    padding: 6px 10px;
    font-size: 12px;
  }

  .tag-chip-icon {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 420px) {
  .nav {
    min-height: 80px;
  }

  .brand-logo {
    height: 56px;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
