/* REVCHAIN — Brutalist Affiliate Tokens */
:root {
  --bg: #f4f1e8;
  --bg-2: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #2a2a2a;
  --muted: #6b6b6b;
  --line: #0a0a0a;
  --accent: #d9f02b;        /* default: acid lime */
  --accent-ink: #0a0a0a;
  --danger: #ff3b3b;
  --good: #00c853;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 0px;
  --b: 2px;
  --bb: 3px;
  --fs-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-sans: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-display: "Archivo", "Space Grotesk", Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --ink: #f4f1e8;
  --ink-2: #d0d0d0;
  --muted: #8a8a8a;
  --line: #f4f1e8;
  --shadow: 6px 6px 0 var(--line);
  --shadow-sm: 3px 3px 0 var(--line);
}

[data-accent="lime"]    { --accent: #d9f02b; --accent-ink: #0a0a0a; }
[data-accent="yellow"]  { --accent: #ffd400; --accent-ink: #0a0a0a; }
[data-accent="magenta"] { --accent: #ff3da6; --accent-ink: #0a0a0a; }
[data-accent="cyan"]    { --accent: #00e5ff; --accent-ink: #0a0a0a; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--fs-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--fs-display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
.mono { font-family: var(--fs-mono); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--fs-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: var(--b) solid var(--line);
  padding: 4px 8px;
  background: var(--bg-2);
}
.tag.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tag.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--line); }
.tag .dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.tag .dot.live { background: var(--good); box-shadow: 0 0 0 2px color-mix(in srgb, var(--good) 30%, transparent); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--fs-sans); font-weight: 700; font-size: 15px;
  padding: 14px 22px;
  border: var(--bb) solid var(--line);
  background: var(--bg-2); color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 80ms ease, box-shadow 80ms ease;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--line); }
.btn:active { transform: translate(0, 0); box-shadow: 1px 1px 0 var(--line); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ink { background: var(--ink); color: var(--bg); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--ink); color: var(--bg); transform: none; }
.btn.sm { padding: 8px 14px; font-size: 13px; border-width: 2px; }

.card {
  background: var(--bg-2);
  border: var(--b) solid var(--line);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card.flat { box-shadow: none; }
.card.ink { background: var(--ink); color: var(--bg); }
.card.accent { background: var(--accent); color: var(--accent-ink); }

/* Section scaffolding */
.section { border-top: var(--b) solid var(--line); padding: 80px 0; position: relative; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.section-title { font-size: clamp(36px, 5vw, 64px); max-width: 760px; line-height: 1.12; }
.section-title span { line-height: 1.18; display: inline-block; }
.section-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-family: var(--fs-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.section-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--ink); }
.section-sub { font-size: 18px; color: var(--ink-2); max-width: 480px; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Marquee */
.marquee {
  display: flex; gap: 48px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Form controls */
.input, .select, .textarea {
  width: 100%;
  background: var(--bg-2);
  border: var(--b) solid var(--line);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  border-radius: 0;
}
.input:focus, .select:focus, .textarea:focus { box-shadow: var(--shadow-sm); transform: translate(-2px, -2px); }
.label { font-family: var(--fs-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; font-weight: 600; }

/* Range slider */
.slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px;
  background: var(--bg);
  border: var(--b) solid var(--line);
  outline: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  background: var(--accent);
  border: var(--b) solid var(--line);
  cursor: grab;
}
.slider::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--accent);
  border: var(--b) solid var(--line);
  cursor: grab;
  border-radius: 0;
}

/* Tickers */
.ticker {
  font-family: var(--fs-mono); font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Utility */
.flex { display: flex; }
.grid { display: grid; }
.between { justify-content: space-between; }
.center { align-items: center; justify-content: center; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.muted { color: var(--muted); }
.uppercase { text-transform: uppercase; letter-spacing: 0.08em; }
.eyebrow { font-family: var(--fs-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Stripe placeholder for images */
.placeholder {
  background: repeating-linear-gradient(45deg, var(--bg) 0, var(--bg) 8px, color-mix(in srgb, var(--ink) 10%, var(--bg)) 8px, color-mix(in srgb, var(--ink) 10%, var(--bg)) 16px);
  border: var(--b) solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fs-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
}

/* Tweaks panel match brutalist */
[data-tweaks-panel] {
  font-family: var(--fs-sans) !important;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 32px; }
}
