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

/* ===========================
   TOKENS — Dark, high-contrast crypto theme
=========================== */
:root {
  /* Backgrounds */
  --c-bg:        #0a0c10;
  --c-bg2:       #0f1218;
  --c-surface:   #131720;
  --c-surface2:  #1a2030;
  --c-surface3:  #1f2638;

  /* Borders */
  --c-border:    rgba(255,255,255,0.07);
  --c-border2:   rgba(255,255,255,0.12);
  --c-border3:   rgba(255,255,255,0.20);

  /* Text — maximum contrast on dark */
  --c-text:      #f0f4ff;
  --c-muted:     #8892a4;
  --c-mid:       #b8c4d8;

  /* Accent — neon green, punchy and readable */
  --c-green:     #00e87a;
  --c-green2:    #00c466;
  --c-green3:    #00a854;
  --c-green-dim: rgba(0,232,122,0.10);
  --c-green-glow:rgba(0,232,122,0.20);
  --c-green-light:rgba(0,232,122,0.08);

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

  --f-sans: 'Syne', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

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

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

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.7);
  --shadow-green: 0 0 28px rgba(0,232,122,0.15);
}

/* ===========================
   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;
  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: 900px; height: 900px;
  background: radial-gradient(circle, rgba(0,232,122,0.055) 0%, transparent 60%);
  top: -350px; left: 50%;
  transform: translateX(-50%);
}
.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 0%, transparent 70%);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-sans);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--c-text);
}
.nav-logo img { width: 28px; height: 28px; }
.nav-logo-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 10px var(--c-green);
  animation: blink 2.5s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity:1; box-shadow: 0 0 10px var(--c-green); }
  50%      { opacity:0.35; box-shadow: none; }
}

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

.nav-links a {
  display: block;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-muted);
  border-radius: var(--r-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.01em;
}
.nav-links a:hover {
  color: var(--c-text);
  background: var(--c-surface2);
}
.nav-links a.active {
  color: var(--c-green);
  background: var(--c-green-light);
  font-weight: 700;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  background: rgba(0,232,122,0.08);
  border: 1px solid rgba(0,232,122,0.28);
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-green);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.nav-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 6px 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: 56px 40px 36px;
  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: 12px;
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.75;
  max-width: 220px;
  font-family: var(--f-mono);
}

.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-muted);
  margin-bottom: 16px;
  display: block;
  font-family: var(--f-mono);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--c-mid);
  font-weight: 600;
  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: 28px;
  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: 840px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

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

.page-tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-green);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding: 5px 12px;
  background: var(--c-green-light);
  border-radius: var(--r-sm);
  border: 1px solid rgba(0,232,122,0.22);
}

.page-hero h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--c-text);
}

.page-hero p {
  margin-top: 16px;
  font-size: 15px;
  color: var(--c-mid);
  line-height: 1.75;
  max-width: 540px;
  font-family: var(--f-mono);
  font-weight: 400;
}

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

.prose h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--c-text);
  margin: 40px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border2);
  letter-spacing: -0.01em;
}
.prose h2:first-child { margin-top: 0; }

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

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

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

.contact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.contact-card:hover {
  border-color: rgba(0,232,122,0.35);
  box-shadow: var(--shadow-green);
  transform: translateY(-2px);
}

.contact-card-icon {
  font-size: 28px;
  margin-bottom: 16px;
}
.contact-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.contact-card p {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: 14px;
  font-family: var(--f-mono);
}
.contact-card a.link-green {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--c-green);
  font-weight: 600;
}
.contact-card a.link-green:hover { text-decoration: underline; }

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

/* ===========================
   RESPONSIVE NAVBAR
=========================== */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-pill { display: none; }

  .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; }
}
