/* Mr.ChatGPT modern homepage — light-first, dark-mode compatible */
.mc-home {
  --home-bg: #f5f8fd;
  --home-surface: rgba(255,255,255,.9);
  --home-surface-strong: #fff;
  --home-ink: #13233f;
  --home-muted: #5f6f88;
  --home-blue: #147df5;
  --home-blue-deep: #075fc7;
  --home-line: rgba(24,74,136,.12);
  --home-shadow: 0 24px 70px rgba(36,75,126,.13);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 2%, rgba(65,153,255,.14), transparent 29rem),
    radial-gradient(circle at 94% 26%, rgba(20,125,245,.08), transparent 34rem),
    var(--home-bg);
  color: var(--home-ink);
  font-family: 'Vazirmatn','dana',Tahoma,sans-serif;
}
html[data-mc-theme="dark"] .mc-home {
  --home-bg: #101a30;
  --home-surface: rgba(18,31,55,.88);
  --home-surface-strong: #15233e;
  --home-ink: #f4f8ff;
  --home-muted: #a8b7cc;
  --home-blue: #2d8cff;
  --home-blue-deep: #1676e8;
  --home-line: rgba(139,190,255,.16);
  --home-shadow: 0 28px 75px rgba(0,0,0,.28);
  background:
    radial-gradient(circle at 8% 2%, rgba(45,140,255,.18), transparent 29rem),
    radial-gradient(circle at 94% 26%, rgba(60,126,255,.1), transparent 34rem),
    var(--home-bg);
}
.mc-home *, .mc-home *::before, .mc-home *::after { box-sizing: border-box; }
.mc-home a { text-decoration: none; }
.mc-home-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.mc-home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .03em;
}
.mc-home-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--home-blue), transparent);
}

/* Hero */
.mc-home-hero { padding: 78px 0 58px; position: relative; }
.mc-home-hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(20,125,245,.08);
  border-radius: 50%;
  left: -160px;
  top: -170px;
}
.mc-home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(380px,.95fr);
  align-items: center;
  gap: 78px;
}
.mc-home-hero__copy h1 {
  max-width: 720px;
  margin: 15px 0 20px;
  color: var(--home-ink);
  font-size: clamp(42px,5.1vw,70px);
  line-height: 1.23;
  letter-spacing: -.04em;
  font-weight: 950;
}
.mc-home-hero__copy > p {
  max-width: 690px;
  margin: 0;
  color: var(--home-muted);
  font-size: 18px;
  line-height: 2;
}
.mc-home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.mc-home-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.mc-home-btn:hover { transform: translateY(-2px); }
.mc-home-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mc-home-btn--primary {
  color: #fff !important;
  background: linear-gradient(135deg, #2090ff, #0b67d2);
  box-shadow: 0 16px 32px rgba(20,125,245,.25);
}
.mc-home-btn--primary:hover { box-shadow: 0 20px 38px rgba(20,125,245,.32); }
.mc-home-btn--ghost {
  color: var(--home-ink) !important;
  background: var(--home-surface);
  border-color: var(--home-line);
  box-shadow: 0 10px 28px rgba(36,75,126,.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.mc-home-hero__trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 25px; color: var(--home-muted); font-size: 13px; font-weight: 700; }
.mc-home-hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.mc-home-hero__trust i { width: 8px; height: 8px; border-radius: 50%; background: #2bc47c; box-shadow: 0 0 0 5px rgba(43,196,124,.12); }

/* Hero visual */
.mc-home-visual {
  position: relative;
  min-height: 490px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.mc-home-visual::before, .mc-home-visual::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  border: 1px solid rgba(20,125,245,.15);
  border-radius: 50%;
  z-index: -1;
}
.mc-home-visual::before { width: 380px; height: 380px; }
.mc-home-visual::after { width: 290px; height: 290px; border-style: dashed; animation: mc-home-spin 26s linear infinite; }
@keyframes mc-home-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mc-home-visual::after { animation: none; } }
.mc-home-visual__glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(20,125,245,.2);
  filter: blur(70px);
  z-index: -2;
}
.mc-home-visual__core {
  width: 220px;
  min-height: 230px;
  padding: 27px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(116,178,255,.3);
  border-radius: 42px;
  background: linear-gradient(155deg, rgba(255,255,255,.95), rgba(231,241,255,.78));
  box-shadow: 0 30px 70px rgba(26,96,184,.22), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
html[data-mc-theme="dark"] .mc-home-visual__core { background: linear-gradient(155deg, rgba(29,48,80,.95), rgba(17,31,56,.88)); box-shadow: 0 30px 70px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.08); }
.mc-home-visual__core img { width: 108px; height: 108px; object-fit: contain; margin-bottom: 13px; filter: drop-shadow(0 15px 22px rgba(22,107,216,.23)); }
.mc-home-visual__core strong { color: var(--home-ink); font-size: 21px; font-weight: 950; }
.mc-home-visual__core span { color: var(--home-muted); font-size: 12px; margin-top: 5px; }
.mc-home-orbit { position: absolute; z-index: 2; }
.mc-home-orbit span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  color: var(--home-ink);
  background: var(--home-surface);
  box-shadow: 0 14px 30px rgba(36,75,126,.12);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  font-size: 12px;
  font-weight: 900;
}
.mc-home-orbit--one { top: 52px; right: 88px; }
.mc-home-orbit--two { top: 142px; left: 16px; }
.mc-home-orbit--three { bottom: 105px; right: 23px; }
.mc-home-orbit--four { bottom: 45px; left: 84px; }
.mc-home-visual__mini {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  border: 1px solid var(--home-line);
  border-radius: 15px;
  background: var(--home-surface);
  color: var(--home-ink);
  box-shadow: 0 16px 34px rgba(33,77,133,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 800;
}
.mc-home-visual__mini svg { width: 21px; height: 21px; fill: none; stroke: var(--home-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mc-home-visual__mini--a { left: 10px; bottom: 164px; }
.mc-home-visual__mini--b { right: 6px; top: 193px; }

/* Value strip */
.mc-home-value { padding: 10px 0 65px; }
.mc-home-value__grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
}
.mc-home-value article {
  min-height: 132px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 23px;
  border: 1px solid var(--home-line);
  border-radius: 22px;
  background: var(--home-surface);
  box-shadow: 0 15px 42px rgba(36,75,126,.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.mc-home-value__icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--home-blue);
  background: rgba(20,125,245,.1);
}
.mc-home-value__icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mc-home-value strong { display: block; color: var(--home-ink); font-size: 15px; font-weight: 950; margin-top: 1px; }
.mc-home-value p { margin: 7px 0 0; color: var(--home-muted); font-size: 13px; line-height: 1.85; }

/* Shared sections */
.mc-home-section { padding: 78px 0; border-top: 1px solid var(--home-line); }
.mc-home-section__head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.mc-home-section__head h2 { margin: 9px 0 0; color: var(--home-ink); font-size: clamp(29px,3.3vw,43px); line-height: 1.35; font-weight: 950; letter-spacing: -.025em; }
.mc-home-section__head > a { flex: 0 0 auto; color: var(--home-blue) !important; font-size: 14px; font-weight: 900; }
.mc-home-section__head--center { justify-content: center; text-align: center; }
.mc-home-section__head--center > div { max-width: 680px; }
.mc-home-section__head--center .mc-home-kicker { justify-content: center; }
.mc-home-section__head--center p { margin: 13px auto 0; color: var(--home-muted); font-size: 15px; line-height: 1.9; }

/* Course cards */
.mc-home-courses { background: rgba(255,255,255,.34); }
html[data-mc-theme="dark"] .mc-home-courses { background: rgba(255,255,255,.015); }
.mc-home-course-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.mc-home-course-card {
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 24px;
  background: var(--home-surface-strong);
  box-shadow: 0 18px 48px rgba(36,75,126,.09);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.mc-home-course-card:hover { transform: translateY(-5px); border-color: rgba(20,125,245,.3); box-shadow: 0 25px 60px rgba(36,75,126,.14); }
.mc-home-course-card__image { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: #eaf2ff; }
.mc-home-course-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.mc-home-course-card:hover .mc-home-course-card__image img { transform: scale(1.035); }
.mc-home-course-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(20,125,245,.35); font-size: 64px; font-weight: 950; }
.mc-home-course-card__tag { position: absolute; right: 14px; bottom: 14px; padding: 7px 11px; border-radius: 999px; color: #fff; background: rgba(8,27,52,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 10px; font-weight: 900; }
.mc-home-course-card__body { padding: 20px; }
.mc-home-course-card h3 { margin: 0; min-height: 58px; font-size: 17px; line-height: 1.75; font-weight: 950; }
.mc-home-course-card h3 a { color: var(--home-ink) !important; }
.mc-home-course-card__body > p { min-height: 49px; margin: 8px 0 18px; color: var(--home-muted); font-size: 12px; line-height: 1.85; }
.mc-home-course-card footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 15px; border-top: 1px solid var(--home-line); }
.mc-home-course-card__price { color: var(--home-ink); font-size: 13px; font-weight: 900; }
.mc-home-course-card__price del { color: var(--home-muted); opacity: .7; font-size: 10px; }
.mc-home-course-card__price ins { text-decoration: none; color: var(--home-blue); }
.mc-home-course-card__link { display: inline-flex; align-items: center; gap: 5px; color: var(--home-blue) !important; font-size: 12px; font-weight: 900; }
.mc-home-course-card__link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Paths */
.mc-home-path-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.mc-home-path-grid article {
  position: relative;
  min-height: 310px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 26px;
  background: var(--home-surface);
  box-shadow: 0 18px 48px rgba(36,75,126,.08);
}
.mc-home-path-grid article.is-featured { color: #fff; background: linear-gradient(145deg,#187fe9,#0758b6); border-color: transparent; box-shadow: 0 24px 56px rgba(15,103,207,.26); }
.mc-home-path-grid__number { position: absolute; left: 22px; top: 15px; color: rgba(20,125,245,.1); font-size: 76px; font-weight: 950; line-height: 1; }
.mc-home-path-grid .is-featured .mc-home-path-grid__number { color: rgba(255,255,255,.13); }
.mc-home-path-grid__icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 17px; color: var(--home-blue); background: rgba(20,125,245,.1); }
.mc-home-path-grid .is-featured .mc-home-path-grid__icon { color: #fff; background: rgba(255,255,255,.16); }
.mc-home-path-grid__icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mc-home-path-grid h3 { margin: 0; color: var(--home-ink); font-size: 20px; font-weight: 950; }
.mc-home-path-grid .is-featured h3 { color: #fff; }
.mc-home-path-grid p { min-height: 90px; margin: 13px 0 20px; color: var(--home-muted); font-size: 14px; line-height: 2; }
.mc-home-path-grid .is-featured p { color: rgba(255,255,255,.78); }
.mc-home-path-grid a { color: var(--home-blue) !important; font-size: 13px; font-weight: 950; }
.mc-home-path-grid .is-featured a { color: #fff !important; }

/* Articles */
.mc-home-articles { background: rgba(255,255,255,.34); }
html[data-mc-theme="dark"] .mc-home-articles { background: rgba(255,255,255,.015); }
.mc-home-article-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.mc-home-article-card { overflow: hidden; border: 1px solid var(--home-line); border-radius: 24px; background: var(--home-surface-strong); box-shadow: 0 18px 48px rgba(36,75,126,.08); transition: transform .25s ease; }
.mc-home-article-card:hover { transform: translateY(-4px); }
.mc-home-article-card__image { display: block; aspect-ratio: 16/9; overflow: hidden; background: #e8f1ff; }
.mc-home-article-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mc-home-article-card:hover .mc-home-article-card__image img { transform: scale(1.035); }
.mc-home-article-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(20,125,245,.28); font-size: 54px; font-weight: 950; }
.mc-home-article-card__body { padding: 20px; }
.mc-home-article-card__meta { color: var(--home-blue); font-size: 11px; font-weight: 900; }
.mc-home-article-card h3 { min-height: 68px; margin: 8px 0; font-size: 17px; line-height: 1.8; font-weight: 950; }
.mc-home-article-card h3 a { color: var(--home-ink) !important; }
.mc-home-article-card p { min-height: 70px; margin: 0 0 16px; color: var(--home-muted); font-size: 12px; line-height: 1.9; }
.mc-home-article-card__more { color: var(--home-blue) !important; font-size: 12px; font-weight: 900; }

/* Final CTA */
.mc-home-cta { padding: 80px 0 95px; }
.mc-home-cta__card {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,.2), transparent 23rem),
    linear-gradient(135deg,#137ce8,#064d9f);
  box-shadow: 0 28px 75px rgba(15,103,207,.27);
}
.mc-home-cta__card::after { content: ""; position: absolute; width: 330px; height: 330px; left: -80px; bottom: -210px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.mc-home-cta__card > div:first-child { max-width: 720px; position: relative; z-index: 1; }
.mc-home-cta .mc-home-kicker { color: #cfe7ff; }
.mc-home-cta .mc-home-kicker::before { background: linear-gradient(90deg,#fff,transparent); }
.mc-home-cta h2 { margin: 12px 0; color: #fff; font-size: clamp(27px,3.2vw,42px); line-height: 1.55; font-weight: 950; }
.mc-home-cta p { margin: 0; color: rgba(255,255,255,.77); font-size: 15px; }
.mc-home-cta .mc-home-actions { flex: 0 0 auto; margin-top: 0; position: relative; z-index: 1; }
.mc-home-cta .mc-home-btn--primary { color: #0b62c2 !important; background: #fff; box-shadow: 0 14px 28px rgba(0,0,0,.13); }
.mc-home-cta .mc-home-btn--ghost { color: #fff !important; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.28); box-shadow: none; }

/* Responsive */
@media (max-width: 1024px) {
  .mc-home-hero__grid { grid-template-columns: minmax(0,1fr) 390px; gap: 35px; }
  .mc-home-course-grid, .mc-home-article-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mc-home-path-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .mc-home-cta__card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 820px) {
  .mc-home-shell { width: min(100% - 28px, 720px); }
  .mc-home-hero { padding: 46px 0 32px; }
  .mc-home-hero__grid { grid-template-columns: 1fr; text-align: center; }
  .mc-home-hero__copy h1 { max-width: 680px; margin-inline: auto; font-size: clamp(37px,8.5vw,55px); }
  .mc-home-hero__copy > p { margin-inline: auto; font-size: 16px; }
  .mc-home-hero__copy .mc-home-kicker, .mc-home-hero__trust, .mc-home-actions { justify-content: center; }
  .mc-home-visual { width: min(100%, 520px); margin-inline: auto; min-height: 450px; }
  .mc-home-value__grid { grid-template-columns: 1fr; }
  .mc-home-value article { min-height: 0; }
  .mc-home-section { padding: 62px 0; }
  .mc-home-path-grid { grid-template-columns: 1fr; }
  .mc-home-path-grid article { min-height: 0; }
  .mc-home-path-grid p { min-height: 0; }
}
@media (max-width: 620px) {
  .mc-home-shell { width: calc(100% - 24px); }
  .mc-home-hero { padding-top: 32px; }
  .mc-home-hero__copy h1 { font-size: 37px; line-height: 1.36; }
  .mc-home-hero__copy > p { font-size: 14px; line-height: 1.95; }
  .mc-home-btn { width: 100%; min-height: 50px; }
  .mc-home-actions { width: 100%; }
  .mc-home-hero__trust { gap: 12px; font-size: 11px; }
  .mc-home-visual { min-height: 390px; transform: scale(.93); margin-top: -18px; margin-bottom: -18px; }
  .mc-home-visual::before { width: 320px; height: 320px; }
  .mc-home-visual::after { width: 250px; height: 250px; }
  .mc-home-visual__core { width: 190px; min-height: 205px; border-radius: 35px; }
  .mc-home-visual__core img { width: 90px; height: 90px; }
  .mc-home-orbit--one { right: 28px; top: 45px; }
  .mc-home-orbit--two { left: -2px; top: 125px; }
  .mc-home-orbit--three { right: 0; bottom: 87px; }
  .mc-home-orbit--four { left: 29px; bottom: 35px; }
  .mc-home-visual__mini { display: none; }
  .mc-home-value { padding-bottom: 48px; }
  .mc-home-value article { padding: 19px; border-radius: 19px; }
  .mc-home-section__head { align-items: flex-start; margin-bottom: 23px; }
  .mc-home-section__head h2 { font-size: 29px; }
  .mc-home-section__head > a { display: none; }
  .mc-home-course-grid, .mc-home-article-grid { grid-template-columns: 1fr; }
  .mc-home-course-card h3, .mc-home-article-card h3 { min-height: 0; }
  .mc-home-course-card__body > p, .mc-home-article-card p { min-height: 0; }
  .mc-home-path-grid article { padding: 24px; border-radius: 22px; }
  .mc-home-cta { padding: 58px 0 70px; }
  .mc-home-cta__card { min-height: 0; padding: 30px 22px; border-radius: 25px; text-align: center; align-items: center; }
  .mc-home-cta h2 { font-size: 28px; }
  .mc-home-cta .mc-home-actions { width: 100%; }
}
