:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --fg-primary: #e8e8ef;
  --fg-secondary: #8888a0;
  --fg-muted: #55556a;
  --accent: #00ff88;
  --accent-dim: rgba(0, 255, 136, 0.15);
  --accent-glow: rgba(0, 255, 136, 0.08);
  --tier1: #ff6b35;
  --tier2: #ffd700;
  --tier3: #00bfff;
  --critical: #ff3b3b;
  --warning: #ff9f1c;
  --info: #00bfff;
  --neutral: #8888a0;
  --border: rgba(255, 255, 255, 0.06);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background: var(--bg-primary);
  color: var(--fg-primary);
  font-family: var(--font-heading);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.accent { color: var(--accent); }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 255, 136, 0.04), transparent),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-grid {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--accent-dim);
  display: inline-block;
  margin-bottom: 32px;
  background: var(--accent-glow);
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-secondary);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scan {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.scan-line {
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-dim) 50%, transparent 100%);
  animation: scan 8s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { top: 10%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  50% { top: 90%; }
}

/* === SECTION SHARED === */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 16px;
}

/* === AGENTS === */
.agents {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.agents h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}

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

.agent-card {
  background: var(--bg-secondary);
  padding: 36px 28px;
  position: relative;
  transition: background 0.3s;
}

.agent-card:hover {
  background: var(--bg-card-hover);
}

.agent-id {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.agent-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--fg-primary);
}

.agent-card p {
  font-size: 0.88rem;
  color: var(--fg-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.agent-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid var(--accent-dim);
  display: inline-block;
  background: var(--accent-glow);
}

/* === ROSTER === */
.roster {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.roster h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}

.tier-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tier-block {
  background: var(--bg-secondary);
  padding: 32px;
  border-left: 3px solid var(--fg-muted);
  transition: background 0.3s;
}

.tier-block:hover {
  background: var(--bg-card-hover);
}

.tier-block:nth-child(1) { border-left-color: var(--tier1); }
.tier-block:nth-child(2) { border-left-color: var(--tier2); }
.tier-block:nth-child(3) { border-left-color: var(--tier3); }

.tier-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.tier-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  padding: 4px 12px;
  font-weight: 600;
}

.tier-1 { color: var(--tier1); background: rgba(255, 107, 53, 0.1); border: 1px solid rgba(255, 107, 53, 0.2); }
.tier-2 { color: var(--tier2); background: rgba(255, 215, 0, 0.1); border: 1px solid rgba(255, 215, 0, 0.2); }
.tier-3 { color: var(--tier3); background: rgba(0, 191, 255, 0.1); border: 1px solid rgba(0, 191, 255, 0.2); }

.tier-desc {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tier-artists {
  font-size: 0.95rem;
  color: var(--fg-secondary);
  line-height: 1.8;
}

/* === DIGEST === */
.digest {
  padding: 100px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.digest h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.digest-sub {
  color: var(--fg-secondary);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

.digest-structure {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.digest-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-secondary);
  padding: 24px 28px;
  transition: background 0.3s;
}

.digest-item:hover {
  background: var(--bg-card-hover);
}

.digest-priority {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  white-space: nowrap;
  margin-top: 4px;
  flex-shrink: 0;
}

.digest-priority.critical { color: var(--critical); border: 1px solid rgba(255, 59, 59, 0.25); background: rgba(255, 59, 59, 0.08); }
.digest-priority.warning { color: var(--warning); border: 1px solid rgba(255, 159, 28, 0.25); background: rgba(255, 159, 28, 0.08); }
.digest-priority.info { color: var(--info); border: 1px solid rgba(0, 191, 255, 0.25); background: rgba(0, 191, 255, 0.08); }
.digest-priority.neutral { color: var(--neutral); border: 1px solid rgba(136, 136, 160, 0.25); background: rgba(136, 136, 160, 0.08); }

.digest-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.digest-content p {
  font-size: 0.85rem;
  color: var(--fg-secondary);
  line-height: 1.6;
}

/* === CLOSING === */
.closing {
  padding: 120px 40px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 120%, rgba(0, 255, 136, 0.06), transparent),
    var(--bg-primary);
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.closing p {
  font-size: 1rem;
  color: var(--fg-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.closing-markets {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.market {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  padding: 8px 20px;
  border: 1px solid var(--accent-dim);
  background: var(--accent-glow);
}

/* === FOOTER === */
.site-footer {
  padding: 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--fg-primary);
  font-weight: 600;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 80px 24px 60px; min-height: auto; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 20px; }
  .stat-divider { width: 40px; height: 1px; }
  .agents, .roster, .digest { padding: 60px 24px; }
  .agent-grid { grid-template-columns: 1fr; }
  .closing { padding: 80px 24px; }
  .closing-markets { flex-direction: column; align-items: center; gap: 12px; }
  .digest-item { flex-direction: column; gap: 12px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 1rem; }
  .agent-card { padding: 24px 20px; }
  .tier-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}