:root {
  --bg-color: #0a0a0c;
  --surface-color: #1a1b20;
  --surface-hover: #23252a;
  --text-primary: #e0e0e0;
  --text-secondary: #9aa0a6;
  --accent-color: #60a5fa;
  --accent-hover: #3b82f6;
  --border-color: #2d3036;
}

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

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

.app-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #fff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.agent-status {
  display: inline-flex;
  align-items: center;
  background: var(--surface-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(96, 165, 250, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); }
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.overview {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-style: italic;
  border-left: 3px solid var(--accent-color);
  padding-left: 15px;
}

.digest-section {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.digest-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  border-color: var(--accent-color);
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--accent-color);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.digest-section h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #fff;
}

.digest-section p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.why-it-matters {
  background: rgba(255,255,255,0.03);
  padding: 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.why-it-matters strong {
  color: #fff;
}

.source-link {
  display: inline-block;
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.source-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

footer {
  text-align: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

footer p { margin-bottom: 5px; }

/* Loader */
.loader {
  border: 3px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--accent-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

button {
  background: var(--accent-color);
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover { background: var(--accent-hover); }
