body {
  margin: 0;
  background: #0f172a;
  color: #e5e7eb;
  font-family: Arial, sans-serif;
}

.container {
  padding: 30px;
  max-width: 1000px;
  margin: auto;
}

h1 {
  margin-bottom: 20px;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.card {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 14px;
}

.card span {
  font-size: 12px;
  color: #94a3b8;
}

.card strong {
  font-size: 20px;
  display: block;
  transition: color 0.3s ease;
}

/* COLORS MERCAT */
#market.up { color: #22c55e; }
#market.down { color: #ef4444; }

/* GRÀFIC */
.chart-container {
  margin-top: 25px;
  background: linear-gradient(180deg, #020617, #020617cc);
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 16px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

#marketChart {
  max-height: 280px;
}

/* INTERPRETACIÓ */
.info-section {
  margin-top: 30px;
  padding: 20px;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 12px;
}

#marketMessage {
  font-size: 16px;
  margin-top: 10px;
  transition: color 0.3s ease;
}

#marketMessage.up { color: #22c55e; }
#marketMessage.down { color: #ef4444; }
#marketMessage.neutral { color: #cbd5f5; }

.note {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 10px;
}

/* CTA */
.cta-section {
  margin-top: 35px;
  padding: 30px;
  text-align: center;
  background: linear-gradient(180deg, #020617, #020617cc);
  border: 1px solid #1e293b;
  border-radius: 14px;
}

.cta-button {
  display: inline-block;
  margin-top: 15px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: bold;
  color: #020617;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(56,189,248,0.3);
}

.cta-note {
  margin-top: 12px;
  font-size: 12px;
  color: #94a3b8;
}
