/* Dhogy — soft neutral, airy, professional */
:root {
  --bg: #f2f5f3;
  --bg-deep: #e4ebe7;
  --surface: #ffffff;
  --ink: #1a2420;
  --muted: #5a6a63;
  --line: #cfd9d3;
  --accent: #2f6b5c;
  --accent-hover: #255749;
  --accent-soft: #d7ebe3;
  --accent-mist: rgba(47, 107, 92, 0.08);
  --warn: #8a3b2d;
  --ok: #1f6b4a;
  --shadow: 0 18px 40px rgba(26, 36, 32, 0.06);
  --radius: 12px;
  --header-h: 72px;
  --font: "Pretendard", "IBM Plex Sans KR", "Noto Sans KR", sans-serif;
  --display: "IBM Plex Sans KR", "Pretendard", sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #e8f2ed 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #eef1ef 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #eef2f0 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

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

.inline-error {
  background: #f8e8e4;
  color: var(--warn);
  padding: 0.85rem 1.1rem;
  margin: 0.5rem 1rem;
  border: 1px solid #e5c4bb;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(242, 245, 243, 0.86);
  border-bottom: 1px solid rgba(207, 217, 211, 0.7);
}

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

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

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--accent) 0%, #4a8f7c 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px 6px auto 6px;
  height: 2px;
  background: #e8f3ef;
  box-shadow: 0 5px 0 #e8f3ef, 0 10px 0 #c5e4d8;
}

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

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

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

.site-nav a:hover {
  opacity: 1;
  color: var(--accent);
}

.site-nav .nav-cta {
  background: var(--accent);
  color: #fff !important;
  opacity: 1;
  padding: 0.55rem 1rem;
  border-radius: 999px;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

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

.section {
  padding: 4.5rem 0;
}

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

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

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

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

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

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

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

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

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

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

.btn-soft {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.btn-soft:hover {
  background: #c8e2d8;
  color: var(--accent-hover);
}

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

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

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 28, 24, 0.25) 0%, rgba(18, 28, 24, 0.72) 70%, rgba(18, 28, 24, 0.88) 100%),
    linear-gradient(90deg, rgba(18, 28, 24, 0.55) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.25rem 4.5rem;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 1rem;
  color: #fff;
}

.hero h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 500;
  max-width: 22em;
  color: #f3f7f5;
  margin-bottom: 0.75rem;
}

.hero .lede {
  max-width: 32rem;
  color: rgba(243, 247, 245, 0.86);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.hero .btn-primary {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
}

.page-hero .lede {
  max-width: 40rem;
  font-size: 1.08rem;
}

/* Proof strip */
.proof-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  text-align: center;
}

.proof-grid strong {
  display: block;
  font-size: 1.55rem;
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: -0.02em;
}

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

/* Course cards — interaction containers */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.course-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: var(--shadow);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(26, 36, 32, 0.1);
}

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

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

.course-card h3 {
  font-size: 1.15rem;
  margin: 0;
  color: var(--ink);
}

.course-card p {
  margin: 0;
  font-size: 0.95rem;
  flex: 1;
}

.meta {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}

/* Split / feature */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 5 / 4;
}

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

.feature-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--muted);
}

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

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

.quote {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.quote p {
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

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

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

.rating {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* Pricing */
.pricing-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;
  box-shadow: var(--shadow);
}

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

.price-tier h3 {
  margin-bottom: 0.35rem;
}

.price {
  font-size: 2rem;
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin: 0.75rem 0;
}

.price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.price-tier ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-tier li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

.blog-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s var(--ease);
}

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

.blog-item img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
}

.blog-item-body {
  padding: 1.25rem 1.25rem 1.25rem 0;
}

.blog-item h2 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.article-hero img {
  width: 100%;
  border-radius: 16px;
  margin: 1.5rem 0 2rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

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

.article p,
.article li {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
}

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

.contact-card h2 {
  font-size: 1.2rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

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

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

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

.field-error {
  display: none;
  color: var(--warn);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.field.has-error .field-error {
  display: block;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: #c98476;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
}

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

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

.address-block {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Legal */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.legal h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

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

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

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

.legal th {
  background: var(--bg-deep);
  color: var(--ink);
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.15rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.faq details[open] summary {
  margin-bottom: 0.6rem;
}

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

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

.module-num {
  font-family: var(--display);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.2rem;
}

/* CTA band */
.cta-band {
  background:
    linear-gradient(135deg, rgba(47, 107, 92, 0.94), rgba(37, 87, 73, 0.96)),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: #fff;
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 1rem 0 2rem;
}

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

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

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

.cta-band .btn-primary:hover {
  background: var(--accent-soft);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: #1a2420;
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 2.5rem;
}

.footer-logo {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.footer-tag {
  color: rgba(255, 255, 255, 0.65);
  max-width: 18rem;
}

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

.footer-heading {
  color: #fff;
  font-weight: 600;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.footer-cols a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

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

.footer-address {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
  margin: 0;
  color: inherit;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(26, 36, 32, 0.18);
  padding: 1.25rem;
  animation: riseIn 0.45s var(--ease) both;
}

.cookie-banner-inner {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.cookie-banner-copy {
  flex: 1 1 280px;
}

.cookie-banner-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--ink);
}

.cookie-banner-copy p {
  margin: 0;
  font-size: 0.92rem;
}

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

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

.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.04em;
}

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

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

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

@keyframes heroDrift {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

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

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

.case-study {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow);
}

.case-study h3 {
  margin-bottom: 0.5rem;
}

.pill-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

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

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

  .split,
  .contact-grid,
  .quote-grid,
  .footer-inner,
  .blog-item {
    grid-template-columns: 1fr;
  }

  .blog-item img {
    min-height: 200px;
    max-height: 220px;
  }

  .blog-item-body {
    padding: 0 1.25rem 1.25rem;
  }

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

  .nav-toggle {
    display: inline-flex;
  }

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

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

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

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

  .header-inner {
    position: relative;
  }

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

  .instructor img {
    width: 88px;
    height: 88px;
  }
}

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

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