:root {
  --bg: #fbfcfc;
  --bg-soft: #f1f6f5;
  --surface: #ffffff;
  --ink: #1a2b28;
  --ink-muted: #5a6e6a;
  --line: #d8e4e1;
  --accent: #1f6b62;
  --accent-soft: #a8d5cf;
  --accent-deep: #154f48;
  --warm: #c47a4a;
  --ok: #2d7a52;
  --err: #b23b3b;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(26, 43, 40, 0.07);
  --font-display: "Song Myung", "Noto Serif KR", serif;
  --font-body: "IBM Plex Sans KR", "Noto Sans KR", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(168, 213, 207, 0.35), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(196, 122, 74, 0.08), transparent 50%),
    linear-gradient(180deg, #f7faf9 0%, var(--bg) 40%, #f4f8f7 100%);
  line-height: 1.7;
  min-height: 100vh;
}

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

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

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(251, 252, 252, 0.86);
  border-bottom: 1px solid rgba(216, 228, 225, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

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

.logo-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
  background:
    radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 55%),
    linear-gradient(145deg, var(--accent), var(--accent-deep));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

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

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

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

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  padding: 0.45rem 0.95rem !important;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--accent-deep);
}

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

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font: inherit;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

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

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

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

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

.section {
  padding: 5rem 0;
}

.section-soft {
  background: var(--bg-soft);
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

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

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.lead {
  font-size: 1.08rem;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 35, 32, 0.15) 0%, rgba(15, 35, 32, 0.55) 55%, rgba(15, 35, 32, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 5rem;
  color: #f7faf9;
  max-width: 40rem;
  animation: riseIn 0.9s ease both;
}

.hero-content .eyebrow {
  color: var(--accent-soft);
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: #fff;
  margin-bottom: 0.8rem;
}

.hero-content p {
  color: rgba(247, 250, 249, 0.88);
  font-size: 1.1rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #fff;
}

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

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split-visual {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeLift 1s ease both;
}

.split-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--ink-muted);
}

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

.course-grid,
.blog-grid,
.price-grid,
.review-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

.media-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.media-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-tile .body {
  padding: 1.25rem 1.35rem 1.5rem;
}

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

.meta {
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0 0;
}

.stat {
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
}

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

.quote {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.4rem 1.5rem;
  margin: 0;
}

.quote p {
  color: var(--ink);
  font-size: 1.05rem;
}

.quote footer {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.price-card h3 {
  font-size: 1.6rem;
}

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

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

.price-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-muted);
  flex: 1;
}

.form {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--ink);
}

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

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid rgba(31, 107, 98, 0.25);
  border-color: var(--accent);
}

.field-error {
  color: var(--err);
  font-size: 0.86rem;
  min-height: 1.1em;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: 0.7rem;
  display: none;
}

.form-status.show {
  display: block;
}

.form-status.ok {
  background: rgba(45, 122, 82, 0.1);
  color: var(--ok);
}

.form-status.err {
  background: rgba(178, 59, 59, 0.1);
  color: var(--err);
}

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

.address-block {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.address-block p {
  white-space: pre-wrap;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2.2rem;
  font-size: 1.7rem;
}

.prose h3 {
  margin-top: 1.6rem;
  font-size: 1.25rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.8rem;
  font-size: 0.92rem;
}

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

.prose th {
  background: var(--bg-soft);
  color: var(--ink);
}

.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  text-decoration: none;
}

.module-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.module {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  background: var(--surface);
}

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

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

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

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

.site-footer {
  margin-top: 3rem;
  padding: 3.5rem 0 1.5rem;
  background: #122623;
  color: rgba(247, 250, 249, 0.78);
}

.site-footer a {
  color: rgba(247, 250, 249, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .logo-text {
  color: #fff;
}

.site-footer p {
  color: rgba(247, 250, 249, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-col h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.3rem;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 520px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem;
  display: none;
}

.cookie-banner.show {
  display: block;
  animation: riseIn 0.45s ease both;
}

.cookie-banner p {
  margin-bottom: 1rem;
  font-size: 0.94rem;
}

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

.inline-error {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 0.7rem;
  background: rgba(178, 59, 59, 0.1);
  color: var(--err);
}

.case-study {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
}

.cta-band {
  padding: 4rem 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.muted {
  color: var(--ink-muted);
}

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

@keyframes fadeLift {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.1) translateY(-1.5%);
  }
}

@media (max-width: 960px) {
  .course-grid,
  .blog-grid,
  .price-grid,
  .split,
  .split.reverse,
  .contact-panel,
  .footer-grid,
  .review-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(251, 252, 252, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

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

  .site-nav a[aria-current="page"]::after {
    display: none;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
