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

/* ===========================
   TOKENS — Monero XMR Theme
=========================== */
:root {
  --c-bg:        #0e0d0c;
  --c-bg2:       #131210;
  --c-surface:   #1a1815;
  --c-surface2:  #221f1b;
  --c-border:    rgba(255,180,80,0.08);
  --c-border2:   rgba(255,180,80,0.15);
  --c-text:      #f0e8dc;
  --c-muted:     #6b5f50;
  --c-mid:       #9e8e7a;
  --c-green:     #ff6600;
  --c-green2:    #e05500;
  --c-green-dim: rgba(255,102,0,0.08);
  --c-green-glow:rgba(255,102,0,0.18);
  --c-red:       #e0443a;
  --c-amber:     #ffaa33;

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

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 20px;

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

/* ===========================
   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 (Monero noise + glow)
=========================== */
.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.page-bg::before {
  content: '';
  position: absolute;
  width: 1000px; height: 1000px;
  background: radial-gradient(ellipse at center,
    rgba(255,102,0,0.055) 0%,
    rgba(255,60,0,0.025) 40%,
    transparent 70%);
  top: -350px; left: 50%;
  transform: translateX(-50%);
  animation: bgPulse 10s ease-in-out infinite alternate;
}
.page-bg::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(180,80,0,0.04) 0%, transparent 70%);
  bottom: -250px; right: -150px;
}
@keyframes bgPulse {
  from { opacity: 0.5; transform: translateX(-50%) scale(1); }
  to   { opacity: 1;   transform: translateX(-50%) scale(1.2); }
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 54px;
  background: rgba(14,13,12,0.92);
  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-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--c-text);
  font-family: var(--f-sans);
}
.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; }
  50%      { opacity:0.3; }
}

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

.nav-links a {
  display: block;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-mid);
  border-radius: var(--r-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.04em;
  font-family: var(--f-mono);
  font-size: 12px;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--c-text);
  background: rgba(255,102,0,0.08);
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(255,102,0,0.07);
  border: 1px solid rgba(255,102,0,0.22);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 8px 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: 1px;
  transition: all 0.3s;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--c-border2);
  padding: 48px 40px 32px;
  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.7;
  max-width: 220px;
  font-family: var(--f-mono);
}

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

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-mid);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
.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: 11px;
  color: var(--c-muted);
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
}

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

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

.page-tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-green);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 4px 10px;
  border: 1px solid rgba(255,102,0,0.3);
  border-radius: 3px;
  background: rgba(255,102,0,0.06);
}

.page-hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--c-text);
}

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

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

.prose h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--c-text);
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
  font-family: var(--f-sans);
  letter-spacing: -0.01em;
}
.prose h2:first-child { margin-top: 0; }

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

.prose ul, .prose ol {
  margin: 0 0 16px 20px;
}
.prose li {
  font-size: 13px;
  color: var(--c-mid);
  line-height: 1.75;
  margin-bottom: 6px;
  font-family: var(--f-mono);
}
.prose strong { color: var(--c-text); }
.prose a { color: var(--c-green); }
.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: 32px;
}

.contact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--c-green);
  opacity: 0;
  transition: opacity var(--transition);
}
.contact-card:hover { border-color: rgba(255,102,0,0.35); }
.contact-card:hover::before { opacity: 1; }

.contact-card-icon {
  font-size: 26px;
  margin-bottom: 16px;
}
.contact-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.contact-card p {
  font-size: 12px;
  color: var(--c-mid);
  line-height: 1.65;
  margin-bottom: 14px;
  font-family: var(--f-mono);
}
.contact-card a.link-green {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-green);
}
.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: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 0 32px rgba(255,102,0,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(255,102,0,0.4);
  background: #ff7722;
}

/* ===========================
   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: 32px; }
  .site-footer { padding: 40px 20px 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

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