:root {
  --bg: #f7faf9;
  --bg-elevated: #ffffff;
  --ink: #1c2a27;
  --ink-soft: #4a5c57;
  --muted: #6b7f78;
  --line: #d8e4df;
  --accent: #1a5c52;
  --accent-soft: #7ec8b8;
  --accent-wash: #e8f4f0;
  --accent-hover: #134840;
  --danger: #9b3a3a;
  --danger-wash: #f8ecec;
  --success: #1a5c52;
  --success-wash: #e8f4f0;
  --radius: 4px;
  --shadow: 0 12px 40px rgba(26, 92, 82, 0.08);
  --font-display: "Gowun Dodum", "Noto Sans KR", sans-serif;
  --font-body: "Noto Sans KR", 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.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(126, 200, 184, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(26, 92, 82, 0.06), transparent 50%),
    linear-gradient(180deg, #f2f7f5 0%, var(--bg) 28%, #fafcfb 100%);
  min-height: 100vh;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 250, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

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

.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  background: linear-gradient(145deg, var(--accent) 0%, #2d8a7a 55%, var(--accent-soft) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-nav .nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-nav .nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
}

.nav-toggle-bar {
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 4px 0 var(--ink), 0 -4px 0 var(--ink);
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

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

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.125rem;
  max-width: 38rem;
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split-2 { grid-template-columns: 1.05fr 0.95fr; }
  .split-2-rev { grid-template-columns: 0.95fr 1.05fr; }
  .split-3 { grid-template-columns: repeat(3, 1fr); }
}

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

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

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

.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 — asymmetric brand-led composition */
.hero-home {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-home-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(247, 250, 249, 0.94) 0%, rgba(247, 250, 249, 0.72) 42%, rgba(26, 92, 82, 0.28) 100%),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
  animation: heroFade 1.2s ease both;
}

.hero-home-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 6rem) var(--space) clamp(3rem, 8vw, 5rem);
  width: 100%;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 1rem;
  animation: riseIn 0.8s ease 0.15s both;
}

.hero-line {
  width: 3rem;
  height: 2px;
  background: var(--accent);
  margin: 0 0 1.25rem;
  animation: riseIn 0.8s ease 0.3s both;
}

.hero-home h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 400;
  max-width: 22rem;
  margin-bottom: 0.75rem;
  animation: riseIn 0.8s ease 0.4s both;
}

.hero-home .hero-support {
  max-width: 26rem;
  animation: riseIn 0.8s ease 0.5s both;
}

.hero-home .btn-row {
  animation: riseIn 0.8s ease 0.6s both;
}

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

@keyframes heroFade {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}

.page-hero {
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.page-hero.full-bleed {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  border-bottom: none;
  color: #fff;
}

.page-hero.full-bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 42, 39, 0.25), rgba(28, 42, 39, 0.75));
  z-index: 0;
}

.page-hero.full-bleed .wrap {
  position: relative;
  z-index: 1;
  padding-bottom: 2.5rem;
}

.page-hero.full-bleed h1,
.page-hero.full-bleed p {
  color: #f7faf9;
}

.page-hero.full-bleed .eyebrow {
  color: var(--accent-soft);
}

/* Proof / quotes early on home */
.proof-strip {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.proof-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .proof-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.proof-quote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.proof-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.proof-stat {
  border-left: 2px solid var(--accent-soft);
  padding-left: 1rem;
}

.proof-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  font-weight: 400;
}

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

/* Course / content cards — interaction containers */
.course-grid,
.blog-grid,
.tier-grid,
.benefit-list {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: repeat(3, 1fr); }
  .benefit-list { grid-template-columns: repeat(2, 1fr); }
}

.course-card,
.blog-card,
.tier {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

a.course-card:hover,
a.blog-card:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.course-card img,
.blog-card img,
.cover-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  margin-bottom: 0.5rem;
}

.card-body p {
  flex: 1;
  font-size: 0.98rem;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.benefit-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.benefit-item h3 {
  color: var(--accent);
}

.tier {
  padding: 1.75rem 1.5rem;
}

.tier.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.tier-price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  margin: 0.5rem 0 1rem;
}

.tier-price span {
  font-size: 0.95rem;
  color: var(--muted);
}

.tier ul {
  margin: 0 0 1.5rem;
  padding: 0 0 0 1.1rem;
  color: var(--ink-soft);
}

.tier li { margin-bottom: 0.4rem; }

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

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

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

.review-rating {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.case-study {
  background: var(--accent-wash);
  padding: 2rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}

/* Forms */
.form {
  display: grid;
  gap: 1.15rem;
  max-width: 36rem;
}

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

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-elevated);
  color: var(--ink);
}

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

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

.field-error {
  display: none;
  color: var(--danger);
  font-size: 0.88rem;
  margin-top: 0.35rem;
}

.form-field.has-error .field-error { display: block; }
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--danger);
  background: var(--danger-wash);
}

.form-status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.form-status.is-success {
  display: block;
  background: var(--success-wash);
  color: var(--success);
  border: 1px solid var(--accent-soft);
}

.form-status.is-error {
  display: block;
  background: var(--danger-wash);
  color: var(--danger);
  border: 1px solid #e0b4b4;
}

.contact-panel {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .contact-panel { grid-template-columns: 1.2fr 0.8fr; }
}

.address-block {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.address-block p {
  margin-bottom: 0.65rem;
  word-break: break-word;
}

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

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

.faq details p {
  margin-top: 0.75rem;
}

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

.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: 0.95rem;
}

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

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

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  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-wash);
}

/* Footer */
.site-footer {
  background: #163d37;
  color: #c5d9d3;
  margin-top: clamp(3rem, 8vw, 5rem);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.footer-tag {
  color: #9fb8b1;
  max-width: 22rem;
}

.footer-cols {
  display: grid;
  gap: 1.75rem;
  margin: 2.5rem 0;
}

@media (min-width: 720px) {
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
}

.footer-heading {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.footer-col a {
  display: block;
  color: #c5d9d3;
  text-decoration: none;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

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

.footer-contact p {
  color: #c5d9d3;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-contact a { display: inline; color: var(--accent-soft); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  font-size: 0.88rem;
  color: #8aa59d;
}

.footer-bottom p { margin: 0; color: inherit; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(26, 92, 82, 0.1);
  padding: 1.15rem var(--space);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  flex: 1 1 18rem;
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Inline script error */
.runtime-error {
  background: var(--danger-wash);
  color: var(--danger);
  padding: 0.75rem 1rem;
  border: 1px solid #e0b4b4;
  border-radius: var(--radius);
  margin: 0.75rem 0;
  font-size: 0.92rem;
}

/* 404 */
.not-found {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem var(--space);
}

.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--accent-soft);
  line-height: 1;
  margin: 0;
}

/* Instructor */
.instructor {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 640px) {
  .instructor {
    grid-template-columns: 140px 1fr;
  }
}

.instructor img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
}

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

.article-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.5rem 0 2rem;
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--space) 1.25rem;
    gap: 0;
  }

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

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

  .site-nav .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
  }
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
