@font-face {
  font-family: "SCDream";
  src: url("@fonts/SCDream1.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SCDream";
  src: url("@fonts/SCDream2.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SCDream";
  src: url("@fonts/SCDream3.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SCDream";
  src: url("@fonts/SCDream4.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SCDream";
  src: url("@fonts/SCDream5.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SCDream";
  src: url("@fonts/SCDream6.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SCDream";
  src: url("@fonts/SCDream7.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SCDream";
  src: url("@fonts/SCDream8.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SCDream";
  src: url("@fonts/SCDream9.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

body {
  min-height: max(884px, 100dvh);
}

.font-display {
  font-family: "SCDream", sans-serif;
}

.page-root {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  background-color: #f5fbf3;
}

.dark .page-root {
  background-color: #0f2317;
}

.section {
  width: 100%;
  padding-block: 3rem;
}

@media (min-width: 640px) {
  .section {
    padding-block: 4rem;
  }
}

.section-primary {
  background-color: transparent;
}

.dark .section-primary {
  background-color: transparent;
}

.section-secondary {
  background-color: #ffffff;
  padding-block: 4rem;
}

@media (min-width: 640px) {
  .section-secondary {
    padding-block: 5rem;
  }
}

.dark .section-secondary {
  background-color: #000000;
}

.section-container {
  margin: 0 auto;
  max-width: 64rem;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .section-container {
    padding-inline: 1.5rem;
  }
}

.hero-title {
  color: #000000;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
}

.asset-title {
  margin-top: 15px;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 34px;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 38px;
  }
}

.dark .hero-title {
  color: #ffffff;
}

.accent-text {
  color: #1A9047;
}

.hero-wrapper {
  margin-top: 2rem;
  padding: 1rem;
}

@media (min-width: 640px) {
  .hero-wrapper {
    padding: 1.5rem;
  }
}

.hero-wrapper--intro {
  padding: 0;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .hero-wrapper--intro {
    margin-top: 3rem;
  }
}

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 0.75rem;
  background-size: cover;
  background-position: center;
  padding-top: 120px;
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 70%),
    url("./images/jensen_huang.jpg?v=1.1");
}

@media (min-width: 640px) {
  .hero-card {
    padding-top: 160px;
  }
}

.hero-card--placeholder {
  background-image: none;
  background-color: #ffffff;
  border: 1px dashed rgba(15, 35, 23, 0.2);
  padding-top: 0;
}

.hero-card--grammar {
  background-image: none;
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.hero-card--stat {
  background-image: none;
  background-color: #ffffff;
  border: none;
  padding-top: 0;
  border-radius: 1.75rem;
  box-shadow: 0 12px 28px rgba(15, 35, 23, 0.08);
  display: flex;
  justify-content: center;
}

.dark .hero-card--stat {
  background-color: #111827;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
}

.hero-card--stat .hero-card-content {
  padding: 0;
  width: 100%;
  display: block;
}

.hero-card--stat .feature-media {
  border-radius: 1.75rem;
  overflow: hidden;
}

.intro-gallery {
  display: grid;
  gap: 1.5rem;
}

.intro-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 220px;
  border-radius: 1.75rem;
  overflow: hidden;
  padding: 1.75rem;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: linear-gradient(135deg, #0d7a52 0%, #1a9047 100%);
  box-shadow: 0 18px 38px rgba(15, 35, 23, 0.12);
}

.intro-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 27, 16, 0.1) 0%, rgba(9, 27, 16, 0.8) 95%);
  z-index: 0;
}


.intro-card--fun {
  background-image: linear-gradient(135deg, #a63bbc 0%, #f76395 100%);
}

.intro-caption {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  max-width: 18ch;
}

@media (min-width: 640px) {
  .intro-card {
    min-height: 260px;
  }

  .intro-caption {
    font-size: 1.375rem;
  }
}

.intro-card--with-media {
  background-image: none;
  background-color: transparent;
  color: #ffffff;
  padding: 0;
}

.intro-card--with-media::after {
  display: block;
  background: linear-gradient(180deg, rgba(9, 27, 16, 0) 60%, rgba(9, 27, 16, 0.85) 100%);
  z-index: 1;
}

.intro-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  box-shadow: none;
}

.intro-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro-card--with-media .intro-caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  color: #ffffff;
  /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(15, 35, 23, 0.9) 100%); */
  padding: 0.65rem 1rem;
  border-radius: 0.85rem;
  /* box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); */
  max-width: min(320px, 80%);
}

.dark .hero-card--placeholder {
  background-color: #111827;
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-card--placeholder .hero-card-content {
  justify-content: center;
  align-items: center;
  min-height: 220px;
}

@media (min-width: 640px) {
  .hero-card--placeholder .hero-card-content {
    min-height: 280px;
  }
}

.hero-card--placeholder .feature-media {
  border-radius: 1.5rem;
  background-color: #f3f4f6;
  border: 1px dashed rgba(15, 35, 23, 0.25);
}

.hero-card--grammar .feature-media {
  border-radius: 1.5rem;
  box-shadow: 0 12px 28px rgba(15, 35, 23, 0.08);
  overflow: hidden;
}

.dark .hero-card--placeholder .feature-media {
  background-color: #1f2937;
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-card-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-card-content {
    padding: 1.5rem;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: 36rem;
  color: #ffffff;
}

.hero-quote {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .hero-quote {
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) {
  .hero-quote {
    font-size: 1.5rem;
  }
}

.hero-citation {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
}

@media (min-width: 640px) {
  .hero-citation {
    font-size: 1rem;
  }
}

.section-subtitle {
  color: #000000;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.04em;
  text-align: center;
  padding-top: 2.5rem;
}

@media (min-width: 640px) {
  .section-subtitle {
    font-size: 28px;
  }
}

.dark .section-subtitle {
  color: #ffffff;
}

.feature-heading {
  color: #000000;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.04em;
  text-align: left;
}

@media (min-width: 640px) {
  .feature-heading {
    font-size: 34px;
  }
}

.dark .feature-heading {
  color: #ffffff;
}

.feature-slider {
  margin: 2rem auto 0;
  max-width: 42rem;
  overflow: hidden;
  padding: 0;
}

@media (min-width: 1024px) {
  .feature-slider {
    margin-inline: 0;
  }
}

.feature-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0;
  margin: 0;
  scroll-padding-inline: 0;
}

.feature-static {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 3rem auto 0;
  max-width: 42rem;
}

@media (min-width: 1024px) {
  .feature-static {
    margin-inline: 0;
  }
}

@media (min-width: 768px) {
  .feature-static {
    flex-direction: row;
  }
}

.section-secondary-writing .feature-static {
  flex-direction: column;
}

@media (min-width: 768px) {
  .section-secondary-writing .feature-static {
    flex-direction: column;
  }
}

.feature-static-item {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.feature-static-card {
  width: 100%;
  border-radius: 1.75rem;
  background-color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 35, 23, 0.08);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.dark .feature-static-card {
  background-color: #111827;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
}

.feature-static-heading {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

@media (min-width: 640px) {
  .feature-static-heading {
    font-size: 1.75rem;
  }
}

.feature-static-card .feature-title {
  margin: 0;
  color: #1A9047;
  font-weight: 600;
}

.feature-static-card .feature-description {
  margin: 0;
  color: #555555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.dark .feature-static-card .feature-description {
  color: #9ca3af;
}

.feature-track::-webkit-scrollbar {
  display: none;
}

.feature-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.feature-card {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  scroll-snap-align: center;
  border-radius: 1.75rem;
  background-color: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 35, 23, 0.08);
  padding: 0;
  overflow: hidden;
}

.dark .feature-card {
  background-color: #111827;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.feature-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.feature-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.feature-dot:hover,
.feature-dot:focus-visible {
  background-color: rgba(0, 184, 77, 0.65);
  transform: scale(1.1);
  outline: 2px solid #1A9047;
  outline-offset: 3px;
}

.feature-dot[aria-current="true"] {
  background-color: #1A9047;
}

.dark .feature-dot {
  background-color: rgba(255, 255, 255, 0.25);
}

.dark .feature-dot[aria-current="true"] {
  background-color: #34d399;
}

.feature-media {
  width: 100%;
  border: none;
  border-radius: 0;
  aspect-ratio: 4 / 3;
  background-color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.feature-audio {
  padding: 1.25rem;
  background-color: #f3f4f6;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark .feature-audio {
  background-color: #1f2937;
}

.feature-audio audio {
  width: 100%;
  max-width: 420px;
}

.feature-media--writing-journal {
  border-radius: 1.5rem;
  background-image: url("./images/writing_daily_journal.png?v=1.1");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.feature-media--writing-observation {
  border-radius: 1.5rem;
  background-image: url("./images/writing_observation.png?v=1.1");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.feature-media--grammar-hero {
  border-radius: 1.5rem;
  background-image: url("./images/grammar_assets.png?v=1.1");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.feature-media--speaking-stat {
  border-radius: inherit;
  width: 100%;
  height: auto;
  background-image: url("./images/speaking_assets.png?v=1.1");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.feature-media-placeholder {
  color: #9ca3af;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .feature-media-placeholder {
    font-size: 1rem;
  }
}

.dark .feature-media-placeholder {
  color: #6b7280;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0;
  padding: 1.5rem 1.5rem 1.75rem;
  text-align: left;
}

.feature-title {
  color: #000000;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

@media (min-width: 640px) {
  .feature-title {
    font-size: 1.25rem;
  }
}

.dark .feature-title {
  color: #ffffff;
}

.feature-description {
  margin-top: 0.125rem;
  color: #555555;
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .feature-description {
    margin-top: 0.25rem;
    font-size: 1rem;
  }
}

.dark .feature-description {
  color: #9ca3af;
}

.highlight {
  display: inline;
  padding-inline: 0;
  background: linear-gradient(to top, rgba(255, 255, 0, 0.4) 40%, transparent 40%);
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
