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

/* ===========================
   TOKENS — Dark theme, high contrast (ghostswap style)
=========================== */
:root {
  /* Backgrounds — deep dark */
  --c-bg:        #0a0a0f;
  --c-bg2:       #111118;
  --c-surface:   #141419;
  --c-surface2:  #1a1a22;

  /* Borders */
  --c-border:    rgba(255,255,255,0.06);
  --c-border2:   rgba(255,255,255,0.10);

  /* Text — high contrast on dark */
  --c-text:      #e8e8ed;
  --c-muted:     #8a8a9a;
  --c-mid:       #b0b0be;

  /* Accent — bright green */
  --c-green:     #22c55e;
  --c-green2:    #16a34a;
  --c-green-dim: rgba(34,197,94,0.08);
  --c-green-glow:rgba(34,197,94,0.12);
  --c-green-light:rgba(34,197,94,0.10);

  /* Status */
  --c-red:       #ef4444;
  --c-amber:     #f59e0b;
  --c-amber-bg:  rgba(245,158,11,0.08);

  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  --transition: 0.18s cubic-bezier(0.4,0,0.2,1);

  /* Shadows — subtle on dark */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
}

/* ===========================
   RESET
=========================== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--c-bg);
  color: var(--c-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ===========================
   BACKGROUND
=========================== */
.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: var(--c-bg);
}
.page-bg::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(34,197,94,0.03) 0%, transparent 60%);
  top: -300px; left: 50%;
  transform: translateX(-50%);
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 56px;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border2);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
.nav-logo img { width: 28px; height: 28px; }
.nav-logo-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  animation: blink 2.5s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity:1; }
  50%      { opacity:0.3; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-muted);
  border-radius: var(--r-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover {
  color: var(--c-text);
  background: rgba(255,255,255,0.05);
}
.nav-links a.active {
  color: var(--c-green);
  background: rgba(34,197,94,0.10);
  font-weight: 600;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.20);
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-green);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  animation: blink 2.5s ease-in-out infinite;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-mid);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--c-border2);
  padding: 48px 40px 32px;
  background: var(--c-surface);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.footer-brand p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.7;
  max-width: 220px;
}

.footer-col h4,
.footer-col p strong {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-text);
  margin-bottom: 14px;
  display: block;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 13.5px;
  color: var(--c-muted);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--c-green); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
  font-size: 12px;
  color: var(--c-muted);
  font-family: var(--f-mono);
}

/* ===========================
   GENERIC PAGE WRAPPER
=========================== */
.page-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.page-hero {
  margin-bottom: 44px;
}

.page-tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-green);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 4px 10px;
  background: rgba(34,197,94,0.10);
  border-radius: var(--r-sm);
  border: 1px solid rgba(34,197,94,0.18);
}

.page-hero h1 {
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.page-hero p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.7;
  max-width: 520px;
}

/* ===========================
   PROSE (legal/info pages)
=========================== */
.prose {
  background: var(--c-surface);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-xl);
  padding: 40px 48px;
  box-shadow: var(--shadow-sm);
}

.prose h2 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 36px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}
.prose h2:first-child { margin-top: 0; }

.prose p {
  font-size: 14px;
  color: var(--c-mid);
  line-height: 1.85;
  margin-bottom: 14px;
}

.prose ul, .prose ol {
  margin: 0 0 14px 20px;
}
.prose li {
  font-size: 14px;
  color: var(--c-mid);
  line-height: 1.75;
  margin-bottom: 6px;
}
.prose strong { color: var(--c-text); font-weight: 600; }
.prose a { color: var(--c-green); font-weight: 500; }
.prose a:hover { text-decoration: underline; }

/* ===========================
   CONTACT CARDS
=========================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.contact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-card:hover {
  border-color: rgba(34,197,94,0.30);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  font-size: 26px;
  margin-bottom: 14px;
}
.contact-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}
.contact-card p {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}
.contact-card a.link-green {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-green);
  font-weight: 500;
}
.contact-card a.link-green:hover { text-decoration: underline; }

/* ===========================
   BUTTONS (utility)
=========================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--c-green);
  color: #000;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 12px rgba(34,197,94,0.25);
}
.btn-primary:hover {
  background: var(--c-green2);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(34,197,94,0.35);
}

/* ===========================
   RESPONSIVE NAVBAR
=========================== */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border2);
    padding: 12px 20px;
    gap: 4px;
  }
  .nav-links a { padding: 10px 14px; }
  .nav-burger { display: flex; }
  .nav-pill { display: none; }
  .nav-links.nav-open { display: flex; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .site-footer { padding: 36px 20px 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .prose { padding: 24px 20px; }
}