*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f8fc;
  color: #111827;
}

.hero {
  background: linear-gradient(135deg, #07111f, #102a43, #1e3a8a);
  color: white;
  padding: 28px 8%;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

button {
  background: #38bdf8;
  color: #06111f;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #7dd3fc;
}

.hero-content {
  max-width: 780px;
  padding-bottom: 50px;
}

.hero-content h1 {
  font-size: 3.4rem;
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero-content p {
  font-size: 1.2rem;
  color: #dbeafe;
}

main {
  padding: 36px 8%;
}

.controls {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

input,
select {
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 1rem;
  min-width: 250px;
}

.stocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.stock-card {
  background: white;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}

.stock-card:hover {
  transform: translateY(-3px);
  transition: 0.2s ease;
}

.stock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.symbol {
  background: #e0f2fe;
  color: #075985;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
}

.company {
  margin-top: 12px;
  font-size: 1.2rem;
  font-weight: 800;
}

.category {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #64748b;
}

.price {
  margin-top: 20px;
  font-size: 2rem;
  font-weight: 900;
}

.price1 {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 500;
}

.date1 {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 500;
}

.change {
  margin-top: 6px;
  font-weight: 700;
}

.positive {
  color: #16a34a;
}

.negative {
  color: #dc2626;
}

.loading {
  color: #64748b;
}

footer {
  text-align: center;
  padding: 30px;
  color: #64748b;
}