:root {
  --bg: #f7f7f5;
  --paper: #ffffff;
  --ink: #1c1c1a;
  --muted: #5f5f58;
  --line: #e3e1db;
  --accent: #2f5d50;
  --accent-hover: #244a40;
  --accent-soft: #e7efec;
  --sand: #c4a574;
  --sand-soft: #f3ebe0;
  --radius: 2px;
  --shadow: 0 18px 40px rgba(28, 28, 26, 0.06);
  --font-display: "Fraunces", "Noto Serif KR", Georgia, serif;
  --font-body: "Noto Sans KR", "Source Sans 3", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --max: 1120px;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #eef3f1 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #f3ebe0 0%, transparent 45%),
    var(--bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.inline-error {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #f8e8e6;
  color: #7a2e28;
  text-align: center;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(247, 247, 245, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 4px;
  background: linear-gradient(145deg, var(--accent), #3f7a6a);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15);
  position: relative;
}

.brand__mark::after {
  content: "";
  position: absolute;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--sand);
  right: -0.15rem;
  top: -0.15rem;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

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

.site-nav a:hover::after {
  width: 100%;
}

.site-nav__cta {
  padding: 0.45rem 0.9rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius);
}

.site-nav__cta::after {
  display: none !important;
}

.site-nav__cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero — brand-first full-bleed */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f7f7f5;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 28, 26, 0.25) 0%, rgba(20, 28, 26, 0.72) 68%, rgba(20, 28, 26, 0.88) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 5rem 0 4rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
  color: #fff;
  animation: riseIn 0.9s ease both;
}

.hero__line {
  max-width: 32rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(247, 247, 245, 0.88);
  margin-bottom: 0.35rem;
  animation: riseIn 0.9s ease 0.12s both;
}

.hero .btn-row {
  animation: riseIn 0.9s ease 0.22s both;
}

.hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

@keyframes heroDrift {
  from { transform: scale(1.05) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.5%, 1%); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--tight {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.section__head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section__head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.proof-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.proof-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
  padding: 2rem 0;
}

.proof-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--ink);
  font-weight: 550;
}

.proof-strip span {
  color: var(--muted);
  font-size: 0.92rem;
}

.course-grid,
.blog-grid,
.tier-grid,
.benefit-grid {
  display: grid;
  gap: 1.75rem;
}

.course-grid,
.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.benefit-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
}

.tier-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.media-tile {
  display: block;
  text-decoration: none;
  color: inherit;
}

.media-tile__img {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--line);
  margin-bottom: 1rem;
}

.media-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.media-tile:hover .media-tile__img img {
  transform: scale(1.04);
}

.media-tile h3 {
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.media-tile p {
  font-size: 0.95rem;
  margin: 0;
}

.benefit-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split__img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow);
}

.split__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-block {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.quote-block blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--ink);
  line-height: 1.45;
  font-weight: 500;
}

.quote-block cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.92rem;
}

.cta-band {
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 28rem;
}

.cta-band .btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.cta-band .btn--primary {
  background: #fff;
  color: var(--accent);
}

.cta-band .btn--primary:hover {
  background: var(--sand-soft);
  color: var(--accent-hover);
}

/* Page hero (inner) */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 16ch;
}

.page-hero p {
  max-width: 36rem;
  font-size: 1.08rem;
}

.page-hero--media {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.page-hero--media .page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero--media .page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--media .page-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 28, 26, 0.2), rgba(20, 28, 26, 0.78));
}

.page-hero--media .container {
  position: relative;
  z-index: 1;
  padding-bottom: 3rem;
  padding-top: 6rem;
}

.page-hero--media h1,
.page-hero--media p {
  color: rgba(247, 247, 245, 0.92);
}

.page-hero--media h1 {
  color: #fff;
}

/* Pricing */
.tier {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.tier:hover {
  border-color: #c9d5d0;
  box-shadow: var(--shadow);
}

.tier--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #f3f8f6, #fff);
}

.tier__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0;
  color: var(--ink);
}

.tier__price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
}

.tier__price small {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
}

.tier ul {
  margin: 0.5rem 0 1rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.tier li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

/* Reviews */
.review-list {
  display: grid;
  gap: 2rem;
}

.review {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.review__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.review__meta strong {
  color: var(--ink);
  font-weight: 600;
}

.review__stars {
  letter-spacing: 0.08em;
  color: var(--sand);
}

.review p:last-child {
  margin-bottom: 0;
}

.case-study {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: 2.5rem;
}

.case-study h3 {
  font-size: 1.4rem;
}

/* Forms */
.form-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.form-field {
  margin-bottom: 1.15rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  color: #9b3a32;
  font-size: 0.85rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.form-status--ok {
  color: var(--accent);
}

.form-status--err {
  color: #9b3a32;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-aside {
  padding: 1.5rem 0;
}

.contact-aside h2 {
  font-size: 1.3rem;
}

.contact-aside address {
  font-style: normal;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.65;
}

/* Legal */
.legal {
  max-width: 44rem;
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 2.25rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.25rem 0;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
}

/* Course detail */
.module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: mod;
}

.module-list li {
  counter-increment: mod;
  padding: 1.15rem 0 1.15rem 3rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.module-list li::before {
  content: counter(mod, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.05rem;
}

.module-list h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  margin: 1.5rem 0;
}

.instructor img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0.75rem 0 0;
}

/* Blog article */
.article {
  max-width: 42rem;
  margin: 0 auto;
}

.article__meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.article__cover {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 2rem;
}

.article__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article h2 {
  font-size: 1.45rem;
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.site-footer__grid {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2rem;
}

.footer-heading {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 0.45rem;
}

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

.footer-address {
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.site-footer__tag {
  font-size: 0.95rem;
  max-width: 18rem;
}

.site-footer__copy {
  width: min(100% - 2.5rem, var(--max));
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.brand--footer {
  margin-bottom: 0.75rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 60;
  max-width: 520px;
  margin-right: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 4px;
  animation: riseIn 0.45s ease both;
}

.cookie-banner__inner {
  padding: 1.15rem 1.25rem;
}

.cookie-banner__text {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  margin-bottom: 0.5rem;
}

/* Utility */
.muted {
  color: var(--muted);
}

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }

@media (max-width: 900px) {
  .course-grid,
  .blog-grid,
  .tier-grid,
  .proof-strip__grid,
  .split,
  .contact-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

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

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

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(247, 247, 245, 0.97);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav__cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: none;
  }

  .instructor {
    grid-template-columns: 88px 1fr;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 600px) {
  .hero__content {
    padding-bottom: 3rem;
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
}
