/* 헬프미유(HelpMeU) 고전환 SEO 마케팅 플랫폼 스타일시트 */
:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --accent: #2563eb;
  --success: #10b981;
  --warning: #f59e0b;
  --dark: #0f172a;
  --navy: #1e293b;
  --gray-sub: #64748b;
  --gray-light: #f1f5f9;
  --border: #e2e8f0;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(2, 132, 199, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", Arial, sans-serif;
  background-color: #f8fafc;
  color: var(--dark);
  line-height: 1.6;
  word-break: keep-all;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font: inherit;
}

.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--white);
  min-height: 100vh;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.04);
  position: relative;
}

/* ================= 1. 헤더 ================= */
.header {
  height: 76px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--dark);
}

.logo span {
  color: var(--primary);
}

.logo-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 8px;
  border-radius: 6px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  gap: 10px;
}

.btn-header-app {
  background: var(--dark);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s, background 0.2s;
}

.btn-header-app:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-header-estimate {
  background: var(--primary);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: transform 0.15s, background 0.2s;
}

.btn-header-estimate:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ================= 2. 히어로 섹션 ================= */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background: #0f172a;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.85;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.92) 45%, rgba(15, 23, 42, 0.6) 75%, rgba(15, 23, 42, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 48px;
  max-width: 680px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 950;
  line-height: 1.18;
  letter-spacing: -2px;
}

.hero h1 span {
  color: #38bdf8;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.6;
  color: #cbd5e1;
  margin-top: 18px;
}

.hero-features {
  display: flex;
  gap: 20px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.hero-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.hero-feat-item i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  font-style: normal;
  font-size: 11px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn-cta-app {
  background: var(--white);
  color: var(--dark);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, background 0.2s;
  cursor: pointer;
}

.btn-cta-app:hover {
  transform: translateY(-2px);
  background: #f8fafc;
}

.btn-cta-app .sub-text {
  display: block;
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
}

.btn-cta-app .main-text {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: var(--dark);
}

.btn-cta-web {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: var(--white);
  padding: 16px 28px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
  transition: transform 0.2s;
}

.btn-cta-web:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.5);
}

/* ================= 3. 6대 카테고리 퀵 탭 ================= */
.category-nav-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.category-tab-btn {
  padding: 18px 8px;
  text-align: center;
  border: none;
  background: transparent;
  cursor: pointer;
  border-right: 1px solid var(--border);
  transition: all 0.2s;
}

.category-tab-btn:last-child {
  border-right: none;
}

.category-tab-btn .tab-icon {
  font-size: 26px;
  display: block;
  margin-bottom: 4px;
}

.category-tab-btn .tab-name {
  font-size: 14px;
  font-weight: 800;
  color: #334155;
  display: block;
}

.category-tab-btn:hover {
  background: #f0f9ff;
}

.category-tab-btn.active {
  background: #f0f9ff;
  border-bottom: 3px solid var(--primary);
}

.category-tab-btn.active .tab-name {
  color: var(--primary);
}

/* ================= 4. 섹션 공통 ================= */
.section {
  padding: 64px 36px;
}

.section-soft {
  background: #f8fafc;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-header .sub-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 950;
  letter-spacing: -1px;
  margin-top: 6px;
  color: var(--dark);
}

.section-header p {
  font-size: 15px;
  color: var(--gray-sub);
  margin-top: 8px;
}

/* ================= 5. 카테고리별 상세 카드 ================= */
.category-panel {
  display: none;
}

.category-panel.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #bae6fd;
}

.cat-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.cat-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.cat-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
}

.cat-badge.hot {
  background: #fee2e2;
  color: #ef4444;
}

.category-card h3 {
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--dark);
}

.category-card .desc {
  font-size: 13px;
  color: var(--gray-sub);
  line-height: 1.6;
  margin-bottom: 16px;
}

.symptom-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.symptom-tag {
  font-size: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 8px;
  border-radius: 6px;
  color: #475569;
}

.btn-card-quote {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  display: block;
  transition: background 0.2s;
}

.btn-card-quote:hover {
  background: var(--primary-dark);
}

/* ================= 6. 신뢰 및 안심 시스템 ================= */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
}

.trust-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.trust-card strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 6px;
}

.trust-card p {
  font-size: 12px;
  color: var(--gray-sub);
  line-height: 1.6;
}

/* ================= 7. 작업 프로세스 ================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative;
}

.step-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 14px;
  position: relative;
}

.step-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.step-card .step-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.step-card h4 {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 6px;
}

.step-card p {
  font-size: 11px;
  color: var(--gray-sub);
  line-height: 1.5;
}

/* ================= 8. 전국 서비스 지원 지역 ================= */
.region-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.region-chip {
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  transition: all 0.2s;
}

.region-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0f9ff;
}

/* ================= 9. 간편 견적 신청 폼 ================= */
.quote-box {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  background: #fdfdfd;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--white);
}

.form-group textarea {
  min-height: 90px;
  resize: vertical;
}

.form-agree {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-sub);
  margin-bottom: 20px;
}

.btn-submit-quote {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.3);
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-submit-quote:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.4);
}

/* ================= 10. FAQ ================= */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  padding: 18px 22px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-q:hover {
  color: var(--primary);
}

.faq-q::after {
  content: "+";
  font-size: 20px;
  color: var(--gray-sub);
  font-weight: 400;
}

.faq-item.active .faq-q::after {
  content: "−";
}

.faq-a {
  display: none;
  padding: 0 22px 18px;
  font-size: 13px;
  color: var(--gray-sub);
  line-height: 1.7;
}

.faq-item.active .faq-a {
  display: block;
}

/* ================= 11. 푸터 ================= */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 36px 96px;
  border-top: 1px solid #1e293b;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand h4 {
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 12px;
  color: #64748b;
  max-width: 480px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 12px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: underline;
}

.footer-copy {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #1e293b;
  font-size: 11px;
  color: #475569;
}

/* ================= 12. 모바일 고정 하단바 ================= */
.bottom-floating-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(1200px, 100%);
  height: 64px;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: var(--white);
  text-align: center;
  transition: background 0.15s;
}

.bottom-btn small {
  font-size: 10px;
  opacity: 0.8;
  font-weight: 600;
}

.bottom-btn-app {
  background: #1e293b;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.bottom-btn-estimate {
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
}

.bottom-btn-partner {
  background: #0f172a;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

/* ================= 13. 모달 (앱 출시 알림 & 심사중) ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 32px 26px;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(16px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 24px;
  border: none;
  background: none;
  cursor: pointer;
  color: #94a3b8;
}

.modal-badge {
  display: inline-block;
  background: #fee2e2;
  color: #ef4444;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 13px;
  color: var(--gray-sub);
  line-height: 1.6;
  margin-bottom: 22px;
}

.modal-web-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 900;
  font-size: 15px;
  border: none;
  cursor: pointer;
  display: block;
  margin-bottom: 14px;
}

.modal-notify-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: left;
}

.modal-notify-box small {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 8px;
}

.notify-input-group {
  display: flex;
  gap: 6px;
}

.notify-input-group input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12px;
}

.notify-input-group button {
  background: var(--dark);
  color: var(--white);
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

/* ================= 14. 모바일 반응형 미디어 쿼리 ================= */
@media (max-width: 860px) {
  .header {
    height: 64px;
    padding: 0 16px;
  }
  .header-nav {
    display: none;
  }
  .logo {
    font-size: 20px;
  }
  .hero {
    min-height: 520px;
  }
  .hero-content {
    padding: 40px 20px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero-desc {
    font-size: 15px;
  }
  .category-nav-bar {
    grid-template-columns: repeat(3, 1fr);
  }
  .category-tab-btn:nth-child(3) {
    border-right: none;
  }
  .section {
    padding: 44px 16px;
  }
  .category-grid,
  .trust-grid,
  .process-grid,
  .form-row-grid {
    grid-template-columns: 1fr;
  }
  .quote-box {
    padding: 24px 16px;
  }
  .bottom-floating-bar {
    height: 60px;
  }
}
