:root {
  --bg: #0b1014;
  --bg-soft: #111920;
  --panel: rgba(18, 26, 34, 0.86);
  --panel-strong: #121d27;
  --line: rgba(184, 202, 214, 0.12);
  --line-strong: rgba(184, 202, 214, 0.2);
  --text: #edf4f8;
  --muted: #8ea2af;
  --accent: #d8a24d;
  --accent-2: #53c0b6;
  --accent-3: #ef7d57;
  --good: #70d38c;
  --warn: #f4c15d;
  --neutral: #b4c3cd;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(circle at top left, rgba(216, 162, 77, 0.12), transparent 22%),
    radial-gradient(circle at 85% 8%, rgba(83, 192, 182, 0.12), transparent 18%),
    linear-gradient(180deg, #081015 0%, #0b1014 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  min-height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
  padding: 22px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sidebar {
  position: sticky;
  top: 22px;
  align-self: start;
  padding: 22px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, #f0cf7f 100%);
  color: #162029;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 800;
}

.overline,
.section-kicker,
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.brand-lockup h1 {
  margin: 3px 0 0;
  font-size: 1.35rem;
}

.side-nav {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.side-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
  transition: background-color 160ms ease, color 160ms ease;
}

.side-nav a:hover,
.side-nav a.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.status-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.status-card.muted p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.signal-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.signal {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 999px;
}

.signal.live { background: var(--good); }
.signal.warm { background: var(--warn); }
.signal.idle { background: #628093; }

.workspace {
  display: grid;
  gap: 24px;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 22px;
  padding: 28px;
}

.hero-copy h2,
.module h3 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.94;
}

.hero-text {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 160ms ease, opacity 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #0f151b;
  background: linear-gradient(135deg, var(--accent) 0%, #f0cc79 100%);
}

.button-secondary {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.hero-snapshot {
  display: grid;
  gap: 14px;
}

.snapshot-card {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.snapshot-card.glow {
  background:
    radial-gradient(circle at top right, rgba(83, 192, 182, 0.14), transparent 40%),
    rgba(255, 255, 255, 0.03);
}

.snapshot-card span,
.metric span,
table td span,
.tool-link span,
.tool-note span {
  display: block;
  color: var(--muted);
}

.snapshot-card strong,
.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 2.05rem;
  font-family: var(--serif);
}

.snapshot-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.metrics-grid,
.three-up {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric,
.module {
  padding: 22px;
}

.module-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.module h3 {
  font-size: 1.75rem;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(216, 162, 77, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.pill.alt {
  background: rgba(83, 192, 182, 0.12);
  color: var(--accent-2);
}

.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.stage-list,
.pressure-list,
.mini-list,
.risk-grid,
.toolbox {
  display: grid;
  gap: 14px;
}

.stage,
.tool-note,
.tool-link,
.risk-grid > div {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.stage header,
.pressure-list li,
.mini-list li {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.stage header span,
.risk-grid span {
  color: var(--accent);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stage p,
.risk-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.pressure-list,
.mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pressure-list li,
.mini-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.pressure-list li:last-child,
.mini-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pressure-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.positive { color: var(--good); }
.warning { color: var(--warn); }
.neutral { color: var(--neutral); }

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding-bottom: 12px;
  text-align: left;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--line);
}

tbody td {
  padding: 16px 10px 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody td strong {
  display: block;
  margin-bottom: 5px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.tag.buy {
  background: rgba(112, 211, 140, 0.14);
  color: var(--good);
}

.tag.review {
  background: rgba(244, 193, 93, 0.14);
  color: var(--warn);
}

.tag.watch {
  background: rgba(180, 195, 205, 0.12);
  color: var(--neutral);
}

.compact h3 {
  font-size: 1.4rem;
}

.mini-list span {
  color: var(--accent-2);
  font-weight: 700;
}

.tool-link:hover,
.button:hover {
  opacity: 0.95;
}

.tool-link strong,
.tool-note strong {
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 1180px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .hero,
  .two-up,
  .three-up,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 14px;
  }

  .hero,
  .metric,
  .module,
  .sidebar {
    padding: 18px;
  }

  .hero-copy h2 {
    max-width: none;
    font-size: 2.6rem;
  }

  table {
    min-width: 700px;
  }
}
