@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --navy: #0B2545;
  --navy-2: #13315C;
  --accent: #2F7CF6;          /* 포인트 파랑 (버튼·강조) */
  --accent-light: #7CB8FF;    /* 어두운 바탕 위 강조 글씨 */
  --accent-d: #1F64D6;
  --ink: #1b2430;
  --muted: #4a5566;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --kakao: #fee500;
  --naver: #03c75a;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 35, 64, 0.08);
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 64px; }
body {
  font-family: "Pretendard", -apple-system, "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  padding-bottom: 68px; /* 모바일 하단 고정바 */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 17px;
  border: 0; cursor: pointer; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-kakao { background: var(--kakao); color: #191919; }
.btn-naver { background: var(--naver); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }

/* ---------- 헤더 ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; }
.logo img { width: 38px; height: 38px; border-radius: 50%; }
.header .logo img { width: 46px; height: 46px; }
.footer .logo img { background: #fff; }
.logo .name span { color: var(--accent); }
.nav { display: none; gap: 28px; font-weight: 600; }
.nav a:hover, .nav a.active { color: var(--accent); }
.header-call { display: none; }
.menu-btn { background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--navy); }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .28; }
.hero .container { position: relative; padding-top: 72px; padding-bottom: 72px; }
.eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: rgba(124,184,255,.15); color: var(--accent-light); margin-bottom: 18px;
}
.hero h1 { font-size: 34px; line-height: 1.3; font-weight: 800; letter-spacing: -1px; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 18px; opacity: .9; margin-bottom: 30px; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 34px; font-size: 15px; opacity: .9; }
.hero-badges span::before { content: "✓ "; color: var(--accent); font-weight: 800; }

/* ---------- 섹션 공통 ---------- */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--navy); color: #fff; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .tag { color: var(--accent); font-weight: 800; font-size: 15px; letter-spacing: 1px; }
.section-head h2 { font-size: 28px; line-height: 1.35; font-weight: 800; letter-spacing: -0.8px; margin: 8px 0 12px; }
.section-head p { color: var(--muted); }
.section.dark .section-head p { color: rgba(255,255,255,.75); }

.grid { display: grid; gap: 20px; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

/* ---------- 강점 카드 ---------- */
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
}
.feature .ico { font-size: 34px; margin-bottom: 12px; }
.feature h3 { font-size: 20px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 16px; }

/* ---------- 비교표 ---------- */
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 15px; }
.compare th, .compare td { padding: 14px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th { background: var(--navy); color: #fff; }
.compare td:first-child { text-align: left; font-weight: 600; }
.compare .win { color: var(--accent-d); font-weight: 800; }
.compare-wrap { overflow-x: auto; }

/* ---------- 카테고리 카드 ---------- */
.cat-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  min-height: 300px; color: #fff; box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  transition: transform .2s;
}
.cat-card:hover { transform: translateY(-6px); }
.cat-card .media { position: absolute; inset: 0; }
.cat-card .media img, .cat-card .media .ph { width: 100%; height: 100%; object-fit: cover; }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,35,64,.05) 20%, rgba(15,35,64,.92) 100%); }
.cat-card .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; z-index: 1; }
.cat-card .icon { font-size: 34px; }
.cat-card h3 { font-size: 24px; margin: 4px 0 6px; }
.cat-card p { font-size: 15px; opacity: .9; margin-bottom: 14px; }
.cat-card .more { font-weight: 800; color: var(--accent); }

/* ---------- 제품 카드 ---------- */
.product {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.product:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15,35,64,.15); }
.product .thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.product .thumb img, .product .thumb .ph { width: 100%; height: 100%; object-fit: cover; }
.product .badge {
  position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 999px;
}
.product .info { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product h3 { font-size: 20px; margin-bottom: 10px; }
.product ul { list-style: none; margin-bottom: 16px; flex: 1; }
.product li { font-size: 15px; color: var(--muted); padding-left: 20px; position: relative; margin-bottom: 4px; }
.product li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.product .price { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.product .go { text-align: center; background: var(--navy); color: #fff; padding: 13px; border-radius: 12px; font-weight: 700; }
.product:hover .go { background: var(--accent); }

/* ---------- 회사 소개 ---------- */
.about { display: grid; gap: 36px; align-items: center; }
.about .photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.about .photo img, .about .photo .ph { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: 28px; line-height: 1.35; margin-bottom: 16px; letter-spacing: -0.8px; }
.about h2 em { color: var(--accent); font-style: normal; }
.about p { color: rgba(255,255,255,.82); margin-bottom: 14px; }
.about .points { list-style: none; margin: 20px 0 0; }
.about .points li { padding: 8px 0 8px 30px; position: relative; border-top: 1px solid rgba(255,255,255,.12); }
.about .points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 44px; }
.stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 22px 12px; text-align: center; }
.stat b { display: block; font-size: 30px; color: var(--accent); font-weight: 800; }
.stat span { font-size: 15px; opacity: .85; }

/* ---------- 후기 ---------- */
.review {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; border: 1px solid var(--line);
}
.review .thumb { aspect-ratio: 16 / 10; background: var(--bg-soft); }
.review .thumb img, .review .thumb .ph { width: 100%; height: 100%; object-fit: cover; }
.review .body { padding: 22px; }
.review .stars { color: var(--accent); font-size: 18px; letter-spacing: 2px; }
.review p { margin: 10px 0 14px; font-size: 16px; }
.review .who { font-size: 14px; color: var(--muted); }
.review .who b { color: var(--ink); }
.review .cat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent-d); background: #E8F1FE; padding: 3px 10px; border-radius: 999px; margin-left: 6px; }

/* 실제 후기 캡처 카드 */
.review-shot {
  display: flex; flex-direction: column; text-align: left; font: inherit; color: inherit; cursor: zoom-in;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; padding: 0; transition: transform .2s;
}
.review-shot:hover { transform: translateY(-4px); }
.review-shot .head { padding: 16px 18px 12px; }
.review-shot .head b { display: block; font-size: 17px; margin-top: 6px; }
.review-shot .cat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent-d); background: #E8F1FE; padding: 3px 10px; border-radius: 999px; }
.review-shot .shot { height: 380px; overflow: hidden; border-top: 1px solid var(--line); }
.review-shot .shot img { width: 100%; height: auto; }
.review-shot .zoom { display: block; padding: 12px; text-align: center; font-size: 14px; font-weight: 700; color: var(--navy); background: var(--bg-soft); }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(5,12,24,.88);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out;
}
.lightbox img { max-height: 85vh; max-width: 100%; border-radius: 12px; }
.lightbox .close { color: #fff; margin-top: 12px; font-weight: 700; }

/* 홍보 배너 이미지 */
.banner { display: grid; gap: 28px; align-items: center; }
.banner img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-width: 480px; margin: 0 auto; }
.banner h2 { font-size: 28px; line-height: 1.35; letter-spacing: -0.8px; margin-bottom: 14px; }
.banner h2 em { color: var(--accent); font-style: normal; }
.banner p { color: var(--muted); margin-bottom: 20px; }

.slider { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.slider > * { scroll-snap-align: start; }

/* ---------- 영상 ---------- */
.video { background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video .frame { position: relative; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); background: linear-gradient(135deg, #1a2b44, #08192F); font-size: 14px; gap: 8px;
}
.video .empty .play { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; }
.video .cap { background: #fff; color: var(--ink); padding: 14px 18px; font-weight: 700; }

/* ---------- 고민/해결 ---------- */
.pain { background: #fff; border-left: 5px solid var(--accent); border-radius: 12px; padding: 20px 22px; box-shadow: var(--shadow); }
.pain b { display: block; font-size: 18px; margin-bottom: 4px; }
.pain p { color: var(--muted); font-size: 15px; }

/* ---------- 설치 사례 ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery .item { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.gallery img, .gallery .ph { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 상담 ---------- */
.contact { display: grid; gap: 28px; }
.contact-box { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); }
.contact-box h3 { font-size: 22px; margin-bottom: 6px; }
.contact-box .sub { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 18px; }
.form-msg { margin-top: 12px; font-weight: 700; color: var(--naver); }
.contact-channels { display: grid; gap: 12px; }
.contact-channels .btn { width: 100%; padding: 18px; font-size: 18px; }
.contact-info { margin-top: 18px; font-size: 15px; color: rgba(255,255,255,.75); }
.contact-info b { color: #fff; font-size: 26px; display: block; }

/* ---------- 이미지 자리표시 ---------- */
.ph {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px;
  background: repeating-linear-gradient(45deg, #e8eef6, #e8eef6 12px, #dfe7f1 12px, #dfe7f1 24px);
  color: #7d8a9c; font-size: 13px; text-align: center; padding: 10px;
}
.ph::before { content: none; }
.cat-card .ph { font-size: 0; }
.cat-card .ph::before { display: none; }
.cat-card .ph, .about .ph { background: repeating-linear-gradient(45deg, #1d3a66, #1d3a66 12px, #183259 12px, #183259 24px); color: rgba(255,255,255,.5); }

/* ---------- 푸터 ---------- */
.footer { background: #0a1729; color: rgba(255,255,255,.6); padding: 40px 0; font-size: 14px; }
.footer .logo { color: #fff; margin-bottom: 10px; }
.footer p { margin-bottom: 4px; }

/* ---------- 모바일 하단 고정바 ---------- */
.fixed-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(2, 1fr);
  box-shadow: 0 -4px 16px rgba(0,0,0,.12);
}
.fixed-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 60px; font-weight: 800; font-size: 16px; }
.fixed-bar .call { background: var(--accent); color: #fff; }
.fixed-bar .kakao { background: var(--kakao); color: #191919; }


/* ---------- 반응형 ---------- */
@media (min-width: 768px) {
  .hero h1 { font-size: 46px; }
  .hero .container { padding-top: 110px; padding-bottom: 110px; }
  .section { padding: 100px 0; }
  .section-head h2 { font-size: 36px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .slider { grid-auto-columns: calc((100% - 32px) / 3); }
  .about { grid-template-columns: 1fr 1fr; }
  .banner { grid-template-columns: 1fr 1fr; }
  .gallery.two { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1.2fr 1fr; align-items: start; }
}
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .nav, .header-call { display: flex; }
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .fixed-bar {
    left: auto; right: 24px; bottom: 24px; grid-template-columns: 1fr; gap: 10px; box-shadow: none;
  }
  .fixed-bar a { width: 64px; height: 64px; border-radius: 50%; font-size: 0; box-shadow: var(--shadow); }
  .fixed-bar a .i { font-size: 26px; }
}
.gallery.two .item { aspect-ratio: 4 / 3; }
.cat-card img[src*="banner-parents"] { object-position: center 62%; }

/* ---------- 후기 자동 흐름 (왼쪽으로) ---------- */
.marquee {
  overflow: hidden; padding: 8px 0 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee linear infinite; }
.marquee-track > * { flex: 0 0 280px; margin-right: 16px; }
.marquee:hover .marquee-track, .marquee:active .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (min-width: 768px) { .marquee-track > * { flex-basis: 320px; margin-right: 20px; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}

/* 유튜브 썸네일 (누르면 재생) */
.yt-thumb { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: #000; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.yt-thumb:hover img { opacity: 1; }
.yt-thumb .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 50px; border-radius: 14px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 6px 20px rgba(0,0,0,.35);
}

/* =========================================================
   첫 화면(히어로): 사진을 화면 가득, 선명하게
   ========================================================= */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  background: #08192F;
}
.hero .container { width: 100%; padding-top: 120px; padding-bottom: 100px; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
/* 글씨가 있는 아래쪽만 어둡게, 사진 윗부분은 그대로 */
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(9,28,54,.92) 0%, rgba(9,28,54,.62) 38%, rgba(9,28,54,.12) 72%, rgba(9,28,54,.45) 100%);
}
.hero h1 { font-size: 36px; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero p.lead { text-shadow: 0 1px 10px rgba(0,0,0,.5); }

/* 부모님댁: 포스터는 글씨가 있어 배경 대신 오른쪽에 크게 보여줌 */
.hero.split { align-items: center; background: linear-gradient(135deg, #08192F 0%, var(--navy) 55%, var(--navy-2) 100%); }
.hero.split .container { display: grid; gap: 28px; align-items: center; padding-bottom: 90px; }
.hero.split .poster { width: 100%; max-width: 440px; margin: 0 auto; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }

@media (min-width: 768px) {
  .hero { align-items: center; }
  .hero h1 { font-size: 54px; }
  .hero p.lead { font-size: 20px; }
  .hero .container { padding-top: 110px; padding-bottom: 110px; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(9,28,54,.88) 0%, rgba(9,28,54,.55) 42%, rgba(9,28,54,0) 72%),
      linear-gradient(0deg, rgba(9,28,54,.5) 0%, rgba(9,28,54,0) 40%);
  }
  .hero.split .container { grid-template-columns: 1.1fr .9fr; }
  .hero.split .poster { max-height: 78vh; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .hero-img { animation: none; } }

/* =========================================================
   맨 위 메뉴줄: 첫 화면에선 투명, 내리면 흰색
   ========================================================= */
.header {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent; border-bottom: 1px solid rgba(255,255,255,.18);
  backdrop-filter: none; transition: background .25s, border-color .25s, box-shadow .25s;
}
.header .nav a, .header .menu-btn { color: #fff; }
.header .nav a.active, .header .nav a:hover { color: var(--accent-light); }
.header .logo img { box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.header.solid, .header.menu-open {
  background: rgba(255,255,255,.97); border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(15,35,64,.06);
}
.header.solid .nav a, .header.solid .menu-btn, .header.menu-open .menu-btn { color: var(--ink); }
.header.solid .nav a.active, .header.solid .nav a:hover { color: var(--accent); }
.header.solid .logo img, .header.menu-open .logo img { box-shadow: none; }
/* 사진 좌우 반전 (카메라가 글씨에 가리지 않게) */
.hero-img.flip { animation-name: heroZoomFlip; }
@keyframes heroZoomFlip { from { transform: scaleX(-1) scale(1.08); } to { transform: scaleX(-1) scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-img.flip { transform: scaleX(-1); } }
.hero .eyebrow { background: rgba(9,28,54,.6); color: var(--accent-light); border: 1px solid rgba(124,184,255,.35); backdrop-filter: blur(4px); }
/* 제품 사진 칸 크기 고정 (세로로 긴 사진이 칸을 늘리지 않게) */
.product .thumb img, .product .thumb .ph { position: absolute; inset: 0; }

/* 첫 화면 배경 영상 */
.hero-video { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: #08192F center / cover no-repeat; }
.hero-video iframe {
  position: absolute; left: 50%; top: 50%; border: 0;
  transform: translate(-50%, -50%) scale(1.1); /* 유튜브 테두리·제목이 보이지 않을 만큼만 살짝 키움 */
  opacity: 0; transition: opacity 1.2s;
}
.hero-video.ready iframe { opacity: 1; }
.hero.split .hero-shade {
  background: linear-gradient(90deg, rgba(9,28,54,.82) 0%, rgba(9,28,54,.55) 50%, rgba(9,28,54,.35) 100%);
}
@media (max-width: 767px) {
  .hero.split .hero-shade { background: linear-gradient(0deg, rgba(9,28,54,.85) 0%, rgba(9,28,54,.55) 60%, rgba(9,28,54,.45) 100%); }
}
@media (max-width: 767px) {
  /* 휴대폰: 영상은 첫 화면 높이만큼만 (너무 확대되지 않게), 아래는 갈색 배경으로 자연스럽게 */
  .hero-video { bottom: auto; height: 100vh; height: 100svh; max-height: 100%;
    -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }
}

/* =========================================================
   스크롤하면 아래에서 스르륵 올라오는 효과
   ========================================================= */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* 첫 화면 글씨는 페이지 열리자마자 차례로 올라옴 */
.hero-anim { opacity: 0; animation: heroUp .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0ms); }
@keyframes heroUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .hero-anim { opacity: 1; animation: none; }
}

/* 어두운(남색) 바탕 위의 강조색은 밝은 하늘색으로 — 글씨가 잘 읽히게 */
.hero h1 em, .about h2 em, .stat b, .cat-card .more,
.section.dark .section-head .tag,
.hero-badges span::before, .about .points li::before { color: var(--accent-light); }

/* =========================================================
   선 아이콘 (이모티콘 대신)
   ========================================================= */
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }
.btn .icon { width: 20px; height: 20px; }
.menu-btn { display: flex; align-items: center; }
.menu-btn .icon { width: 28px; height: 28px; }
.fixed-bar .i { display: inline-flex; }
.fixed-bar .i .icon { width: 22px; height: 22px; }
.review-shot .zoom { display: flex; align-items: center; justify-content: center; gap: 6px; }
.review-shot .zoom .icon { width: 18px; height: 18px; }
.yt-thumb .play .icon, .video .empty .play .icon { width: 28px; height: 28px; }
.feature .ico {
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: #E8F1FE; color: var(--accent);
}
.feature .ico svg { width: 28px; height: 28px; }
@media (min-width: 1024px) { .fixed-bar a .i .icon { width: 26px; height: 26px; } }
@media (min-width: 1024px) { .menu-btn { display: none; } }

/* 첫 화면 큰 제목의 파란 강조 글씨: 더 진하고 선명하게 */
.hero h1 em { color: #3F8CFF; text-shadow: 0 2px 14px rgba(0,0,0,.55); }

/* =========================================================
   비교표: 캠앤CCTV 칸을 파란 테두리 박스로 크게 강조
   ========================================================= */
.vs {
  position: relative; display: grid; grid-template-columns: .9fr 1fr 1.3fr;
  margin-top: 56px; background: #fff; border-radius: 16px; box-shadow: var(--shadow);
}
.vs .c {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 20px 14px; text-align: center; font-size: 16px; border-bottom: 1px solid var(--line);
}
.vs .c.last { border-bottom: 0; }
.vs .lbl { justify-content: flex-start; text-align: left; font-weight: 700; color: var(--ink); padding-left: 22px; }
.vs .h { font-weight: 800; font-size: 15px; color: var(--muted); background: #F5F7FA; }
.vs .h.lbl { border-top-left-radius: 16px; }
.vs .other { color: #8A94A3; }
.vs .other:not(.h)::before { content: "✕"; font-size: 13px; color: #B4BCC8; font-weight: 700; }
.vs .ours { color: var(--navy); font-weight: 800; font-size: 19px; }
.vs .ours:not(.h)::before {
  content: "✓"; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 14px; line-height: 24px; text-align: center;
}
/* 우리 칸 머리: 파란 바탕 + 크게 */
.vs .h.ours {
  flex-direction: column; gap: 6px; color: #fff; font-size: 20px; background: var(--accent);
  margin: -18px 3px 0; padding-top: 30px; border-radius: 14px 14px 0 0; border-bottom-color: transparent;
}
.vs-badge {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1px;
  background: #fff; color: var(--accent); padding: 3px 12px; border-radius: 999px;
}
/* 우리 칸 전체를 감싸는 파란 테두리 박스 (위아래로 살짝 튀어나오게) */
.vs-box {
  grid-column: 3; grid-row: 1 / span 5; margin: -18px 0 -18px;
  border: 3px solid var(--accent); border-radius: 18px; background: #F2F7FF;
  box-shadow: 0 18px 40px rgba(47,124,246,.25); z-index: 0;
}
.vs .ours.last { padding-bottom: 30px; }

@media (max-width: 767px) {
  .vs { grid-template-columns: .85fr 1fr 1.25fr; }
  .vs .c { padding: 16px 6px; font-size: 13px; gap: 5px; }
  .vs .lbl { padding-left: 12px; }
  .vs .h { font-size: 12px; }
  .vs .ours { font-size: 14px; }
  .vs .h.ours { font-size: 15px; }
  .vs .ours:not(.h)::before { width: 18px; height: 18px; line-height: 18px; font-size: 11px; }
  .vs .other:not(.h)::before { display: none; }
}
.compare-wrap.vs { overflow: visible; }
/* 칸 위치 고정 (파란 박스와 겹쳐 놓기 위해) */
.vs .lbl { grid-column: 1; } .vs .other { grid-column: 2; } .vs .ours { grid-column: 3; }
.vs .c:nth-child(-n+4) { grid-row: 1; }
.vs .c:nth-child(n+5):nth-child(-n+7) { grid-row: 2; }
.vs .c:nth-child(n+8):nth-child(-n+10) { grid-row: 3; }
.vs .c:nth-child(n+11):nth-child(-n+13) { grid-row: 4; }
.vs .c:nth-child(n+14):nth-child(-n+16) { grid-row: 5; }
.feature .ico { font-size: 28px; }

/* 배경 영상에 글자가 많은 페이지는 조금 더 어둡게 (현관용) */
.hero.dim .hero-shade { background: linear-gradient(0deg, rgba(9,28,54,.94) 0%, rgba(9,28,54,.78) 45%, rgba(9,28,54,.6) 100%); }
@media (min-width: 768px) {
  .hero.dim .hero-shade { background: linear-gradient(90deg, rgba(9,28,54,.93) 0%, rgba(9,28,54,.8) 50%, rgba(9,28,54,.55) 100%); }
}

/* 첫 화면 설명글: 더 크고, 줄 간격 넉넉하게, 또렷하게 */
.hero p.lead {
  font-size: 18px; line-height: 1.8; font-weight: 500; letter-spacing: -0.2px;
  color: rgba(255,255,255,.96); opacity: 1; max-width: 640px;
  text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 2px 16px rgba(0,0,0,.45);
}
@media (min-width: 768px) { .hero p.lead { font-size: 21px; } }

/* 상담 칸: 무료 견적 문의 → 그 아래 전화·카톡 버튼 순서로 한 줄 배치 */
.contact { grid-template-columns: 1fr !important; max-width: 640px; margin: 0 auto; gap: 20px; }
.contact-info { text-align: center; }
@media (min-width: 768px) {
  .contact-channels { grid-template-columns: 1fr 1fr; }
}

/* 맨 아래 사업자 정보 */
.footer .biz { margin-top: 14px; line-height: 1.9; font-size: 13.5px; }
.footer .biz p { margin: 0; }
.footer .biz b { color: rgba(255,255,255,.85); font-weight: 700; margin-right: 4px; }
.footer .biz .bar { display: inline-block; width: 1px; height: 11px; background: rgba(255,255,255,.25); margin: 0 10px; vertical-align: -1px; }
.footer .biz a { color: rgba(255,255,255,.75); text-decoration: underline; text-underline-offset: 3px; }
.footer .biz a:hover { color: #fff; }

/* 맨 위 로고 옆 "캠앤" 글자: 첫 화면 위에선 흰색, 내리면 남색 */
.header .logo .name { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; color: #fff; transition: color .25s; }
.header.solid .logo .name, .header.menu-open .logo .name { color: var(--navy); }

/* 개인정보 수집·이용 안내 (펼쳐 보기) */
.privacy-note { margin: -8px 0 18px; font-size: 13px; color: var(--muted); }
.privacy-note summary { cursor: pointer; color: var(--accent); font-weight: 700; padding: 4px 0; }
.privacy-note ul { list-style: none; margin-top: 8px; padding: 12px 14px; background: var(--bg-soft); border-radius: 10px; line-height: 1.7; }
.privacy-note b { color: var(--ink); margin-right: 6px; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* =========================================================
   스마트폰 등록 가이드 페이지 (QR로 들어오는 곳)
   ========================================================= */
.guide-top { background: linear-gradient(135deg, #08192F, var(--navy) 60%, var(--navy-2)); color: #fff; padding: 110px 0 48px; }
.guide-top h1 { font-size: 30px; line-height: 1.35; font-weight: 800; letter-spacing: -1px; margin: 4px 0 14px; }
.guide-top h1 em { font-style: normal; color: #3F8CFF; }
.guide-top .lead { font-size: 17px; line-height: 1.8; color: rgba(255,255,255,.92); margin-bottom: 24px; }
.guide-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-jump a { padding: 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 700; color: #fff; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.guide-jump a:hover { background: var(--accent); border-color: var(--accent); }
.guide-list { display: grid; gap: 28px; max-width: 820px; }
.guide-item { scroll-margin-top: 80px; border-radius: 18px; transition: box-shadow .4s; }
.guide-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.guide-head .num { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.guide-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.guide-item.focus .video { box-shadow: 0 0 0 4px var(--accent), 0 18px 40px rgba(47,124,246,.3); }
.guide-help { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; text-align: center; box-shadow: var(--shadow); }
.guide-help b { font-size: 20px; display: block; margin-bottom: 6px; }
.guide-help p { color: var(--muted); margin-bottom: 18px; }
.guide-help-btns { display: grid; gap: 10px; }
@media (min-width: 768px) {
  .guide-top { padding: 140px 0 64px; }
  .guide-top h1 { font-size: 42px; }
  .guide-help-btns { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   휴대폰 글자 가독성: 작은 회색 글자를 더 크고 진하게
   ========================================================= */
.footer { color: rgba(255,255,255,.72); }
@media (max-width: 767px) {
  body { line-height: 1.72; letter-spacing: -0.2px; }
  .section-head h2 { font-size: 27px; line-height: 1.4; }
  .section-head p, .banner p { font-size: 17px; }
  .pain b { font-size: 18px; }
  .pain p, .product li, .feature p, .contact-box .sub, .cat-card p, .form-row label { font-size: 16px; }
  .product h3 { font-size: 21px; }
  .review-shot .head b { font-size: 18px; }
  .video .cap { font-size: 17px; line-height: 1.5; }
  .contact-info { font-size: 16px; }
  .footer .biz { font-size: 14px; line-height: 2; }
  .footer .biz b { color: rgba(255,255,255,.92); }
  .vs .c { font-size: 14px; }
  .vs .ours { font-size: 15px; }
  .hero h1 { font-size: 34px; line-height: 1.32; }
}

/* =========================================================
   휴대폰에서도 스크롤 효과가 잘 보이게
   ========================================================= */
@media (max-width: 767px) {
  .reveal { transform: translateY(56px); transition-duration: 1s, 1.1s; }
}
/* 절전모드·"애니메이션 제거" 설정 휴대폰: 움직임 없이 부드럽게 나타나기 */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 0; transform: none; transition: opacity .9s ease; transition-delay: var(--d, 0ms); }
  .reveal.in { opacity: 1; }
  .hero-anim { opacity: 0; animation: heroFade .9s ease forwards; animation-delay: var(--d, 0ms); }
}
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
.section-head h2 em.hl { font-style: normal; color: var(--accent); }
/* 휴대폰: 아래에서 더 크게 떠오르며 나타나기 (눈에 잘 띄게) */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .reveal { transform: translateY(70px) scale(.96); transition-duration: 1.1s, 1.2s; }
  .reveal.in { transform: none; }
}
