/* ————————————————————————————————————————
   Marketing sections — hero, credibility, results,
   flagship product, journey, courses, editorial
   ———————————————————————————————————————— */

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

.hero {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(52vw 42vw at 12% -8%, rgba(3, 200, 255, 0.075), transparent 60%),
    radial-gradient(40vw 40vw at 88% 108%, rgba(3, 200, 255, 0.06), transparent 62%),
    var(--paper);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(var(--sp-6), 6vw, var(--sp-9));
  padding-block: clamp(var(--sp-3), 3.5vw, var(--sp-5)) clamp(var(--sp-8), 9vw, var(--sp-9));
  position: relative;
}

/* Desktop-wide screens — increase visual weight */
@media (min-width: 1400px) {
  .hero-inner {
    gap: clamp(var(--sp-8), 8vw, var(--sp-11));
    max-width: 1320px;
  }
  .hero-title {
    font-size: clamp(2.2rem, 1.4rem + 3.8vw, 4.4rem);
    max-width: 18ch;
  }
  .hero-sub {
    max-width: 52ch;
  }
  .portrait-frame {
    width: min(540px, 92%);
  }
}

/* study-themed watermark — used on auth pages (۱۵۰) */
.dim-num {
  position: absolute;
  z-index: 0;
  user-select: none;
  pointer-events: none;
  width: clamp(180px, 24vw, 330px);
  height: clamp(180px, 24vw, 330px);
}
.dim-num::before {
  content: "";
  position: absolute;
  width: 65%;
  height: 65%;
  bottom: 0;
  inset-inline-end: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(3, 200, 255, 0.08), rgba(3, 200, 255, 0.02));
  border: 1.5px solid rgba(3, 200, 255, 0.12);
  transform: rotate(-6deg);
}
.dim-num::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 50%;
  top: 10%;
  inset-inline-start: 10%;
  border-radius: 10px;
  border: 1.5px solid rgba(3, 200, 255, 0.10);
  background: linear-gradient(135deg, rgba(3, 200, 255, 0.05), transparent);
  transform: rotate(3deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--sp-5);
  justify-items: start;
  margin-block-start: clamp(var(--sp-3), 3vw, var(--sp-7));
}

.hero-title {
  font-size: clamp(1.95rem, 1.3rem + 3.4vw, 3.9rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.32;
  max-width: 17ch;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent-deep), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-1);
}

/* — Portrait composition — */

.hero-stage {
  position: relative;
  z-index: 1;
  justify-self: stretch;
  min-height: min(560px, 78vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
}

.portrait-frame {
  position: relative;
  width: min(500px, 94%);
  margin-inline: auto;
  aspect-ratio: 4 / 4.5;
  border-radius: 250px 250px var(--r-l) var(--r-l); /* arch */
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-2);
  transform: rotate(-1.2deg);
  transition: transform var(--t-slow) var(--ease);
}
.portrait-frame:hover { transform: rotate(0deg) translateY(-4px); }

.portrait-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.portrait-caption {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-1);
  border-radius: var(--r-pill);
  padding: 9px 20px;
}
.portrait-caption .dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash);
}

/* — 3D depth: glass ring behind portrait — */
.hero-ring {
  width: clamp(300px, 32vw, 460px);
  aspect-ratio: 1;
  top: 50%;
  inset-inline-start: 50%;
  translate: -50% -50%;
  opacity: 0.45;
  animation: ringspin 60s linear infinite;
}
@keyframes ringspin { to { rotate: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  .hero-ring { animation: none; }
}

/* flagship corner accent (pencil) */
.crystal-sphere {
  position: absolute;
  z-index: 4;
  width: clamp(80px, 11vw, 140px);
  height: clamp(120px, 16vw, 210px);
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.crystal-sphere:hover {
  transform: scale(1.08) rotate(3deg);
}
.crystal-sphere::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(170deg, #ffef8a, #ffd83d 40%, #f5a623 70%, #d4820a 100%);
  transform: rotate(22deg);
  transform-origin: bottom center;
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.08),
    0 12px 30px -8px rgba(212, 130, 10, 0.25);
}
.crystal-sphere::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 18%;
  width: 64%;
  height: 25%;
  background: linear-gradient(170deg, #2d2d2d, #1a1a1a);
  clip-path: polygon(25% 0%, 75% 0%, 50% 100%);
  transform: rotate(22deg);
  transform-origin: bottom center;
}

/* glass ring — used in the CTA band */
.glass-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background:
    conic-gradient(from 210deg, rgba(3,200,255,0.5), rgba(255,255,255,0.12) 25%, rgba(3,200,255,0.04) 45%, rgba(3,200,255,0.4) 75%, rgba(3,200,255,0.5)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    padding-block: var(--sp-4) var(--sp-8);
  }
  .hero-copy { order: 1; margin-block-start: 0; }
  .hero-stage { order: 2; min-height: auto; }
  .portrait-frame { width: min(360px, 88%); }
  .result-feature:hover {
    transform: none;
    box-shadow: none;
  }
  .flagship-card:hover {
    transform: none;
  }
}

/* Desktop-wide improvements */
@media (min-width: 1200px) {
  .journey-item {
    padding-block: clamp(var(--sp-6), 4vw, var(--sp-7));
  }
  .journey-step {
    width: 72px;
    height: 72px;
    font-size: var(--fs-body);
  }
  .journey-item:not(:last-child)::before {
    inset-inline-start: 35px;
  }
}

/* ============ CREDIBILITY BAND ============ */

.cred-band {
  border-block: 1px solid var(--line);
  background: var(--paper-warm);
  padding-block-start: clamp(var(--sp-7), 8vw, var(--sp-10));
}
/* paths-intro */
.paths-intro {
  text-align: center;
  display: grid;
  gap: var(--sp-3);
  justify-items: center;
  padding-block-end: clamp(var(--sp-6), 5vw, var(--sp-7));
  border-bottom: 1px solid var(--line);
}
.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  padding-block: clamp(var(--sp-6), 5vw, var(--sp-7));
}
.path-card {
  padding: clamp(var(--sp-5), 4vw, var(--sp-7));
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: #fff;
  display: grid;
  gap: var(--sp-3);
  align-content: start;
  justify-items: start;
}
.path-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--cyan-tint);
  border: 1px solid var(--accent-line);
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  margin-block-end: var(--sp-2);
}
.path-card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.path-card-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
}
.path-card-desc {
  font-size: var(--fs-small);
  line-height: 2;
  color: var(--muted);
}
.paths-closing {
  text-align: center;
  font-size: var(--fs-caption);
  color: var(--faint);
  padding-block: 0 clamp(var(--sp-4), 4vw, var(--sp-6));
}

@media (max-width: 900px) {
  .paths-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .paths-grid { grid-template-columns: 1fr; }
}

/* ============ RESULTS (dark editorial) ============ */

.results-dark {
  color: #b9c8d2;
  overflow: clip;
}
.results-dark::before {
  content: "";
  position: absolute;
  top: -20%;
  inset-inline-end: -8%;
  width: clamp(320px, 38vw, 560px);
  height: clamp(320px, 38vw, 560px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3, 200, 255, 0.06), transparent 70%);
  pointer-events: none;
}
.results-head { color: #dcebf2; }
.results-head .h2 { color: #fff; }

.result-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(var(--sp-6), 6vw, var(--sp-8));
  align-items: center;
  padding: clamp(var(--sp-6), 5vw, var(--sp-8));
  border-radius: var(--r-l);
  border: 1px solid var(--line-dark);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: relative;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.result-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.4);
}
.result-feature + .results-row {
  margin-top: var(--sp-4);
}

.result-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-m);
  overflow: hidden;
  border: 1px solid var(--line-dark);
}
.result-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.result-rank-badge {
  position: absolute;
  inset-inline-start: 16px;
  bottom: 16px;
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(8, 18, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.result-rank-num {
  font-weight: 200;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem);
  line-height: 1;
  color: #fff;
}
.result-rank-label {
  font-size: var(--fs-caption);
  color: var(--accent);
  font-weight: 600;
}
.result-photo .ph {
  width: 100%; height: 100%;
  display: grid;
  place-content: center;
  gap: var(--sp-2);
  background: radial-gradient(90% 80% at 70% 15%, rgba(3, 200, 255, 0.12), transparent 60%), #0d1922;
  color: #5f7484;
  font-size: var(--fs-caption);
  text-align: center;
  padding: var(--sp-4);
}
.result-rank {
  font-weight: 200;
  font-size: clamp(3.4rem, 2rem + 6vw, 5.6rem);
  line-height: 1;
  color: #fff;
}
.result-rank small {
  display: block;
  font-size: 0.24em;
  font-weight: 500;
  color: var(--accent);
  margin-top: var(--sp-3);
}
.result-body h3 {
  color: #fff;
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-block: var(--sp-3) var(--sp-2);
}
.result-body .result-quote {
  color: #9db0bc;
  font-size: var(--fs-small);
  line-height: 2.1;
  max-width: 44ch;
}
.result-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: var(--sp-4);
}
.result-note {
  margin-top: var(--sp-6);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-caption);
  color: #66798a;
}
.result-note::before {
  content: "";
  width: 8px; height: 8px;
  flex: none;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
  border-radius: 1px;
}

.results-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
}
.results-year { margin-top: var(--sp-8); }
.results-year:first-child { margin-top: var(--sp-6); }
.results-year-title {
  color: #fff;
  font-size: var(--fs-h3);
  font-weight: 800;
  margin: 0 0 var(--sp-4);
  padding-inline: var(--sp-1);
}
.result-mini {
  padding: var(--sp-5);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-m);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: var(--sp-3);
  align-content: start;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), background 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.result-mini:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
}
.result-mini .rank-chip {
  display: inline-block;
  justify-self: start;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(3, 200, 255, 0.12);
  color: var(--accent);
  font-size: var(--fs-caption);
  font-weight: 700;
}
.result-mini .who { color: #dcebf2; font-weight: 700; font-size: var(--fs-small); display: block; }
.result-mini .what { color: #8fa3b0; font-size: var(--fs-caption); line-height: 1.9; margin: 0; }
.result-mini .result-year { color: rgba(255,255,255,0.4); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }

@media (max-width: 1100px) {
  .result-feature { grid-template-columns: 1fr; }
  .results-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .results-row { grid-template-columns: 1fr; }
}

/* Results horizontal slider */
.results-slider {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--sp-4);
  -webkit-overflow-scrolling: touch;
}
.results-slider::-webkit-scrollbar { display: none; }
.results-slide {
  flex: 0 0 calc((100% - 3 * var(--sp-4)) / 4);
  min-width: 0;
  scroll-snap-align: start;
}
@media (max-width: 1100px) {
  .results-slide { flex-basis: calc((100% - 2 * var(--sp-4)) / 3); }
}
@media (max-width: 720px) {
  .results-slide { flex: 0 0 calc((100% - var(--sp-4)) / 2); min-width: 150px; }
}
.results-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--sp-5);
}
.results-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), width var(--t-fast) var(--ease);
}
.results-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* ============ FLAGSHIP PRODUCT ============ */

.flagship {
  position: relative;
  overflow: clip;
}
.flagship-bg-num {
  position: absolute;
  top: -6%;
  inset-inline-end: -4%;
  width: clamp(200px, 26vw, 380px);
  height: clamp(200px, 26vw, 380px);
  pointer-events: none;
}
.flagship-bg-num::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(3, 200, 255, 0.08);
  background: radial-gradient(circle, rgba(3, 200, 255, 0.04), transparent 70%);
}
.flagship-bg-num::after {
  content: "";
  position: absolute;
  top: 15%; inset-inline-start: 15%;
  width: 70%; height: 70%;
  border-radius: 50%;
  border: 1px solid rgba(3, 200, 255, 0.06);
}

.flagship-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr);
  gap: 0;
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.5s cubic-bezier(0.19, 1, 0.22, 1), transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.flagship-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-3px);
}
.flagship-info {
  padding: clamp(var(--sp-6), 5vw, var(--sp-8));
  display: grid;
  gap: var(--sp-5);
  align-content: start;
}
.flagship-info h2 { font-size: var(--fs-h2); }
.flagship-points {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}
.flagship-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--fs-small);
  line-height: 1.9;
  color: var(--ink-2);
}
.flagship-points svg {
  flex: none;
  margin-top: 7px;
  color: var(--accent-deep);
}

.flagship-buy {
  position: relative;
  padding: clamp(var(--sp-6), 4.5vw, var(--sp-7));
  display: grid;
  gap: var(--sp-5);
  align-content: center;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(3, 200, 255, 0.16), transparent 55%),
    linear-gradient(165deg, #f4fbfe, #e9f6fc);
  border-inline-start: 1px solid var(--line);
}
.price-stack { display: grid; gap: 2px; }
.price-old {
  font-size: var(--fs-body);
  color: var(--faint);
  text-decoration: line-through;
  text-decoration-color: rgba(207, 68, 68, 0.55);
  text-decoration-thickness: 1.5px;
}
.price-now {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.price-now .amount {
  font-size: clamp(2.3rem, 1.7rem + 2.8vw, 3.1rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.15;
}
.price-now .currency { color: var(--muted); font-weight: 500; }
.discount-flag {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--danger-wash);
  color: var(--danger);
  font-size: var(--fs-caption);
  font-weight: 700;
}
.flagship-buy .btn--primary { justify-self: start; }
.buy-meta {
  font-size: var(--fs-caption);
  color: var(--muted);
  display: grid;
  gap: 6px;
}
.buy-meta div { display: flex; gap: 8px; align-items: center; }
.buy-meta svg { color: var(--accent-deep); flex: none; }
.flagship-crystal {
  position: absolute;
  bottom: -34px;
  left: -34px;
  right: auto;
  inset-inline-start: auto;
  width: 104px;
  opacity: 0.9;
}

@media (max-width: 900px) {
  .flagship-card { grid-template-columns: 1fr; }
  .flagship-buy { border-inline-start: 0; border-top: 1px solid var(--line); }
  .flagship-buy .btn--primary { justify-self: stretch; }
}

/* ============ JOURNEY TIMELINE ============ */

.journey {
  counter-reset: step;
}
.journey-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  display: grid;
  gap: 0;
}
.journey-item {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: clamp(var(--sp-4), 3.5vw, var(--sp-6));
  padding-block: clamp(var(--sp-5), 3.5vw, var(--sp-6));
  align-items: baseline;
}
.journey-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(100% - 14px);
  inset-inline-start: 31px;
  height: calc(100% - 28px);
  width: 1.5px;
  background: linear-gradient(to bottom, var(--line-strong), var(--line));
}
.journey-step {
  width: 64px;
  height: 64px;
  flex: none;
  display: grid;
  place-content: center;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--ink);
  position: relative;
  z-index: 1;
  line-height: 1.4;
  text-align: center;
}
.journey-item:nth-child(1) .journey-step { border-color: var(--accent-line); background: var(--cyan-tint); color: var(--accent-deep); }
.journey-title { font-size: var(--fs-h3); font-weight: 700; color: var(--ink); }
.journey-desc {
  color: var(--muted);
  font-size: var(--fs-small);
  max-width: 56ch;
  line-height: 2;
  margin-top: 6px;
}
.journey-when {
  font-size: var(--fs-caption);
  color: var(--accent-deep);
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .journey-item { grid-template-columns: 52px 1fr; }
  .journey-step { width: 52px; height: 52px; border-radius: 16px; }
  .journey-item:not(:last-child)::before { inset-inline-start: 25px; }
  .journey-when { grid-column: 2; }
}

/* ============ COURSES EDITORIAL ============ */

.course-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  background: #fff;
  margin-bottom: var(--sp-4);
}
.course-feature .course-cover {
  min-height: 300px;
  border-inline-end: 1px solid var(--line);
}
.course-feature .course-summary {
  padding: clamp(var(--sp-5), 4vw, var(--sp-7));
  display: grid;
  gap: var(--sp-4);
  align-content: center;
  justify-items: start;
}

.course-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

@media (max-width: 900px) {
  .course-feature { grid-template-columns: 1fr; }
  .course-feature .course-cover { border-inline-end: 0; border-bottom: 1px solid var(--line); min-height: 240px; }
  .course-rows { grid-template-columns: 1fr; }
}

/* Course cover — typographic editorial cover system */
.course-cover {
  position: relative;
  display: grid;
  align-content: end;
  padding: var(--sp-5);
  overflow: hidden;
  isolation: isolate;
  min-height: 210px;
}
.course-cover .cc-grade {
  position: absolute;
  top: var(--sp-4);
  inset-inline-start: var(--sp-4);
  font-size: var(--fs-overline);
  font-weight: 600;
  color: inherit;
  opacity: 0.75;
}
.course-cover .cc-orb {
  position: absolute;
  z-index: -1;
  top: -18%;
  inset-inline-end: -12%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,0.85), rgba(255,255,255,0) 30%),
              radial-gradient(circle at 50% 55%, currentColor 0%, transparent 72%);
  opacity: 0.5;
  filter: saturate(1.1);
}
.course-cover h3 {
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.5rem);
  font-weight: 800;
  line-height: 1.55;
  max-width: 18ch;
}
.course-cover .cc-count {
  font-size: var(--fs-caption);
  opacity: 0.8;
  margin-top: 6px;
}

/* per-subject tints (restrained family around accent) */
.cc-bio   { background: linear-gradient(160deg, #eefaf3, #ddf3e8); color: #0b6b47; }
.cc-chem  { background: linear-gradient(160deg, #eff8fd, #dcf0fb); color: #05577a; }
.cc-phys  { background: linear-gradient(160deg, #f0f1fd, #dfe2fa); color: #37409b; }
.cc-math  { background: linear-gradient(160deg, #fdf4ee, #fbe7da); color: #99461c; }
.cc-navy  { background: linear-gradient(160deg, #e8eef8, #c9d6ec); color: #1d3557; }
.cc-gold  { background: linear-gradient(160deg, #fbf6e8, #f3e3b8); color: #8a5a12; }
.cc-rose  { background: linear-gradient(160deg, #fdf0f3, #f6d5de); color: #8d3b52; }
.cc-mint  { background: linear-gradient(160deg, #eafaf8, #c8f0ea); color: #0f6d63; }

/* Course cover wrapper for image or colored cover */
.course-cover-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-l) var(--r-l) 0 0;
}
.course-cover-img {
  width: 100%;
  aspect-ratio: 1653 / 951;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}


/* course mini rows/cards inside listing & related */
.course-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}
.course-card .course-cover { border-bottom: 1px solid var(--line); }
.course-card .course-body {
  padding: var(--sp-5);
  display: grid;
  gap: var(--sp-3);
  align-content: start;
}
.course-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: var(--fs-caption);
  color: var(--muted);
}
.course-meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.course-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.course-price-row .old { color: var(--faint); text-decoration: line-through; font-size: var(--fs-caption); }
.course-price-row .now { font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.course-card .card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-1);
}

/* ============ ABOUT TEASER / QUOTE ============ */

.teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(var(--sp-6), 6vw, var(--sp-8));
  align-items: center;
}
.teaser-quote {
  font-size: clamp(1.3rem, 1.05rem + 1.4vw, 1.8rem);
  font-weight: 600;
  line-height: 1.95;
  color: var(--ink);
}
.teaser-quote em {
  font-style: normal;
  color: var(--accent-deep);
}
@media (max-width: 800px) {
  .teaser { grid-template-columns: 1fr; }
}

/* About-page portrait band */
.about-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(var(--sp-6), 6vw, var(--sp-9));
  align-items: center;
}
.about-portrait {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-2);
}
.about-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-facts {
  display: grid;
  gap: 0;
  border-block: 1px solid var(--line);
  margin-block: var(--sp-6);
}
.about-fact {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
}
.about-fact:last-child { border-bottom: 0; }
.about-fact dt { color: var(--muted); font-weight: 500; }
.about-fact dd { color: var(--ink); font-weight: 600; }
@media (max-width: 800px) {
  .about-band { grid-template-columns: 1fr; }
  .about-portrait { max-width: 380px; }
}

/* Milestones (about) */
.milestones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  counter-reset: ms;
}
.milestone {
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: #fff;
  display: grid;
  gap: var(--sp-2);
  align-content: start;
}
.milestone .ms-k {
  font-size: var(--fs-overline);
  color: var(--accent-deep);
  font-weight: 700;
}
.milestone h3 { font-size: var(--fs-body); font-weight: 700; }
.milestone p { font-size: var(--fs-caption); color: var(--muted); line-height: 1.9; }
@media (max-width: 1000px) { .milestones { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .milestones { grid-template-columns: 1fr; } }

/* ============ ARTICLES / BLOG ============ */

.article-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  background: #fff;
}
.article-feature .art-cover {
  min-height: 280px;
  border-inline-end: 1px solid var(--line);
}
.article-feature .art-sum {
  padding: clamp(var(--sp-5), 4.5vw, var(--sp-8));
  display: grid;
  gap: var(--sp-4);
  align-content: center;
  justify-items: start;
}
.art-cover {
  display: grid;
  place-content: center;
  place-items: center;
  padding: var(--sp-6);
  background:
    radial-gradient(80% 60% at 70% 30%, rgba(3, 200, 255, 0.10), transparent 65%),
    linear-gradient(155deg, #10202c, #0a141c);
  color: #9db3c0;
  min-height: 280px;
  border-inline-end: 1px solid var(--line-dark);
}
.art-cover .art-glyph {
  width: 54px; height: 54px;
  border: 1.5px solid var(--accent-line);
  border-radius: 14px;
  rotate: 45deg;
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-4);
  background: rgba(3, 200, 255, 0.06);
}
.art-cover .art-glyph svg { rotate: -45deg; color: var(--accent); }
.art-cover blockquote {
  font-size: var(--fs-small);
  line-height: 2.2;
  text-align: center;
  max-width: 30ch;
  opacity: 0.85;
  color: #b9cdd8;
}

.article-rows { display: grid; gap: var(--sp-4); }
.article-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: #fff;
  transition: all var(--t-med) var(--ease);
}
.article-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-1);
  transform: translateY(-3px);
}
.article-row .art-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--cyan-tint);
  border: 1px solid var(--accent-line);
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  flex-shrink: 0;
}
.article-row .art-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
}
.article-row .art-content {
  display: grid;
  gap: 6px;
}
.article-row .art-topic {
  font-size: var(--fs-caption);
  color: var(--accent-deep);
  font-weight: 600;
}
.article-row h3 {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.6;
}
.article-row .meta {
  font-size: var(--fs-caption);
  color: var(--muted);
  display: flex;
  gap: 14px;
}
.article-row .go {
  color: var(--faint);
  transition: all var(--t-fast) var(--ease);
}
.article-row:hover .go {
  color: var(--accent-deep);
  transform: translateX(-4px);
}

/* Desktop-wide improvements for article rows */
@media (min-width: 1200px) {
  .article-row {
    padding: var(--sp-6) var(--sp-7);
  }
  .article-row .art-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }
  .article-row h3 {
    font-size: var(--fs-h3);
  }
}
@media (max-width: 640px) {
  .article-row {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
  .article-row .art-icon {
    display: none;
  }
}
.article-row h3 { font-size: var(--fs-body); font-weight: 700; }
.article-row .meta { font-size: var(--fs-caption); color: var(--muted); margin-top: 4px; display: flex; gap: 14px; }
.article-row .go { color: var(--faint); transition: all var(--t-fast) var(--ease); }
.article-row:hover .go { color: var(--accent-deep); transform: translateX(-4px); }
@media (max-width: 800px) {
  .article-feature { grid-template-columns: 1fr; }
  .article-feature .art-cover { border-inline-end: 0; border-bottom: 1px solid var(--line); }
}

/* Article single */
.prose {
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  gap: var(--sp-5);
  padding-inline: var(--gutter);
}
.prose > header { display: grid; gap: var(--sp-4); }
.prose h1 { font-size: var(--fs-h1); font-weight: 900; line-height: 1.4; }
.prose h2 {
  font-size: var(--fs-h3);
  margin-top: var(--sp-4);
  padding-inline-start: var(--sp-4);
  border-inline-start: 2.5px solid var(--accent);
}
.prose img, .prose video, .prose iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: var(--r-m);
  margin: var(--sp-4) 0;
}
.prose iframe, .prose video { aspect-ratio: 16 / 9; height: auto; min-height: 200px; border: 0; }
.prose h3 { font-size: 1.15rem; font-weight: 800; margin-top: var(--sp-3); }
.prose ul, .prose ol { padding-inline-start: var(--sp-5); display: grid; gap: 10px; line-height: 2; color: var(--ink-2); }
.prose blockquote {
  border-inline-start: 2.5px solid var(--accent);
  padding: var(--sp-4) var(--sp-5);
  background: var(--cyan-tint);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  color: var(--ink);
  font-weight: 500;
  line-height: 2.1;
}
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: var(--fs-caption);
  color: var(--muted);
}

/* ============ CTA BAND ============ */

.cta-band {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(60% 130% at 85% 0%, rgba(3, 200, 255, 0.16), transparent 55%),
    var(--navy-panel);
  color: #cfdee7;
}
.cta-inner {
  padding-block: clamp(var(--sp-8), 9vw, var(--sp-10));
  display: grid;
  gap: var(--sp-5);
  justify-items: start;
  position: relative;
}
.cta-inner .h2 { color: #fff; max-width: 22ch; }
.cta-inner p { color: #8fa3b0; max-width: 52ch; }
.cta-ring {
  width: 300px; height: 300px;
  position: absolute;
  inset-inline-end: -80px;
  bottom: -120px;
  opacity: 0.6;
}

/* ============ HOME PLANS GRID ============ */

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 4px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: #fff;
  gap: 14px;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
}
.plan-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-3px);
}

.plan-card--main {
  border-color: var(--accent-line);
}

.plan-card--annual {
  border: 2px solid var(--accent);
  background: linear-gradient(160deg, #eaf9ff 0%, #fff 55%, #f4fcff 100%);
  box-shadow: 0 4px 20px rgba(3, 200, 255, 0.12);
  padding: 20px 32px;
  position: relative;
  overflow: hidden;
  min-height: auto;
}
.plan-card--annual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(140px 90px at 85% 0%, rgba(3, 200, 255, 0.14), transparent 70%),
    radial-gradient(160px 110px at 10% 100%, rgba(3, 200, 255, 0.08), transparent 70%);
}
.plan-card--annual:hover {
  box-shadow: 0 8px 30px rgba(3, 200, 255, 0.2);
  transform: translateY(-2px);
}
.plan-card--annual .plan-name { font-size: 1.35rem; }
.plan-card--annual .plan-price b { font-size: 1.5rem; }
.plan-card--annual .plan-features { gap: 6px; }
.plan-card--annual .plan-features li { font-size: 13px; line-height: 1.6; }
.plan-card--annual .plan-desc { font-size: 12px; line-height: 1.7; margin: -2px 0 4px; }
.plan-card--annual .plan-for { font-size: 12px; padding-top: 8px; }
.plan-card--annual .plan-bottom { gap: 8px; padding-top: 10px; }

.plan-badge {
  position: absolute;
  top: -1px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.02em;
}

.plan-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.4;
}

.plan-cap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.plan-cap--blue {
  color: var(--accent-deep);
  background: var(--cyan-tint);
  border: 1px solid var(--accent-line);
}
.plan-cap--green {
  color: #065f46;
  background: rgba(13, 138, 99, 0.09);
  border: 1px solid rgba(13, 138, 99, 0.22);
}
.plan-cap--yellow {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
}
.plan-cap--red {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.cap-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cap-dot--blue {
  background: var(--accent);
}
.cap-dot--green {
  background: var(--ok);
}
.cap-dot--yellow {
  background: #f59e0b;
  animation: capPulseYellow 2s ease-in-out infinite;
}
.cap-dot--red {
  background: #ef4444;
  animation: capPulseRed 1.2s ease-in-out infinite;
}
@keyframes capPulseYellow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes capPulseRed {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
@media (prefers-reduced-motion: reduce) {
  .cap-dot--yellow, .cap-dot--red { animation: none; }
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan-price b {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
}
.plan-price span {
  font-size: 13px;
  color: var(--muted);
}

.plan-desc {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  margin: -4px 0 2px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan-features li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  padding-inline-start: 18px;
  position: relative;
}
.plan-features li::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.plan-for {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.plan-for b {
  color: var(--accent-deep);
  font-weight: 700;
}

.plan-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.plan-bottom small {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .plan-card:hover {
    transform: none;
  }
}

/* ============ CONSULTING PLANS ============ */

.consult-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  padding-block: clamp(var(--sp-5), 4vw, var(--sp-7));
}

.cp-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: #fff;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  overflow: hidden;
}
.cp-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-3px);
}

.cp-card--featured {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 1px var(--accent-line), var(--shadow-1);
}
.cp-card--featured::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
}

.cp-header {
  padding: clamp(var(--sp-5), 4vw, var(--sp-6));
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(3, 200, 255, 0.04), transparent);
}

.cp-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--cyan-tint);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--accent-line);
}
.cp-badge-placeholder {
  height: 26px;
}

.cp-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin: 0;
}

.cp-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: var(--sp-1);
}
.cp-amount {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
}
.cp-unit {
  font-size: var(--fs-caption);
  color: var(--muted);
}

.cp-body {
  padding: clamp(var(--sp-5), 4vw, var(--sp-6));
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  flex: 1;
}

.cp-desc {
  font-size: var(--fs-small);
  line-height: 1.9;
  color: var(--ink-2);
  margin: 0;
}

.cp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cp-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--ink-2);
}
.cp-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent-deep);
}

.cp-for {
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.cp-for-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  display: block;
  margin-bottom: 4px;
}
.cp-for-text {
  font-size: var(--fs-caption);
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
}

.cp-footer {
  padding: var(--sp-4) clamp(var(--sp-5), 4vw, var(--sp-6));
  border-top: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.cp-footer .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}
.cp-meta {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .consult-plans {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
  .cp-card:hover {
    transform: none;
  }
}

@media (min-width: 1200px) {
  .consult-plans {
    gap: var(--sp-6);
  }
  .cp-header {
    padding: var(--sp-7);
  }
  .cp-body {
    padding: var(--sp-7);
  }
  .cp-footer {
    padding: var(--sp-5) var(--sp-7);
  }
}

/* ============ COMPARISON TABLE ============ */

.comparison-table {
  overflow-x: auto;
  margin-top: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: #fff;
  box-shadow: var(--shadow-1);
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.comparison-table th,
.comparison-table td {
  padding: clamp(var(--sp-3), 2vw, var(--sp-4)) clamp(var(--sp-3), 2.5vw, var(--sp-5));
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.comparison-table th {
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  white-space: nowrap;
}

.comparison-table th small {
  font-weight: 500;
  color: var(--muted);
  font-size: var(--fs-caption);
}

.comparison-table th:first-child {
  text-align: right;
}

.comparison-table td:first-child {
  text-align: right;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

.comparison-table td {
  color: var(--muted);
}

.comparison-table td:not(:first-child):not(:empty) {
  color: var(--accent-deep);
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 640px) {
  .comparison-table {
    font-size: var(--fs-caption);
  }
  .comparison-table th,
  .comparison-table td {
    padding: var(--sp-2) var(--sp-3);
  }
}

/* Fix 3D elements on consulting page */
.crystal-sphere {
  pointer-events: none;
}
.flagship-crystal {
  display: none;
}
