:root {
  --bg: #f4f6f7;
  --surface: #ffffff;
  --ink: #1b2226;
  --muted: #5c676e;
  --line: #dce3e7;
  --accent: #2a6b6e;
  --accent-deep: #1f5254;
  --accent-soft: #e6f1f1;
  --sand: #eef1f3;
  --warn: #9b3d3d;
  --ok: #21645a;
  --shadow: 0 18px 50px rgba(27, 34, 38, 0.07);
  --radius: 12px;
  --font-display: "Fraunces", "Noto Serif KR", Georgia, serif;
  --font-body: "IBM Plex Sans KR", "Noto Sans KR", 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);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #e4efef 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #edf1f4 0%, transparent 50%),
    var(--bg);
  line-height: 1.7;
  min-height: 100vh;
}

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

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

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

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

p {
  margin: 0 0 1em;
}

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

.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(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 8px;
}

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

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

.inline-error {
  background: #f8eaea;
  color: var(--warn);
  border: 1px solid #efc7c7;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 0.75rem 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(244, 246, 247, 0.86);
  border-bottom: 1px solid rgba(220, 227, 231, 0.8);
}

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

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

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
  background:
    linear-gradient(145deg, #3f8b8e 0%, var(--accent) 55%, #1f5254 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

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

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}

.nav-toggle-bar::before {
  position: absolute;
  top: -5px;
}

.nav-toggle-bar::after {
  position: absolute;
  top: 5px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 560;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

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

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

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f7faf9;
}

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

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 28, 30, 0.25) 0%, rgba(16, 28, 30, 0.72) 68%, rgba(16, 28, 30, 0.88) 100%),
    linear-gradient(90deg, rgba(16, 28, 30, 0.55) 0%, rgba(16, 28, 30, 0.15) 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  max-width: 38rem;
  animation: rise 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  margin: 0 0 0.35em;
  letter-spacing: -0.04em;
  font-weight: 650;
}

.hero h1 {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 500;
  color: #e7f0ef;
  margin-bottom: 0.75em;
}

.hero p {
  color: rgba(247, 250, 249, 0.88);
  font-size: 1.05rem;
  max-width: 32rem;
}

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

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

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

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

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

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

.section-head p {
  color: var(--muted);
}

.section-muted {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
}

/* Benefit strip — not cards by default, editorial list */
.benefit-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
}

.benefit-item {
  padding: 1.75rem 0.25rem 0;
  border-top: 3px solid var(--accent-soft);
}

.benefit-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.benefit-item p {
  color: var(--muted);
  margin: 0;
}

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

.media-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

.media-card:hover {
  transform: translateY(-4px);
}

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

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

.media-card h3 {
  font-size: 1.15rem;
  margin: 0;
}

.media-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}

.media-card .meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.media-card a.stretched {
  text-decoration: none;
  color: inherit;
}

/* Stats */
.stat-line {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  padding: 1.5rem 0;
}

.stat-line strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.03em;
  color: var(--accent-deep);
}

.stat-line span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Quotes */
.quote-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
}

.quote {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.4rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote p {
  margin-bottom: 0.85rem;
}

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

.quote.compact {
  padding: 1.1rem 1.25rem;
}

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

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

.price-tier.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #f7fbfb 0%, #fff 40%);
}

.price-tier h3 {
  margin: 0;
  font-size: 1.35rem;
}

.price-tier .amount {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.03em;
}

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

.price-tier ul {
  display: grid;
  gap: 0.55rem;
  flex: 1;
}

.price-tier li {
  padding-left: 1.1rem;
  position: relative;
  color: var(--muted);
}

.price-tier li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.55em;
}

.note {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Forms */
.form-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-weight: 560;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}

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

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

.field-error {
  color: var(--warn);
  font-size: 0.86rem;
  min-height: 1.2em;
  margin-top: 0.3rem;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.form-status.is-success {
  color: var(--ok);
}

.form-status.is-error {
  color: var(--warn);
}

.contact-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

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

/* Article / legal */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
}

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

.page-hero p {
  color: var(--muted);
  max-width: 40rem;
}

.prose {
  max-width: 44rem;
}

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

.prose h3 {
  margin-top: 1.4rem;
  font-size: 1.15rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1em 1.2em;
  padding: 0;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.4em;
  color: var(--muted);
}

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

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

.prose th {
  background: var(--sand);
}

.article-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0 2rem;
  aspect-ratio: 21 / 9;
}

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

.module-list {
  display: grid;
  gap: 0.85rem;
}

.module-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.module-item strong {
  font-family: var(--font-display);
  color: var(--accent);
}

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

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

.faq p {
  color: var(--muted);
  margin: 0.75rem 0 0;
}

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

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

.case-study {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.case-study h3 {
  margin-top: 0;
}

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

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

.cta-band {
  background: linear-gradient(135deg, #1f5254 0%, #2a6b6e 55%, #3a7d7f 100%);
  color: #f4f8f8;
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  color: #fff;
}

.cta-band p {
  margin: 0;
  color: rgba(244, 248, 248, 0.88);
  max-width: 32rem;
}

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

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: #182022;
  color: #c9d3d5;
  padding: 3.5rem 0 1.5rem;
}

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

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

.site-footer .brand-name {
  color: #fff;
}

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

.footer-brand p {
  color: #9eabad;
  margin-top: 1rem;
  max-width: 28ch;
}

.footer-col h2 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8f9c9e;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.45rem;
}

.footer-col address {
  font-style: normal;
  color: #9eabad;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: #7f8c8e;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 520px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem;
}

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

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

.cookie-actions .btn {
  padding: 0.65rem 1.05rem;
}

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

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

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.media-card,
.price-tier,
.quote {
  animation: fadeIn 0.8s ease both;
}

/* Responsive */
@media (max-width: 960px) {
  .benefit-row,
  .card-grid,
  .price-grid,
  .quote-grid,
  .form-layout,
  .split-visual,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

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

  .benefit-row,
  .card-grid,
  .price-grid,
  .quote-grid,
  .form-layout,
  .split-visual,
  .footer-grid,
  .instructor {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
  }
}
