:root {
  --bg: #f8f7f5;
  --bg-alt: #efeeeb;
  --surface: #ffffff;
  --text: #1c1c1a;
  --muted: #6a6a64;
  --accent: #3d5a4c;
  --accent-hover: #2f463b;
  --accent-soft: #e6ede9;
  --border: #e2e0db;
  --footer-bg: #252523;
  --footer-text: #c8c6c0;
  --error: #a33b2c;
  --success: #2f6b4f;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(28, 28, 26, 0.04);
  --font-display: "Noto Serif KR", "Georgia", serif;
  --font-body: "Noto Sans KR", "Helvetica Neue", 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);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--muted); }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}

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

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

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

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.78;
  transition: opacity 0.2s ease;
}

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

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  opacity: 1 !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, 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-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-alt);
  color: var(--text);
}

/* Hero variants */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--bg-alt);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s ease-out forwards;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(248, 247, 245, 0.97) 0%,
    rgba(248, 247, 245, 0.72) 38%,
    rgba(248, 247, 245, 0.25) 70%,
    rgba(28, 28, 26, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 4rem;
  max-width: 38rem;
  animation: fadeUp 0.9s ease-out both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  margin: 0 0 0.35em;
  line-height: 1.05;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  max-width: 28rem;
}

.page-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 10% 0%, var(--accent-soft) 0%, transparent 50%),
    var(--bg);
}

.page-hero h1 { margin-bottom: 0.4em; }
.page-hero p { max-width: 36rem; font-size: 1.05rem; }

/* Sections */
.section {
  padding: 4.5rem 0;
}

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

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Course / blog grids — interaction containers, not decorative cards */
.item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.item-link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.item-link:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

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

.item-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.item-body h3 {
  color: var(--text);
  margin-bottom: 0.4em;
  font-size: 1.1rem;
}

.item-body p {
  font-size: 0.92rem;
  margin: 0;
}

.meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* Benefits list */
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.benefit-list li {
  padding-left: 0;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.benefit-list h3 {
  margin-bottom: 0.35em;
}

/* Testimonials */
.quote-block {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.quote-block blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.55;
  color: var(--text);
  font-weight: 500;
}

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

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

.testimonial-stack article {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.testimonial-stack article:last-child {
  border-bottom: 1px solid var(--border);
}

.stars {
  color: var(--accent);
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

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

.price-tier {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

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

.price-tier h3 {
  margin-bottom: 0.25em;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
  margin: 0.75rem 0 0.25rem;
}

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

.price-tier ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
  flex: 1;
}

.price-tier li {
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.price-tier .btn {
  width: 100%;
}

/* Forms */
.form {
  display: grid;
  gap: 1.15rem;
  max-width: 36rem;
}

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

.form-row label {
  font-size: 0.9rem;
  font-weight: 500;
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  width: 100%;
}

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

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

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

.field-error.visible { display: block; }

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

.form-status.success {
  display: block;
  background: var(--accent-soft);
  color: var(--success);
}

.form-status.error {
  display: block;
  background: #f8e8e5;
  color: var(--error);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.contact-info address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.8;
}

.contact-info dt {
  font-weight: 600;
  color: var(--text);
  margin-top: 1.25rem;
  font-size: 0.85rem;
}

.contact-info dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

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

.faq summary {
  cursor: pointer;
  font-weight: 560;
  color: var(--text);
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 400;
}

.faq details[open] summary::after { content: "−"; }

.faq details p {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.95rem;
}

/* Modules */
.module-list {
  counter-reset: mod;
  list-style: none;
  padding: 0;
  margin: 0;
}

.module-list li {
  counter-increment: mod;
  padding: 1.25rem 0 1.25rem 3.5rem;
  border-top: 1px solid var(--border);
  position: relative;
}

.module-list li::before {
  content: counter(mod, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
}

.module-list h3 { margin-bottom: 0.3em; }

/* Instructor */
.instructor {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.75rem;
  align-items: start;
}

.instructor img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Blog article */
.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.article-body .cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

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

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

/* Legal */
.legal {
  max-width: 720px;
  padding: 3rem 0 4.5rem;
}

.legal h2 {
  margin-top: 2.25rem;
  font-size: 1.35rem;
}

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

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

.legal th {
  background: var(--bg-alt);
  color: var(--text);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.site-footer .logo {
  color: #fff;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.site-footer p,
.site-footer address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--footer-text);
  line-height: 1.75;
}

.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

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

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  box-shadow: 0 -4px 24px rgba(28, 28, 26, 0.08);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-inner p {
  margin: 0;
  flex: 1;
  min-width: 220px;
  font-size: 0.9rem;
}

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

.cookie-actions .btn {
  padding: 0.65rem 1.15rem;
  font-size: 0.88rem;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}

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

/* Inline script error */
.script-error {
  background: #f8e8e5;
  color: var(--error);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  border-radius: var(--radius);
  margin: 0.5rem 0;
}

/* Case study */
.case-study {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.75rem 1.75rem 1.75rem 2rem;
  margin: 2rem 0;
}

.case-study h3 {
  margin-bottom: 0.5em;
}

/* Outcomes */
.outcome-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.outcome-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.outcome-list li strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* Trust strip — not in hero */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-row div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text);
  font-weight: 600;
}

.trust-row div span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

/* CTA band */
.cta-band {
  background: var(--accent);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}

.cta-band h2 { color: #fff; }
.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

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

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

/* Responsive */
@media (max-width: 900px) {
  .item-grid,
  .price-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .outcome-list {
    grid-template-columns: 1fr;
  }
}

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

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

  .nav.open { display: flex; }

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

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

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

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

  .hero {
    min-height: 70vh;
  }

  .header-inner {
    position: relative;
  }
}

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