:root {
  --bg: #f3f5f4;
  --bg-elevated: #fafbfa;
  --ink: #15201c;
  --ink-soft: #3d4f47;
  --muted: #6a7a72;
  --line: rgba(21, 32, 28, 0.12);
  --accent: #2f6a58;
  --accent-deep: #1e4a3d;
  --gold: #a68b5b;
  --gold-soft: rgba(166, 139, 91, 0.18);
  --sage: #d8e6df;
  --danger: #9b3b3b;
  --success: #1e5c45;
  --radius: 2px;
  --shadow: 0 18px 48px rgba(21, 32, 28, 0.08);
  --font-display: "Song Myung", "Noto Serif KR", Georgia, serif;
  --font-body: "IBM Plex Sans KR", "Noto Sans KR", sans-serif;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(47, 106, 88, 0.09), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(166, 139, 91, 0.1), transparent 50%),
    linear-gradient(180deg, #eef2f0 0%, var(--bg) 28%, #f7f8f7 100%);
  min-height: 100vh;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  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;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
  padding-top: var(--header-h);
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container-narrow {
  width: min(760px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(243, 245, 244, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

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

.header-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border: 1.5px solid var(--gold);
  background:
    linear-gradient(135deg, transparent 46%, var(--accent) 46% 54%, transparent 54%),
    linear-gradient(45deg, transparent 46%, var(--sage) 46% 54%, transparent 54%);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

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

.nav-toggle-bar {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-list a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

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

.nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid var(--ink);
  color: var(--ink) !important;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--bg-elevated) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

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

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

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

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

.btn-ghost:hover {
  background: var(--ink);
  color: #f5f7f6;
}

.btn-gold {
  background: var(--gold);
  color: #161411;
}

.btn-gold:hover {
  background: #92774a;
  color: #fff;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

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

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

@keyframes lineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Home hero — editorial brand-first */
.hero-editorial {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
}

.hero-copy {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(160deg, rgba(250, 251, 250, 0.96), rgba(232, 239, 236, 0.9));
}

.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  animation: fadeRise 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  line-height: 1.05;
  margin: 0 0 1.5rem;
  color: var(--ink);
  animation: fadeRise 1s var(--ease) 0.1s both;
}

.hero-line {
  width: 4.5rem;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.5rem;
  transform-origin: left;
  animation: lineGrow 0.9s var(--ease) 0.35s both;
}

.hero-lead {
  font-size: 1.12rem;
  max-width: 32rem;
  margin-bottom: 2rem;
  animation: fadeRise 1s var(--ease) 0.25s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: fadeRise 1s var(--ease) 0.4s both;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: softZoom 8s var(--ease) both;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(21, 32, 28, 0.18), transparent 40%);
}

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

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

.trust-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent-deep);
  display: block;
}

.trust-label {
  font-size: 0.88rem;
  color: var(--muted);
}

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

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

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
}

.section-lede {
  font-size: 1.05rem;
}

.band-sage {
  background: linear-gradient(180deg, rgba(216, 230, 223, 0.55), rgba(243, 245, 244, 0.2));
}

.band-ink {
  background: var(--ink);
  color: #e8eeeb;
}

.band-ink p,
.band-ink .section-lede {
  color: rgba(232, 238, 235, 0.78);
}

.band-ink .section-title {
  color: #f5f7f6;
}

.band-ink .section-label {
  color: var(--gold);
}

/* Course cards — interaction containers */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.course-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  text-decoration: none;
  color: inherit;
}

.course-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  color: inherit;
}

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

.course-card-body {
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.course-meta {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.course-card h3 {
  font-size: 1.35rem;
  color: var(--ink);
}

.course-card p {
  font-size: 0.95rem;
  flex: 1;
}

.card-link {
  font-size: 0.9rem;
  color: var(--accent-deep);
  margin-top: 0.5rem;
}

/* Benefits */
.benefit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.benefit-list li {
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold);
}

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

/* Testimonials */
.quote-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

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

.quote-large {
  padding: 2.25rem;
}

.quote blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink);
}

.quote-large blockquote {
  font-size: 1.55rem;
}

.quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}

.quote-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* CTA panel */
.cta-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid rgba(166, 139, 91, 0.35);
  background:
    linear-gradient(120deg, rgba(47, 106, 88, 0.08), transparent 50%),
    var(--bg-elevated);
}

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

/* Page heroes (inner) */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

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

.page-hero .lede {
  max-width: 40rem;
  font-size: 1.1rem;
}

.page-hero-media {
  margin-top: 2rem;
  overflow: hidden;
  max-height: 360px;
}

.page-hero-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  animation: softZoom 10s var(--ease) both;
}

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

.price-tier {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
}

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

.price-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

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

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

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

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

.price-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

/* Forms */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-panel,
.form-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.75rem;
}

.contact-panel h2 {
  font-size: 1.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

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

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

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

.field-error {
  display: none;
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.form-group.is-invalid .field-error {
  display: block;
}

.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea {
  border-color: var(--danger);
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
}

.form-status.is-success {
  display: block;
  border-color: var(--success);
  color: var(--success);
  background: rgba(30, 92, 69, 0.08);
}

.form-status.is-error {
  display: block;
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(155, 59, 59, 0.08);
}

.inline-error {
  display: none;
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--danger);
  color: var(--danger);
  background: rgba(155, 59, 59, 0.06);
}

.inline-error.is-visible {
  display: block;
}

/* Blog */
.blog-list {
  display: grid;
  gap: 1.75rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.25s var(--ease);
}

.blog-item:hover {
  opacity: 0.88;
  color: inherit;
}

.blog-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.blog-item time {
  font-size: 0.82rem;
  color: var(--muted);
}

.blog-item h2 {
  font-size: 1.45rem;
  margin: 0.35rem 0 0.5rem;
  color: var(--ink);
}

.article-body {
  padding: 2.5rem 0 4rem;
}

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

.article-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.article-cover {
  margin: 0 0 2rem;
  overflow: hidden;
  max-height: 420px;
}

.article-cover img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* Course detail */
.modules {
  display: grid;
  gap: 1rem;
}

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

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

.outcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.outcomes li {
  padding: 0.85rem 1rem;
  background: var(--sage);
  color: var(--ink);
}

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

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

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

.faq-list summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

.faq-list details p {
  margin-top: 0.75rem;
}

/* Legal */
.legal-body {
  padding: 2.5rem 0 4rem;
}

.legal-body h2 {
  font-size: 1.45rem;
  margin-top: 2rem;
}

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

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

.legal-body th {
  background: var(--sage);
}

/* Reviews page */
.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
  align-items: center;
}

.case-study img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.rating-row {
  display: flex;
  gap: 0.25rem;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.review-mix {
  display: grid;
  gap: 1.25rem;
}

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

/* 404 */
.error-page {
  min-height: calc(100vh - var(--header-h) - 12rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 200;
  max-width: 420px;
  padding: 1.35rem 1.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: fadeRise 0.45s var(--ease) both;
}

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

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

.cookie-actions .btn {
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
}

/* Footer */
.site-footer {
  background: #101815;
  color: rgba(232, 238, 235, 0.78);
  padding: 3.5rem 0 1.75rem;
  margin-top: auto;
}

.footer-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #f5f7f6;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  max-width: 28rem;
  color: rgba(232, 238, 235, 0.65);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin: 2.5rem 0;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

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

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: rgba(232, 238, 235, 0.78);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-contact p {
  font-size: 0.9rem;
  color: rgba(232, 238, 235, 0.7);
  margin-bottom: 0.55rem;
}

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

.footer-bottom p {
  margin: 0;
  color: rgba(232, 238, 235, 0.5);
}

/* Two-col utility */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-editorial,
  .quote-grid,
  .form-layout,
  .pricing-grid,
  .card-grid,
  .case-study,
  .cta-panel,
  .split,
  .footer-cols,
  .trust-grid {
    grid-template-columns: 1fr;
  }

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

  .benefit-list,
  .outcomes {
    grid-template-columns: 1fr;
  }

  .blog-item {
    grid-template-columns: 1fr;
  }

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

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

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem;
    display: none;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
}

@media (max-width: 640px) {
  .cookie-banner {
    inset: auto 0.75rem 0.75rem;
  }

  .hero-brand {
    font-size: 2.4rem;
  }
}
