@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #0B0A15;
  --panel: rgba(22, 20, 36, 0.65);
  --panel-solid: #15131F;
  --panel-border: rgba(99, 102, 241, 0.25);
  --panel-border-h: rgba(168, 85, 247, 0.45);
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: rgba(232, 230, 240, 0.72);

  --primary-grad: linear-gradient(135deg, #6366F1 0%, #A855F7 100%);
  --primary-grad-h: linear-gradient(135deg, #818CF8 0%, #C084FC 100%);
  --pink-grad: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  --gold-grad: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --metamask-grad: linear-gradient(135deg, #f6851b 0%, #e2761b 100%);

  --success: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;

  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(99, 102, 241, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 88% 28%, rgba(168, 85, 247, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 95%, rgba(251, 191, 36, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #f9a8d4;
  text-decoration: none;
  transition: color 0.15s, opacity 0.15s;
}
a:hover { color: #fff; }

code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  color: #c4b5fd;
}

/* ================= Layout ================= */
.site {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ================= Top Nav ================= */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 24px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.topnav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.3px;
  color: var(--text);
  border: none;
}
.topnav .brand:hover { color: var(--text); opacity: 0.85; }
.topnav .brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--gold-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.topnav .nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.topnav .nav-links a {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.topnav .nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.topnav .nav-links a.active {
  color: #fff;
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.35);
}

/* ================= Hero ================= */
.hero {
  text-align: center;
  padding: 28px 0 40px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #F8FAFC 0%, #C4B5FD 50%, #F9A8D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: clamp(14px, 2.4vw, 17px);
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
}

/* ================= Section ================= */
.section {
  margin-top: 48px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}
.section-head .section-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* ================= Extension Card ================= */
.ext-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.ext-card {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s, transform 0.2s;
}
.ext-card:hover {
  border-color: var(--panel-border-h);
  transform: translateY(-2px);
}
.ext-card.coming-soon { opacity: 0.7; }
.ext-card.coming-soon:hover { transform: none; }

.ext-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ext-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.ext-meta { flex: 1; min-width: 0; }
.ext-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ext-status {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.ext-status.live {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.ext-status.beta {
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.4);
}
.ext-status.coming-soon {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.ext-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.ext-summary {
  font-size: 14px;
  color: var(--text-dim);
}
.ext-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

/* ================= Button ================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s, background 0.15s;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary-grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  background: var(--primary-grad-h);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.45);
  color: #fff;
}
.btn-pink {
  background: var(--pink-grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
}
.btn-pink:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.45);
  color: #fff;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.btn-disabled,
.btn[disabled] {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: none;
}
.btn-disabled:hover,
.btn[disabled]:hover {
  transform: none;
  filter: none;
  box-shadow: none;
}
.btn-sm { padding: 7px 12px; font-size: 12px; }

/* ================= Generic Card / Section Card ================= */
.card-block {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
}

/* ================= List utilities ================= */
.tlist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tlist li {
  position: relative;
  padding: 10px 14px 10px 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  color: var(--text-dim);
}
.tlist li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-grad);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.kvlist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kvlist li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: var(--text-dim);
}
.kvlist code {
  font-weight: 600;
  flex-shrink: 0;
}

/* ================= Anchor sections ================= */
.anchor-target {
  scroll-margin-top: 24px;
}
.anchor-target h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 16px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.anchor-target h3 .ext-icon-mini {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
.anchor-target h4 {
  font-size: 14px;
  font-weight: 600;
  color: #c4b5fd;
  margin: 18px 0 10px;
  letter-spacing: 0.2px;
}

/* ================= Donate CTA ================= */
.donate-cta {
  margin-top: 48px;
  text-align: center;
  padding: 36px 24px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, rgba(236, 72, 153, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-lg);
}
.donate-cta-icon {
  font-size: 44px;
  display: block;
  margin-bottom: 8px;
}
.donate-cta h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.donate-cta p {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 440px;
  margin: 0 auto 20px;
}

/* ================= Contact pill ================= */
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 6px 6px 0 0;
  font-size: 13px;
}
.contact-pill svg { flex-shrink: 0; }
.contact-pill .label {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.5px;
  opacity: 0.6;
}
.contact-pill a {
  border-bottom: none;
  font-weight: 600;
}

/* ================= Footer ================= */
.site-footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.7);
}
.site-footer .dot { opacity: 0.4; padding: 0 6px; }

/* ================= Responsive tweaks ================= */
@media (max-width: 540px) {
  .topnav { flex-direction: column; gap: 14px; align-items: flex-start; }
  .ext-actions { flex-direction: column; align-items: stretch; }
  .ext-actions .btn { justify-content: center; }
}


/* ================= Donate CTA — Compact horizontal variant ================= */
.donate-cta-compact {
  margin-top: 18px;
  margin-bottom: 28px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.donate-cta-compact .donate-cta-icon {
  font-size: 30px;
  margin: 0;
  flex-shrink: 0;
  line-height: 1;
}
.donate-cta-compact .donate-cta-text {
  flex: 1;
  min-width: 0;
}
.donate-cta-compact h3 {
  font-size: 15px;
  margin: 0 0 2px;
}
.donate-cta-compact p {
  font-size: 12.5px;
  margin: 0;
  max-width: none;
  line-height: 1.45;
}
.donate-cta-compact .donate-cta-btn {
  flex-shrink: 0;
  padding: 9px 14px;
  font-size: 13px;
  white-space: nowrap;
}
@media (max-width: 540px) {
  .donate-cta-compact {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .donate-cta-compact .donate-cta-text {
    flex: 1 1 100%;
    text-align: center;
  }
  .donate-cta-compact .donate-cta-btn {
    margin: 4px auto 0;
  }
}
