/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #4b5563;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Colors */
:root {
  --primary: #0891b2;
  --primary-foreground: #ffffff;
  --secondary: #10b981;
  --background: #ffffff;
  --foreground: #4b5563;
  --muted: #f9fafb;
  --muted-foreground: #6b7280;
  --border: #e5e7eb;
  --card: #f9fafb;
  --positive: #10b981;
  --negative: #ef4444;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--foreground);
}

.logo-icon {
  height: 2rem;
  width: 2rem;
  color: var(--primary);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-box {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--muted);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
}

.search-icon {
  height: 1rem;
  width: 1rem;
  color: var(--muted-foreground);
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.875rem;
  width: 12rem;
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn svg {
  height: 1.25rem;
  width: 1.25rem;
  color: var(--foreground);
}

/* Hero Section */
.hero {
  background: linear-gradient(to bottom, rgba(8, 145, 178, 0.05), var(--background));
  padding: 4rem 0;
}

.hero-content {
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.text-primary {
  color: var(--primary);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.btn {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: #0e7490;
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--muted);
}

/* Sections */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--foreground);
}

/* Market Overview */
.market-overview {
  padding: 4rem 0;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.market-card {
  background-color: var(--card);
  border-radius: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.market-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.market-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.market-change {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.market-change.positive {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--positive);
}

.market-change.negative {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--negative);
}

.market-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.market-change-value {
  font-size: 0.875rem;
  font-weight: 500;
}

.market-change-value.positive {
  color: var(--positive);
}

.market-change-value.negative {
  color: var(--negative);
}

/* Top Stocks */
.top-stocks {
  padding: 4rem 0;
  background-color: var(--muted);
}

.stocks-table {
  background-color: var(--background);
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--card);
  font-weight: 600;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.table-row:last-child {
  border-bottom: none;
}

.stock-name {
  display: flex;
  flex-direction: column;
}

.stock-name strong {
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.stock-symbol {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.stock-price {
  font-weight: 600;
  color: var(--foreground);
}

.stock-change.positive,
.stock-percent.positive {
  color: var(--positive);
}

.stock-change.negative,
.stock-percent.negative {
  color: var(--negative);
}

/* News Section */
.news-section {
  padding: 4rem 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  background-color: var(--card);
  border-radius: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.news-category {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.news-date {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.news-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-excerpt {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Features */
.features {
  padding: 4rem 0;
  background-color: rgba(249, 250, 251, 0.5);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--background);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
}

.feature-icon {
  height: 3rem;
  width: 3rem;
  color: var(--primary);
  margin: 0 auto 1rem;
}

.feature-icon svg {
  height: 100%;
  width: 100%;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.feature-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Footer */
.footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.disclaimer {
  font-size: 0.75rem !important;
  color: var(--muted-foreground);
}

/* Responsive Design */
@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .search-box {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .hero-buttons {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}
