@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+KR:wght@300;400;500;600;700&family=Song+Myung&display=swap");

:root {
  --ink: #152533;
  --ink-soft: #2a3f52;
  --mist: #dce6ef;
  --paper: #f2f6f9;
  --foam: #1f8a7a;
  --foam-deep: #15695c;
  --sand: #c4a574;
  --line: rgba(21, 37, 51, 0.12);
  --danger: #9b3b3b;
  --ok: #1f6b4a;
  --radius: 2px;
  --shadow: 0 18px 50px rgba(21, 37, 51, 0.08);
  --font-display: "Song Myung", "Nanum Myeongjo", serif;
  --font-body: "IBM Plex 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(ellipse 80% 50% at 10% -10%, rgba(31, 138, 122, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 165, 116, 0.16), transparent 50%),
    linear-gradient(180deg, #e8f0f5 0%, var(--paper) 38%, #eef3f7 100%);
  background-attachment: fixed;
  line-height: 1.7;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(21, 37, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 37, 51, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}

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

a {
  color: var(--foam-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

p {
  margin: 0 0 1em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(242, 246, 249, 0.86);
  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;
}

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

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

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

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

.site-nav .nav-cta {
  background: var(--ink);
  color: #f5faf8;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
}

.site-nav .nav-cta:hover {
  background: var(--foam-deep);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.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.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

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

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

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

.btn-ink {
  background: var(--ink);
  color: #f5faf8;
}

.btn-ink:hover {
  background: var(--ink-soft);
  color: #fff;
}

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

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

.hero-home {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  overflow: hidden;
}

.hero-home-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 7vw, 5rem);
  max-width: 640px;
  margin-left: max(0px, calc((100vw - var(--max)) / 2));
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.95;
  margin: 0 0 1.2rem;
  letter-spacing: -0.02em;
  animation: rise 0.9s ease both;
}

.hero-home h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
  animation: rise 0.9s ease 0.12s both;
}

.hero-home .lede {
  font-size: 1.05rem;
  max-width: 34ch;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
  animation: rise 0.9s ease 0.22s both;
}

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

.hero-home-media {
  position: relative;
  min-height: 420px;
}

.hero-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: calc(100vh - var(--header-h));
  animation: fadeZoom 1.4s ease both;
}

.hero-home-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(242, 246, 249, 0.55), transparent 35%);
  pointer-events: none;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.2rem;
}

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

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

.proof-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  text-align: center;
}

.proof-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--ink);
  font-weight: 400;
}

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

.quote-feature {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.quote-feature blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  line-height: 1.45;
}

.quote-feature cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.quote-feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.92);
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit-list h3 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

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

.course-preview {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: stretch;
}

.course-preview-main {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.course-preview-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.course-preview-main .overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(21, 37, 51, 0.82));
  color: #f4f8fa;
}

.course-preview-main .overlay h3 {
  color: #f4f8fa;
  margin-bottom: 0.35rem;
}

.course-preview-main .overlay p {
  margin: 0 0 1rem;
  opacity: 0.9;
}

.course-preview-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: space-between;
  border-left: 1px solid var(--line);
  padding-left: 1.5rem;
}

.course-preview-side article h3 {
  font-size: 1.2rem;
}

.course-preview-side p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cta-band {
  background: var(--ink);
  color: #e8eef3;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #f5faf8;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.cta-band p {
  max-width: 36rem;
  opacity: 0.88;
}

.cta-band .btn-primary {
  margin-top: 0.5rem;
}

.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

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

.bleed-hero {
  position: relative;
  z-index: 1;
  min-height: 52vh;
  display: grid;
  align-items: end;
  color: #f5faf8;
  overflow: hidden;
}

.bleed-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bleed-hero .bleed-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4rem 0 3rem;
  background: linear-gradient(transparent, rgba(21, 37, 51, 0.78));
  width: 100%;
  padding-left: max(1.25rem, calc((100vw - var(--max)) / 2));
  padding-right: max(1.25rem, calc((100vw - var(--max)) / 2));
}

.bleed-hero h1 {
  color: #f5faf8;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  max-width: 16ch;
}

.bleed-hero p {
  max-width: 38rem;
  opacity: 0.92;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.item-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.item-link:hover {
  transform: translateY(-4px);
}

.item-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1rem;
}

.item-link h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

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

.meta {
  font-size: 0.82rem;
  color: var(--foam-deep);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

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

.tier {
  padding: 1.75rem 1.5rem;
  border-top: 3px solid var(--foam);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.tier.featured {
  border-top-color: var(--sand);
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-8px);
}

.tier h3 {
  font-size: 1.6rem;
}

.tier .price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 0.4rem 0 1rem;
}

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

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

.review-stack {
  display: grid;
  gap: 2rem;
}

.review {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

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

.stars {
  color: var(--sand);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.review-avatar {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
}

.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  align-items: center;
}

.case-study img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.65rem;
}

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

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

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

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

.prose th {
  background: rgba(255, 255, 255, 0.65);
}

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

.modules li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.modules .num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--foam-deep);
}

.instructor {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin: 2rem 0;
}

.instructor img {
  width: 160px;
  height: 160px;
  object-fit: cover;
}

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

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

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

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

.split-layout {
  grid-template-columns: 1.4fr 0.8fr;
}

.form-field {
  margin-bottom: 1.15rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}

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

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: var(--danger);
}

.field-error {
  display: block;
  min-height: 1.2em;
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-status {
  margin-top: 0.75rem;
  font-weight: 500;
}

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

.form-status.is-error {
  color: var(--danger);
}

.contact-aside {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.55);
  border-left: 3px solid var(--foam);
}

.contact-aside address {
  font-style: normal;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  background: var(--ink);
  color: #c9d4de;
}

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

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

.footer-tag {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.85;
}

.footer-heading {
  color: #f5faf8;
  font-weight: 600;
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a,
.site-footer a {
  color: #c9d4de;
  text-decoration: none;
}

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

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.footer-copy {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  opacity: 0.75;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(21, 37, 51, 0.96);
  color: #e8eef3;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
}

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

.cookie-banner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.92rem;
}

.cookie-banner a {
  color: #9fd9cf;
}

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

.cookie-banner .btn-ghost {
  color: #e8eef3;
  border-color: rgba(255, 255, 255, 0.28);
}

.inline-error {
  position: relative;
  z-index: 200;
  background: #f8e8e8;
  color: var(--danger);
  padding: 0.75rem 1.25rem;
  text-align: center;
  font-size: 0.92rem;
}

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

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  margin: 0 0 0.5rem;
  color: var(--foam-deep);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

@keyframes fadeZoom {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .hero-home,
  .quote-feature,
  .course-preview,
  .case-study,
  .contact-layout,
  .split-layout,
  .instructor {
    grid-template-columns: 1fr;
  }

  .hero-home-copy {
    margin-left: 0;
    padding-top: 2.5rem;
  }

  .hero-home-media img {
    min-height: 320px;
  }

  .hero-home-media::after {
    background: linear-gradient(180deg, rgba(242, 246, 249, 0.7), transparent 40%);
  }

  .proof-grid,
  .benefit-list,
  .grid-cards,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tier.featured {
    transform: none;
  }

  .course-preview-side {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
  }
}

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

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

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

  .site-nav a {
    padding: 0.65rem 0.25rem;
  }

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

  .proof-grid,
  .benefit-list,
  .grid-cards,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    position: relative;
  }
}
