:root {
  --bg: #0a0a0b;
  --surface: #131315;
  --surface-2: #17181b;
  --border: rgba(245, 245, 243, 0.09);
  --border-strong: rgba(245, 245, 243, 0.16);
  --text: #f5f5f3;
  --text-muted: rgba(245, 245, 243, 0.58);
  --text-faint: rgba(245, 245, 243, 0.36);
  --accent: #e3b341;
  --positive: #3ddc84;
  --negative: #ff6b6b;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

/* ---------- Header ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 26px;
  height: 13px;
  overflow: visible;
}

.brand-mark polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-name {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-name strong {
  font-weight: 700;
  color: var(--accent);
}

.topnav {
  display: flex;
  gap: 28px;
}

.topnav-item {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ---------- Hero ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.hero-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.ticker-name {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.05;
}

.ticker-exchange {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 28px;
  letter-spacing: 0.02em;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.price {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.price-label {
  font-size: 13px;
  color: var(--text-faint);
}

.thesis-line {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0;
}

.hero-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.score-ring {
  --score: 0;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--score) * 1%), var(--surface-2) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.score-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.score-value {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.score-max {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-faint);
}

.score-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Section shared ---------- */

.section-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 4px;
}

.section-sub {
  font-size: 13px;
  color: var(--text-faint);
  margin: 0 0 24px;
}

.variables {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.variables .section-title {
  margin-bottom: 24px;
}

/* ---------- Variable cards ---------- */

.var-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.var-card {
  background: var(--bg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.var-label {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.var-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.var-value.up {
  color: var(--positive);
}

.var-value.down {
  color: var(--negative);
}

.var-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 0;
  line-height: 1.4;
}

/* ---------- Ranking ---------- */

.ranking {
  padding: 48px 0 40px;
}

.rank-table {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 56px 1fr 64px;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  position: relative;
}

.rank-range {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.rank-bar-track {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
}

.rank-bar {
  --w: 0%;
  height: 100%;
  width: var(--w);
  background: var(--text-faint);
  border-radius: 3px;
}

.rank-row.is-current .rank-bar {
  background: var(--accent);
}

.rank-row.is-current .rank-range,
.rank-row.is-current .rank-figure {
  color: var(--text);
}

.rank-figure {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rank-tag {
  position: absolute;
  right: 0;
  bottom: -16px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.rank-caption {
  font-size: 12px;
  color: var(--text-faint);
  margin: 28px 0 0;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.site-footer p {
  font-size: 12px;
  color: var(--text-faint);
  max-width: 480px;
  margin: 0;
  line-height: 1.6;
}

/* ---------- Coming soon ---------- */

.coming-soon .topbar {
  padding-bottom: 80px;
}

.coming-soon .hero {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.coming-soon .ticker-name {
  margin-bottom: 12px;
}

.coming-soon .thesis-line {
  max-width: 520px;
}

.coming-soon .var-value {
  font-size: 20px;
}

.coming-soon .seo-copy {
  padding: 48px 0 40px;
}

.coming-soon .seo-copy .section-title {
  margin-bottom: 16px;
}

.coming-soon .seo-copy p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 14px;
  line-height: 1.6;
}

.coming-soon .seo-copy .seo-status {
  color: var(--text);
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  .hero-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-score {
    align-self: center;
  }

  .ticker-name {
    font-size: 34px;
  }

  .var-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 48px 1fr 56px;
  }
}
