@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

:root {
  --background: #f4f5f0;
  --foreground: #112112;
  --ink: #163427;
  --surface: #eceee4;
  --accent: #f59e0b;
  --accent-lime: #c8ff3a;
  --accent-soft: #f8deb6;
  --line: rgba(0, 0, 0, 0.12);
  --success: #0a7b4f;
  --danger: #c0392b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--foreground);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, #dde7d5 0%, transparent 35%),
    radial-gradient(circle at 90% 15%, #f8deb6 0%, transparent 25%),
    linear-gradient(#f8f8f2 0%, #f2f4eb 55%, #edf2e7 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  width: min(1152px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(236, 238, 228, 0.9);
  backdrop-filter: blur(8px);
}

.site-nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.brand {
  font-family: "Merriweather", serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.nav-links a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.2s ease;
}

.nav-links a:hover {
  background: rgba(0, 0, 0, 0.06);
}

.nav-links a.is-active {
  background: var(--ink);
  color: #fff;
}

.nav-external {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 0.4rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(17, 33, 18, 0.88);
  transition: color 0.2s ease;
}

.external-link svg {
  width: 0.9rem;
  height: 0.9rem;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.external-link:hover {
  color: var(--accent-lime);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 1.2rem;
}

.menu-toggle {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 0 0 1rem;
}

.mobile-menu a {
  display: block;
  padding: 0.65rem 0;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.74rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #112b1f;
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-outline {
  border-color: rgba(0, 0, 0, 0.2);
  background: transparent;
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: rgba(0, 0, 0, 0.4);
}

.btn-soft {
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
}

.btn-soft:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-panel,
.section-card {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 1.5rem;
  overflow: hidden;
}

.hero-panel {
  margin-top: 2rem;
  padding: 2.4rem;
  color: #fff;
  background: var(--ink);
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
}

.hero-panel::before {
  width: 240px;
  height: 240px;
  background: rgba(245, 158, 11, 0.4);
  top: -70px;
  right: -70px;
}

.hero-panel::after {
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.12);
  bottom: -90px;
  left: -60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.8;
}

h1,
h2,
h3,
h4 {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Merriweather", serif;
  color: var(--ink);
}

.hero-panel h1 {
  margin-top: 0.7rem;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.1;
}

.hero-panel p {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 700px;
  line-height: 1.65;
}

.hero-cta {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-metrics {
  display: grid;
  gap: 0.75rem;
}

.metric-card {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
}

.metric-card strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1.2;
}

.metric-card span {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
}

.section {
  margin-top: 2.3rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.section-head p {
  margin: 0.35rem 0 0;
  color: rgba(0, 0, 0, 0.66);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--foreground);
  border-radius: 999px;
  padding: 0.52rem 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.pill.is-active {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.course-card,
.plan-card,
.mini-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 25px 50px -25px rgba(0, 0, 0, 0.3);
}

.course-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.4);
}

.course-bar {
  height: 7px;
}

.course-bar.is-free {
  background: linear-gradient(to right, #00a5ef, #155dfc);
}

.course-bar.is-paid {
  background: linear-gradient(to right, #fe6e00, #f99c00);
}

.course-content {
  padding: 1.1rem;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.55);
}

.course-content h3 {
  font-size: 1.14rem;
}

.course-content p {
  margin: 0.55rem 0 0;
  color: rgba(0, 0, 0, 0.73);
  line-height: 1.55;
}

.course-footer {
  margin-top: 0.95rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-free {
  color: #0f5caa;
  background: #e7f4ff;
}

.badge-paid {
  color: #9d4c06;
  background: #fff2dd;
}

.feature-card,
.plan-card,
.mini-card {
  padding: 1.2rem;
}

.feature-card p,
.plan-card p,
.mini-card p,
.panel p {
  margin: 0.55rem 0 0;
  color: rgba(0, 0, 0, 0.72);
  line-height: 1.55;
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.plan-card.is-highlight {
  background: var(--ink);
  color: #fff;
}

.plan-card.is-highlight p,
.plan-card.is-highlight li {
  color: rgba(255, 255, 255, 0.82);
}

.plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
}

.plan-card.is-highlight .plan-price {
  color: #fff;
}

.plan-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.93rem;
}

.section-card {
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.8);
}

.split-panel {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  padding: 1.1rem;
}

.field {
  display: grid;
  gap: 0.32rem;
  margin-top: 0.8rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
}

input,
select,
textarea {
  border: 1px solid rgba(0, 0, 0, 0.17);
  border-radius: 0.8rem;
  padding: 0.72rem 0.82rem;
  background: #fff;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.6);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.info-line {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: rgba(0, 0, 0, 0.62);
}

.notice {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.notice.success {
  color: var(--success);
}

.notice.error {
  color: var(--danger);
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  font-size: 0.9rem;
}

th {
  font-weight: 700;
  background: rgba(22, 52, 39, 0.05);
}

.progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #00a5ef, #0a7b4f);
  transition: width 0.25s ease;
}

.lesson-list {
  display: grid;
  gap: 0.65rem;
}

.lesson-item {
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: #fff;
  padding: 0.82rem;
  display: flex;
  align-items: start;
  gap: 0.58rem;
}

.lesson-item strong {
  font-size: 0.95rem;
}

.lesson-item p {
  margin: 0.23rem 0 0;
  font-size: 0.84rem;
}

.resource-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.price-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.price-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.48rem 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.price-chip.is-selected {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

.tag-row {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  padding: 0.33rem 0.75rem;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

.video-box {
  border: 1px dashed rgba(0, 0, 0, 0.35);
  border-radius: 1rem;
  background: #f7f8f4;
  min-height: 270px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
}

.stats {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  padding: 0.9rem;
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--ink);
}

.is-hidden {
  display: none !important;
}

.site-footer {
  margin-top: 2.6rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.7);
}

.footer-content {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-content p {
  margin: 0.3rem 0 0;
  color: rgba(0, 0, 0, 0.72);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 1024px) {
  .card-grid.four-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-content,
  .split-panel {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1152px, calc(100% - 1.5rem));
  }

  .nav-links,
  .nav-external,
  .header-actions .btn {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu.is-open {
    display: block;
  }

  .hero-panel {
    margin-top: 1rem;
    padding: 1.4rem;
  }

  .card-grid,
  .card-grid.two-col,
  .card-grid.four-col {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .footer-content {
    min-height: 136px;
    align-items: start;
    flex-direction: column;
    justify-content: center;
    padding: 0.6rem 0;
  }
}
