/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #dcfce7;
  --ink: #111827;
  --ink-soft: #4b5563;
  --ink-muted: #9ca3af;
  --bg: #ffffff;
  --bg-gray: #f6f8f7;
  --line: #e5e7eb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --header-h: 68px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 800px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn--white { background: #fff; color: var(--primary-dark); }
.btn--white:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.btn--lg { padding: 15px 28px; font-size: 17px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn--kakao { background: #fee500; color: #191919; }
.btn--kakao:hover { background: #fdd800; transform: translateY(-1px); }
.kakao-icon { flex-shrink: 0; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.logo__img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.logo__text em { font-style: normal; color: var(--primary); }

.nav { display: flex; gap: 28px; }
.nav__link { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.nav__link:hover { color: var(--primary); }

.header__actions { display: flex; align-items: center; gap: 8px; }

/* 로그인 상태 */
.header__user { display: flex; align-items: center; gap: 10px; }
.header__email {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header__logout { font-size: 14px; font-weight: 600; color: var(--ink-muted); transition: color 0.2s; }
.header__logout:hover { color: var(--ink); }

/* display 를 지정한 요소에도 hidden 속성이 먹도록 */
[hidden] { display: none !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.25s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  padding: calc(var(--header-h) + 70px) 0 90px;
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(22, 163, 74, 0.09), transparent),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(22, 163, 74, 0.06), transparent),
    var(--bg);
  overflow: hidden;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 980px;
}
.hero__trust { justify-content: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  60% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
}

.hero__title {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero__title strong { color: var(--primary); }

.hero__desc { font-size: 17px; color: var(--ink-soft); margin-bottom: 24px; }

.hero__offer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 12px;
  padding: 14px 22px;
  margin-bottom: 28px;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.hero__offer:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(22, 163, 74, 0.45);
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.hero__offer-icon { font-size: 22px; }
.hero__offer p { font-size: 16px; font-weight: 600; color: #fff; }
.hero__offer strong { color: #fef08a; }
.hero__offer-arrow {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  transition: transform 0.2s ease;
}
.hero__offer:hover .hero__offer-arrow { transform: translateX(3px); }

.hero__trust { display: flex; gap: 18px; flex-wrap: wrap; }
.hero__trust li { font-size: 14px; color: var(--ink-soft); font-weight: 500; }

/* ===== Stats ===== */
.stats { background: var(--ink); color: #fff; padding: 44px 0; }
.stats__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat__num, .stat__suffix { font-size: 34px; font-weight: 800; color: #4ade80; }
.stat__label { font-size: 14px; color: #d1d5db; margin-top: 4px; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section--gray { background: var(--bg-gray); }

.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 14px;
}
.section__desc { font-size: 16px; color: var(--ink-soft); }

/* ===== Features ===== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--primary-light);
  border-radius: 14px;
  margin-bottom: 18px;
}
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); }

/* ===== Steps ===== */
.steps {
  display: flex;
  align-items: stretch;
  gap: 16px;
}
.step {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
}
.step__num {
  width: 44px; height: 44px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  border-radius: 50%;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }
.step__arrow {
  align-self: center;
  font-size: 22px;
  color: var(--ink-muted);
  flex-shrink: 0;
}

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.faq__item summary {
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-muted);
  transition: transform 0.2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--primary); }
.faq__item p {
  padding: 0 22px 20px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cta-banner p { font-size: 17px; opacity: 0.92; margin-bottom: 30px; }
.cta-banner p strong { color: #fef08a; }

/* ===== Footer ===== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 52px 0;
  font-size: 13.5px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
}
.footer__logo { display: flex; align-items: center; gap: 10px; }
.footer__logo .logo__img { width: 32px; height: 32px; }
.footer__brand .logo__text { font-size: 18px; font-weight: 800; color: #fff; }
.footer__brand .logo__text em { color: #4ade80; }
.footer__brand p { margin-top: 8px; }
.footer__info { grid-column: 1; }
.footer__info p { margin-bottom: 4px; }
.footer__copy { margin-top: 14px; color: #64748b; }
.footer__links {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.footer__links a:hover { color: #fff; }

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}
.modal__box {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 36px 32px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal__close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--ink-muted);
}
.modal__close:hover { color: var(--ink); }
.modal__box h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.modal__desc { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 24px; }
.modal__desc strong { color: var(--primary-dark); }

.modal__note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-muted);
  text-align: center;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; }
  .step__arrow { transform: rotate(90deg); }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 12px 0; font-size: 16px; }
  .nav-toggle { display: flex; }

  .section { padding: 68px 0; }
  .stats__inner { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stat__num, .stat__suffix { font-size: 24px; }
  .features__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; }
}
