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

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

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

/* Header Styles */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid #e5e5e5;
  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 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  height: 2rem;
  width: 2rem;
  border-radius: 4px;
  background-color: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.875rem;
}

.logo-text {
  font-weight: bold;
  font-size: 1.125rem;
}

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

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  color: #333333;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #8b5cf6;
}

.search-container {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .search-container {
    display: flex;
  }
}

.search-box {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666666;
  width: 1rem;
  height: 1rem;
}

.search-input {
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.375rem;
  width: 16rem;
  font-size: 0.875rem;
}

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

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.nav-mobile {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid #e5e5e5;
}

.nav-mobile.active {
  display: block;
}

.nav-mobile-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-mobile-link {
  color: #333333;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-mobile-link:hover {
  color: #8b5cf6;
}

.mobile-search {
  padding-top: 1rem;
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

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

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

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-accent {
  color: #8b5cf6;
  display: block;
}

.hero-description {
  font-size: 1.25rem;
  color: #666666;
  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;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: #333333;
  color: white;
}

.btn-primary:hover {
  background-color: #1f1f1f;
}

.btn-outline {
  background-color: transparent;
  color: #333333;
  border-color: #e5e5e5;
}

.btn-outline:hover {
  background-color: #f8f9fa;
}

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

.section-title {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
}

.market-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .market-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .market-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.market-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.market-name {
  font-size: 1.125rem;
  font-weight: 600;
}

.market-code {
  font-size: 0.875rem;
  color: #666666;
}

.market-price {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.market-change {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.market-change.positive {
  color: #16a34a;
}

.market-change.negative {
  color: #dc2626;
}

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

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  color: #8b5cf6;
  margin: 0 auto 1rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-description {
  color: #666666;
  line-height: 1.6;
}

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

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

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.news-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-content {
  padding: 1.5rem;
}

.news-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.news-date {
  font-size: 0.875rem;
  color: #666666;
  margin-bottom: 1rem;
}

.news-excerpt {
  color: #666666;
  line-height: 1.6;
}

/* Footer */
.footer {
  background-color: #1f1f1f;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section {
  display: flex;
  flex-direction: column;
}

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

.footer-logo .logo-icon {
  background-color: #8b5cf6;
}

.footer-description {
  color: #cccccc;
  line-height: 1.6;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

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

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #8b5cf6;
}

.footer-legal {
  color: #cccccc;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid #333333;
  padding-top: 2rem;
  text-align: center;
}

.copyright {
  color: #cccccc;
  margin-bottom: 1rem;
}

.footer-disclaimer {
  color: #999999;
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Additional styles for new pages */
.page-header {
  padding: 3rem 0 2rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e5e5e5;
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-align: center;
}

.page-description {
  font-size: 1.125rem;
  color: #666666;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.content-section {
  padding: 3rem 0;
}

/* Market Data Page Styles */
.market-data-section {
  padding: 2rem 0;
}

.data-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .data-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.data-card {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.data-card.large {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .data-card.large {
    grid-column: span 2;
  }
}

.data-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #8b5cf6;
}

.index-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.index-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 0.375rem;
}

.index-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.index-code {
  font-size: 0.875rem;
  color: #666666;
}

.index-values {
  text-align: right;
}

.current-price {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background-color: #f8f9fa;
  border-radius: 0.375rem;
}

.rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: #8b5cf6;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.875rem;
}

.stock-info {
  flex: 1;
}

.stock-name {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.stock-code {
  font-size: 0.875rem;
  color: #666666;
}

.stock-change {
  font-weight: 600;
}

/* Disclaimer Page Styles */
.disclaimer-content {
  max-width: 800px;
  margin: 0 auto;
}

.warning-box {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.warning-box h2 {
  color: #dc2626;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.warning-box p {
  color: #7f1d1d;
  line-height: 1.6;
}

.disclaimer-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e5e5;
}

.disclaimer-section:last-child {
  border-bottom: none;
}

.disclaimer-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333333;
}

.disclaimer-section p {
  line-height: 1.8;
  color: #555555;
}

/* About Page Styles */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.company-info {
  margin-bottom: 3rem;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.info-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: top;
}

.info-table td:first-child {
  font-weight: 600;
  background-color: #f8f9fa;
  width: 30%;
}

.mission-section,
.license-section {
  margin-bottom: 3rem;
}

.mission-section h2,
.license-section h2,
.license-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333333;
}

.license-section h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.license-section ul {
  list-style-type: disc;
  padding-left: 2rem;
  line-height: 1.8;
}

.license-section li {
  margin-bottom: 0.5rem;
  color: #555555;
}

/* Responsive Design */
@media (max-width: 767px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero {
    padding: 3rem 0;
  }

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

  .hero-description {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .news-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .page-title {
    font-size: 2rem;
  }

  .index-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .index-values {
    text-align: center;
  }

  .info-table td:first-child {
    width: 40%;
  }

  .ranking-item {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
