:root {
  --green: #05a05f;
  --green-dark: #04794a;
  --navy: #10192f;
  --ink: #162033;
  --muted: #667085;
  --line: #dfe7ef;
  --soft-line: #edf2f7;
  --surface: #ffffff;
  --soft: #f7fbfd;
  --mint: #f0fbf6;
  --shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(5, 160, 95, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 48%, #ffffff 100%);
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 1.95rem;
  font-weight: 900;
  color: var(--navy);
}

.brand::first-letter {
  color: var(--green);
}

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 750;
}

.site-nav a:hover {
  color: var(--green-dark);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  grid-template-areas:
    "copy visual"
    "details visual";
  column-gap: clamp(34px, 7vw, 86px);
  row-gap: clamp(18px, 3vw, 30px);
  align-items: center;
  min-height: 590px;
  padding: clamp(18px, 3vw, 36px) 0 clamp(38px, 5vw, 68px);
}

.hero-copy {
  grid-area: copy;
  align-self: end;
}

.hero-copy h1 {
  margin-bottom: 0;
}

.hero-details {
  grid-area: details;
  align-self: start;
}

.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 22px;
  padding: 0 13px;
  color: var(--green-dark);
  border: 1px solid rgba(5, 160, 95, 0.32);
  border-radius: 8px;
  background: rgba(240, 251, 246, 0.78);
  font-size: 0.9rem;
  font-weight: 850;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(2.45rem, 4.05vw, 3.9rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 590px;
  margin-bottom: 34px;
  color: #46556e;
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
  line-height: 1.82;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 640px;
  margin-bottom: 34px;
}

.hero-points div {
  padding-right: 16px;
  border-right: 1px solid var(--line);
}

.hero-points div:last-child {
  border-right: 0;
}

.hero-points strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 1.03rem;
}

.hero-points span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 7px;
  font-weight: 850;
}

.primary-action {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 12px 28px rgba(5, 160, 95, 0.24);
}

.secondary-action {
  color: var(--green-dark);
  border: 1px solid var(--green);
  background: #fff;
}

.hero-visual {
  grid-area: visual;
  position: relative;
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 520px;
}

.screen-card {
  position: relative;
  border: 1px solid rgba(16, 25, 47, 0.12);
  box-shadow: var(--shadow);
}

.screen-card {
  width: min(100%, 640px);
  min-height: 350px;
  padding: 0;
  color: #fff;
  border-radius: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #0f1b2e, #122d43);
  background-size: 34px 34px, 34px 34px, auto;
}

.screen-card.has-course-image {
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 900 / 520;
  background: #f3f7fb;
}

.screen-card.has-course-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 640px);
  min-height: 54px;
  padding: 13px 16px;
  color: #344258;
  border: 1px solid rgba(16, 25, 47, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(17, 26, 46, 0.08);
  backdrop-filter: blur(12px);
}

.hero-meta-bar span,
.hero-meta-bar strong,
.hero-meta-bar em {
  white-space: nowrap;
}

.hero-meta-bar span {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
}

.hero-meta-bar strong {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 850;
}

.hero-meta-bar em {
  margin-left: auto;
  color: #66738a;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 750;
}

.catalog-section {
  padding: clamp(30px, 5vw, 70px) 0 28px;
}

.section-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-head h2 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  letter-spacing: 0;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.catalog-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--green-dark);
  border: 1px solid rgba(5, 160, 95, 0.16);
  border-radius: 7px;
  background: var(--mint);
  font-size: 0.86rem;
  font-weight: 800;
}

.catalog-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--soft-line);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button,
.reset-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.filter-button {
  padding: 0 18px;
  color: #344054;
}

.filter-button.is-active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
  font-weight: 800;
}

.reset-button {
  padding: 0 14px;
  color: #53627a;
  white-space: nowrap;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.045);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(5, 160, 95, 0.38);
  box-shadow: var(--shadow);
}

.product-cover {
  position: relative;
  display: grid;
  align-content: end;
  overflow: hidden;
  min-height: 170px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #132139, #244b6f);
}

.product-cover::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: auto, 24px 24px;
}

.product-cover span,
.product-cover strong {
  position: relative;
}

.product-cover span {
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 850;
  opacity: 0.8;
}

.product-cover strong {
  max-width: 250px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.product-cover.has-image {
  display: block;
  min-height: 0;
  padding: 0;
  aspect-ratio: 16 / 9;
  background: #f3f7fb;
}

.product-cover.has-image::before {
  content: none;
}

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

.product-card[data-theme="design"] .product-cover {
  background: linear-gradient(135deg, #153d32, #23745c);
}

.product-card[data-theme="system"] .product-cover {
  background: linear-gradient(135deg, #12304d, #0b5f78);
}

.product-card[data-theme="development"] .product-cover {
  background: linear-gradient(135deg, #173047, #0f766e);
}

.product-card[data-theme="unity"] .product-cover {
  background: linear-gradient(135deg, #172b44, #355f86);
}

.product-card[data-theme="godot"] .product-cover {
  background: linear-gradient(135deg, #1d5271, #0d806f);
}

.product-card[data-theme="ai"] .product-cover {
  background: linear-gradient(135deg, #25345c, #5267af);
}

.product-card[data-theme="narrative"] .product-cover {
  background: linear-gradient(135deg, #23324d, #6d4264);
}

.product-card[data-theme="career"] .product-cover {
  background: linear-gradient(135deg, #243047, #626f82);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.product-card h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.17rem;
  line-height: 1.42;
}

.product-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.gumroad-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  margin-top: auto;
  padding: 0 12px;
  color: #3d4a63;
  border: 1px solid #cfd9e7;
  border-radius: 7px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 650;
}

.gumroad-button span {
  color: #6c778b;
  font-size: 0.8rem;
}

.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin: 28px 0 0;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.load-more[hidden] {
  display: none;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 34px 0 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.benefits article {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 28px;
  border-right: 1px solid var(--soft-line);
}

.benefits article:last-child {
  border-right: 0;
}

.benefit-icon {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 800;
}

.benefits h3 {
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 1.05rem;
}

.benefits p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.platform-notice {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 34px;
  padding: 22px;
  border: 1px solid rgba(5, 160, 95, 0.26);
  border-radius: 8px;
  background: #fbfffd;
}

.notice-icon {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--green-dark);
  border: 2px solid currentColor;
  border-radius: 999px;
  font-weight: 900;
}

.platform-notice h2 {
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 1.05rem;
}

.platform-notice p {
  margin-bottom: 0;
  color: #4d5d74;
  font-size: 0.92rem;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--green-dark);
  font-weight: 750;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "details";
    row-gap: 28px;
  }

  .hero-visual {
    min-height: 0;
  }

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

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

  .benefits article {
    border-right: 0;
    border-bottom: 1px solid var(--soft-line);
  }

  .benefits article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .site-nav {
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    white-space: nowrap;
  }

  main,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: clamp(2.1rem, 10vw, 3.15rem);
  }

  .hero {
    min-height: 0;
    row-gap: 24px;
    padding-top: 22px;
  }

  .hero-points,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .hero-points div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 14px;
  }

  .hero-points div:last-child {
    border-bottom: 0;
  }

  .hero-visual {
    min-height: 0;
  }

  .screen-card {
    width: 100%;
    min-height: 0;
    padding: 0;
  }

  .hero-meta-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .hero-meta-bar span,
  .hero-meta-bar strong,
  .hero-meta-bar em {
    white-space: normal;
  }

  .hero-meta-bar em {
    margin-left: 0;
  }

  .section-head,
  .catalog-toolbar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-meta {
    justify-content: flex-start;
  }
}
