.home-page {
  --home-bg: #f5f8f4;
  --home-surface: #ffffff;
  --home-surface-soft: #edf4ee;
  --home-text: #173327;
  --home-muted: #60766a;
  --home-border: #dce8dd;
  --home-green: #167447;
  --home-green-dark: #105b38;
  --home-green-wash: #e3f2e7;
  background: var(--home-bg) !important;
  color: var(--home-text);
}

[data-theme="dark"] .home-page {
  --home-bg: #101a15;
  --home-surface: #19271f;
  --home-surface-soft: #203329;
  --home-text: #e8f1e9;
  --home-muted: #adc0b2;
  --home-border: #344b3b;
  --home-green: #8bd1a1;
  --home-green-dark: #a4e1b5;
  --home-green-wash: #263d2e;
}

.home-page .site-header {
  height: 74px;
}

.home-page .header-container {
  max-width: 1280px;
}

.home-page .logo-img {
  width: 142px;
  height: 66px;
  margin: 0;
  object-fit: contain;
}

.home-page .main-nav {
  gap: 1.7rem;
}

.home-page .main-nav a[aria-current="page"] {
  color: #a7e4b7;
}

.home-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0 74px;
}

.home-hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 48px;
  padding: clamp(32px, 6vw, 72px);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--home-border);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 87% 14%, rgba(116, 188, 132, 0.16), transparent 34%),
    linear-gradient(135deg, var(--home-surface) 0%, var(--home-surface-soft) 100%);
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.home-eyebrow {
  margin: 0 0 12px;
  color: var(--home-green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.home-hero .home-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.home-hero .home-eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0ad35;
  box-shadow: 0 0 0 4px rgba(224, 173, 53, 0.17);
}

.home-hero h1 {
  max-width: 650px;
  margin: 0;
  color: var(--home-text);
  font-size: clamp(2.7rem, 5.3vw, 4.65rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.home-hero-description {
  max-width: 580px;
  margin: 20px 0 0;
  color: var(--home-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 27px;
}

.home-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.93rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.home-button:hover {
  transform: translateY(-2px);
}

.home-button:focus-visible,
.home-subject-card:focus-visible,
.home-progress-link:focus-visible {
  outline: 3px solid #e0ad35;
  outline-offset: 3px;
}

.home-button svg,
.home-card-link svg,
.home-progress-link svg {
  width: 17px;
  height: 17px;
}

.home-button-primary {
  background: var(--home-green);
  color: #fff;
}

[data-theme="dark"] .home-button-primary {
  color: #102016;
}

.home-button-primary:hover {
  background: var(--home-green-dark);
  color: #fff;
}

[data-theme="dark"] .home-button-primary:hover {
  color: #102016;
}

.home-button-secondary {
  border-color: var(--home-border);
  background: var(--home-surface);
  color: var(--home-text);
}

.home-button-secondary:hover {
  border-color: var(--home-green);
  background: var(--home-green-wash);
  color: var(--home-text);
}

.home-hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 29px;
  color: var(--home-muted);
  font-size: 0.86rem;
}

.home-hero-note svg {
  width: 18px;
  height: 18px;
  color: var(--home-green);
}

.home-hero-art {
  min-height: 300px;
  display: grid;
  place-items: center;
  position: relative;
}

.home-orbit {
  width: 305px;
  height: 305px;
  position: absolute;
  border: 1px solid rgba(22, 116, 71, 0.19);
  border-radius: 50%;
}

.home-orbit-outer {
  transform: rotate(-24deg) scaleX(0.82);
}

.home-orbit-inner {
  width: 235px;
  height: 235px;
  border-style: dashed;
  opacity: 0.72;
}

.home-study-card {
  width: min(100%, 285px);
  min-height: 215px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 26px;
  border: 1px solid var(--home-border);
  border-radius: 20px;
  background: var(--home-surface);
  box-shadow: 0 22px 60px rgba(23, 51, 39, 0.13);
  transform: rotate(3deg);
}

.home-study-card-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 13px;
  background: var(--home-green-wash);
  color: var(--home-green);
}

.home-study-card-icon svg {
  width: 22px;
  height: 22px;
}

.home-study-card-label,
.home-subject-card-label {
  color: var(--home-muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.home-study-card strong {
  margin-top: 5px;
  color: var(--home-text);
  font-size: 1.43rem;
  letter-spacing: -0.035em;
}

.home-study-line {
  display: flex;
  gap: 5px;
  margin: 13px 0 10px;
}

.home-study-line i {
  width: 35px;
  height: 5px;
  border-radius: 5px;
  background: var(--home-green);
}

.home-study-line i:nth-child(2) {
  width: 23px;
  opacity: 0.48;
}

.home-study-line i:nth-child(3) {
  width: 15px;
  opacity: 0.24;
}

.home-study-card-caption {
  color: var(--home-muted);
  font-size: 0.8rem;
}

.home-floating-mark {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--home-green);
  font-family: Georgia, serif;
  font-weight: 700;
}

.home-mark-one {
  top: 17%;
  right: 7%;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #e9c866;
  color: #31452b;
  font-size: 1.55rem;
  transform: rotate(12deg);
}

.home-mark-two {
  bottom: 13%;
  left: 7%;
  font-size: 2rem;
  transform: rotate(-12deg);
}

.home-mark-three {
  top: 19%;
  left: 12%;
  font-size: 1.6rem;
  transform: rotate(-10deg);
}

.home-section {
  padding-top: 82px;
  scroll-margin-top: 90px;
}

.home-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.home-section-heading h2,
.home-paper-copy h2,
.home-progress-copy h2 {
  margin: 0;
  color: var(--home-text);
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.home-section-heading > div > p:last-child {
  margin: 8px 0 0;
  color: var(--home-muted);
}

.home-section-index {
  padding-bottom: 5px;
  color: var(--home-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.home-subject-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.home-subject-card {
  min-height: 245px;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 23px;
  border: 1px solid var(--home-border);
  border-radius: 17px;
  background: var(--home-surface);
  color: var(--home-text);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-subject-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.home-subject-card:hover {
  transform: translateY(-4px);
  border-color: var(--home-green);
  box-shadow: 0 12px 30px rgba(23, 51, 39, 0.09);
}

.home-subject-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 13px;
  background: var(--home-green-wash);
  color: var(--home-green);
}

.home-subject-icon svg {
  width: 21px;
  height: 21px;
}

.home-subject-card strong {
  margin-top: 4px;
  font-size: 1.13rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.home-subject-description {
  margin-top: 8px;
  color: var(--home-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.home-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 15px;
  color: var(--home-green);
  font-size: 0.81rem;
  font-weight: 800;
}

.home-paper-section {
  min-height: 285px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 30px;
  margin-top: 82px;
  padding: clamp(30px, 5vw, 54px);
  overflow: hidden;
  position: relative;
  border-radius: 23px;
  background: #174b35;
  color: #f4fbf5;
}

.home-paper-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.home-paper-copy .home-eyebrow {
  color: #a9ddb5;
}

.home-paper-copy h2 {
  max-width: 600px;
  color: #fff;
}

.home-paper-copy > p:not(.home-eyebrow) {
  max-width: 620px;
  margin: 12px 0 21px;
  color: #d1e5d7;
  line-height: 1.7;
}

.home-button-light {
  background: #fff;
  color: #174b35;
}

.home-button-light:hover {
  background: #e4f2e8;
  color: #174b35;
}

.home-paper-art {
  height: 190px;
  display: grid;
  place-items: center;
  position: relative;
}

.home-paper-sheet {
  width: 125px;
  height: 155px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 27px 19px;
  position: relative;
  border-radius: 12px;
  background: #f9fcf8;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.2);
  transform: rotate(7deg);
}

.home-paper-sheet span {
  height: 5px;
  border-radius: 5px;
  background: #d8e6db;
}

.home-paper-sheet span:first-child {
  width: 62%;
  height: 7px;
  background: #5da878;
}

.home-paper-sheet svg {
  width: 28px;
  height: 28px;
  position: absolute;
  right: 15px;
  bottom: 18px;
  color: #24784a;
}

.home-paper-check {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  position: absolute;
  right: 5px;
  bottom: 5px;
  border: 4px solid #174b35;
  border-radius: 50%;
  background: #e6bd52;
  color: #174b35;
}

.home-paper-check svg {
  width: 22px;
  height: 22px;
}

.home-progress-section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 25px;
  padding: 30px;
  border: 1px solid var(--home-border);
  border-radius: 19px;
  background: var(--home-surface);
}

.home-progress-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--home-green-wash);
  color: var(--home-green);
}

.home-progress-icon svg {
  width: 25px;
  height: 25px;
}

.home-progress-copy .home-eyebrow {
  margin-bottom: 5px;
}

.home-progress-copy h2 {
  font-size: 1.45rem;
}

.home-progress-copy > p:last-child {
  margin: 6px 0 0;
  color: var(--home-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.home-progress-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.home-progress-actions .home-button {
  white-space: nowrap;
}

.home-progress-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--home-green);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.home-progress-link:hover {
  text-decoration: underline;
}

.home-page .site-footer {
  margin-top: 0;
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(210px, 0.8fr);
    gap: 22px;
    padding: 42px;
  }

  .home-hero-art {
    min-height: 270px;
  }

  .home-orbit {
    width: 255px;
    height: 255px;
  }

  .home-orbit-inner {
    width: 195px;
    height: 195px;
  }

  .home-study-card {
    padding: 21px;
  }

  .home-progress-section {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-progress-actions {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .home-main {
    width: min(100% - 32px, 520px);
    padding: 22px 0 50px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 34px 25px 24px;
    border-radius: 22px;
  }

  .home-hero h1 {
    font-size: clamp(2.55rem, 11vw, 3.55rem);
  }

  .home-hero-description {
    font-size: 0.97rem;
  }

  .home-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-button {
    width: 100%;
  }

  .home-hero-note {
    align-items: flex-start;
    font-size: 0.8rem;
  }

  .home-hero-art {
    min-height: 245px;
  }

  .home-orbit {
    width: 235px;
    height: 235px;
  }

  .home-orbit-inner {
    width: 180px;
    height: 180px;
  }

  .home-study-card {
    width: 245px;
    min-height: 195px;
  }

  .home-section {
    padding-top: 58px;
  }

  .home-section-heading {
    align-items: flex-start;
    margin-bottom: 19px;
  }

  .home-section-heading > div > p:last-child {
    font-size: 0.9rem;
  }

  .home-section-index {
    display: none;
  }

  .home-subject-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-subject-card,
  .home-subject-card:nth-child(4) {
    min-height: 215px;
    grid-column: auto;
  }

  .home-paper-section {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 58px;
    padding: 31px 25px 15px;
  }

  .home-paper-art {
    height: 155px;
    justify-self: center;
    width: 220px;
  }

  .home-progress-section {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 14px;
    margin-top: 16px;
    padding: 24px;
  }

  .home-progress-actions {
    grid-column: auto;
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    margin-top: 3px;
  }

  .home-progress-link {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .home-main {
    padding-top: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
