/* ─────────────────────────────────────────────────────────────────────────
 * Variant: cursor-light
 * Cursor's marketing site language: pure white, near-black on white,
 * tight Inter Tight display headlines, JetBrains Mono accents,
 * hairline borders, almost-no shadows, generous spacing.
 * ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-tint: #f4f4f5;
  --surface: #ffffff;
  --line: #ececec;
  --line-strong: #d4d4d4;

  /* Text */
  --fg: #0a0a0a;
  --fg-soft: #1f1f1f;
  --muted: #737373;
  --muted-soft: #a3a3a3;

  /* Accent — Cursor uses near-black for primary actions on light. */
  --accent: #0a0a0a;
  --accent-soft: #f4f4f5;
  --accent-deep: #000000;
  --accent-fg: #ffffff;

  /* Sentiment — slightly muted vs default */
  --good: #15803d;
  --good-soft: #f0fdf4;
  --bad: #b91c1c;
  --bad-soft: #fef2f2;

  --low-bg: #f0fdf4; --low-fg: #166534;
  --mid-bg: #fffbeb; --mid-fg: #92400e;
  --high-bg: #fef2f2; --high-fg: #991b1b;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 0 0 1px rgba(0, 0, 0, .02);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-lg: 0 12px 32px -8px rgba(0, 0, 0, .08);

  --font: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;

  /* Chart hooks */
  --chart-line: #0a0a0a;
  --chart-fill: rgba(10, 10, 10, .05);
  --chart-grid: #f0f0f0;
  --chart-tick: #737373;
  --chart-marker-stroke: #ffffff;
}

body {
  font-family: var(--font);
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: rgba(255, 255, 255, .7);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(14px);
}
.brand { font-weight: 600; letter-spacing: -0.02em; font-size: 1.05rem; }
.brand-mark {
  width: 20px; height: 20px; border-radius: 0;
  background: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg);
}
.brand-mark svg { width: 18px; height: 20px; }
.nav a:not(.btn) { color: var(--fg-soft); font-weight: 500; }
.nav a.active:not(.btn) { color: var(--fg); background: var(--bg-soft); }

.btn { border-radius: 8px; font-weight: 500; }
.btn-primary { background: var(--fg); }
.btn-primary:hover { background: #262626; }
.btn-ghost { border-color: var(--line); color: var(--fg); }

/* ── Style switcher pill ────────────────────────────────────────────────── */
.style-switcher {
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 0.3rem; border-radius: 999px;
  margin: 1.75rem 0 0;
  font-size: 0.82rem;
}
.style-switcher-label {
  padding: 0 0.6rem 0 0.5rem; color: var(--muted);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 600;
}
.style-switcher a {
  padding: 0.4rem 0.85rem; border-radius: 999px;
  color: var(--fg-soft); font-weight: 500; text-decoration: none;
}
.style-switcher a:hover { background: #ffffff; color: var(--fg); }
.style-switcher a.active {
  background: var(--fg); color: #fff; box-shadow: var(--shadow);
}

/* ── Profile head — bigger, tighter ─────────────────────────────────────── */
.profile-head { padding: 3rem 0 2.25rem; gap: 1.75rem; }
.avatar { border-radius: 50%; border: 1px solid var(--line); }
.profile-id h1 {
  font-size: 2.4rem; letter-spacing: -0.035em; font-weight: 600;
}
.profile-id .meta { font-size: 0.95rem; color: var(--muted); }

/* ── Metric grid — Cursor flat cards ────────────────────────────────────── */
.metric-grid { gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.metric {
  background: var(--surface);
  border: 0; border-right: 1px solid var(--line); border-radius: 0;
  box-shadow: none;
  padding: 1.75rem 1.85rem;
}
.metric:last-child { border-right: none; }
.metric-label {
  font-size: 0.72rem; color: var(--muted); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.metric-value {
  font-size: 2.4rem; font-weight: 600;
  letter-spacing: -0.04em; margin-top: 0.4rem;
  font-feature-settings: "tnum", "ss01";
}
.metric-foot { font-size: 0.85rem; color: var(--muted); }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card { border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ── Ticker explorer ────────────────────────────────────────────────────── */
.ticker-sidebar {
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 0.75rem 0.5rem;
}
.ticker-sidebar h2 {
  font-size: 0.7rem; color: var(--muted); font-weight: 600;
  letter-spacing: 0.08em; padding: 0.5rem 0.85rem 0.6rem;
}
.ticker-sidebar li a {
  border-radius: 8px; border-left: none;
  padding: 0.6rem 0.85rem;
  transition: background 80ms ease;
}
.ticker-sidebar li.active a {
  background: var(--bg-soft); border-left: none; color: var(--fg);
}
.ticker-sidebar .ticker {
  font-family: var(--font-mono);
  font-size: 0.88rem; font-weight: 500; letter-spacing: -0.01em;
}
.ticker-sidebar .sidebar-meta {
  font-family: var(--font-mono); font-size: 0.74rem;
}

.ticker-panel {
  padding: 1.85rem 2rem;
  border-radius: var(--radius);
}
.ticker-panel-id h2 {
  font-size: 1.85rem; letter-spacing: -0.035em; font-weight: 600;
  font-family: var(--font-mono);
}
.ticker-panel-id .meta { color: var(--muted); }
.metric-cell label {
  font-size: 0.68rem; color: var(--muted); font-weight: 600;
  letter-spacing: 0.08em;
}
.metric-cell span {
  font-size: 1.6rem; font-weight: 600; letter-spacing: -0.025em;
  font-family: var(--font-mono);
}

.chart-wrap {
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem;
}

/* ── Tweet rows ─────────────────────────────────────────────────────────── */
.tweet-row {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.tweet-row .tweet-text {
  font-size: 0.95rem; line-height: 1.55; color: var(--fg);
}
.tweet-sentiment {
  font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.55rem; border-radius: 4px;
}
.tweet-row.tweet-bullish .tweet-sentiment { background: #f0fdf4; color: #166534; }
.tweet-row.tweet-bearish .tweet-sentiment { background: #fef2f2; color: #991b1b; }
.tweet-link { color: var(--fg); border-bottom: 1px solid var(--line-strong); }
.tweet-link:hover { border-bottom-color: var(--fg); text-decoration: none; }
.tweet-price, .tweet-return { font-family: var(--font-mono); font-size: 0.78rem; }

.risk-card { border-radius: var(--radius); }
.risk-card h2 {
  font-size: 1.25rem; letter-spacing: -0.02em; font-weight: 600;
}
.risk-pill {
  background: var(--bg-soft); color: var(--fg);
  border: 1px solid var(--line); font-weight: 500;
}
.components li { font-family: var(--font-mono); font-size: 0.85rem; }
.tabular, .pct { font-family: var(--font-mono); }
