/* ============================================================
   Prodogi Korea Demo — base.css
   디자인 토큰은 prodogi.com 원본 테마에서 추출.
   플랫폼 이식(카페24 스킨 / React 컴포넌트)을 고려해
   섹션 단위 BEM 클래스와 CSS 변수만 사용.
   ============================================================ */

:root {
  /* Brand colors (원본 theme.css / 렌더 샘플링 기준) */
  --c-teal:        #2f9ca9;  /* 헤딩 액센트, 푸터 배경 */
  --c-teal-bright: #0cafb4;  /* 히어로 그라디언트 시작 */
  --c-teal-soft:   #47beba;  /* 버튼(GET STARTED), 보더 */
  --c-teal-deep:   #094454;  /* 다크 섹션 배경, 진한 버튼 */
  --c-mint:        #e6f4f1;  /* 라이트 민트 패널 */
  --c-mint-2:      #dcede9;  /* 비교 패널 배경 */
  --c-ice:         #eaf7f8;  /* 이미징/CTA 카드 배경 */
  --c-cream:       #f7f4ec;  /* 크림 카드 배경 */
  --c-coral:       #f7998a;  /* 보조 액센트 */
  --c-ink:         #242424;  /* 헤딩 텍스트 */
  --c-text:        #595959;  /* 본문 텍스트 */
  --c-gray-bg:     #f5f5f5;  /* 라이트 그레이 섹션 */
  --c-border:      #e6e7e8;
  --c-white:       #ffffff;

  /* Typography */
  --font-sans: "Poppins", "Pretendard", -apple-system, "Malgun Gothic", sans-serif;

  /* Layout */
  --page-max: 1280px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-white);
  word-break: keep-all; /* 한국어 단어 단위 줄바꿈 */
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
button, input { font-family: inherit; font-size: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { color: var(--c-ink); line-height: 1.3; font-weight: 700; }
.accent { color: var(--c-teal); }
.section-title { font-size: 44px; text-align: center; letter-spacing: -0.5px; }
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--c-teal);
}
@media (max-width: 768px) {
  .section-title { font-size: 30px; }
}

/* ---------- Layout helpers ---------- */
.container { max-width: var(--page-max); margin: 0 auto; padding: 0 40px; }
.section { padding: 72px 0; }
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 48px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 32px; border: 0; cursor: pointer;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 16px;
  text-align: center; transition: opacity .15s ease, transform .15s ease;
}
.btn:hover { opacity: .88; }
.btn--white { background: var(--c-white); color: var(--c-ink); }
.btn--teal { background: var(--c-teal-soft); color: var(--c-white); text-transform: uppercase; letter-spacing: 1px; }
.btn--deep { background: var(--c-teal-deep); color: var(--c-white); }
.btn--outline { background: transparent; color: var(--c-ink); border: 2px solid var(--c-ink); }

/* ---------- Check / cross list ---------- */
.icon-list li {
  position: relative; padding-left: 34px; margin-bottom: 14px;
}
.icon-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background-color: var(--c-teal-bright);
  background-repeat: no-repeat; background-position: center; background-size: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l6 6L20 6'/%3E%3C/svg%3E");
}
.icon-list--no li::before {
  background-color: #6b6b6b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}
.icon-list b, .icon-list strong { color: var(--c-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-white); height: var(--header-h);
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}
.site-header__inner {
  max-width: var(--page-max); margin: 0 auto; padding: 0 40px;
  height: 100%; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px;
}
.site-header__nav { display: flex; align-items: center; gap: 26px; }
.site-header__nav a { font-weight: 600; color: var(--c-ink); font-size: 15px; }
.site-header__nav .nav-cta {
  background: var(--c-teal-bright); color: var(--c-white);
  padding: 9px 20px; border-radius: var(--radius-sm);
}
.site-header__logo img { height: 52px; width: auto; }
.site-header__icons { display: flex; justify-content: flex-end; gap: 18px; }
.site-header__icons a { color: var(--c-ink); display: inline-flex; }
.site-header__burger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
@media (max-width: 900px) {
  .site-header__nav { display: none; }
  .site-header__nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--c-white); padding: 20px; box-shadow: 0 8px 16px rgba(0,0,0,.08);
  }
  .site-header__burger { display: block; }
  .site-header__logo img { height: 44px; }
}

/* ---------- Scroll reveal (js/reveal.js와 페어) ---------- */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .75s cubic-bezier(.22,.61,.36,1),
    transform .75s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--rv-delay, 0ms);
  will-change: opacity, transform;
}
.rv.rv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--c-teal); color: var(--c-teal-deep); margin-top: 72px; }
.site-footer__social {
  display: flex; justify-content: center; gap: 26px; padding: 34px 0 8px;
}
.site-footer__social a { color: var(--c-teal-deep); opacity: .85; }
.site-footer__social a:hover { opacity: 1; }
.site-footer__grid {
  max-width: var(--page-max); margin: 0 auto; padding: 40px 40px 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}
.site-footer__grid h4 { color: var(--c-white); font-size: 19px; margin-bottom: 18px; }
.site-footer__grid li { margin-bottom: 12px; font-weight: 500; }
.site-footer__grid a:hover { color: var(--c-white); }
.newsletter-inline { display: flex; border-bottom: 2px solid var(--c-teal-deep); padding-bottom: 6px; }
.newsletter-inline input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--c-teal-deep); padding: 6px 4px;
}
.newsletter-inline input::placeholder { color: var(--c-teal-deep); opacity: .75; }
.newsletter-inline button { background: none; border: 0; cursor: pointer; color: var(--c-teal-deep); }
.site-footer__bottom {
  border-top: 1px solid rgba(9,68,84,.25);
  padding: 18px 40px; font-size: 14px;
  max-width: var(--page-max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}
