:root {
  --bg: #f7faf9;
  --bg-elevated: #ffffff;
  --ink: #152326;
  --ink-soft: #4a5c60;
  --line: #d7e4e2;
  --accent: #1b6b6b;
  --accent-soft: #e4f1f0;
  --accent-deep: #124f4f;
  --highlight: #7eb8b8;
  --danger: #a33b3b;
  --ok: #1f6b4a;
  --radius: 2px;
  --shadow: 0 18px 40px rgba(21, 35, 38, 0.06);
  --font-display: "Noto Serif KR", "Nanum Myeongjo", serif;
  --font-body: "Noto Sans KR", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 1120px;
}

*,
*::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 500px at 10% -10%, #e8f4f2 0%, transparent 55%),
    radial-gradient(900px 420px at 95% 0%, #eef3f1 0%, transparent 50%),
    var(--bg);
  line-height: 1.7;
  font-weight: 400;
  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: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 250, 249, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
}

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

.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: 4px;
  background:
    linear-gradient(145deg, var(--accent) 0%, var(--highlight) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

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

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

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

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

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

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0.55rem;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 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);
}

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.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.05);
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 32, 34, 0.35) 0%, rgba(12, 32, 34, 0.72) 58%, rgba(12, 32, 34, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 12vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
  max-width: 40rem;
}

.brand-signal {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.04em;
  animation: riseIn 0.9s ease both;
}

.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.5rem;
  animation: riseIn 0.9s ease 0.12s both;
}

.hero-support {
  color: rgba(255, 255, 255, 0.72);
  max-width: 34rem;
  margin-bottom: 1.75rem;
  animation: riseIn 0.9s ease 0.22s both;
}

.hero-actions {
  animation: riseIn 0.9s ease 0.32s both;
}

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

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

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

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

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

@media (min-width: 880px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

.proof-strip {
  border-block: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 1.75rem 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  text-align: center;
}

.proof-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--accent-deep);
}

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

.course-grid,
.card-grid,
.blog-grid,
.pricing-grid {
  display: grid;
  gap: 1.5rem;
}

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

.course-item,
.blog-item,
.price-tier,
.review-block,
.case-study {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.course-item:hover,
.blog-item:hover {
  border-color: var(--highlight);
  box-shadow: var(--shadow);
}

.course-item img,
.blog-item img,
.page-hero img,
.feature-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.course-body,
.blog-body,
.price-body,
.review-body,
.case-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}

.quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 1rem;
}

.quote-soft {
  font-size: 1rem;
  font-family: var(--font-body);
}

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

.stars {
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

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

.feature-list li {
  padding-left: 1.35rem;
  border-left: 2px solid var(--accent);
}

.feature-list h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.cta-band {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.cta-band p,
.cta-band h2 {
  color: #fff;
}

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

.page-hero {
  padding: clamp(3rem, 7vw, 4.5rem) 0 2rem;
}

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

.page-hero.compact h1 {
  max-width: 28ch;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: 1.45rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

.prose ul,
.prose ol {
  color: var(--ink-soft);
  padding-left: 1.2rem;
}

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

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

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

.modules {
  display: grid;
  gap: 1rem;
}

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

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

.instructor {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

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

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

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

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

.faq p {
  margin-top: 0.65rem;
}

.price-tier {
  display: flex;
  flex-direction: column;
}

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

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

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

.form {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--ink);
}

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

.form-error {
  color: var(--danger);
  font-size: 0.85rem;
  min-height: 1.1em;
}

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

.form-status.is-success {
  display: block;
  background: #e7f5ee;
  color: var(--ok);
  border: 1px solid #b9dfc8;
}

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

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

@media (min-width: 880px) {
  .contact-panel {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

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

.contact-card p {
  margin-bottom: 0.65rem;
}

.site-footer {
  margin-top: 3rem;
  background: #102224;
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 1.5rem;
}

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

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  }
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.65rem;
}

.footer-heading {
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-col a,
.footer-brand a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  margin-bottom: 0.4rem;
}

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

.footer-col p,
.footer-tag {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.cookie-banner {
  position: fixed;
  z-index: 60;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 420px;
  margin-left: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: riseIn 0.4s ease both;
}

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

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

.inline-error {
  margin: 0.75rem 0;
  padding: 0.75rem 0.9rem;
  background: #f8eaea;
  color: var(--danger);
  border: 1px solid #e3bcbc;
  font-size: 0.9rem;
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.not-found h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

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

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

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

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

  .site-nav .nav-cta {
    margin-top: 0.65rem;
    text-align: center;
    border-bottom: 0;
  }

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