:root {
  --bg: #0e1014;
  --bg-soft: #161a21;
  --bg-card: #1c2129;
  --fg: #e8e5df;
  --fg-muted: #a39e93;
  --fg-dim: #6b6961;
  --accent: #c8924c;
  --accent-strong: #e0a55c;
  --accent-soft: rgba(200, 146, 76, 0.12);
  --rotary: #f7a81b;
  --rotary-blue: #17458f;
  --border: rgba(232, 229, 223, 0.08);
  --border-strong: rgba(232, 229, 223, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  font-feature-settings: 'ss01', 'cv11';
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 16, 20, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
}
.brand {
  font-family: 'Source Serif 4', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--fg);
}
.brand span { color: var(--rotary); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--rotary);
  box-shadow: 0 0 0 0 rgba(247, 168, 27, 0.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(247, 168, 27, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(247, 168, 27, 0); }
  100% { box-shadow: 0 0 0 0 rgba(247, 168, 27, 0); }
}

/* Hero */
.hero {
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 70% 30%, rgba(247, 168, 27, 0.08), transparent 50%);
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rotary);
  margin-bottom: 1rem;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1.25rem;
  max-width: 800px;
}
.hero h1 em {
  color: var(--rotary);
  font-style: italic;
}
.lead {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 720px;
  margin-bottom: 1.5rem;
}
.meta {
  font-size: 0.85rem;
  color: var(--fg-dim);
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
}

/* Sections */
section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.75rem;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 720px;
  margin-bottom: 2rem;
}

/* Grid + Cards */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 1.6rem 1.4rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  color: var(--fg);
}
.card p {
  color: var(--fg-muted);
  margin-bottom: 0.85rem;
  font-size: 0.97rem;
}
.card p:last-child { margin-bottom: 0; }
.card.highlight {
  border-color: var(--rotary);
  background: linear-gradient(180deg, rgba(247, 168, 27, 0.04), var(--bg-card));
}
.card.placeholder {
  border-style: dashed;
  border-color: var(--accent);
  background: transparent;
}
.card.placeholder h3 { color: var(--accent-strong); }
.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rotary);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

ul.check { list-style: none; padding: 0; margin: 0 0 0.8rem; }
ul.check li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
  color: var(--fg-muted);
  font-size: 0.95rem;
}
ul.check li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rotary);
  font-weight: 700;
}
ul.check li em {
  color: var(--fg-dim);
  font-style: normal;
  font-size: 0.85rem;
}

.muted-line {
  font-size: 0.88rem;
  color: var(--fg-dim);
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  letter-spacing: 0.01em;
  margin-bottom: 0.85rem;
}

.aside {
  margin-top: 2.5rem;
  padding: 1.6rem 1.4rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--rotary);
  border-radius: 4px;
}
.aside h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}
.aside p {
  color: var(--fg-muted);
  font-size: 0.97rem;
}

/* Footer */
footer {
  padding: 2.5rem 0;
  text-align: center;
  background: var(--bg-soft);
}
footer p {
  color: var(--fg-muted);
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}
footer p:last-child { margin-bottom: 0; }

/* Wide card spans full row (used for tables) */
.card.wide { grid-column: 1 / -1; }

/* Live data table */
.live-table-wrap { overflow-x: auto; margin-top: 0.4rem; }
.live-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.live-table th,
.live-table td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border-strong);
}
.live-table th {
  color: var(--accent-strong);
  font-weight: 600;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.02);
}
.live-table td:first-child {
  white-space: nowrap;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.live-table tbody tr:last-child td { border-bottom: none; }
.live-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.live-table a {
  color: var(--accent-strong);
  border-bottom: 1px dotted rgba(224, 165, 92, 0.45);
  padding-bottom: 1px;
}
.live-table a:hover {
  color: var(--rotary);
  border-bottom-color: var(--rotary);
}

/* Live update animation */
.card.fresh {
  animation: fresh-glow 2s ease-out;
}
@keyframes fresh-glow {
  0% {
    border-color: var(--rotary);
    box-shadow: 0 0 30px rgba(247, 168, 27, 0.4);
    transform: scale(1.01);
  }
  100% {
    border-color: var(--border-strong);
    box-shadow: none;
    transform: scale(1);
  }
}

@media (max-width: 700px) {
  .nav { padding: 0.7rem 1rem; }
  .brand { font-size: 0.92rem; }
  .status-badge { font-size: 0.68rem; padding: 0.3rem 0.65rem; }
  .hero { padding: 3.5rem 0 2.5rem; }
  section { padding: 3rem 0; }
}
