/* ==========================================================
   ProTop 스타일시트
   ========================================================== */

/* ===== 1. 디자인 토큰 (컬러·폰트·반경·그림자) ===== */
:root {
  /* 컬러 — 로고의 구글 4색 기반 */
  --blue:        #4285F4;
  --blue-dark:   #1a73e8;
  --blue-soft:   #EAF2FE;
  --red:         #EA4335;
  --yellow:      #FBBC04;
  --green:       #34A853;

  /* 그레이 스케일 */
  --gray-900: #0f1724;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50:  #f8fafc;
  --white:    #ffffff;

  /* 폰트 */
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
               system-ui, Roboto, 'Helvetica Neue', sans-serif;

  /* 반경 */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 999px;

  /* 그림자 */
  --shadow-sm: 0 1px 2px rgba(15,23,36,.06), 0 1px 1px rgba(15,23,36,.04);
  --shadow-md: 0 4px 14px rgba(15,23,36,.08);
  --shadow-lg: 0 20px 40px rgba(15,23,36,.12);
  --shadow-blue: 0 10px 24px rgba(66,133,244,.25);

  /* 레이아웃 */
  --max-width: 1200px;
  --header-height: 72px;
}

/* ===== 2. 기본 리셋 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }

/* ===== 3. 공통 버튼 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 28px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform .15s ease, box-shadow .2s ease,
              background .2s ease, color .2s ease;
  white-space: nowrap;
  border: none;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(66,133,244,.35);
}
.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== 4. 상단 네비게이션 (sticky) ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15,23,36,.06);
}
#site-header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--header-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo-link { display: inline-flex; align-items: center; }
.logo {
  height: 36px;
  width: auto;
}
.nav-menu {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.nav-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color .15s ease;
}
.nav-menu a:hover { color: var(--blue); }

.cta-btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(66,133,244,.22);
  transition: all .15s ease;
}
.cta-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(66,133,244,.32);
}

/* ===== 5. 히어로 섹션 ===== */
#hero {
  position: relative;
  overflow: hidden;
  padding: 96px 24px 120px;
  background: linear-gradient(to bottom, #E6F0FE 0%, #F5F9FF 60%, #ffffff 100%);
}
.hero-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(900px 500px at 90% 0%, rgba(234,67,53,.06), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(52,168,83,.06), transparent 60%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.hero-wordmark {
  margin: 0 auto 40px;
  line-height: 0;
}
.hero-wordmark img {
  width: 100%;
  max-width: min(720px, 88vw);
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(66,133,244,.18));
}

/* 검색창 스타일 박스 */
.hero-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 20px;
  padding: 16px 28px;
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: var(--radius-full);
  box-shadow: 0 14px 40px rgba(66,133,244,.18);
}
.hero-search-text {
  flex: 1;
  text-align: left;
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.hero-search-text strong {
  color: var(--blue);
  font-weight: 800;
}
.hero-search-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--blue);
}

/* 태그 라인 */
.hero-tags {
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn-lg {
  height: 60px;
  padding: 0 44px;
  font-size: 17px;
}

/* 하단 태그라인 */
.hero-tagline {
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: -0.01em;
}
.hero-tagline .arrow {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  padding: 0 2px;
  font-weight: 900;
}

/* ===== 6. 섹션 공통 (제목 영역) ===== */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.75;
  color: var(--gray-600);
}

/* ===== 7. 서비스 섹션 ===== */
#services {
  padding: 100px 24px;
  background: var(--white);
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  padding: 36px 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--blue);
  opacity: 0;
  transition: opacity .2s ease;
}
.service-card.accent-blue::before  { background: var(--blue); }
.service-card.accent-green::before { background: var(--green); }
.service-card.accent-red::before   { background: var(--red); }
.service-card.accent-yellow::before{ background: var(--yellow); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  font-size: 32px;
  line-height: 1;
  margin-bottom: 24px;
  background: var(--blue-soft);
}
.service-card.accent-blue  .card-icon { background: rgba(66,133,244,.12); }
.service-card.accent-green .card-icon { background: rgba(52,168,83,.12); }
.service-card.accent-red   .card-icon { background: rgba(234,67,53,.10); }

.card-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.card-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 24px;
}
.card-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px dashed var(--gray-200);
}
.card-points li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--gray-700);
  line-height: 1.5;
}
.card-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--blue);
}
.service-card.accent-green .card-points li::before { color: var(--green); }
.service-card.accent-red   .card-points li::before { color: var(--red); }

/* ===== 8. 프로세스 섹션 ===== */
#process {
  padding: 100px 24px;
  background: var(--gray-50);
}
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.process-list::before {
  /* 단계 연결선 */
  content: "";
  position: absolute;
  top: 36px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--gray-300) 0 6px,
    transparent 6px 14px
  );
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  padding: 32px 24px 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 16px rgba(66,133,244,.3);
}
.step-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--gray-600);
}

/* ===== 9. 실적 숫자 섹션 ===== */
#results {
  position: relative;
  overflow: hidden;
  padding: 100px 24px;
  background:
    radial-gradient(800px 400px at 20% 10%, rgba(66,133,244,.35), transparent 60%),
    radial-gradient(700px 400px at 90% 90%, rgba(52,168,83,.25), transparent 60%),
    linear-gradient(135deg, #0f1724 0%, #1a3a7a 100%);
  color: var(--white);
}
.results-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 0 0, rgba(255,255,255,.06) 0 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .6;
}
.section-head--light .section-eyebrow { color: #89b4ff; }
.section-head--light .section-title { color: var(--white); }
.section-head--light .section-subtitle { color: rgba(255,255,255,.72); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
.result-card {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .2s ease, background .2s ease;
}
.result-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.10);
}
.result-value {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #c7ddff 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.result-value .unit {
  font-size: .6em;
  margin-left: 4px;
  -webkit-text-fill-color: var(--blue);
  color: var(--blue);
  background: none;
}
.result-label {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,.78);
  letter-spacing: -0.01em;
}
.results-note {
  margin-top: 32px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
}

/* ===== 10. 왜 ProTop? 섹션 ===== */
#why {
  padding: 100px 24px;
  background: var(--white);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  padding: 32px 24px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  background: var(--blue-soft);
  border-color: rgba(66,133,244,.2);
}
.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--white);
  border-radius: var(--radius-md);
  font-size: 28px;
  line-height: 1;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.why-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.why-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--gray-600);
}

/* ===== 11. 문의 섹션 ===== */
#contact {
  padding: 100px 24px;
  background: var(--gray-50);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-head { text-align: left; }
.contact-head .section-eyebrow,
.contact-head .section-title,
.contact-head .section-subtitle {
  text-align: left;
}
.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}
.contact-methods li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease;
}
.contact-methods li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.method-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-500);
  min-width: 84px;
}
.method-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  transition: color .15s ease;
}
.method-value:hover { color: var(--blue); }

/* 폼 */
.contact-form {
  display: grid;
  gap: 18px;
  padding: 36px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; gap: 8px; }
.form-row label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}
.form-row .req { color: var(--red); margin-left: 2px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--gray-50);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  color: var(--gray-900);
  transition: border-color .15s ease, background .15s ease;
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--gray-400);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(66,133,244,.12);
}
.form-row textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}
.form-consent input { margin-top: 3px; flex-shrink: 0; accent-color: var(--blue); }
.btn-block { width: 100%; }

/* ===== 12. 푸터 ===== */
#site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.7);
  padding: 56px 24px 36px;
  font-size: 14px;
  line-height: 1.8;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo {
  height: 32px;
  width: auto;
  background: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}
.footer-tag {
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.footer-info p { margin-bottom: 2px; font-size: 13.5px; }
.footer-info strong {
  display: inline-block;
  min-width: 102px;
  color: rgba(255,255,255,.95);
  font-weight: 600;
}
.footer-copy {
  grid-column: 1 / -1;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,.4);
}

/* ===== 13. 공통 폴리싱 & 애니메이션 ===== */
/* 앵커 스크롤 시 헤더 높이 보정 */
section { scroll-margin-top: calc(var(--header-height) + 8px); }

/* 스크롤 인뷰 페이드업 (JS가 .is-visible 추가) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.service-card.reveal,
.process-step.reveal,
.result-card.reveal,
.why-card.reveal {
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* 모바일 햄버거 버튼 */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-900);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.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); }
#site-footer {
  padding: 32px 24px;
  text-align: center;
  color: var(--gray-400);
  font-size: 14px;
}

/* ===== 9. 반응형 ===== */
/* 태블릿 */
@media (max-width: 1024px) {
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-list::before { display: none; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* 모바일 */
@media (max-width: 768px) {
  #site-header nav { gap: 12px; padding: 0 16px; }
  .nav-menu { display: none; }  /* Step 8에서 햄버거로 대체 */
  .cta-btn { padding: 0 14px; font-size: 13px; height: 40px; }
  .logo { height: 28px; }

  #hero { padding: 56px 20px 72px; }
  .hero-wordmark { margin-bottom: 24px; }
  .hero-search {
    padding: 12px 18px;
    gap: 10px;
  }
  .hero-search-icon { width: 20px; height: 20px; }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 28px;
  }
  .btn { width: 100%; }
  .btn-lg { height: 54px; font-size: 16px; padding: 0 24px; }

  #services, #process, #results, #why, #contact { padding: 64px 20px; }
  .section-head { margin-bottom: 44px; }
  .service-cards { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 28px 22px; }
  .process-list { grid-template-columns: 1fr; gap: 14px; }
  .process-step { padding: 24px 20px; }
  .results-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .result-card { padding: 24px 14px; }
  .why-grid { grid-template-columns: 1fr; gap: 12px; }
  .why-card { padding: 24px 20px; }
  .contact-form { padding: 24px 20px; }
  .contact-methods li { padding: 14px 16px; }
  #site-footer { padding: 40px 20px 28px; }
  .footer-info strong { display: block; min-width: 0; font-size: 12.5px; color: rgba(255,255,255,.5); margin-top: 6px; }

  /* 햄버거 버튼 표시 + 메뉴 슬라이드다운 */
  .nav-toggle { display: block; }
  .nav-menu {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--white);
    padding: 20px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform .3s ease;
    z-index: 99;
  }
  .nav-menu.is-open { transform: translateY(0); }
  .nav-menu a { font-size: 16px; padding: 8px 0; }
}
