/**
 * ============================================================
 *  MixPanel CS 1.6 — Base Styles
 * ============================================================
 *  Template by Templuxo — https://templuxo.com
 * ============================================================
 */

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

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg-void);
  color: var(--tx-2);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Noise/Grain Overlay (heavier for old-school grit) ──── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  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.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── CRT Scanline Overlay (subtle, CS 1.6 vibe) ────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--tx-1);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }

p { color: var(--tx-2); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--trans-fast);
}
a:hover { color: var(--tx-1); text-shadow: 0 0 8px var(--accent-glow); }

strong { color: var(--tx-1); font-weight: 600; }

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ── Scrollbar (thin, warm-tinted) ────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb {
  background: var(--border-3);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ── Selection ─────────────────────────────────────────────── */
::selection {
  background: rgba(77,159,255,0.25);
  color: var(--tx-1);
}

/* ── Focus ─────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ── Form Elements ─────────────────────────────────────────── */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--tx-1);
  background: var(--bg-overlay);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 9px 12px;
  width: 100%;
  outline: none;
  transition: var(--trans-fast);
  appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--tx-3); }
input:hover, select:hover, textarea:hover { border-color: var(--border-2); }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px var(--accent-glow), inset 0 0 12px rgba(77,159,255,0.03);
}
textarea { resize: vertical; min-height: 80px; }

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23998F78'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tx-3);
  margin-bottom: 6px;
}

/* ── Utility ────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uppercase { text-transform: uppercase; letter-spacing: 0.08em; }
.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }
.muted  { color: var(--tx-3); }
.ok    { color: var(--ok); }
.err   { color: var(--err); }
.warn  { color: var(--warn); }
.ct    { color: var(--ct); }
.t-col { color: var(--t); }
.flex  { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.mt-4   { margin-top: 4px; }
.mt-8   { margin-top: 8px; }
.mt-12  { margin-top: 12px; }
.mt-16  { margin-top: 16px; }
.mt-20  { margin-top: 20px; }
.mt-24  { margin-top: 24px; }
.mb-8   { margin-bottom: 8px; }
.mb-12  { margin-bottom: 12px; }
.mb-16  { margin-bottom: 16px; }
.mb-20  { margin-bottom: 20px; }
.w-full { width: 100%; }
.text-sm { font-size: 12px; }
.text-lg { font-size: 16px; }
.fw-600  { font-weight: 600; }
.fw-700  { font-weight: 700; }
