/* ═══════════════════════════════════════════════════════════
   TECHTRUTH.AI — Base / Reset
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Mono', monospace;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition-slow, 0.4s), color var(--transition-slow, 0.4s);
}

/* Scanline texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    var(--scan-line) 0px,
    transparent 1px,
    transparent 3px
  );
}

/* Grain noise overlay */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.025;
  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='1'/%3E%3C/svg%3E");
}

/* Page sections */
.page { display: none; padding-top: var(--nav-height); min-height: 100vh; position: relative; z-index: 1; }
.page.active { display: block; animation: tt-reveal 0.5s ease; }

@keyframes tt-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Page section header */
.page-tag {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.page-tag::before { content: '//'; opacity: 0.5; }

.page-h1 {
  font-family: 'Clash Display', monospace;
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 10px;
}
.page-sub { font-size: 13px; color: var(--text2); line-height: 1.7; }
.page-header { margin-bottom: 52px; }
