/* RICS Analytics — Monolith Aesthetic tokens */

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

:root {
  /* Surfaces */
  --bg: #131313;
  --surface: #131313;
  --surface-low: #1C1B1B;
  --surface-lowest: #0E0E0E;
  --surface-high: #2A2A2A;
  --surface-highest: #353534;

  /* Text */
  --primary: #FFFFFF;
  --primary-container: #D5D4D4;
  --on-primary: #1A1C1C;
  --on-surface: #E5E2E1;
  --on-surface-variant: #C6C6C6;
  --on-surface-dim: #8A8887;
  --on-surface-quiet: #5E5C5B;

  /* Lines (use sparingly) */
  --outline-variant: #474747;
  --ghost: rgba(71, 71, 71, 0.15);
  --ghost-strong: rgba(71, 71, 71, 0.35);

  /* Type */
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Radius */
  --r-1: 4px;
  --r-2: 8px;

  /* Shadows (ambient occlusion only) */
  --shadow-ambient: 0 24px 40px 0 rgba(0, 0, 0, 0.15);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--on-surface); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body { font-size: 15px; line-height: 1.55; font-weight: 400; letter-spacing: -0.005em; }

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

::selection { background: var(--primary); color: var(--on-primary); }

/* Type scale */
.display-lg { font-size: clamp(64px, 9vw, 144px); line-height: 0.92; letter-spacing: -0.035em; font-weight: 600; }
.display-md { font-size: clamp(48px, 6vw, 88px); line-height: 0.96; letter-spacing: -0.03em; font-weight: 600; }
.display-sm { font-size: clamp(36px, 4vw, 56px); line-height: 1.02; letter-spacing: -0.025em; font-weight: 600; }
.headline    { font-size: 28px; line-height: 1.15; letter-spacing: -0.018em; font-weight: 500; color: var(--on-surface); }
.title       { font-size: 18px; line-height: 1.3; letter-spacing: -0.012em; font-weight: 500; color: var(--on-surface); }
.body        { font-size: 15px; line-height: 1.6; color: var(--on-surface-variant); }
.body-sm     { font-size: 13px; line-height: 1.5; color: var(--on-surface-variant); }
.label       { font-size: 11px; line-height: 1; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-surface-dim); font-family: var(--font-mono); font-weight: 500; }
.label-on    { color: var(--on-surface); }
.mono        { font-family: var(--font-mono); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: var(--r-1); font-size: 14px; font-weight: 500; letter-spacing: -0.005em; border: 0; transition: background 160ms ease, transform 160ms ease, color 160ms ease; }
.btn-sm { padding: 9px 14px; font-size: 12.5px; gap: 8px; }
.btn-primary { background: linear-gradient(180deg, #FFFFFF 0%, #D5D4D4 100%); color: var(--on-primary); }
.btn-primary:hover { background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 100%); }
.btn-secondary { background: var(--surface-high); color: var(--on-surface); }
.btn-secondary:hover { background: var(--surface-highest); }
.btn-tertiary { background: transparent; color: var(--on-surface); padding-left: 0; padding-right: 0; }
.btn-tertiary:hover { color: var(--primary); }

.arrow { display: inline-block; transition: transform 200ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Inputs */
.input {
  width: 100%;
  background: var(--surface-lowest);
  border: 1px solid var(--ghost);
  color: var(--on-surface);
  font-family: inherit;
  font-size: 14px;
  padding: 14px 16px;
  border-radius: var(--r-1);
  outline: 0;
  transition: border-color 160ms ease;
}
.input::placeholder { color: var(--on-surface-quiet); }
.input:focus { border-color: var(--primary); }

/* Grid scaffolding */
.container { max-width: 1440px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 760px) { .container { padding: 0 24px; } }

.col-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }

/* Section spacing */
.section { padding: 120px 0; }
.section-tight { padding: 80px 0; }

/* Ghost border util */
.ghost-border { border: 1px solid var(--ghost); }
.ghost-border-strong { border: 1px solid var(--ghost-strong); }

/* Tonal cards */
.card-inset { background: var(--surface-lowest); }
.card-low { background: var(--surface-low); }
.card-high { background: var(--surface-high); }

/* Eyebrow row */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; display: inline-block; width: 24px; height: 1px; background: var(--on-surface-dim); }

/* Tabular numerals for data */
.tnum { font-variant-numeric: tabular-nums; }

/* Subtle reveal */
.reveal { opacity: 0; transition: opacity 700ms cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; }
