/* MATCH — base styles */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* Typography classes */
.f-display { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.045em; font-feature-settings: "ss01", "ss02"; }
.f-display-it { font-family: var(--f-display); font-weight: 300; letter-spacing: -0.045em; font-style: normal; }
.f-sans { font-family: var(--f-sans); }
.f-mono { font-family: var(--f-mono); letter-spacing: -0.02em; font-feature-settings: "tnum", "ss01"; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--fg-3);
  font-weight: 400;
}

.numeric { font-feature-settings: "tnum", "lnum"; }

/* Layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.gap-4 { gap: 16px; } .gap-5 { gap: 20px; } .gap-6 { gap: 24px; }
.gap-8 { gap: 32px; } .gap-10 { gap: 40px; } .gap-12 { gap: 48px; }

/* Lines */
.hairline { background: var(--line); height: 1px; width: 100%; }
.hairline-v { background: var(--line); width: 1px; }

/* Marks */
.bracket-num {
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0;
  color: var(--fg-4);
}
.bracket-num::before { content: ""; }
.bracket-num::after { content: ""; }

/* Buttons */
.btn {
  font-family: var(--f-sans);
  font-size: 13px;
  letter-spacing: -0.005em;
  text-transform: none;
  font-weight: 500;
  white-space: nowrap;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-2);
  padding: 11px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
}
.btn:hover {
  border-color: var(--fg);
  background: rgba(255,255,255,0.02);
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn-primary:hover { background: var(--pitch-green); border-color: var(--pitch-green); color: #fff; }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: #5454f5; }

.btn-fire {
  background: var(--fire);
  color: #0A0807;
  border-color: var(--fire);
  font-weight: 600;
}.btn-fire:hover { background: var(--fire-2); }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
@keyframes flicker {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.85; transform: scaleY(0.96); }
}

/* Reveal helper */
.reveal { animation: fadeUp 0.6s ease both; }
.reveal-2 { animation: fadeUp 0.6s ease 0.1s both; }
.reveal-3 { animation: fadeUp 0.6s ease 0.2s both; }
.reveal-4 { animation: fadeUp 0.6s ease 0.3s both; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--line-2); }
::-webkit-scrollbar-thumb:hover { background: var(--fg-4); }

/* Background grain */
.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}
