/* =========================================================
   트렌드렌즈 · 화이트-그린 학습 커뮤니티 랜딩
   폰트 : Noto Sans KR
   ========================================================= */

:root {
  --bg:        #E7F1EA;   /* 페이지 배경 = 콘텐츠 배경 (동일) */
  --surface:   #FFFFFF;   /* 카드 표면 */
  --surface-2: #F3F9F5;   /* 옅은 카드 */
  --ink:       #0D1F16;   /* 본문 짙은 색 */
  --ink-soft:  #55665C;   /* 보조 텍스트 */
  --brand:     #0E8B5B;   /* 메인 에메랄드 */
  --brand-deep:#076046;   /* 딥 그린 */
  --mint:      #8DE9BB;   /* 민트 */
  --mint-soft: #D5F4E3;   /* 옅은 민트 */
  --glow:      #22C77E;   /* 형광 그린 */
  --line:      rgba(13,31,22,.08);
  --shadow:    0 18px 40px -22px rgba(9,60,40,.45);
  --shadow-lg: 0 30px 70px -30px rgba(9,60,40,.55);
  --shell:     460px;     /* H5 폭 */
  --dock-h:    92px;
  --font: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  /* PC 배경색과 본문(콘텐츠) 배경색을 완전히 동일하게 */
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* PC에서 H5 컬럼을 중앙 정렬. 배경은 body 와 동일하므로 경계가 없음 */
.stage { display: flex; justify-content: center; }

.shell {
  width: 100%;
  max-width: var(--shell);
  background: var(--bg);
  padding: 0 22px calc(var(--dock-h) + 30px);
  position: relative;
}

/* ---------- 공통 버튼 ---------- */
.btn {
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  padding: 16px 20px;
  border-radius: 16px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: scale(.98); }

.btn-icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.btn-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow: 0 14px 26px -12px rgba(7,96,70,.7);
}
.btn-primary:hover { box-shadow: 0 18px 34px -12px rgba(7,96,70,.85); transform: translateY(-2px); }
/* 지나가는 빛(shine) 효과 */
.btn-primary::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -140%;
  width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent);
  transform: skewX(-22deg);
  z-index: 2;
  pointer-events: none;
  animation: shine 3.4s ease-in-out infinite;
}
/* 아이콘·텍스트는 항상 shine 위로 */
.btn-primary .btn-icon { position: relative; z-index: 3; }
/* 하단 고정 버튼은 은은한 발광까지 */
.dock .btn-primary { animation: dockglow 2.6s ease-in-out infinite; }

.btn-ghost {
  background: #fff;
  color: var(--brand-deep);
  border: 1.5px solid rgba(14,139,91,.28);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* =====================================================
   HERO
   ===================================================== */
.hero { padding-top: 26px; }

.hero-brand {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 30px;
}
.mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px;
  box-shadow: 0 8px 16px -8px rgba(7,96,70,.8);
}
.mark-text { font-weight: 900; letter-spacing: .06em; font-size: 15px; color: var(--ink); }
.mark-text em { font-style: normal; color: var(--brand); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700;
  color: var(--brand-deep);
  background: var(--mint-soft);
  padding: 7px 13px; border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow i { font-size: 12px; }

.hero-title {
  font-size: 33px;
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.hero-title .hl {
  color: var(--brand);
  position: relative;
  display: inline-block;
}
.hero-title .hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 4px; height: 10px;
  background: var(--mint); opacity: .45; border-radius: 4px; z-index: -1;
}

.hero-sub {
  font-size: 15px; color: var(--ink-soft);
  margin-bottom: 26px;
  word-break: keep-all;
}

/* ---------- 시그니처: 유리 렌즈 히어로 ---------- */
.lens-stage {
  position: relative;
  border-radius: 26px;
  background:
    radial-gradient(120% 90% at 70% 0%, #FFFFFF 0%, #EAF7EF 55%, #DCF1E4 100%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  margin-bottom: 28px;
  overflow: hidden;
  isolation: isolate;
}
.lens-stage::before {
  /* 배경 그리드 */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14,139,91,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,139,91,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(80% 80% at 50% 40%, #000 40%, transparent 100%);
  z-index: -1;
}
.lens-art {
  width: 100%; display: block; border-radius: 16px;
  animation: floaty 7s ease-in-out infinite;
}

/* 렌즈 링 (회전 글로우) */
.lens-ring {
  position: absolute;
  width: 128px; height: 128px;
  right: 22px; top: 30px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, var(--glow), transparent 40%, var(--mint) 70%, var(--glow));
  animation: spin 8s linear infinite;
  box-shadow: 0 12px 30px -8px rgba(34,199,126,.55);
}
.lens-glass {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(2px) saturate(140%);
  -webkit-backdrop-filter: blur(2px) saturate(140%);
  border: 2px solid rgba(255,255,255,.6);
}

/* 떠있는 정보 칩 */
.chip {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 14px;
  padding: 9px 13px;
  box-shadow: var(--shadow);
}
.chip b { display: block; font-size: 12.5px; font-weight: 800; line-height: 1.2; }
.chip small { display: block; font-size: 10.5px; color: var(--ink-soft); }
.chip i { color: var(--brand); font-size: 16px; }
.chip-a { left: 16px; top: 24px; animation: floaty 6s ease-in-out infinite; }
.chip-b { left: 26px; bottom: 20px; animation: floaty 6.5s ease-in-out infinite .6s; }
.chip-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 0 4px rgba(34,199,126,.22);
}

.perks {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 16px; justify-content: center;
}
.perks li {
  font-size: 13px; color: var(--ink-soft); font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.perks i { color: var(--brand); }

/* =====================================================
   블록 공통
   ===================================================== */
.block { padding-top: 58px; }

.kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.block-title {
  font-size: 25px; font-weight: 900; line-height: 1.32; letter-spacing: -.02em;
  margin-bottom: 24px;
}

/* ---------- 카드 ---------- */
.cards { display: grid; gap: 14px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--brand), var(--mint));
  opacity: .0; transition: opacity .25s;
}
.card:hover::after { opacity: 1; }
.card-ico {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--mint-soft); color: var(--brand-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; margin-bottom: 14px;
}
.card h3 { font-size: 17px; font-weight: 800; margin-bottom: 7px; letter-spacing: -.01em; }
.card p { font-size: 14px; color: var(--ink-soft); word-break: keep-all; }

/* ---------- 학습 여정 ---------- */
.journey-art {
  border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #fff, #E6F5EC);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow-lg);
  margin-bottom: 22px;
}
.journey-art img { width: 100%; display: block; }

/* 한 줄 3열 스텝 */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.steps li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 8px 16px;
  box-shadow: 0 10px 26px -20px rgba(9,60,40,.5);
}
.step-tag {
  font-size: 11.5px; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  padding: 5px 13px; border-radius: 999px;
  box-shadow: 0 6px 12px -6px rgba(7,96,70,.7);
}
.steps b { display: block; font-size: 13.5px; font-weight: 800; letter-spacing: -.02em; word-break: keep-all; }
.steps p { font-size: 11.5px; color: var(--ink-soft); word-break: keep-all; line-height: 1.5; }

/* ---------- 무료 혜택 (오퍼) ---------- */
.offer {
  position: relative;
  background: linear-gradient(150deg, var(--brand-deep) 0%, var(--brand) 65%, #12A268 100%);
  color: #fff;
  border-radius: 26px;
  padding: 32px 26px 30px;
  overflow: hidden;
  box-shadow: 0 28px 60px -26px rgba(7,96,70,.75);
}
.offer::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(141,233,187,.5), transparent 70%);
}
.offer-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--mint);
  margin-bottom: 12px;
}
.offer-title { font-size: 25px; font-weight: 900; line-height: 1.3; margin-bottom: 20px; letter-spacing: -.02em; }
.offer-list { list-style: none; display: grid; gap: 12px; margin-bottom: 26px; }
.offer-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; font-weight: 500;
  color: rgba(255,255,255,.94); word-break: keep-all;
}
.offer-list i { color: var(--mint); font-size: 16px; margin-top: 3px; }
.offer .btn-ghost { background: #fff; }

/* =====================================================
   푸터
   ===================================================== */
.foot { padding: 54px 0 10px; text-align: center; }
.foot-brand {
  font-weight: 900; letter-spacing: .06em; color: var(--ink);
  font-size: 15px; margin-bottom: 16px;
}
.foot-brand i { color: var(--brand); margin-right: 6px; }
.foot-brand em { font-style: normal; color: var(--brand); }
.foot-info { font-size: 12.5px; color: var(--ink-soft); line-height: 1.9; margin-bottom: 16px; }
.foot-note {
  font-size: 11.5px; color: #8A988F; line-height: 1.7;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 18px;
  word-break: keep-all;
}
.foot-links { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.foot-links a {
  font-size: 12.5px; color: var(--brand-deep); font-weight: 600; text-decoration: none;
}
.foot-links a:hover { text-decoration: underline; }
.foot-links span { color: #B7C4BC; }

/* =====================================================
   고정 하단 CTA (PC · 모바일 모두 중앙, 항상 노출)
   ===================================================== */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex; justify-content: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 55%, rgba(231,241,234,0));
  pointer-events: none;
}
.dock-inner {
  width: 100%;
  max-width: calc(var(--shell) - 44px);
  pointer-events: auto;
}
.dock .btn-primary {
  box-shadow: 0 16px 30px -10px rgba(7,96,70,.75);
}

/* =====================================================
   약관 모달
   ===================================================== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: flex-end; justify-content: center;
}
.modal.open { display: flex; }
.modal-mask {
  position: absolute; inset: 0;
  background: rgba(10,26,18,.5);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: fade .2s ease;
}
.modal-card {
  position: relative;
  width: 100%; max-width: var(--shell);
  max-height: 82vh;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,.4);
  display: flex; flex-direction: column;
  animation: slideUp .28s cubic-bezier(.2,.8,.2,1);
}
@media (min-width: 520px) {
  .modal { align-items: center; }
  .modal-card { border-radius: 22px; margin: 0 16px; }
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 17px; font-weight: 900; letter-spacing: -.01em; }
.modal-x {
  border: none; background: var(--surface-2); cursor: pointer;
  width: 34px; height: 34px; border-radius: 10px; color: var(--ink-soft);
  font-size: 15px; display: inline-flex; align-items: center; justify-content: center;
}
.modal-x:hover { background: var(--mint-soft); color: var(--brand-deep); }
.modal-body {
  padding: 18px 22px 26px;
  overflow-y: auto;
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.85;
}
.modal-body h4 { font-size: 14px; color: var(--ink); font-weight: 800; margin: 16px 0 6px; }
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { margin-bottom: 8px; word-break: keep-all; }
.modal-body ul { padding-left: 18px; margin-bottom: 8px; }
.modal-body li { margin-bottom: 4px; }

/* =====================================================
   스크롤 등장 애니메이션
   ===================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spin   { to { transform: rotate(360deg); } }
@keyframes fade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp{ from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes shine  { 0% { left: -140%; } 55%,100% { left: 140%; } }
@keyframes dockglow {
  0%,100% { box-shadow: 0 16px 30px -10px rgba(7,96,70,.75), 0 0 0 0 rgba(34,199,126,.45); }
  50%     { box-shadow: 0 16px 34px -10px rgba(7,96,70,.85), 0 0 22px 4px rgba(34,199,126,.45); }
}

@media (prefers-reduced-motion: reduce) {
  .lens-art, .lens-ring, .chip-a, .chip-b { animation: none !important; }
  .btn-primary::before { animation: none; opacity: 0; }
  .dock .btn-primary { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* 작은 화면 미세 조정 */
@media (max-width: 380px) {
  .hero-title { font-size: 29px; }
  .lens-ring { width: 108px; height: 108px; }
}
