/* ========================================
   Dr.SafetyGuard Solution Site
   Brand Colors & Custom Styles
   ======================================== */

:root {
  --primary: #1976D2;
  --primary-dark: #0D47A1;
  --primary-light: #E3F2FD;
  --accent: #E8601C;
  --accent-dark: #C94E14;
  --accent-light: #FFF3EC;
  --dark: #1A1A1A;
  --gray: #6B7280;
  --gray-light: #9CA3AF;
  --light-bg: #F8FAFC;
  --white: #FFFFFF;
  --success: #16A34A;
  --danger: #DC2626;
  --border: #E5E7EB;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  line-height: 1.7;
}

/* 한국어 자연 줄바꿈 — 모바일/태블릿 전용
   제목/본문이 어색하게 끊기지 않도록 단어(어절) 단위로 줄바꿈
   (예: "지킵니다"가 "지킵니" / "다"로 쪼개지는 현상 방지)
   데스크톱은 기존 레이아웃 유지 */
@media (max-width: 900px) {
  h1, h2, h3, h4, h5, h6, p, li, .section-title, .section-desc,
  .product-hero h1, .product-hero p,
  .product-hero-title, .product-hero-desc,
  .feature-card h3, .feature-card p,
  .product-card h3, .product-card p,
  .feat-layout h3, .feat-layout p,
  .feature-row h3, .feature-row p,
  .testimonial-card p,
  .badge-card h3, .badge-card p,
  .num-card .label,
  .value-card h3, .value-card p,
  .biz-card h3, .biz-card p,
  .esg-card h3, .esg-card p,
  .safety-banner h3, .safety-banner p,
  .pricing-card h3, .pricing-features li,
  .faq-q, .faq-a,
  .app-card h3, .app-card p, .app-card ul li,
  .problem-card h3, .problem-card p,
  .upgrade-card h3, .upgrade-card p,
  .install-card h3, .install-card p,
  .trust-label,
  .compare-item, .compare-card h3,
  .info-card h3, .info-item,
  .download-card h3, .dl-item,
  .client-item,
  .hero-title, .hero-desc, .hero-stat-label,
  .cta-section h2, .cta-section p,
  .footer-brand p, .footer h4,
  .footer-links a, .footer-contact li {
    word-break: keep-all;
  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Typography ── */
.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto 48px;
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--light-bg);
}

/* ── Header / Navigation ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1A1A1A;
}

.header .logo > span {
  color: #1A1A1A;
}

.header .logo img {
  height: 36px;
  width: auto;
}

.header .logo span.logo-highlight {
  color: var(--primary);
}

.header .logo span.logo-accent {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.2s;
  position: relative;
}

.nav a:not(.btn):hover,
.nav a:not(.btn).active {
  color: var(--primary);
}

.nav a.btn-accent {
  color: #FFFFFF !important;
}

.nav a.btn-accent:hover {
  color: #FFFFFF !important;
}

.nav a:not(.btn).active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.nav-dropdown-menu a.active::after {
  display: none;
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 8px;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  margin-top: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* 마우스 이동 시 갭을 메우는 투명 영역 */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
  display: none;
}

.nav-dropdown:hover::after {
  display: block;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* CTA Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(25,118,210,0.3);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,96,28,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.0625rem;
  border-radius: 12px;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero Section ── */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 50%, #fef7f0 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(25,118,210,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s infinite;
}

/* Award badge — emphasized variant */
.hero-badge-award {
  background: var(--white);
  border: 1px solid #F5C76A;
  color: var(--gray);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 10px 20px;
  box-shadow: 0 6px 20px rgba(218, 165, 32, 0.25), 0 0 0 1px rgba(245, 199, 106, 0.3);
  animation: award-glow 2.6s ease-in-out infinite;
}

@keyframes award-glow {
  0%, 100% { box-shadow: 0 6px 20px rgba(218, 165, 32, 0.25), 0 0 0 1px rgba(245, 199, 106, 0.3); }
  50% { box-shadow: 0 8px 28px rgba(218, 165, 32, 0.45), 0 0 0 2px rgba(245, 199, 106, 0.5); }
}

.hero-badge-award .award-icon {
  font-size: 1.125rem;
  filter: drop-shadow(0 1px 2px rgba(184, 134, 11, 0.4));
}

.hero-badge-award .award-text strong {
  color: #B8860B;
  font-weight: 800;
  letter-spacing: 0.01em;
}

@keyframes award-glow {
  0%, 100% { box-shadow: 0 6px 20px rgba(218, 165, 32, 0.25), 0 0 0 1px rgba(245, 199, 106, 0.3); }
  50% { box-shadow: 0 8px 28px rgba(218, 165, 32, 0.45), 0 0 0 2px rgba(245, 199, 106, 0.5); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-title .accent {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.1875rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-stat-number .accent-num {
  color: var(--accent);
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--gray);
  margin-top: 2px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  max-width: 100%;
}

.hero-mockup {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}

/* HTML 폰 목업 — 대시보드 이미지 우측 하단에 겹치도록 배치 */
.hero-phone-mockup {
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 150px;        /* 375 * 0.40 */
  height: 325px;       /* 812 * 0.40 */
  margin-left: 0;
  z-index: 2;
}
.hero-phone-mockup .phone {
  width: 375px;
  height: 812px;
  background: #0d0d0d;
  border-radius: 54px;
  padding: 8px;
  position: relative;
  box-shadow:
    inset 0 0 0 2px #2a2a2a,
    inset 0 0 0 4px #0d0d0d,
    0 24px 64px rgba(0,0,0,0.18),
    0 4px 12px rgba(0,0,0,0.12);
  transform: scale(0.40);
  transform-origin: top left;
}
.hero-phone-mockup .phone::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #0d0d0d;
  border-radius: 16px;
  z-index: 10;
}
.hero-phone-mockup .phone-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 46px;
  overflow: hidden;
  position: relative;
}
.hero-phone-mockup .status-bar {
  height: 44px;
  background: #22A05B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px 0;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.hero-phone-mockup .status-bar .time { font-size: 15px; font-weight: 700; }
.hero-phone-mockup .status-bar .icons { display: flex; gap: 4px; font-size: 11px; }
.hero-phone-mockup .app-header {
  background: #22A05B;
  color: #fff;
  padding: 12px 20px 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}
.hero-phone-mockup .app-content {
  padding: 16px;
  overflow: hidden;
  height: calc(100% - 100px);
}
.hero-phone-mockup .app-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-radius: 0 0 34px 34px;
}
.hero-phone-mockup .app-nav-item { text-align: center; font-size: 10px; color: #9ca3af; }
.hero-phone-mockup .app-nav-item.active { color: #22A05B; font-weight: 600; }
.hero-phone-mockup .app-nav-item .nav-icon { font-size: 18px; margin-bottom: 2px; }
.hero-phone-mockup .card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}
.hero-phone-mockup .badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}
.hero-phone-mockup .badge-green { background: #dcfce7; color: #16a34a; }
.hero-phone-mockup .sensor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
}
.hero-phone-mockup .sensor-row:last-child { border-bottom: none; }
.hero-phone-mockup .sensor-label {
  font-size: 14px;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-phone-mockup .sensor-label .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22A05B;
}
.hero-phone-mockup .sensor-value { font-size: 16px; font-weight: 700; color: #1a1a1a; }

/* Floating badge on hero */
.hero-float-badge {
  display: none;
  position: absolute;
  background: var(--white);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  animation: float 3s ease-in-out infinite;
}

.hero-float-badge.top-right {
  top: 8%;
  right: 180px;
  animation-delay: 0s;
}

.hero-float-badge.bottom-left {
  bottom: 12%;
  left: -20px;
  animation-delay: 1.5s;
}

.hero-float-badge .badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.badge-icon.blue { background: var(--primary-light); color: var(--primary); }
.badge-icon.orange { background: var(--accent-light); color: var(--accent); }
.badge-icon.green { background: #dcfce7; color: var(--success); }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ── Trust Bar ── */
.trust-bar {
  padding: 60px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.trust-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.trust-item {
  padding: 24px;
}

.trust-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.trust-number .unit {
  font-size: 1.5rem;
}

.trust-number.accent-color {
  color: var(--accent);
}

.trust-label {
  font-size: 0.9375rem;
  color: var(--gray);
}

/* ── Product Cards ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: var(--primary);
}

.product-card .card-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
}

.product-card .card-icon.blue { background: var(--primary-light); }
.product-card .card-icon.orange { background: var(--accent-light); }
.product-card .card-icon.green { background: #dcfce7; }

.product-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-card p {
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-card .card-features {
  text-align: left;
  margin-bottom: 24px;
}

.product-card .card-features li {
  list-style: none;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-card .card-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
}

/* ── Before/After ── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}

.compare-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--border);
}

.compare-card.before {
  border-left: 4px solid var(--gray-light);
}

.compare-card.after {
  border-left: 4px solid var(--primary);
  box-shadow: 0 8px 32px rgba(25,118,210,0.08);
}

.compare-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
}

.compare-item:last-child {
  border-bottom: none;
}

.compare-item .value {
  font-weight: 700;
}

.compare-item .value.bad { color: var(--danger); }
.compare-item .value.good { color: var(--primary); }

.compare-arrow {
  font-size: 2.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  border-color: var(--primary);
}

.feature-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: var(--primary-light);
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ── Client Logos ── */
.clients-section {
  padding: 80px 0;
  background: var(--white);
  overflow: hidden;
}

.client-logos {
  display: flex;
  gap: 48px;
  align-items: center;
  animation: scroll-logos 30s linear infinite;
}

.client-logos span {
  flex-shrink: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-light);
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  white-space: nowrap;
}

@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── CTA Section ── */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.125rem;
  opacity: 0.85;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ── Footer ── */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.875rem;
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.875rem;
}

.footer-contact .icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

/* ════════════════════════════════════════════════
   FAMILY SITE - 우측 스크롤 플로팅 박스
   ════════════════════════════════════════════════ */
.family-site {
  position: fixed;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  z-index: 90;
  width: 196px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  font-family: inherit;
}

.family-site-header {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #94a3b8;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f1f5f9;
}

.family-site-list {
  list-style: none;
  padding: 4px 0;
  margin: 0;
}

.family-site-list li + li {
  border-top: 1px solid #f8fafc;
}

.family-site-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.family-site-list a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.family-site-list .fs-icon {
  width: 22px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1;
}

.family-site-list .fs-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.family-site-list .fs-arrow {
  color: #cbd5e1;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease;
}

.family-site-list a:hover .fs-arrow {
  color: var(--primary);
  transform: translateX(2px);
}

/* 좁은 화면에서는 숨김 (컨텐츠 영역과 겹침 방지) */
@media (max-width: 1100px) {
  .family-site {
    display: none;
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-mockup {
    max-width: 480px;
  }

  .hero-phone-mockup {
    right: 0;
    bottom: -20px;
  }

  .hero-float-badge {
    display: none;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .compare-arrow {
    transform: rotate(90deg);
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-numbers {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 900px 이하: nav 를 햄버거 메뉴로 전환
   (기존 768px 기준이었으나 그 사이 구간(769~1024px)에서도
   nav 항목이 많아 잘리거나 2줄로 깨지는 문제가 있어 기준을 올림) */
@media (max-width: 900px) {
  .nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .nav.open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-dropdown {
    width: 100%;
  }

  /* 햄버거 메뉴에서는 드롭다운을 항상 펼쳐 하위 항목을 그대로 노출
     (접고 펴는 동작이 없으므로 호버/클릭 토글 불필요) */
  .nav-dropdown-menu {
    display: block;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    margin-top: 4px;
    min-width: 0;
  }

  /* 카테고리 헤더(제품 소개 ▾)는 링크가 아니라 섹션 라벨로 취급 */
  .nav-dropdown > a {
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: default;
    pointer-events: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }

  .hero-stat {
    text-align: center;
  }

  .hero-mockup {
    max-width: 100%;
    height: auto;
  }

  /* 모바일에서는 대시보드 이미지 우측 하단에 살짝 작게 겹치도록 */
  .hero-phone-mockup {
    right: -10px;
    bottom: -16px;
    width: 110px;
    height: 238px;  /* 110 * (812/375) 비율 유지 */
  }

  .hero-phone-mockup .phone {
    transform: scale(0.293);  /* 110 / 375 */
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section {
    padding: 64px 0;
  }

  .section-desc {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  /* 모바일에서는 기능 카드 이모지 아이콘 숨김 (텍스트 가독성 우선) */
  .feature-card .icon {
    display: none;
  }

  .trust-numbers {
    grid-template-columns: 1fr 1fr;
  }

  .trust-number {
    font-size: 2rem;
  }

  .compare-card {
    padding: 28px 20px;
  }

  .cta-section {
    padding: 72px 0;
  }

  .cta-section h2 {
    font-size: 1.5rem;
    padding: 0 16px;
  }

  .cta-section p {
    font-size: 0.9375rem;
    padding: 0 16px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* 초소형 기기 */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-desc {
    font-size: 0.875rem;
  }

  .section-title {
    font-size: 1.375rem;
  }

  .section-desc {
    font-size: 0.9375rem;
  }

  .trust-numbers {
    grid-template-columns: 1fr;
  }
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-gray { color: var(--gray); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
