/* ═══════════════════════════════════════════════════════════════
   BLEEP QUANTUM TRUST NETWORK  ·  DESIGN SYSTEM v2
   The world's first post-quantum L1 blockchain
   bleepecosystem.com
═══════════════════════════════════════════════════════════════ */

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

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Void palette */
  --void:         #000408;
  --abyss:        #02060d;
  --depth:        #040c18;
  --panel:        #061524;
  --surface:      #0a1e36;

  /* Quantum cyan */
  --q:            #00e5ff;
  --q2:           #00b8d9;
  --q3:           #007fa3;
  --q-glow:       rgba(0, 229, 255, 0.15);
  --q-ghost:      rgba(0, 229, 255, 0.06);
  --q-border:     rgba(0, 229, 255, 0.12);
  --q-border2:    rgba(0, 229, 255, 0.22);

  /* Signal colors */
  --emerald:      #00ff9d;
  --em-ghost:     rgba(0, 255, 157, 0.08);
  --em-border:    rgba(0, 255, 157, 0.18);

  --amber:        #ffb800;
  --am-ghost:     rgba(255, 184, 0, 0.08);
  --am-border:    rgba(255, 184, 0, 0.18);

  --crimson:      #ff3355;
  --cr-ghost:     rgba(255, 51, 85, 0.08);

  --violet:       #a855f7;
  --vi-ghost:     rgba(168, 85, 247, 0.08);

  /* Text */
  --ink:          #f0f6ff;
  --ink-70:       rgba(240, 246, 255, 0.70);
  --ink-45:       rgba(240, 246, 255, 0.45);
  --ink-20:       rgba(240, 246, 255, 0.20);
  --ink-08:       rgba(240, 246, 255, 0.08);

  /* Typography */
  --f-display:    'Bebas Neue', sans-serif;
  --f-serif:      'Instrument Serif', serif;
  --f-sans:       'Outfit', sans-serif;
  --f-mono:       'DM Mono', monospace;

  /* Layout */
  --nav-h:        76px;
  --max-w:        1320px;
  --r:            10px;
  --r-lg:         18px;
  --r-xl:         28px;

  /* Motion */
  --spring:       cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --smooth:       cubic-bezier(0.23, 1, 0.32, 1);
  --snap:         cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  overflow-x: hidden;
  cursor: none;
}

/* ─── CUSTOM CURSOR ─────────────────────────────────────────── */
#cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--q);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width .15s var(--smooth), height .15s var(--smooth), background .2s;
  mix-blend-mode: screen;
}
#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .3s var(--smooth), height .3s var(--smooth), border-color .3s;
}
#cursor-dot.active  { width: 16px; height: 16px; background: var(--q); }
#cursor-ring.active { width: 56px; height: 56px; border-color: rgba(0, 229, 255, 0.2); }
#cursor-ring.active-text { border-radius: 4px; border-color: rgba(0, 229, 255, 0.15); }

/* ─── SCANLINES OVERLAY ──────────────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.04) 3px,
    rgba(0, 0, 0, 0.04) 4px
  );
  pointer-events: none;
  z-index: 9990;
  opacity: 0.4;
}

/* ─── NOISE TEXTURE ─────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='.018'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ─── QUANTUM CANVAS (background) ───────────────────────────── */
#qc {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ─── NAVIGATION ─────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: rgba(0, 4, 8, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--q-border);
  transition: background .3s;
}
nav.scrolled {
  background: rgba(0, 4, 8, 0.97);
}

.nav-logo {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; cursor: none;
}
.nav-logo-img {
  width: 36px; height: 36px;
  border-radius: 9px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}
.nav-logo-wordmark {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: .08em;
  color: var(--ink);
  line-height: 1;
}
.nav-logo-wordmark em {
  color: var(--q);
  font-style: normal;
}

.nav-links {
  display: flex; align-items: center; gap: 0;
  list-style: none;
}
.nav-links a {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-45);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--r);
  transition: color .2s, background .2s;
  cursor: none;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--q);
  background: var(--q-ghost);
}

.nav-right {
  display: flex; align-items: center; gap: 14px;
}
.nav-status {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--emerald);
  background: var(--em-ghost);
  border: 1px solid var(--em-border);
  border-radius: 5px;
  padding: 6px 13px;
}
.nav-status-dot {
  width: 5px; height: 5px;
  background: var(--emerald);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,255,157,.5); }
  50% { opacity: .7; box-shadow: 0 0 0 4px rgba(0,255,157,0); }
}

.btn-nav {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--q);
  border: none;
  border-radius: var(--r);
  padding: 10px 20px;
  text-decoration: none;
  cursor: none;
  transition: all .2s var(--smooth);
  position: relative;
  overflow: hidden;
}
.btn-nav::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.25) 0%, transparent 60%);
}
.btn-nav:hover {
  background: #33eeff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 229, 255, 0.4);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  cursor: none; padding: 6px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink-45);
  transition: transform .3s, opacity .3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(0, 4, 8, 0.98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--q-border);
  padding: 24px 28px;
  flex-direction: column; gap: 4px;
  z-index: 999;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-45); text-decoration: none;
  padding: 13px 16px; border-radius: var(--r);
  transition: color .2s, background .2s;
}
.mobile-menu a:hover { color: var(--q); background: var(--q-ghost); }

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.z { position: relative; z-index: 2; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 52px; }
.sec { padding: 130px 0; }
.sec-sm { padding: 90px 0; }

/* ─── SECTION LABEL ──────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--q);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: linear-gradient(90deg, var(--q), transparent);
}
.eyebrow-center { justify-content: center; }
.eyebrow-center::before {
  content: none;
}
.eyebrow-center::after {
  content: '';
  width: 32px; height: 1px;
  background: linear-gradient(270deg, var(--q), transparent);
}

/* ─── HEADINGS ───────────────────────────────────────────────── */
.display {
  font-family: var(--f-display);
  font-size: clamp(72px, 10vw, 160px);
  line-height: .92;
  letter-spacing: .02em;
  color: var(--ink);
}
.h1 {
  font-family: var(--f-display);
  font-size: clamp(52px, 7vw, 108px);
  line-height: .94;
  letter-spacing: .01em;
}
.h2 {
  font-family: var(--f-display);
  font-size: clamp(38px, 5vw, 72px);
  line-height: .96;
  letter-spacing: .01em;
}
.h3 {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.0;
  letter-spacing: .01em;
}
.serif {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--q);
}
.q { color: var(--q); }
.em { color: var(--emerald); }
.am { color: var(--amber); }
.cr { color: var(--crimson); }

/* ─── BODY COPY ──────────────────────────────────────────────── */
.body-lg {
  font-size: 18px;
  line-height: 1.78;
  color: var(--ink-70);
  font-weight: 300;
}
.body {
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-70);
}
.mono {
  font-family: var(--f-mono);
}

/* ─── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; border: none;
  border-radius: var(--r);
  padding: 15px 30px;
  cursor: none;
  transition: all .25s var(--smooth);
  position: relative; overflow: hidden;
}
.btn-primary {
  color: var(--void);
  background: var(--q);
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2) 0%, transparent 55%);
}
.btn-primary:hover {
  background: #33eeff;
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0, 229, 255, 0.45);
}
.btn-outline {
  color: var(--q);
  background: transparent;
  border: 1px solid var(--q-border2);
}
.btn-outline:hover {
  background: var(--q-ghost);
  border-color: var(--q);
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--ink-45);
  background: transparent;
  border: 1px solid var(--ink-08);
}
.btn-ghost:hover {
  color: var(--ink);
  background: var(--ink-08);
  border-color: var(--ink-20);
}
.btn-emerald {
  color: var(--void);
  background: var(--emerald);
}
.btn-emerald:hover {
  background: #33ffbb;
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0, 255, 157, 0.35);
}

/* ─── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--depth);
  border: 1px solid var(--q-border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform .3s var(--smooth), border-color .3s, box-shadow .3s;
  cursor: none;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--q-border2);
  box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 48px rgba(0, 229, 255, 0.07);
}
.card-glow::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--q), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.card:hover .card-glow::before,
.card-glow:hover::before { opacity: 1; }

.card-amber { border-color: var(--am-border); }
.card-amber:hover { border-color: rgba(255,184,0,.4); box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 48px rgba(255,184,0,.08); }
.card-emerald { border-color: var(--em-border); }
.card-emerald:hover { border-color: rgba(0,255,157,.4); box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 48px rgba(0,255,157,.08); }
.card-violet { border-color: rgba(168,85,247,.18); }

/* ─── BADGES ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--f-mono);
  font-size: 8.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 4px;
}
.badge-q    { color: var(--q);       background: var(--q-ghost);  border: 1px solid var(--q-border2); }
.badge-em   { color: var(--emerald); background: var(--em-ghost); border: 1px solid var(--em-border); }
.badge-am   { color: var(--amber);   background: var(--am-ghost); border: 1px solid var(--am-border); }
.badge-cr   { color: var(--crimson); background: var(--cr-ghost); border: 1px solid rgba(255,51,85,.2); }
.badge-live::before {
  content: ''; width: 5px; height: 5px;
  background: currentColor; border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
}

/* ─── DATA / PARAMS ──────────────────────────────────────────── */
.param-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink-08);
  font-family: var(--f-mono); font-size: 12px;
}
.param-row:last-child { border-bottom: none; }
.param-key { color: var(--ink-45); letter-spacing: .04em; }
.param-val { color: var(--q); font-weight: 500; }
.param-val.em { color: var(--emerald); }
.param-val.am { color: var(--amber); }
.param-val.ink { color: var(--ink); }

/* ─── DIVIDER ─────────────────────────────────────────────────── */
.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--q-border), transparent);
  border: none;
}

/* ─── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--smooth), transform .9s var(--smooth);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }
.delay-5 { transition-delay: .40s; }

/* ─── GRADIENT TEXT ──────────────────────────────────────────── */
.grad-q {
  background: linear-gradient(135deg, var(--q) 0%, #0080ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-em {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--q) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── TERMINAL ───────────────────────────────────────────────── */
.terminal {
  background: #04090f;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 40px 96px rgba(0,0,0,.8), 0 0 60px rgba(0, 229, 255, 0.05);
}
.term-bar {
  background: #0b1525;
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}
.term-dots { display: flex; gap: 6px; }
.term-dots span {
  width: 12px; height: 12px; border-radius: 50%;
}
.term-dots span:nth-child(1) { background: #ff5f57; }
.term-dots span:nth-child(2) { background: #febc2e; }
.term-dots span:nth-child(3) { background: #28c840; }
.term-title {
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--ink-20); flex: 1; text-align: center; letter-spacing: .06em;
}
.term-body {
  padding: 28px 32px;
  font-family: var(--f-mono); font-size: 12.5px; line-height: 2;
}
.t-prompt { color: var(--q); }
.t-cmd    { color: var(--ink); }
.t-ok     { color: var(--emerald); }
.t-info   { color: rgba(0, 229, 255, 0.65); }
.t-key    { color: var(--amber); }
.t-dim    { color: var(--ink-20); }
.t-line   { display: block; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--q-border);
  padding: 80px 0 40px;
  background: rgba(0, 4, 8, 0.9);
}
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 56px; margin-bottom: 56px;
}
.footer-brand-desc {
  font-size: 13.5px; color: var(--ink-45);
  line-height: 1.75; margin-top: 16px; max-width: 300px;
}
.footer-col h5 {
  font-family: var(--f-mono); font-size: 9px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--q); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a {
  font-size: 13.5px; color: var(--ink-45);
  text-decoration: none; transition: color .2s; cursor: none;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--ink-08);
  flex-wrap: wrap; gap: 16px;
}
.footer-copy {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .06em; color: var(--ink-20);
}
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── UTILITIES ──────────────────────────────────────────────── */
.tc  { text-align: center; }
.mx  { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.flex-c { display: flex; align-items: center; }
.flex-cc { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.w-full { width: 100%; }
.block { display: block; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .wrap { padding: 0 36px; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 1024px) {
  .g3 { grid-template-columns: 1fr 1fr; }
  nav { padding: 0 32px; }
}
@media (max-width: 768px) {
  .wrap { padding: 0 22px; }
  .nav-links, .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  nav { padding: 0 22px; }
  .sec { padding: 90px 0; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .h1 { font-size: clamp(42px, 12vw, 72px); }
  .h2 { font-size: clamp(32px, 9vw, 56px); }
}
