:root {
  --bg: #fff6f2;
  --bg-soft: #f7eef8;
  --bg-mint: #eef6f2;
  --surface: #ffffff;
  --primary: #e8918a;
  --primary-deep: #d46f67;
  --primary-soft: #ffe3de;
  --accent: #8fb9a8;
  --accent-deep: #6f9a88;
  --lavender: #c9b4d8;
  --text: #453a40;
  --text-muted: #74686f;
  --border: rgba(69, 58, 64, 0.08);
  --shadow: 0 12px 32px rgba(212, 111, 103, 0.1);
  --shadow-sm: 0 6px 18px rgba(143, 185, 168, 0.14);
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: "Gowun Dodum", "Noto Sans KR", sans-serif;
  --font-body: "Noto Sans KR", sans-serif;
  --max: 1120px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #ffe8e2 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 5%, #efe6f7 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, #e8f3ee 0%, transparent 45%),
    var(--bg);
  line-height: 1.7;
  min-height: 100vh;
}

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

a {
  color: var(--primary-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 246, 242, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

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

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, var(--primary-soft), #fff),
    var(--primary);
  box-shadow: inset 0 0 0 2px var(--primary), var(--shadow-sm);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 10px 9px 10px 18px;
  border-radius: 50%;
  background: var(--accent);
}

.logo-text { letter-spacing: -0.02em; }

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

.site-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 0.25rem 0;
}

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

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: var(--shadow);
}

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

.btn-soft {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-soft:hover { color: var(--primary-deep); }

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

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

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(212, 111, 103, 0.14);
}

.card-body { padding: 1.35rem 1.45rem 1.6rem; }

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

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

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(247, 238, 248, 0.65), transparent);
}

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

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  background: var(--bg-mint);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

/* Hero home — brand-forward split with soft illustration plane */
.hero-home {
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero-home-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: var(--primary-deep);
  margin: 0 0 0.35em;
  letter-spacing: -0.03em;
  animation: riseIn 0.7s ease both;
}

.hero-home h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  color: var(--text);
  margin-bottom: 0.75em;
  animation: riseIn 0.7s 0.08s ease both;
}

.hero-home .lead {
  font-size: 1.05rem;
  max-width: 34ch;
  animation: riseIn 0.7s 0.14s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  animation: riseIn 0.7s 0.2s ease both;
}

.hero-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: floatSoft 5s ease-in-out infinite;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  min-height: 380px;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(232, 145, 138, 0.25));
  pointer-events: none;
}

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

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Benefit strip */
.benefit-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.benefit {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.benefit h3 { margin-bottom: 0.4em; }
.benefit p { margin: 0; font-size: 0.95rem; }

/* Course grid */
.course-grid,
.blog-grid,
.pricing-grid,
.review-grid {
  display: grid;
  gap: 1.5rem;
}

.course-grid { grid-template-columns: repeat(3, 1fr); }
.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); }

.tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent-deep);
  background: var(--bg-mint);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Proof band */
.proof-band {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  background: linear-gradient(120deg, var(--primary-soft), var(--bg-soft));
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--primary-deep);
}

.proof-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Testimonials */
.quote-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.quote-card .stars {
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.quote-card footer {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Pricing */
.price-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: linear-gradient(165deg, #fff, var(--primary-soft));
  border-color: rgba(232, 145, 138, 0.35);
  transform: scale(1.03);
}

.price-card .amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--primary-deep);
  margin: 0.4em 0 0.2em;
}

.price-card .amount small {
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

.price-card li {
  padding: 0.45rem 0 0.45rem 1.4rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.note-info {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1.5rem;
}

/* Forms */
.form-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fffaf8;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 145, 138, 0.2);
}

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

.field-error {
  display: none;
  color: #c45c5c;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.form-group.has-error .field-error { display: block; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #c45c5c;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

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

.form-status.error {
  display: block;
  background: var(--primary-soft);
  color: var(--primary-deep);
}

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

.contact-aside {
  background: linear-gradient(160deg, var(--bg-soft), var(--bg-mint));
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact-aside h2 { font-size: 1.35rem; }

/* Page hero compact */
.page-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-hero p {
  max-width: 52ch;
  margin-inline: auto;
}

.page-hero-media {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 920px;
  margin-inline: auto;
}

.page-hero-media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* Article / legal */
.prose {
  max-width: 720px;
  margin-inline: auto;
}

.prose h2 { margin-top: 2rem; }
.prose ul, .prose ol { color: var(--text-muted); padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.legal-table th,
.legal-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.legal-table th {
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 500;
}

/* Modules */
.module-list {
  display: grid;
  gap: 1rem;
}

.module-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

.faq-list details {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

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

.instructor {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.instructor img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Case study */
.case-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 2rem), 640px);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: 0 16px 48px rgba(69, 58, 64, 0.18);
  border: 1px solid var(--border);
  z-index: 200;
  display: none;
  animation: riseIn 0.4s ease both;
}

.cookie-banner.is-visible { display: block; }

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

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

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

.inline-error {
  background: var(--primary-soft);
  color: var(--primary-deep);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

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

.error-page .code {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Blog article hero */
.article-hero img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.5rem 0 2rem;
  box-shadow: var(--shadow);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.soft-panel {
  background: linear-gradient(145deg, var(--bg-soft), var(--primary-soft));
  border-radius: var(--radius);
  padding: 2rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: linear-gradient(180deg, transparent, rgba(247, 238, 248, 0.9));
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2rem;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 0.85rem;
}

.footer-col h3 {
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

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

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

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-contact p {
  font-size: 0.85rem;
  word-break: break-word;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
}

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

.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

@media (max-width: 900px) {
  .hero-home-grid,
  .contact-layout,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .course-grid,
  .blog-grid,
  .pricing-grid,
  .benefit-row {
    grid-template-columns: 1fr;
  }

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

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

  .nav-toggle { display: flex; }

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

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

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

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

  .hero-visual img { min-height: 280px; aspect-ratio: 16 / 11; }
}

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