:root {
  --bg: #0A0A0F;
  --surface: #111118;
  --surface-2: #1A1A24;
  --border: #22222E;
  --amber: #E8A020;
  --amber-dim: rgba(232, 160, 32, 0.15);
  --amber-glow: rgba(232, 160, 32, 0.08);
  --text: #EDE8DF;
  --text-muted: #8A8799;
  --text-dim: #5A5872;
  --critical: #FF4757;
  --high: #FF9F43;
  --medium: #3B82F6;
  --low: #4B5563;
  --green: #10B981;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── TOPBAR ── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.topbar-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid rgba(232,160,32,0.2);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 100px 60px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,160,32,0.06) 0%, transparent 70%);
  top: -200px; left: -100px;
}

.glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,160,32,0.04) 0%, transparent 70%);
  bottom: 0; right: 20%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.live-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 28px;
}

.hero-headline em {
  font-style: italic;
  color: var(--amber);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 44px;
}

.hero-status-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green { background: var(--green); }
.dot-amber { background: var(--amber); animation: pulse 1.5s ease-in-out infinite; }

/* ── COMMAND PANEL ── */
.hero-visual {
  position: relative;
  z-index: 1;
}

.command-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 32px 64px rgba(0,0,0,0.4);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.panel-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-dim);
}

.panel-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--green);
}

.signal-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.signal-item:last-child { border-bottom: none; }
.signal-item:hover { background: rgba(255,255,255,0.02); }

.signal-time {
  font-size: 11px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.signal-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.signal-detail {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.signal-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 2px;
}

.badge-critical { background: rgba(255,71,87,0.15); color: var(--critical); }
.badge-high { background: rgba(255,159,67,0.15); color: var(--high); }
.badge-medium { background: rgba(59,130,246,0.12); color: #60A5FA; }
.badge-low { background: rgba(75,85,99,0.15); color: var(--text-dim); }

.panel-footer {
  display: flex;
  gap: 24px;
  padding: 12px 20px;
  background: var(--surface-2);
  font-size: 11px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

.agent-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.agent-avatar {
  width: 36px; height: 36px;
  background: var(--amber-dim);
  border: 1px solid rgba(232,160,32,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agent-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.agent-role {
  font-size: 11px;
  color: var(--green);
  margin-top: 2px;
}

/* ── SIGNAL FEED ── */
.signal-feed-section {
  padding: 0 60px 80px;
}

.signal-feed-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 32px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.feed-stat {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.feed-number {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
}

.feed-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.feed-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── FEATURES ── */
.features {
  padding: 100px 60px;
}

.features-header {
  max-width: 640px;
  margin: 0 auto 72px;
  text-align: center;
}

.section-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.features-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.features-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s;
}

.feature-card:hover {
  background: var(--surface-2);
}

.feature-icon {
  width: 44px; height: 44px;
  background: var(--amber-dim);
  border: 1px solid rgba(232,160,32,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── MANIFESTO ── */
.manifesto {
  padding: 100px 60px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manifesto-inner {
  max-width: 720px;
  margin: 0 auto;
}

.manifesto-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 32px;
}

.manifesto-quote {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 32px;
  border-left: 3px solid var(--amber);
  padding-left: 28px;
}

.manifesto-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.manifesto-tagline {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-style: italic;
  color: var(--amber);
  margin-top: 40px;
}

/* ── CLOSING ── */
.closing {
  padding: 120px 60px;
}

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

.closing-visual {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 48px;
}

.closing-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(232,160,32,0.3);
  animation: rotate 8s linear infinite;
}

.ring-1 {
  width: 120px; height: 120px;
  top: 0; left: 0;
  border-color: rgba(232,160,32,0.3);
}

.ring-2 {
  width: 90px; height: 90px;
  top: 15px; left: 15px;
  border-color: rgba(232,160,32,0.15);
  animation-direction: reverse;
  animation-duration: 6s;
}

.ring-3 {
  width: 60px; height: 60px;
  top: 30px; left: 30px;
  border-color: rgba(232,160,32,0.08);
  animation-duration: 4s;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.closing-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(232,160,32,0.15);
}

.closing-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── FOOTER ── */
.footer {
  padding: 32px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Instrument Serif', serif;
  font-size: 16px;
  color: var(--text-muted);
}

.footer-note {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 80px 32px 60px;
    gap: 48px;
  }

  .hero-headline { font-size: 38px; letter-spacing: -1px; }
  .features { padding: 60px 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .manifesto { padding: 60px 32px; }
  .closing { padding: 80px 32px; }
  .signal-feed-section { padding: 0 32px 60px; }
  .signal-feed-inner { flex-direction: column; gap: 24px; }
  .feed-divider { width: 60px; height: 1px; }
  .topbar { padding: 0 24px; }
  .footer { flex-direction: column; gap: 12px; padding: 24px 32px; }
}
