/* ==========================================================
   HOME PAGE CONTENT (dark-mode optimized)
   ========================================================== */

main {
  flex: 1;
  padding: 0 1rem 2rem;
  color: var(--text-color);
}

/* ==========================================================
   HERO SECTION
   ========================================================== */

.hero-section {
  background: var(--panel-bg, var(--body-bg));
  border: 1px solid var(--border-color);
  border-radius: var(--default-border-radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 2rem 1.5rem;
  margin: 2rem 0;
  transition: background 0.25s ease, color 0.25s ease;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  flex: 1 1 440px;
  color: var(--text-color);
}

.hero-text h1 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-color);
}

.hero-text h3 {
  margin: 0.5rem 0 1rem 0;
  color: var(--accent-color);
  font-size: 1.2rem;
  font-weight: 600;
}

.hero-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted, rgba(0, 0, 0, 0.7));
  margin-bottom: 1.2rem;
}

[data-theme="dark"] .hero-text p {
  color: var(--text-muted-dark, #d0d0d0);
}

.hero-text .btn-accent {
  display: inline-block;
  margin-top: 0.6rem;
}

.hero-image {
  flex: 0 1 360px;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--default-border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ==========================================================
   FEATURE SECTION
   ========================================================== */

.feature-section {
  margin-top: 2rem;
  padding-bottom: 2rem;
}

.feature-section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Grid layout for feature cards */
.feature-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Individual feature cards */
.feature-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color);
  border-radius: var(--default-border-radius);
  padding: 1.2rem 1.4rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  color: var(--text-color);
}

[data-theme="dark"] .feature-card {
  background: var(--card-bg-dark, #222);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.feature-card a {
  color: var(--accent-color);
  text-decoration: none;
}

[data-theme="dark"] .feature-card a {
  color: color-mix(in srgb, var(--accent-color) 75%, white 25%);
}

.feature-card a:hover {
  text-decoration: underline;
}

.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
}

.feature-card li {
  font-size: 0.95rem;
  padding: 0.4rem 0;
  color: var(--text-muted, #555);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  line-height: 1.4;
}

[data-theme="dark"] .feature-card li {
  color: #ccc;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.feature-card li:last-child {
  border-bottom: none;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 720px) {
  .hero-section {
    padding: 1.5rem 1rem;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text h3 {
    font-size: 1.1rem;
  }

  .hero-image {
    flex: 1 1 100%;
  }

  .hero-image img {
    max-width: 90%;
  }

  .feature-section h2 {
    font-size: 1.2rem;
  }
}
