/* assets/style.css */

:root {
  --bg: #020617;
  --bg-alt: #020617;
  --bg-elevated: #020617;
  --bg-card: rgba(15, 23, 42, 0.92);
  --accent: #22c55e;
  --accent-soft: #16a34a;
  --accent-soft-2: #4ade80;
  --accent-subtle: rgba(34, 197, 94, 0.12);
  --border-subtle: #1f2937;
  --border-strong: #22c55e;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --text-accent: #a7f3d0;
  --danger: #f97373;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.68);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(34, 197, 94, 0.18), transparent 55%),
    radial-gradient(circle at 50% 120%, rgba(59, 130, 246, 0.12), transparent 60%),
    #020617;
  color: var(--text-main);
  min-height: 100vh;
}

/* Layout */

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(30px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.96),
    rgba(2, 6, 23, 0.88),
    rgba(2, 6, 23, 0.86)
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.6);
  background: radial-gradient(circle at 30% 0, #bbf7d0, #16a34a 52%, #052e16 100%);
  box-shadow:
    0 0 18px rgba(34, 197, 94, 0.85),
    0 0 42px rgba(22, 163, 74, 0.72);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  border: 1px solid rgba(15, 23, 42, 0.8);
}

.brand-text-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-accent);
}

.brand-text-sub {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a.active {
  color: var(--text-accent);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), var(--accent-soft-2));
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta .pill-label {
  font-size: 0.7rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.85);
  color: var(--text-soft);
  background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.16), transparent 65%);
}

.button-primary,
.button-ghost,
.button-donate {
  border-radius: 999px;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  border-width: 1px;
  border-style: solid;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

/* Primary CTA */

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft-2));
  border-color: rgba(22, 163, 74, 0.9);
  color: #022c22;
  font-weight: 600;
  box-shadow:
    0 12px 40px rgba(22, 163, 74, 0.3),
    0 0 0 1px rgba(15, 23, 42, 0.85);
}

.button-primary:hover {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft-2));
}

/* Secondary ghost button */

.button-ghost {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(55, 65, 81, 0.9);
  color: var(--text-muted);
}

.button-ghost:hover {
  border-color: rgba(148, 163, 184, 0.9);
  color: var(--text-main);
}

/* Donate button – violet / BTC-friendly accent */

.button-donate {
  background: radial-gradient(circle at 0 0, rgba(244, 114, 182, 0.3), transparent 70%),
    linear-gradient(135deg, #6366f1, #a855f7);
  border-color: rgba(129, 140, 248, 0.9);
  color: #e5e7eb;
  font-weight: 600;
  box-shadow:
    0 10px 35px rgba(129, 140, 248, 0.5),
    0 0 0 1px rgba(15, 23, 42, 0.9);
}

.button-donate:hover {
  background: linear-gradient(135deg, #4f46e5, #9333ea);
}

/* Mobile nav */

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  color: var(--text-muted);
}

.nav-toggle span {
  font-size: 0.9rem;
}

@media (max-width: 840px) {
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }
}

/* Mobile dropdown */

.nav-dropdown {
  display: none;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(2, 6, 23, 0.98);
}

.nav-dropdown-inner {
  padding: 0.5rem 0 0.75rem;
}

.nav-dropdown a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-muted);
}

.nav-dropdown a:hover {
  color: var(--text-main);
}

.nav-dropdown .dropdown-cta {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  margin-top: 0.25rem;
  display: flex;
  gap: 0.75rem;
}

/* Hero / Page frame */

.page-main {
  flex: 1;
}

.hero {
  padding: 3.25rem 0 2.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(5, 46, 22, 0.6);
  font-size: 0.75rem;
  color: #bbf7d0;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.35rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: var(--text-accent);
}

.hero-subtitle {
  font-size: 0.98rem;
  max-width: 32rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
  align-items: center;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.75rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.hero-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.85);
}

/* Hero card */

.hero-card {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.16), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.18), transparent 55%),
    var(--bg-card);
  border: 1px solid rgba(31, 41, 55, 0.96);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1.2rem 1.3rem;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(15, 23, 42, 0.85);
  pointer-events: none;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.hero-card-title {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-card-badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.7);
  color: var(--text-accent);
  background: rgba(5, 46, 22, 0.9);
}

.hero-card-body {
  background: rgba(15, 23, 42, 0.82);
  border-radius: 12px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  padding: 0.85rem;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  color: #d1d5db;
  max-height: 260px;
  overflow: hidden;
}

.hero-card-body pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.hero-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.7rem;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.hero-card-footer span.highlight {
  color: var(--text-accent);
}

/* Sections */

.section {
  padding: 2.5rem 0 2.25rem;
}

.section-header {
  margin-bottom: 1.8rem;
}

.section-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
}

.section-title {
  font-size: 1.4rem;
  margin: 0.15rem 0 0.4rem;
}

.section-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 40rem;
}

/* Feature grid */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(31, 41, 55, 0.98);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 10% 0,
    rgba(34, 197, 94, 0.14),
    transparent 55%
  );
  opacity: 0.8;
  pointer-events: none;
}

.feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}

.feature-title {
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.feature-body {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* Two-column text blocks */

.text-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

/* Lists & code */

ul {
  padding-left: 1.1rem;
}

ul li {
  margin-bottom: 0.25rem;
}

.code-snippet {
  background: rgba(15, 23, 42, 0.92);
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 41, 55, 1);
  padding: 0.85rem 0.95rem;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  color: #d1d5db;
  overflow-x: auto;
}

/* Pill list */

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 1);
  background: rgba(15, 23, 42, 0.92);
  color: var(--text-soft);
}

/* Table-like blocks */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.platform-card {
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(31, 41, 55, 1);
  padding: 0.9rem 1rem;
}

.platform-title {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.platform-meta {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.platform-card .button-primary,
.platform-card .button-ghost {
  width: 100%;
  justify-content: center;
  margin-top: 0.65rem;
}

/* FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 41, 55, 1);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.85rem 0.95rem;
}

.faq-q {
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.faq-a {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.95);
  background: rgba(2, 6, 23, 0.98);
  padding: 1.35rem 0;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: var(--text-main);
}

/* Page headers (inner pages) */

.page-hero {
  padding: 2.2rem 0 1.5rem;
}

.page-title {
  font-size: 1.5rem;
  margin: 0 0 0.3rem;
}

.page-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 40rem;
}

/* Donation modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.modal-overlay.is-open {
  display: flex;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0, rgba(15, 23, 42, 0.85), transparent 70%),
    rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
  margin: 0 1.5rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.2), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(244, 114, 182, 0.16), transparent 65%),
    rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(30, 64, 175, 0.9);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.9);
  padding: 1.4rem 1.5rem 1.6rem;
  color: var(--text-main);
  animation: modal-pop 0.18s ease-out;
}

.modal-dialog h2 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.modal-dialog p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.9rem;
}

.modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-soft);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-main);
  border-color: rgba(148, 163, 184, 0.95);
}

.donate-qr {
  border-radius: 16px;
  padding: 0.75rem;
  background: radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.2), transparent 55%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(31, 41, 55, 1);
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.donate-qr img {
  max-width: 260px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.donate-address {
  display: block;
  width: 100%;
  font-size: 0.8rem;
  padding: 0.5rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(55, 65, 81, 1);
  color: var(--text-accent);
  text-align: center;
  overflow-wrap: anywhere;
}

/* Modal animation */

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid,
  .text-two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.2rem;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .platform-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-dialog {
    margin: 0 1rem;
  }
}

/* Simple utility */

.badge-small {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 1);
  background: rgba(15, 23, 42, 0.94);
  color: var(--text-soft);
}
