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

/* ===========================
   DESIGN TOKENS
=========================== */
:root {
  --c-bg:        #0e0e10;
  --c-bg2:       #141416;
  --c-surface:   #1a1a1e;
  --c-surface2:  #222228;
  --c-surface3:  #2a2a32;

  --c-border:    rgba(255,255,255,0.06);
  --c-border2:   rgba(255,255,255,0.10);
  --c-border3:   rgba(255,255,255,0.16);

  /* High-contrast text — all WCAG AA on dark surfaces */
  --c-text:      #f0f0f2;
  --c-muted:     #9090a0;
  --c-mid:       #c0c0d0;

  /* Orange accent — b1exch signature */
  --c-accent:    #e8722a;
  --c-accent2:   #cf5e18;
  --c-accent-dim:rgba(232,114,42,0.10);

  /* Aliases so HTML files using --c-green still work */
  --c-green:      #e8722a;
  --c-green2:     #cf5e18;
  --c-green-dim:  rgba(232,114,42,0.08);
  --c-green-light:rgba(232,114,42,0.12);
  --c-green-glow: rgba(232,114,42,0.20);

  --c-red:       #e05252;
  --c-amber:     #f0a030;
  --c-amber-bg:  rgba(240,160,48,0.10);

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

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

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

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.40);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.45);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.55);
}

/* ===========================
   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;
}
.page-bg::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(232,114,42,0.045) 0%, transparent 60%);
  top: -300px; left: 50%;
  transform: translateX(-50%);
}
.page-bg::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(100,80,200,0.025) 0%, transparent 65%);
  bottom: -180px; right: -60px;
}

/* ===========================
   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,14,16,0.94);
  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: 800;
  font-size: 15.5px;
  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-accent);
  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: 13.5px;
  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: var(--c-surface2);
}
.nav-links a.active {
  color: var(--c-accent);
  background: var(--c-accent-dim);
  font-weight: 600;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: var(--c-accent-dim);
  border: 1px solid rgba(232,114,42,0.22);
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--c-accent);
  letter-spacing: 0.05em;
}
.nav-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  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-muted);
  border-radius: 2px;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--c-border);
  padding: 48px 40px 32px;
  background: var(--c-bg2);
  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 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-muted);
  margin-bottom: 14px;
  display: block;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  font-size: 13px;
  color: var(--c-mid);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--c-accent); }
.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.02em;
}

/* ===========================
   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: 10px;
  color: var(--c-accent);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 4px 10px;
  background: var(--c-accent-dim);
  border-radius: var(--r-sm);
  border: 1px solid rgba(232,114,42,0.18);
}
.page-hero h1 {
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--c-text);
}
.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;
}
.prose h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  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-accent); }
.prose a:hover { text-decoration: underline; }

/* ===========================
   CONTACT CARDS
=========================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.contact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: border-color var(--transition);
}
.contact-card:hover { border-color: rgba(232,114,42,0.4); }
.contact-card-icon { font-size: 24px; margin-bottom: 14px; }
.contact-card h3 { font-size: 14px; font-weight: 700; color: var(--c-text); 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-accent); }
.contact-card a.link-green:hover { text-decoration: underline; }

/* ===========================
   BUTTONS
=========================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--c-accent);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary:hover { background: var(--c-accent2); transform: translateY(-1px); }

/* ===========================
   RESPONSIVE
=========================== */
@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: 22px; }
  .prose { padding: 24px 20px; }
}
