:root {
  --bg: #f6f4ef;
  --panel: #ffffff;
  --text: #21201c;
  --muted: #666256;
  --accent: #2c6e49;
  --accent-2: #f5a623;
  --line: #e6e1d7;
  --shadow: 0 12px 30px rgba(28, 28, 28, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans KR", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 239, 0.94);
  backdrop-filter: blur(6px);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.4px;
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
}

.nav a.active,
.nav a:hover {
  color: var(--accent);
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 26px;
}

.hero img,
.feature img,
.sub-hero img {
  width: 100%;
  border-radius: 18px;
  height: clamp(260px, 36vw, 460px);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.eyebrow {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(1.7rem, 3.3vw, 2.8rem);
}

.cta {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.cta:hover {
  background: #21563a;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 26px 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tab {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.tab.active {
  background: #ecf8f1;
  border-color: #b8dfc7;
  color: #154d33;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.clean-list {
  margin: 0;
  padding-left: 18px;
}

.muted {
  color: var(--muted);
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  margin: 28px 0;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.faq {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.faq-item + .faq-item {
  margin-top: 10px;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: #f9f7f2;
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
}

.faq-a {
  display: none;
  padding: 8px 4px 0;
  color: var(--muted);
}

.faq-item.open .faq-a {
  display: block;
}

.footer {
  margin-top: 36px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  border: 0;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  background: var(--accent-2);
  color: #1d1d1d;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: none;
}

.to-top.show {
  display: block;
}

.section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
  box-shadow: var(--shadow);
}

.mag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.mini-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
}

.challenge-card .task-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.challenge-card .task-list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  background: #fcfbf8;
}

.challenge-card .task-list li + li {
  margin-top: 8px;
}

.progress-wrap {
  height: 12px;
  border-radius: 999px;
  background: #ece7da;
  overflow: hidden;
  margin: 8px 0 6px;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #2c6e49, #77b28f);
  transition: width 0.3s ease;
}

.quote-box {
  border-left: 4px solid #b8dfc7;
  background: #f8fcf9;
  padding: 10px 12px;
  border-radius: 8px;
}

.quote-box + .quote-box {
  margin-top: 10px;
}

.quote-box p {
  margin: 0 0 4px;
}

.quote-box span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: 14px;
  margin: 10px 0 12px;
  box-shadow: var(--shadow);
}

.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f0faf5;
  border: 1px solid #cdeedc;
  margin-right: 8px;
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.sub-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .hero,
  .grid-two,
  .feature,
  .sub-hero,
  .mag-grid {
    grid-template-columns: 1fr;
  }

  .menu-btn {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    right: 18px;
    top: 58px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    flex-direction: column;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .hero img,
  .feature img,
  .sub-hero img,
  .section img {
    height: 260px;
    max-height: 260px;
  }
}
