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

/* ===========================
   TOKENS
=========================== */
:root {
  --c-bg:        #05060a;
  --c-bg2:       #090c14;
  --c-surface:   #0c1018;
  --c-surface2:  #111827;
  --c-border:    rgba(255,255,255,0.07);
  --c-border2:   rgba(255,255,255,0.12);
  --c-text:      #dce4f0;
  --c-muted:     #4a556a;
  --c-mid:       #7a8599;
  --c-green:     #00ff87;
  --c-green2:    #00c96a;
  --c-green-dim: rgba(0,255,135,0.08);
  --c-green-glow:rgba(0,255,135,0.18);
  --c-red:       #ff4757;
  --c-amber:     #ffbe0b;

  --f-sans: 'Outfit', sans-serif;
  --f-mono: 'DM Mono', monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --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 GLOW (global)
=========================== */
.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.page-bg::before {
  content: '';
  position: absolute;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(0,255,135,0.04) 0%, transparent 70%);
  top: -300px; left: 50%;
  transform: translateX(-50%);
  animation: bgPulse 8s ease-in-out infinite alternate;
}
.page-bg::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,150,255,0.03) 0%, transparent 70%);
  bottom: -200px; right: -100px;
}
@keyframes bgPulse {
  from { opacity: 0.6; transform: translateX(-50%) scale(1); }
  to   { opacity: 1;   transform: translateX(-50%) scale(1.15); }
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--c-text);
}
.nav-logo img { width: 30px; height: 30px; }
.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: 6px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-mid);
  border-radius: var(--r-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--c-text);
  background: rgba(255,255,255,0.05);
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--c-green-dim);
  border: 1px solid rgba(0,255,135,0.2);
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-green);
  letter-spacing: 0.05em;
}
.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: 2px;
  transition: all 0.3s;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--c-border);
  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;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-muted);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 13px;
  color: var(--c-mid);
  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: 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: 11px;
  color: var(--c-green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

.page-hero p {
  margin-top: 16px;
  font-size: 15px;
  color: var(--c-mid);
  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;
}

.prose h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
  margin: 36px 0 14px;
  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.8;
  margin-bottom: 16px;
}

.prose ul, .prose ol {
  margin: 0 0 16px 20px;
}
.prose li {
  font-size: 14px;
  color: var(--c-mid);
  line-height: 1.75;
  margin-bottom: 6px;
}
.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: 16px;
  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);
}
.contact-card:hover { border-color: rgba(0,255,135,0.3); }

.contact-card-icon {
  font-size: 28px;
  margin-bottom: 16px;
}
.contact-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.contact-card p {
  font-size: 13px;
  color: var(--c-mid);
  line-height: 1.6;
  margin-bottom: 14px;
}
.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: #000;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 0 32px rgba(0,255,135,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(0,255,135,0.35);
}

/* ===========================
   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; }
}
