:root {
  --cream: #FBF6F1;
  --blush: #F7D6C8;
  --peach: #E8A598;
  --coral: #D4786A;
  --mint: #7EB8A8;
  --mint-soft: #D5EBE4;
  --lavender: #D9D0E8;
  --ink: #3D3530;
  --ink-soft: #6B6058;
  --white: #FFFCFA;
  --card: #FFFFFF;
  --shadow: 0 12px 32px rgba(61, 53, 48, 0.08);
  --shadow-sm: 0 4px 16px rgba(61, 53, 48, 0.06);
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: "Fraunces", "Apple SD Gothic Neo", serif;
  --font-body: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", 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(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(247, 214, 200, 0.55), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(213, 235, 228, 0.5), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(217, 208, 232, 0.35), transparent 55%),
    var(--cream);
  line-height: 1.7;
  min-height: 100vh;
}

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

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

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

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

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(251, 246, 241, 0.86);
  border-bottom: 1px solid rgba(232, 165, 152, 0.25);
}

.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;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 35% 35%, var(--white), transparent 55%),
    linear-gradient(145deg, var(--blush), var(--mint));
  box-shadow: var(--shadow-sm);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

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

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0.2rem;
  transition: color 0.2s ease;
}

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

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

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

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

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--peach));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(232, 165, 152, 0.45);
}

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

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(247, 214, 200, 0.55);
}

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

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

/* Hero variants */
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: end;
  padding: 3.5rem 0 2.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  background: linear-gradient(120deg, var(--ink) 40%, var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.8s ease both;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
  font-weight: 700;
  margin-bottom: 0.75rem;
  animation: rise 0.7s ease 0.05s both;
}

.hero-lede {
  font-size: 1.15rem;
  max-width: 34ch;
  animation: rise 0.8s ease 0.12s both;
}

.hero-visual {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: float-in 1s ease 0.15s both;
}

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

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(61, 53, 48, 0.25));
  pointer-events: none;
}

.hero-aside {
  padding-bottom: 1rem;
}

.hero-aside .btn {
  margin-top: 0.5rem;
  animation: rise 0.8s ease 0.2s both;
}

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

@keyframes float-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes soft-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

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

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

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.eyebrow {
  color: var(--mint);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.soft-panel {
  background: linear-gradient(160deg, rgba(255, 252, 250, 0.95), rgba(213, 235, 228, 0.45));
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid rgba(126, 184, 168, 0.25);
  box-shadow: var(--shadow-sm);
}

.benefit-item {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(247, 214, 200, 0.5);
  transition: transform 0.25s ease;
}

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

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--mint-soft);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  animation: soft-pulse 4s ease-in-out infinite;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(217, 208, 232, 0.5);
  justify-content: center;
  margin: 1rem 0 2.5rem;
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--ink);
}

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

.quote-card {
  padding: 1.6rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(247, 214, 200, 0.45);
}

.quote-card blockquote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--ink);
}

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

.rating {
  color: var(--peach);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* Page heroes (inner) */
.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 18ch;
}

.page-hero p {
  max-width: 48ch;
  font-size: 1.08rem;
}

.page-hero-media {
  margin-top: 1.75rem;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

/* Course / blog cards */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.chip {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.price-tag {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--coral);
}

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

.price-card {
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(247, 214, 200, 0.5);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: linear-gradient(165deg, #fff 0%, var(--blush) 140%);
  transform: translateY(-8px);
  border-color: var(--peach);
}

.price-card h3 {
  font-size: 1.4rem;
}

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

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

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

.note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 1.5rem;
}

/* Forms */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(247, 214, 200, 0.5);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(107, 96, 88, 0.25);
  background: var(--cream);
  font: inherit;
  color: var(--ink);
}

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

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

.field-error {
  display: none;
  color: #b54a3c;
  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: #b54a3c;
}

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

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

.form-status.is-error {
  display: block;
  background: #f8d9d4;
  color: #6d2f26;
}

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

.contact-aside {
  padding: 1.5rem;
  background: linear-gradient(160deg, var(--white), var(--mint-soft));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-aside address {
  font-style: normal;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

/* Legal */
.legal-content {
  max-width: 46rem;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(247, 214, 200, 0.4);
}

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

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

.legal-content th,
.legal-content td {
  border: 1px solid rgba(107, 96, 88, 0.2);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  background: var(--cream);
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(247, 214, 200, 0.35));
  border-top: 1px solid rgba(232, 165, 152, 0.3);
}

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

.footer-brand p {
  margin-top: 0.75rem;
  max-width: 28ch;
}

.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
  display: inline-block;
  padding: 0.2rem 0;
}

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

.footer-address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(107, 96, 88, 0.12);
  font-size: 0.88rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 640px;
  margin-inline: auto;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(61, 53, 48, 0.16);
  border: 1px solid rgba(232, 165, 152, 0.45);
  padding: 1.25rem 1.35rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: rise 0.35s ease both;
}

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

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

.cookie-actions a {
  margin-right: auto;
  font-size: 0.9rem;
}

/* Article */
.article-body {
  max-width: 42rem;
}

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

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

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

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

.module-list li {
  padding: 1rem 1.2rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--mint);
}

.faq details {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 0.65rem;
  box-shadow: var(--shadow-sm);
}

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

.case-study {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--white), var(--lavender));
  box-shadow: var(--shadow-sm);
}

.inline-error {
  background: #f8d9d4;
  color: #6d2f26;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin: 0.75rem 0;
}

.not-found {
  text-align: center;
  padding: 5rem 0 4rem;
}

.not-found h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  margin-bottom: 0.3rem;
}

.cta-band {
  margin: 2rem 0;
  padding: 2.5rem;
  border-radius: 28px;
  background: linear-gradient(120deg, var(--blush), var(--mint-soft));
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cta-band h2 {
  margin-bottom: 0.5rem;
}

/* Feature ribbon home */
.feature-ribbon {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: stretch;
}

.feature-ribbon .main-feature {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow);
}

.feature-ribbon .main-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.feature-ribbon .main-feature .overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  background: linear-gradient(180deg, transparent 20%, rgba(61, 53, 48, 0.72));
  color: var(--white);
}

.feature-ribbon .main-feature h3,
.feature-ribbon .main-feature p {
  color: var(--white);
}

.stack-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-split,
  .grid-3,
  .pricing-grid,
  .footer-grid,
  .contact-layout,
  .feature-ribbon,
  .grid-2 {
    grid-template-columns: 1fr;
  }

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

  .proof-strip {
    border-radius: var(--radius);
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .site-nav a {
    padding: 0.7rem 0.4rem;
  }

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

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

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