/* llmrank.agency — design tokens (light edition) */
:root {
  /* surfaces */
  --bg: #f5f1e8;            /* warm paper */
  --bg-1: #efe9d7;          /* cards */
  --bg-2: #e8e0cd;          /* deeper card */
  --bg-3: #dfd6bd;          /* press */
  --border: #d6cfbf;
  --border-soft: #e0dac9;
  --border-bright: #c4bda9;

  /* text */
  --fg: #0a0a0a;
  --fg-dim: #4a4742;
  --fg-mute: #6e6963;
  --fg-faint: #a39e94;

  /* accent — signal orange */
  --accent: #ff5e1a;
  --accent-dim: #cc4615;
  --accent-glow: rgba(255, 94, 26, 0.18);
  --accent-glow-soft: rgba(255, 94, 26, 0.06);

  --warn: #c47d1e;
  --danger: #c44d35;

  --font-display: "Geist", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --container: 1320px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }

.mono { font-family: var(--font-mono); font-feature-settings: "ss01", "ss02", "zero"; }
.dim { color: var(--fg-dim); }
.mute { color: var(--fg-mute); }
.accent { color: var(--accent); }

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

/* Section header — small mono label with status dot */
.panel-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-mute);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.panel-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  border: 1px solid var(--border);
  background: var(--bg-1);
  color: var(--fg);
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}
.btn:hover { background: var(--bg-2); border-color: var(--border-bright); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fafaf7;
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-1); }
.btn .arr {
  display: inline-block;
  transition: transform 160ms ease;
}
.btn:hover .arr { transform: translateX(3px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* Chip / tag */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-1);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.chip.accent {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow-soft);
}

/* Card */
.card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* Grid lines bg helper */
.grid-bg {
  background-image:
    linear-gradient(to right, var(--border-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-soft) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* Headings */
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.02; }
h1 { font-size: clamp(48px, 7.2vw, 116px); letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: clamp(36px, 4.4vw, 72px); letter-spacing: -0.03em; }
h3 { font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -0.02em; }

p { margin: 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-bright); }

/* Selection */
::selection { background: var(--accent); color: #fafaf7; }

/* Section base */
section { position: relative; padding: 100px 0; border-top: 1px solid var(--border-soft); }
section:first-of-type { border-top: none; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head .lhs { max-width: 720px; }
.section-head h2 { margin-top: 18px; }

/* Subtle animations */
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.cursor { display: inline-block; width: 0.55em; height: 1em; background: var(--accent); vertical-align: text-bottom; animation: blink 1s infinite step-end; margin-left: 4px; transform: translateY(-2px); }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 94, 26, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(255, 94, 26, 0); }
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse-dot 2s infinite; display: inline-block; }
