:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-dark: #0b1120;
  --bg-dark-card: #131c31;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e2e8f0;
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --gold: #d4a853;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 20px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.09);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  letter-spacing: -0.015em;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 한글 단어가 줄 끝에서 잘리지 않도록, 긴 영문·URL만 필요할 때 나눔 */
p, li, dd, dt, td, th, figcaption, .sec-desc, .hero-sub, .price-desc, .work-body p, .faq-a {
  overflow-wrap: break-word;
  word-break: keep-all;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-dark);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(11, 17, 32, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.brand-text span {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
}

.nav {
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-dark {
  background: var(--bg-dark);
  color: #ffffff;
}

.btn-dark:hover {
  background: #17233f;
  box-shadow: 0 10px 24px rgba(11, 17, 32, 0.2);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.btn-outline {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 16px 24px 22px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer a {
  display: block;
  padding: 11px 0;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid #f1f5f9;
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }
  .menu-btn {
    display: none;
  }
  .mobile-drawer {
    display: none !important;
  }
}

/* Hero */
.hero {
  background: radial-gradient(circle at 82% 15%, rgba(37, 99, 235, 0.18), transparent 42%),
              radial-gradient(circle at 12% 85%, rgba(212, 168, 83, 0.12), transparent 36%),
              var(--bg-dark);
  color: #ffffff;
  padding: 72px 0 84px;
}

.hero-grid {
  display: grid;
  gap: 44px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 96px 0 104px;
  }
  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 56px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.hero h1 .hl {
  color: #93c5fd;
}

.hero-sub {
  margin: 0 0 32px;
  font-size: 17px;
  color: #cbd5e1;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}

.metric strong {
  display: block;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: #ffffff;
}

.metric span {
  font-size: 13px;
  color: #94a3b8;
}

/* Hero Visual Showcase */
.hero-showcase {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.chrome-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.chrome-url {
  margin-left: 8px;
  font-size: 12px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 6px;
}

.showcase-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  font-size: 13px;
  color: #cbd5e1;
}

.showcase-caption strong {
  color: #ffffff;
}

.showcase-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.22);
  color: #93c5fd;
  white-space: nowrap;
}

/* Section base */
.section {
  padding: 84px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.sec-head {
  margin-bottom: 44px;
  max-width: 660px;
}

.sec-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.sec-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.sec-desc {
  margin: 0;
  font-size: 16px;
  color: var(--ink-2);
}

/* Comparison Table */
.compare-wrap {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.compare-table th,
.compare-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.compare-table thead th {
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}

.compare-table thead th.col-doorlit {
  background: var(--bg-dark);
  color: #ffffff;
}

.compare-table tbody td.col-key {
  font-weight: 700;
  color: var(--ink);
  width: 18%;
  min-width: 96px;
}

.compare-table tbody td.col-other {
  color: var(--ink-2);
  width: 39%;
}

.compare-table tbody td.col-doorlit {
  background: #f8fbff;
  font-weight: 600;
  color: var(--ink);
  width: 43%;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* 390px 모바일: 3열 표를 항목별 카드로 전환 */
@media (max-width: 680px) {
  .compare-wrap {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .compare-table,
  .compare-table thead,
  .compare-table tbody,
  .compare-table tr,
  .compare-table td {
    display: block;
    width: 100%;
  }

  .compare-table {
    font-size: 14px;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
    padding: 6px 0 4px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }

  .compare-table th,
  .compare-table td {
    border-bottom: 0;
    padding: 8px 16px;
  }

  .compare-table tbody td.col-key {
    width: 100%;
    min-width: 0;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--accent);
    padding-bottom: 2px;
  }

  .compare-table tbody td.col-other,
  .compare-table tbody td.col-doorlit {
    width: 100%;
    font-size: 14px;
    line-height: 1.55;
  }

  .compare-table tbody td.col-other {
    color: var(--ink-3);
    padding-top: 0;
  }

  .compare-table tbody td.col-other::before {
    content: "일반 저가형 · ";
    font-weight: 700;
    color: var(--ink-3);
  }

  .compare-table tbody td.col-doorlit {
    background: var(--accent-soft);
    padding-top: 6px;
    padding-bottom: 12px;
  }

  .compare-table tbody td.col-doorlit::before {
    content: "도어릿 · ";
    font-weight: 800;
    color: var(--accent);
  }
}

/* Portfolio Filter & Grid */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.16s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}

.work-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 780px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.work-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.work-card.hidden {
  display: none;
}

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

.work-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.work-card:hover .work-thumb img {
  transform: scale(1.03);
}

.work-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(11, 17, 32, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.work-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.work-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.work-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}

.work-body p {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--ink-2);
  flex: 1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--ink-2);
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* Process 4 Steps */
.process-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 780px) {
  .process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}

.step-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.step-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 22px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.price-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
  box-shadow: var(--shadow-md);
}

.price-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.price-tier {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

.price-card.featured .price-tier {
  color: #93c5fd;
}

.price-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.price-card.featured .price-pill {
  background: rgba(212, 168, 83, 0.22);
  color: #fde68a;
}

.price-amount {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.price-amount small {
  display: inline-block;
  margin-left: 7px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0.72;
}

.price-desc {
  margin: 0 0 22px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.price-card.featured .price-desc {
  color: #cbd5e1;
}

.price-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  flex: 1;
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.price-list li::before {
  content: "✓";
  font-weight: 800;
  color: var(--accent);
}

.price-card.featured .price-list li::before {
  color: #93c5fd;
}

.pricing-note {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  font-size: 13.5px;
  color: var(--ink-2);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  padding: 20px 22px;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.faq-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-2);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--ink-2);
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

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

/* CTA Banner */
.cta-box {
  background: linear-gradient(135deg, #0b1120 0%, #172554 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

@media (min-width: 820px) {
  .cta-box {
    flex-direction: row;
    align-items: center;
    padding: 56px 52px;
  }
}

.cta-box h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
}

.cta-box p {
  margin: 0;
  color: #cbd5e1;
  font-size: 15.5px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 42px 0;
  font-size: 13.5px;
  color: var(--ink-2);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-weight: 600;
}

/* 상담 채널 (카톡 오픈채팅) */
.channel-note {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.channel-note strong {
  color: var(--ink-2);
}

.pricing-note + .channel-note {
  margin-top: 12px;
}

.footer-channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer-channels .btn {
  height: 40px;
  padding: 0 16px;
  font-size: 13.5px;
}

.footer-meta {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.footer-meta a {
  font-weight: 600;
  color: var(--ink-2);
}

/* 모바일 하단 고정 상담 바 */
.sticky-cta {
  display: none;
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
}

.drawer-actions .btn {
  flex: 1;
  min-width: 132px;
}

@media (max-width: 860px) {
  .header-actions .btn-channel-desk {
    display: none;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 82px;
  }

  .sticky-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }

  .sticky-cta .btn {
    height: 46px;
    padding: 0 12px;
    font-size: 14.5px;
  }

  .compare-table tbody td.col-key {
    padding-top: 10px;
  }

  .hero-metrics {
    gap: 10px;
  }
}
