/* ============================================
   DealTunnel Ops Dashboard — Base Styles
   ============================================ */

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--canvas);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Utility classes */
.mono { font-family: var(--mono); }
.acc  { color: var(--acc-text); }
.grey { color: var(--grey); }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Label */
.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
}

.label .ix {
  color: var(--acc-text);
  margin-right: 10px;
}

/* Scanline */
.scanline {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--acc-fill);
}

/* Highlight */
.hl {
  background: var(--hl-bg);
  color: var(--hl-text);
  padding: 0 0.16em;
}

/* Index strip */
.index-strip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  opacity: 0.55;
}

/* Sections */
section {
  padding: 48px 0;
}

.sec-head {
  margin-bottom: 32px;
}

.sec-head h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-top: 12px;
}

.bg-surface {
  background: var(--surface);
}

/* Footer */
footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--hairline);
}

footer p {
  font-size: 13px;
  color: var(--grey);
}

footer strong {
  color: var(--acc-text);
}

/* Reveal animation */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.rv.in {
  opacity: 1;
  transform: none;
}
