/* styles.css · partea 2/5 */
.domain-visual.astrophysics::after {
  width: 210px;
  height: 75px;
  left: calc(50% - 105px);
  top: 38px;
  border: 1px solid rgba(17, 21, 61, 0.55);
  border-radius: 50%;
  transform: rotate(7deg);
}

.domain-card > p {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.domain-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3vw, 3.3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.domain-description {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.home-feature {
  width: min(100% - 80px, 1360px);
  margin: 0 auto 112px;
  padding: 46px;
  display: grid;
  grid-template-columns: 0.15fr 1.1fr 0.72fr auto;
  gap: 34px;
  align-items: center;
  border-radius: 20px;
  color: #f8f8f5;
  background: var(--indigo);
  box-shadow: 0 20px 55px rgba(17, 21, 61, 0.19);
}

.feature-number {
  align-self: start;
  color: var(--teal);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.75rem;
}

.home-feature .kicker {
  margin-bottom: 12px;
  color: var(--teal);
}

.home-feature h2 {
  font-size: clamp(2rem, 3vw, 3.25rem);
}

.home-feature > p {
  color: rgba(244, 246, 252, 0.68);
  font-size: 0.9rem;
  line-height: 1.7;
}

.text-link {
  white-space: nowrap;
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 700;
}

.text-link span {
  display: inline-block;
  margin-left: 8px;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(5px);
}

.site-footer {
  padding: 65px max(40px, calc((100vw - 1360px) / 2)) 24px;
  color: rgba(250, 251, 255, 0.8);
  background: #090d29;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 80px;
  padding-bottom: 62px;
}

.brand-footer {
  color: white;
}

.brand-footer .brand-mark i {
  box-shadow: 0 0 0 3px #090d29;
}

.footer-main > div:first-child > p {
  max-width: 380px;
  margin: 23px 0 0;
  color: rgba(250, 251, 255, 0.53);
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 45px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-links strong {
  margin-bottom: 6px;
  color: white;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a {
  color: rgba(250, 251, 255, 0.58);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(250, 251, 255, 0.37);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Subject pages */

.subject-page {
  --domain-accent: #22b8a7;
  --domain-soft: #d8f1eb;
  --domain-deep: #0f756c;
}

.subject-physics {
  --domain-accent: #ef7652;
  --domain-soft: #fae1d8;
  --domain-deep: #b9492c;
}

.subject-astronomy {
  --domain-accent: #52b7e8;
  --domain-soft: #d9f0fb;
  --domain-deep: #1f7eaa;
}

.subject-astrophysics {
  --domain-accent: #a98aff;
  --domain-soft: #e7dffd;
  --domain-deep: #6f52c2;
}

.subject-hero {
  position: relative;
  min-height: 610px;
  padding: 74px max(40px, calc((100vw - 1360px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.72fr);
  gap: 70px;
  align-items: center;
  overflow: hidden;
  color: #f9fbff;
  background:
    radial-gradient(circle at 82% 24%, color-mix(in srgb, var(--domain-accent) 18%, transparent), transparent 30%),
    linear-gradient(125deg, #11153d 0%, #090d2a 100%);
}

.subject-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
}

.subject-hero-copy,
.subject-visual {
  position: relative;
  z-index: 2;
}

.subject-breadcrumb {
  margin: 0 0 48px;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.subject-breadcrumb span {
  margin: 0 9px;
  color: var(--domain-accent, var(--teal));
}

.subject-order {
  margin: 0 0 18px;
  color: var(--domain-accent);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.subject-hero h1 {
  max-width: 825px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 5vw, 5.7rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.subject-summary {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(245, 248, 255, 0.68);
  font-size: 1.05rem;
  line-height: 1.7;
}

.subject-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button-domain {
  color: #0b1230;
  background: var(--domain-accent);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--domain-accent) 24%, transparent);
}

.button-ghost-light {
  color: rgba(255, 255, 255, 0.87);
  border-color: rgba(255, 255, 255, 0.35);
}

.button-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

.subject-visual {
  aspect-ratio: 1;
  width: min(100%, 500px);
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--domain-accent) 10%, transparent), transparent 65%);
}

.subject-visual::before,
.subject-visual::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.subject-visual::after {
  inset: 31%;
  border-style: solid;
  border-color: color-mix(in srgb, var(--domain-accent) 42%, transparent);
}

.visual-axis {
  position: absolute;
  left: 50%;
  top: 7%;
  bottom: 7%;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.visual-axis::before,
.visual-axis::after {
  content: "";
  position: absolute;
  left: -3px;
  width: 7px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.visual-axis::before { top: 18%; }

.visual-axis::after { bottom: 18%; }

.axis-x { transform: rotate(90deg); }

.visual-core {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--domain-accent);
  border-radius: 50%;
  background: #0a0e2c;
  box-shadow: 0 0 32px color-mix(in srgb, var(--domain-accent) 46%, transparent);
}

.visual-core i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--domain-accent);
}

.visual-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid color-mix(in srgb, var(--domain-accent) 75%, white 12%);
  border-radius: 50%;
}

.ring-a {
  width: 88%;
  height: 34%;
  margin: -17% -44%;
  transform: rotate(-18deg);
  animation: subject-orbit 28s linear infinite;
}

.ring-b {
  width: 33%;
  height: 88%;
  margin: -44% -16.5%;
  transform: rotate(28deg);
  border-style: dashed;
  animation: subject-orbit-alt 34s linear infinite;
}

.subject-physics .ring-a {
  border-radius: 48% 20% 50% 24%;
}

.subject-astrophysics .visual-core {
  width: 76px;
  height: 76px;
  margin: -38px;
  border-color: #050716;
  background: #02030a;
  box-shadow: 0 0 0 6px var(--domain-accent), 0 0 48px rgba(169, 138, 255, 0.52);
}

.subject-visual > p {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -54px;
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.65rem;
  line-height: 1.6;
  text-align: center;
}

.subject-stats {
  width: min(100% - 80px, 1360px);
  margin: -1px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.subject-stats > div {
  min-height: 136px;
  padding: 27px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: rgba(253, 252, 248, 0.62);
}

.subject-stats strong {
  color: var(--domain-deep);
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
}

.subject-stats span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.module-section {
  width: min(100% - 80px, 1360px);
  margin: 0 auto;
  padding: 106px 0;
}

.subject-heading {
  margin-bottom: 50px;
}

.module-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.module-cloud span {
  min-height: 60px;
  padding: 0 23px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #373d48;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(17, 21, 61, 0.05);
  font-size: 0.9rem;
}

.module-cloud i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--domain-deep);
  background: var(--domain-soft);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.61rem;
  font-style: normal;
}

.lessons-section {
  padding: 105px max(40px, calc((100vw - 1360px) / 2));
  display: grid;
  grid-template-columns: 0.52fr 1fr;
  gap: 75px;
  color: #f7f8fc;
  background: #0d1235;
}

.lessons-intro {
  align-self: start;
  position: sticky;
  top: 32px;
}

.lessons-intro .kicker {
  color: var(--domain-accent);
}

.lessons-intro h2,
.subject-cta h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.1rem, 4.6vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
}

.lessons-intro > p:last-child {
  max-width: 390px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.54);
  line-height: 1.7;
}

.progress-summary {
  margin-bottom: 18px;
  padding: 19px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.progress-summary > div:first-child {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.73rem;
}

.progress-summary strong {
  color: var(--domain-accent);
  font-family: var(--font-geist-mono), monospace;
}

.progress-track {
  height: 5px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--domain-accent);
  transition: width 300ms ease;
}

.lesson-list {
  display: grid;
  gap: 12px;
}

.lesson-row {
  position: relative;
  min-height: 154px;
  padding: 24px;
  display: grid;
  grid-template-columns: 45px 1fr auto;
  gap: 18px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 180ms ease, background 180ms ease;
}

.lesson-row:hover {
  border-color: color-mix(in srgb, var(--domain-accent) 48%, transparent);
  background: rgba(255, 255, 255, 0.055);
}

.lesson-row.is-complete {
  border-color: color-mix(in srgb, var(--domain-accent) 45%, transparent);
}

.lesson-number {
  color: var(--domain-accent);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.69rem;
}

.lesson-meta {
  display: flex;
  gap: 8px;
}

.lesson-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.62rem;
}

.lesson-main h3 {
  margin: 11px 0 7px;
  font-size: 1.13rem;
  font-weight: 640;
}

.lesson-main p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.81rem;
  line-height: 1.55;
}

.lesson-check {
  min-width: 104px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  cursor: pointer;
  font-size: 0.69rem;
}
