:root {
  --bg: #fff6f1;
  --bg-soft: #fde8df;
  --surface: #ffffff;
  --ink: #3a2a2c;
  --muted: #8a6f72;
  --line: #f0d5cb;
  --rose: #d9897c;
  --rose-deep: #c06b5e;
  --mint: #7eb8a8;
  --mint-deep: #5a9a89;
  --peach: #f6c9b8;
  --lavender: #e8d4e0;
  --shadow: 0 12px 32px rgba(192, 107, 94, 0.12);
  --shadow-soft: 0 6px 18px rgba(58, 42, 44, 0.06);
  --radius: 1.25rem;
  --radius-sm: 0.85rem;
  --font-display: "Hahmlet", "Song Myung", serif;
  --font-body: "Gowun Dodum", "Noto Sans KR", sans-serif;
  --max: 72rem;
  --header-h: 4.25rem;
}

*,
*::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%, #ffe0d4 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #e5f2ee 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #fff9f6 40%, var(--bg-soft) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--rose-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

p {
  margin: 0 0 1rem;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.inline-error {
  background: #fde2e0;
  color: #7a2e28;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.95rem;
}

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

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

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

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background:
    radial-gradient(circle at 30% 30%, #fff 0%, transparent 45%),
    linear-gradient(135deg, var(--peach), var(--rose));
  box-shadow: var(--shadow-soft);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.nav-list a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}

.nav-list a:hover {
  color: var(--rose-deep);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--surface);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.35rem);
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0.85rem; }
  .header-inner { position: relative; }
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-tight {
  padding: 2.5rem 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin-bottom: 0.65rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 38rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 0.98rem;
  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(--rose), var(--rose-deep));
  color: #fff;
  box-shadow: 0 8px 20px rgba(192, 107, 94, 0.28);
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(240, 213, 203, 0.65);
  overflow: hidden;
}

.card-body { padding: 1.35rem 1.4rem 1.5rem; }

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

.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.5rem;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* Hero home — brand-forward, full-bleed visual */
.hero-home {
  position: relative;
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 0 0 2.5rem 2.5rem;
}

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

.hero-home-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-home-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(58, 42, 44, 0.15) 0%, rgba(58, 42, 44, 0.55) 55%, rgba(58, 42, 44, 0.78) 100%);
}

.hero-home-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 1.25rem 3.5rem;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  color: #fff8f4;
}

.hero-home .brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  margin: 0 0 0.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  animation: rise 0.9s ease both;
}

.hero-home h1 {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 500;
  margin: 0 0 0.85rem;
  max-width: 28ch;
  animation: rise 0.9s ease 0.12s both;
}

.hero-home .hero-support {
  margin: 0;
  max-width: 36ch;
  color: rgba(255, 248, 244, 0.88);
  animation: rise 0.9s ease 0.22s both;
}

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

.hero-home .btn-primary {
  background: linear-gradient(135deg, #f3b5a6, #e08a78);
}

.hero-home .btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

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

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

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

/* Soft panels */
.panel {
  background: rgba(255, 255, 255, 0.72);
  border-radius: calc(var(--radius) + 0.35rem);
  padding: 2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.soft-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #f3ebe8;
  color: var(--muted);
  font-size: 0.88rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: center;
}

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

.trust-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.benefit-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.benefit-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, var(--lavender), var(--peach));
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.quote-card {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.quote-card blockquote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

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

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

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

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 0.75rem;
}

.page-hero-visual {
  margin-top: 2rem;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-height: 22rem;
}

.page-hero-visual img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
}

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

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

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

.price-card.is-featured {
  border-color: var(--rose);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.price-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
}

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

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

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

/* Forms */
.form {
  display: grid;
  gap: 1rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
}

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

.form [aria-invalid="true"] {
  border-color: #c45c52;
}

.field-error {
  color: #a13b33;
  font-size: 0.88rem;
  font-weight: 400;
  min-height: 1.1em;
}

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

.form-status.is-success {
  background: #e5f4ee;
  color: #1f6b52;
}

.form-status.is-error {
  background: #fde8e6;
  color: #8a2f28;
}

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

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-aside {
  background: linear-gradient(160deg, #fff, #fdeee8);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--line);
}

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

/* Legal */
.legal {
  max-width: 48rem;
}

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

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.92rem;
}

th {
  background: #f8ebe6;
}

/* Course detail */
.module-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.module-list li {
  padding: 1rem 1.15rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.instructor {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.25rem;
  align-items: center;
}

.instructor img {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.faq details {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.65rem;
}

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

/* Blog */
.blog-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.prose {
  max-width: 42rem;
}

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

.prose img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-soft);
}

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

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 40rem;
  margin: 0 auto;
}

.cookie-banner-inner {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 1.15rem 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.cookie-banner-inner p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: #3a2a2c;
  color: #f7e9e4;
  padding: 3rem 0 2rem;
}

.site-footer a {
  color: #f3c4b8;
  text-decoration: none;
}

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

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
}

.footer-tag {
  color: #c9b0ab;
  margin: 0 0 2rem;
}

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

.footer-col h2 {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-address {
  font-style: normal;
  font-size: 0.88rem;
  color: #c9b0ab;
  line-height: 1.55;
}

.footer-copy {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #b59a95;
  font-size: 0.88rem;
}

@media (max-width: 860px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr; }
}

.case-study {
  padding: 1.75rem;
  background: linear-gradient(145deg, #fff, #f8ebe6);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.illus-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.illus {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, var(--peach), var(--lavender));
  box-shadow: var(--shadow-soft);
  animation: floaty 4.5s ease-in-out infinite;
}

.illus:nth-child(2) {
  background: linear-gradient(145deg, var(--mint), #cfe8e1);
  animation-delay: 0.4s;
}

.illus:nth-child(3) {
  background: linear-gradient(145deg, #f0c4d4, var(--peach));
  animation-delay: 0.8s;
}

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