:root {
  --accent: #503ceb;
  --text-dark: #222;
  --bg-light: #fff;
  --bg-hero: #f8f7f7;
  --bg-science: #f2cdcd8f;
  --bg-section: #ecebeb;
  --bg-articles: #f8f7f7;
  --stars: #f5b301;
  --mint: #e5f3e4; /* new greenish accent */
  --soft-card: 0 2px 10px rgba(0,0,0,0.05);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  background: #fcfbfb;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 100;
}
.logo { font-weight: 700; font-size: 1.4rem; letter-spacing: .5px; }
.menu a {
  text-decoration: none; color: var(--text-dark); margin-left: 1.5rem;
  font-weight: 500; transition: color .2s ease;
}
.menu a:hover { color: var(--accent); }

/* Hero */
.hero {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 0; padding: 0; background: var(--bg-hero);
}
.hero-text { flex: 1 1 200px; max-width: 480px; text-align: right; margin-right: 1rem; }
.hero-text h1 { font-size: 2.6rem; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.hero-text p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 1.2rem; }
.hero-image { flex: 1 1 320px; max-width: 380px; display: flex; justify-content: center; align-items: center; border-radius: 12px; padding: .5rem; }
.hero-image img { max-width: 380px; width: 100%; height: auto; border-radius: 8px; display: block; background: #fff; }

/* Button */
.button {
  display: inline-block; background: rgba(80,60,235,.08); color: var(--accent);
  border: 1px solid var(--accent); padding: .8rem 1.5rem; text-transform: uppercase;
  font-size: .9rem; font-weight: 600; letter-spacing: .05rem; text-decoration: none;
  transition: background .2s ease;
}
.button:hover { background: var(--accent); color: #fff; }

/* ===== WHY CHOOSE ===== */
.why { background: var(--mint); padding: 4rem 1rem 3.5rem; }
.why-head { text-align: center; margin: 0 auto 1.5rem; max-width: 760px; }
.why h2 { margin: 0; font-size: 2.1rem; font-weight: 800; }
.why-sub { color: #4b564c; margin: .5rem 0 0; }
.why-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem;
  max-width: 1120px; margin: 1.25rem auto 0; padding: 0 1rem;
}
.why-card {
  background: #fff; border-radius: 12px; padding: 1.1rem 1rem 1.2rem;
  box-shadow: var(--soft-card); text-align: center;
}
.why-card h3 { margin: .4rem 0 .3rem; font-size: 1.05rem; font-weight: 700; }
.why-card p { margin: 0; color: #494949; font-size: .95rem; line-height: 1.5; }
.why-icon {
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; background: rgba(80,60,235,.08);
  color: var(--accent); font-size: 1.2rem;
}

/* ===== REVIEWS ===== */
.reviews { background: #fff; text-align: center; padding: 4rem 1rem; }
.reviews-head { max-width: 900px; margin: 0 auto 1.25rem; }
.reviews-head h2 { margin: 0; font-size: 2rem; font-weight: 800; }
.reviews-sub { color: #555; margin: .5rem 0 1rem; }
.stars { letter-spacing: .2rem; margin-top: 1rem; }
.stars span { color: var(--stars); font-size: 1.1rem; }

.review-text {
  max-width: 800px; margin: .8rem auto 1.2rem;
  transition: opacity .3s ease; min-height: 140px;
}
.review-quote { font-style: italic; font-size: 1.15rem; line-height: 1.7; margin: 0; color: #222; }
.review-author { text-align: center; margin: .6rem 0 0; font-size: 1rem; font-weight: 600; color: #333; }

.review-dots { margin-top: .6rem; }
.review-dots span {
  display: inline-block; width: 8px; height: 8px; background: #bdbdbd;
  margin: 0 5px; cursor: pointer; border-radius: 50%; transition: background .3s ease, transform .2s ease;
}
.review-dots span.active { background: var(--accent); transform: scale(1.1); }

/* ===== SCIENCE ===== */
.science { background: var(--bg-science); padding: 4rem 1rem 4rem; }
.science-head { text-align: center; margin: 0 auto 1.5rem; max-width: 820px; }
.science h2 { margin: 0; font-size: 2rem; font-weight: 800; }
.science-sub { color: #555; margin: .5rem 0 0; }
.science-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem;
  max-width: 1120px; margin: 1.25rem auto 0; padding: 0 1rem;
}
.sci-card { background: #fff; border-radius: 12px; padding: 1.2rem 1rem 1.2rem; box-shadow: var(--soft-card); }
.sci-card h3 { margin: .2rem 0 .35rem; font-size: 1.05rem; font-weight: 800; }
.sci-card p { margin: 0 0 .6rem; color: #444; font-size: .96rem; }
.sci-list { margin: 0; padding-left: 1.1rem; color: #494949; font-size: .95rem; line-height: 1.55; }
.sci-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(80,60,235,.08); color: var(--accent); font-size: 1.2rem;
}

/* ===== Articles on Home ===== */
.articles {
  background: var(--bg-articles);
  padding: 5rem 2rem; display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
}
.article { width: 280px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.article img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center;
  display: block; margin-bottom: 1rem; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.article h3 { margin: .4rem 0; font-weight: 600; font-size: 1.1rem; color: #1e1e1e; }
.article p { font-size: .95rem; color: #444; line-height: 1.5; max-width: 90%; }

/* "See all articles" on its own row */
.articles-cta { flex: 1 0 100%; display: flex; justify-content: center; margin-top: 1rem; }

/* Contact */
#contact { background: #fff; text-align: center; padding: 3rem 1rem; }
#contact a { color: var(--accent); font-weight: 500; text-decoration: none; }

/* Footer */
.footer { text-align: center; padding: 1.5rem; background: #fff; border-top: 1px solid rgba(0,0,0,0.05); font-size: .9rem; color: #555; }

/* ===== Article Index (unchanged visuals) ===== */
.articles-index { background: #f8f7f7; padding: 4rem 1rem 5rem; }
.articles-index .container { max-width: 1120px; margin: 0 auto; }
.page-title { text-align: center; font-size: 2.2rem; font-weight: 700; margin-bottom: .6rem; }
.page-intro { text-align: center; color: #555; max-width: 680px; margin: 0 auto 2rem; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.article-card {
  display: block; background: #fff; border-radius: 10px; padding: 1rem 1rem 1.2rem;
  text-decoration: none; color: inherit; box-shadow: var(--soft-card);
  transition: transform .15s ease, box-shadow .15s ease;
}
.article-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.article-card .thumb { width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: #f1f1f1; margin-bottom: .9rem; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb--placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #eee, #f6f6f6); }
.article-card h3 { font-size: 1.1rem; font-weight: 700; margin: .3rem 0 .2rem; }
.article-card .excerpt { color: #494949; font-size: .95rem; line-height: 1.5; margin: 0; }
.article-card .meta { margin-top: .6rem; color: #6a6a6a; font-size: .9rem; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2.2rem; color: #555; }
.pager a { color: var(--accent); text-decoration: none; }

/* ===== Article Detail ===== */
.article-hero { background: #f8f7f7; padding: 4.5rem 1rem 3rem; text-align: center; }
.article-hero .container { max-width: 900px; margin: 0 auto; }
.article-hero img { width: 100%; height: auto; border-radius: 10px; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.05); margin-bottom: 1.5rem; }
.article-hero h1 { font-size: 2.2rem; font-weight: 800; margin: .4rem 0; }
.article-meta { color: #666; margin: .2rem 0 .8rem; }
.article-hero .intro { color: #444; font-size: 1.05rem; line-height: 1.7; max-width: 740px; margin: .5rem auto 0; }
.article-body { background: #fff; padding: 2.5rem 1rem 3rem; }
.article-body .container { max-width: 740px; margin: 0 auto; }
.article-body p { font-size: 1.05rem; color: #2a2a2a; line-height: 1.8; margin: 0 0 1.15rem; }
.article-body h2, .article-body h3 { color: #222; font-weight: 700; margin: 2rem 0 .8rem; }
.article-body a { color: var(--accent); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }
.article-contact { background: #fff; }

/* Responsive */
@media (max-width: 1000px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .science-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding: 0; background: var(--bg-hero); }
  .hero-text { text-align: center; margin: 0; }
  .hero-text h1 { font-size: 2.2rem; }
  .hero-image { margin-top: 1rem; max-width: 320px; }
  .articles { padding: 3rem 1rem; gap: 1.5rem; }
  .article { width: 90%; max-width: 320px; }
}
@media (max-width: 640px) {
  .why-grid, .science-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .logo { font-size: 1.2rem; }
  .menu { font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1rem; }
  .hero-text h1 { font-size: 2rem; }
  .hero-text p { font-size: 1rem; }
  .hero-image { padding: .5rem; }
  .review-quote { font-size: 1.05rem; }
  .footer { font-size: .85rem; }
  .article-hero { padding: 3.5rem 1rem 2.2rem; }
  .article-hero h1 { font-size: 1.9rem; }
}
