:root {
  --bg: #f7f9f8;
  --bg-elevated: #ffffff;
  --ink: #1c2a2e;
  --ink-soft: #4a5c62;
  --line: #d9e3e6;
  --accent: #1a5f6e;
  --accent-soft: #7ec8d4;
  --accent-wash: #e8f4f6;
  --sand: #f0ebe3;
  --warn: #9b4d3a;
  --ok: #2f6b4f;
  --radius: 10px;
  --shadow: 0 18px 40px rgba(28, 42, 46, 0.08);
  --font-display: "Hahmlet", "Noto Serif KR", serif;
  --font-body: "Noto Sans KR", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --shell: min(1120px, calc(100% - 2.5rem));
}

*,
*::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%, rgba(126, 200, 212, 0.28), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(240, 235, 227, 0.9), transparent 55%),
    linear-gradient(180deg, #fbfcfb 0%, var(--bg) 40%, #f3f6f5 100%);
  line-height: 1.7;
  min-height: 100vh;
}

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

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

a:hover {
  color: #134853;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.inline-error {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #f8e8e4;
  color: var(--warn);
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(247, 249, 248, 0.86);
  border-bottom: 1px solid rgba(217, 227, 230, 0.8);
}

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

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

.brand--footer {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

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

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

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

.nav-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent) !important;
}

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

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

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

.btn--primary:hover {
  background: #134853;
  color: #fff;
}

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

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

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

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

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

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 38, 44, 0.88) 18%, rgba(12, 38, 44, 0.45) 58%, rgba(12, 38, 44, 0.2) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 12vh, 7rem) 0 clamp(3rem, 8vh, 5rem);
}

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

.hero__headline {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.35;
  animation: riseIn 1s ease 0.1s both;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  color: rgba(245, 251, 252, 0.88);
  font-size: 1.05rem;
  animation: riseIn 1s ease 0.18s both;
}

.page-hero {
  padding: clamp(3rem, 8vh, 5rem) 0 2rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section {
  padding: clamp(3rem, 7vh, 5rem) 0;
}

.section--sand {
  background: linear-gradient(180deg, transparent, rgba(240, 235, 227, 0.55), transparent);
}

.section--wash {
  background: linear-gradient(180deg, transparent, rgba(232, 244, 246, 0.7), transparent);
}

.section__head {
  margin-bottom: 2rem;
  max-width: 42rem;
}

.section__head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.section__head p {
  margin: 0;
  color: var(--ink-soft);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}

.proof-item {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--accent);
  line-height: 1.2;
}

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

.course-grid,
.blog-grid,
.pricing-grid,
.review-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

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

.media-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.media-tile__body {
  padding: 1.2rem 1.25rem 1.4rem;
}

.media-tile h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.media-tile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

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

.benefit-list {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.benefit-copy h2 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

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

.benefit-points li {
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent-soft);
}

.benefit-points strong {
  display: block;
  margin-bottom: 0.2rem;
}

.benefit-visual {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  min-height: 320px;
}

.benefit-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.quote-panel {
  display: grid;
  gap: 1rem;
}

.quote {
  background: var(--bg-elevated);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote p {
  margin: 0 0 0.75rem;
}

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

.cta-band {
  background:
    linear-gradient(135deg, rgba(26, 95, 110, 0.95), rgba(26, 95, 110, 0.82)),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: #f5fbfc;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band p {
  margin: 0;
  max-width: 42ch;
  color: rgba(245, 251, 252, 0.9);
}

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

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

.price-card--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, var(--accent-wash), #fff 42%);
}

.price-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.price-card .amount {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
}

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

.prose {
  max-width: 72ch;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  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(--accent-wash);
  color: var(--ink);
}

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

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

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

.module p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

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

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

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

.faq p {
  color: var(--ink-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

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

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  margin-bottom: 0.35rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

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

.field {
  margin-bottom: 1rem;
}

.field-error {
  min-height: 1.2em;
  color: var(--warn);
  font-size: 0.88rem;
}

.form-status {
  margin-top: 0.75rem;
  min-height: 1.4em;
}

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

.form-status--err {
  color: var(--warn);
}

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

.case-study h3 {
  margin-top: 0;
  font-family: var(--font-display);
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: #eff4f4;
  padding: 3rem 0 1.5rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 1.5rem;
}

.footer-lead,
.footer-address {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-label {
  margin: 0 0 0.6rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

.site-footer__base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
}

.cookie-banner__inner {
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__inner p {
  margin: 0;
  flex: 1 1 280px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

.reveal {
  animation: riseIn 0.8s ease both;
}

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

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  margin: 0 0 0.5rem;
  color: var(--accent);
}

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

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@media (max-width: 960px) {
  .course-grid,
  .blog-grid,
  .pricing-grid,
  .proof-strip,
  .benefit-list,
  .contact-layout,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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