/* ══════════════════════════════════
   BASE STYLES
══════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── CANVAS ── */
#bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

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

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

/* ── WRAPPER ── */
main { position: relative; z-index: 2; }

/* ── SECTION BASE ── */
section { padding: 6rem 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* ── SECTION HEADER ── */
.sec-head { text-align: center; margin-bottom: 4rem; }
.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  color: var(--green);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  opacity: 0.7;
}
.sec-tag::before, .sec-tag::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--green);
  opacity: 0.5;
}
.sec-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 3px;
  position: relative;
  display: inline-block;
}
.sec-title .hl { color: var(--green); }
.sec-divider {
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), var(--cyan), transparent);
  margin: 1.25rem auto 0;
}

/* ── GLOW DIVIDER ── */
.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,136,0.2), rgba(0,212,255,0.2), transparent);
  position: relative; z-index: 2;
}

/* ── GRID LINES BG ── */
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,255,136,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.7rem 1.6rem;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn-green {
  background: linear-gradient(135deg, var(--green), var(--green2));
  color: #000;
  font-weight: 700;
  border-color: var(--green);
}
.btn-green:hover { box-shadow: var(--glow-g); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(0,212,255,0.3);
}
.btn-ghost:hover { border-color: var(--cyan); box-shadow: var(--glow-c); transform: translateY(-2px); }

/* ── UTILITY CLASSES ── */
.hl-g { color: var(--green); font-weight: 500; }
.hl-c { color: var(--cyan); font-weight: 500; }
.hl-p { color: var(--purple); font-weight: 500; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 2px; }
