:root {
  --bg: #ffffff;
  --bg-soft: #f6faf9;
  --bg-mist: #eef5f3;
  --ink: #17201f;
  --ink-soft: #4a5856;
  --line: #d7e4e1;
  --accent: #1f6f6a;
  --accent-deep: #155551;
  --accent-soft: #a8d5ce;
  --accent-wash: #e4f3f0;
  --warn: #9a4a2e;
  --ok: #1f6f6a;
  --err: #9b2c2c;
  --shadow: 0 18px 40px rgba(23, 32, 31, 0.06);
  --radius: 14px;
  --font-display: "Hahmlet", "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: var(--bg);
  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);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.inline-error {
  background: #fdeceb;
  color: var(--err);
  border: 1px solid #f0c4c4;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin: 0.75rem 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.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;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo:hover {
  color: var(--accent);
}

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

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

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px;
  height: 40px;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: absolute;
  left: 12px;
  top: 19px;
}

.nav-toggle-bar::before {
  top: -6px;
  left: 0;
}

.nav-toggle-bar::after {
  top: 6px;
  left: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  font: inherit;
  font-weight: 500;
  border: 1px solid transparent;
  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-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);
}

.btn-text {
  background: transparent;
  color: var(--accent-deep);
  padding-inline: 0.2rem;
  border-radius: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92) 28%, rgba(255, 255, 255, 0.55) 55%, rgba(238, 245, 243, 0.35)),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}

.hero-panel {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto 4.5rem;
  max-width: 640px;
  animation: rise 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 0.95;
  margin: 0 0 1.2rem;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34ch;
  margin-bottom: 1.6rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.section {
  padding: 5rem 0;
}

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

.section-mist {
  background:
    radial-gradient(circle at 12% 20%, rgba(168, 213, 206, 0.35), transparent 42%),
    radial-gradient(circle at 88% 10%, rgba(31, 111, 106, 0.08), transparent 35%),
    var(--bg);
}

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

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

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

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

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.media-frame 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.2rem;
  position: relative;
}

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

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

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

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

.review-grid {
  grid-template-columns: 1.2fr 1fr;
}

.course-card,
.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.course-card img,
.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  transition: transform 0.35s ease;
}

.course-card:hover img,
.blog-card:hover img {
  transform: scale(1.02);
}

.course-card h3,
.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.course-card p,
.blog-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-top: 0.75rem;
}

.quote-rail {
  display: grid;
  gap: 1.25rem;
}

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

.quote:last-child {
  border-bottom: 1px solid var(--line);
}

.quote p {
  font-size: 1.05rem;
}

.quote footer {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.stat-line {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  padding: 2rem 0;
  border-block: 1px solid var(--line);
}

.stat-line strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent-deep);
  letter-spacing: -0.03em;
}

.stat-line span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.tier {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tier.featured {
  background: var(--accent-wash);
  border-color: var(--accent-soft);
}

.tier h3 {
  margin: 0;
  font-size: 1.45rem;
}

.tier .price {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.03em;
}

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

.tier li + li {
  margin-top: 0.45rem;
}

.note {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.page-hero {
  padding: 4rem 0 2.5rem;
  background:
    linear-gradient(180deg, var(--bg-mist), transparent 70%);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  max-width: 16ch;
}

.page-hero p {
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.prose {
  max-width: 70ch;
}

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

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.95rem;
}

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

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

.modules {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.module {
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
}

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

.faq summary {
  cursor: pointer;
  font-weight: 500;
}

.faq p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
}

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

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

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

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

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

.field-error {
  color: var(--err);
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  display: none;
}

.form-status.is-success,
.form-status.is-error {
  display: block;
}

.form-status.is-success {
  background: var(--accent-wash);
  color: var(--accent-deep);
}

.form-status.is-error {
  background: #fdeceb;
  color: var(--err);
}

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

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

.instructor img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-soft);
}

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

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

.site-footer {
  background: #123533;
  color: #d7e8e5;
  margin-top: 4rem;
  padding: 3.5rem 0 0;
}

.site-footer a {
  color: #d7e8e5;
  text-decoration: none;
}

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

.footer-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 2.5rem;
}

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

.footer-tag {
  color: #a8c4bf;
  max-width: 32ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-col h2 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a8d5ce;
  margin-bottom: 0.9rem;
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  color: #d7e8e5;
}

.footer-bottom {
  width: min(100% - 2.5rem, var(--max));
  margin: 2.5rem auto 0;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid rgba(215, 232, 229, 0.18);
  color: #9fb8b3;
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  animation: slide-up 0.45s ease both;
}

.cookie-banner-inner {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 220px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin-bottom: 0.2rem;
  color: var(--accent);
}

.cta-band {
  padding: 3.5rem 0;
  background: linear-gradient(135deg, var(--accent-wash), #fff 55%, var(--bg-mist));
  border-block: 1px solid var(--line);
}

.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  max-width: 16ch;
  margin: 0;
}

.timeline {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
}

.timeline-item strong {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.1rem;
}

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

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .split,
  .course-grid,
  .blog-grid,
  .tier-grid,
  .review-grid,
  .contact-layout,
  .footer-inner,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
    align-items: center;
  }

  .hero-panel {
    margin-bottom: 3rem;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .header-inner {
    position: relative;
  }

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

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    justify-content: stretch;
  }

  .cookie-banner-actions .btn {
    flex: 1;
  }
}

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