:root {
  --ink: #15231f;
  --ink-soft: #3d524b;
  --mist: #e8f0ec;
  --paper: #f7faf8;
  --surface: #ffffff;
  --line: #c5d5ce;
  --celadon: #1f7a66;
  --celadon-deep: #145647;
  --lagoon: #246b8a;
  --sand: #dfe8e2;
  --danger: #9b2c2c;
  --ok: #1b6b45;
  --shadow: 0 18px 40px rgba(21, 35, 31, 0.08);
  --radius: 6px;
  --font-display: "Syne", "Noto Sans KR", sans-serif;
  --font-body: "Noto Sans KR", sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
  --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%, rgba(31, 122, 102, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(36, 107, 138, 0.1), transparent 50%),
    linear-gradient(180deg, var(--mist) 0%, var(--paper) 35%, var(--paper) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

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

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.visually-hidden {
  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;
}

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

.inline-error {
  background: #fde8e8;
  color: var(--danger);
  border: 1px solid #f0b4b4;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(247, 250, 248, 0.88);
  border-bottom: 1px solid rgba(197, 213, 206, 0.7);
}

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

.logo-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 3px;
  background:
    linear-gradient(135deg, var(--celadon) 0%, var(--lagoon) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

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

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

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

.nav-cta {
  background: var(--celadon);
  color: #fff !important;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--celadon-deep);
}

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

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  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;
}

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

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

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

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

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

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

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

.btn-lagoon:hover {
  background: #1b5570;
  color: #fff;
}

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

.hero-home {
  grid-template-columns: 1.05fr 0.95fr;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2rem, 6vw, 4.5rem) max(1.25rem, calc((100% - 1120px) / 2 + 1.25rem));
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
  animation: rise 0.8s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 1rem;
  color: var(--ink);
}

.hero-title {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 0.85rem;
  max-width: 22ch;
}

.hero-lead {
  max-width: 36ch;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media {
  position: relative;
  min-height: 420px;
  animation: fade-in 1.1s ease both;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(232, 240, 236, 0.55), transparent 35%);
  pointer-events: none;
}

.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  max-width: 16ch;
}

.page-hero p {
  max-width: 52ch;
  color: var(--ink-soft);
}

.page-hero-media {
  margin-top: 1.5rem;
  min-height: 280px;
  overflow: hidden;
}

.page-hero-media img {
  width: 100%;
  height: clamp(240px, 42vw, 420px);
  object-fit: cover;
}

/* Sections */
.section {
  padding: clamp(2.75rem, 6vw, 4.75rem) 0;
}

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

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

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--celadon);
  margin-bottom: 0.5rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.muted {
  color: var(--ink-soft);
}

/* Feature / course lists — avoid card chrome where possible */
.benefit-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit-list li {
  padding-top: 1rem;
  border-top: 2px solid var(--celadon);
}

.benefit-list h3 {
  font-size: 1.15rem;
}

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

.course-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.course-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 0.85rem;
}

.course-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

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

/* Proof / stats */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  border-block: 1px solid var(--line);
  padding: 1.5rem 0;
}

.proof-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

/* Testimonials */
.quote-stack {
  display: grid;
  gap: 1.5rem;
}

.quote {
  border-left: 3px solid var(--lagoon);
  padding: 0.25rem 0 0.25rem 1.1rem;
}

.quote p {
  font-size: 1.05rem;
}

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

.quote-wide {
  background: rgba(255, 255, 255, 0.55);
  padding: 1.25rem 1.35rem;
  border-left: none;
  border-top: 3px solid var(--celadon);
}

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

.price-tier {
  padding: 1.5rem 0;
  border-top: 2px solid var(--line);
}

.price-tier.is-featured {
  border-top-color: var(--celadon);
}

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

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

.price-tier ul {
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

/* Blog */
.blog-list {
  display: grid;
  gap: 2rem;
}

.blog-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.blog-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.blog-row h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.article {
  max-width: 42rem;
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin: 1rem 0 1.5rem;
}

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

/* Forms */
.form-panel {
  max-width: 36rem;
}

.field {
  margin-bottom: 1rem;
}

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

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid rgba(31, 122, 102, 0.35);
  border-color: var(--celadon);
}

.field-error {
  min-height: 1.2em;
  color: var(--danger);
  font-size: 0.88rem;
  margin-top: 0.25rem;
}

.form-status {
  margin-top: 0.75rem;
  font-weight: 600;
}

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

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

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
}

.contact-details address {
  font-style: normal;
  margin-bottom: 1rem;
}

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

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

.faq details p {
  margin: 0.6rem 0 0.2rem;
  color: var(--ink-soft);
}

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

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

.legal-table th {
  background: rgba(31, 122, 102, 0.08);
}

.prose {
  max-width: 46rem;
}

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

/* Modules */
.module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.module-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.module-num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--celadon);
  font-size: 1.25rem;
}

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

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(21, 35, 31, 0.94);
  color: #eef5f2;
  padding: 1rem 0;
  animation: slide-up 0.45s ease both;
}

.cookie-banner a {
  color: #9fd9c8;
}

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

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

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

.cookie-banner .btn-ghost {
  color: #eef5f2;
  border-color: rgba(255, 255, 255, 0.35);
}

.cookie-banner .btn-primary {
  background: #2f9a82;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: #13201c;
  color: #d5e4de;
  padding: 3rem 0 1.5rem;
}

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

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

.site-footer .logo-text {
  color: #fff;
}

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

.footer-heading {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

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

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

.footer-tagline {
  color: #a8bfb6;
  max-width: 28ch;
}

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: #8ea59c;
}

/* 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: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--celadon);
  margin: 0;
}

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

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 900px) {
  .hero-home,
  .split,
  .benefit-list,
  .course-grid,
  .proof-strip,
  .price-grid,
  .contact-grid,
  .footer-grid,
  .blog-row {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 2.5rem 1.25rem 1.5rem;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(232, 240, 236, 0.7), transparent 40%);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

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

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

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