/* =============================================================
   루나워시 디자인 시스템 — Premium Auto Care
   딥블랙 + 메탈릭 실버 + 골드 포인트
   ============================================================= */

:root {
  /* Color — Surface */
  --bg-base: #050505;
  --bg-elev-1: #0d0d0d;
  --bg-elev-2: #161616;
  --bg-elev-3: #1f1f1f;
  --bg-glass: rgba(15, 15, 15, 0.72);

  /* Color — Text */
  --text-primary: #f5f5f5;
  --text-secondary: #b8b8b8;
  --text-tertiary: #7a7a7a;
  --text-muted: #4a4a4a;

  /* Color — Accent */
  --gold: #c49a28;
  --gold-bright: #e0b842;
  --gold-deep: #8c6b15;
  --silver: #c0c0c0;
  --silver-dark: #888;

  /* Color — Border */
  --border-subtle: #1f1f1f;
  --border-default: #2a2a2a;
  --border-strong: #3d3d3d;

  /* Color — State */
  --success: #4ade80;
  --warn: #facc15;
  --danger: #ef4444;

  /* Type */
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Pretendard', -apple-system, sans-serif;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.65);
  --shadow-gold: 0 0 0 1px rgba(196, 154, 40, 0.3), 0 8px 32px rgba(196, 154, 40, 0.15);

  /* Transition */
  --tr-fast: 0.15s ease;
  --tr: 0.25s ease;
  --tr-slow: 0.5s ease;

  /* Container */
  --container-max: 1200px;
}

/* =============================================================
   Reset
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;        /* 한국어 단어 단위 줄바꿈 */
  overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, p, li, a, span, button { word-break: keep-all; overflow-wrap: break-word; }
img, picture, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: transparent; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }

/* =============================================================
   Typography
   ============================================================= */
.display-1 { font-size: clamp(28px, 7.5vw, 64px); line-height: 1.15; font-weight: 800; letter-spacing: -0.025em; }
.display-2 { font-size: clamp(24px, 5.5vw, 48px); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.heading-1 { font-size: clamp(22px, 4vw, 36px); line-height: 1.25; font-weight: 700; }
.heading-2 { font-size: clamp(18px, 3vw, 26px); line-height: 1.3; font-weight: 700; }
.heading-3 { font-size: 17px; line-height: 1.4; font-weight: 600; }
.body-lg { font-size: clamp(15px, 2vw, 18px); line-height: 1.65; color: var(--text-secondary); }
.body { font-size: 15px; line-height: 1.65; color: var(--text-secondary); }
.body-sm { font-size: 13px; line-height: 1.55; color: var(--text-tertiary); }
.caption { font-size: 12px; line-height: 1.4; color: var(--text-tertiary); letter-spacing: 0.04em; }

.text-gold { color: var(--gold-bright); }
.text-silver { color: var(--silver); }
.text-muted { color: var(--text-muted); }

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  padding: var(--sp-1) 0;
  border-bottom: 1px solid var(--gold-deep);
}

/* =============================================================
   Layout
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
@media (min-width: 768px) { .container { padding: 0 var(--sp-6); } }

.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: var(--sp-9) 0; } }
@media (min-width: 1024px) { .section { padding: var(--sp-10) 0; } }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }

/* =============================================================
   Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 10px var(--sp-4);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: var(--tr);
  white-space: nowrap;
}
@media (min-width: 768px) {
  .btn { padding: var(--sp-3) var(--sp-5); font-size: 15px; }
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: #1a1300;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(196, 154, 40, 0.5), 0 12px 40px rgba(196, 154, 40, 0.25); }

.btn-secondary {
  background: var(--bg-elev-2);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-elev-3); border-color: var(--gold-deep); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-strong); }

.btn-lg { padding: var(--sp-4) var(--sp-6); font-size: 17px; }
.btn-block { width: 100%; }

/* =============================================================
   Card
   ============================================================= */
.card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: var(--tr);
}
.card:hover { border-color: var(--border-default); transform: translateY(-2px); }
.card-elevated { background: var(--bg-elev-2); box-shadow: var(--shadow-md); }
.card-feature {
  background: linear-gradient(180deg, var(--bg-elev-2) 0%, var(--bg-elev-1) 100%);
  border: 1px solid var(--gold-deep);
  position: relative;
}
.card-feature::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--gold-bright), transparent 60%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* =============================================================
   Header
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) 0;
  gap: var(--sp-2);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
@media (min-width: 768px) {
  .brand { font-size: 20px; gap: var(--sp-3); }
  .site-header .nav { padding: var(--sp-4) 0; }
}
.brand-mark {
  width: 26px; height: 26px;
  flex-shrink: 0;
  background: url('/assets/logo/lunawash-mark-dark.svg') center / contain no-repeat;
  filter: drop-shadow(0 0 12px rgba(224, 184, 66, 0.25));
}
@media (min-width: 768px) { .brand-mark { width: 32px; height: 32px; } }
.brand-logo-full {
  display: block;
  height: auto;
  max-width: 100%;
}
.nav-links { display: none; gap: var(--sp-6); }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: color var(--tr-fast); }
.nav-links a:hover { color: var(--gold-bright); }

/* 모바일 햄버거 */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  cursor: pointer;
  background: transparent;
  padding: 0;
  margin-right: var(--sp-2);
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--tr-fast);
}
@media (min-width: 768px) { .nav-toggle { display: none; } }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 56px 0 0 0;
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  z-index: 99;
  padding: var(--sp-6);
}
.mobile-menu.open { display: flex; flex-direction: column; gap: var(--sp-2); }
.mobile-menu a {
  padding: var(--sp-4);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-menu a:hover { color: var(--gold-bright); }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }

/* =============================================================
   Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
@media (min-width: 768px) { .hero { min-height: 70vh; } }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.7;
  filter: saturate(0.9) contrast(1.05);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(5,5,5,0.6) 70%, var(--bg-base) 100%),
    linear-gradient(180deg, rgba(5,5,5,0.2) 0%, var(--bg-base) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-8);
  /* 좌우 padding은 .container 가 처리 */
}
.hero h1 { margin-top: var(--sp-4); }
.hero-tag {
  margin-top: var(--sp-4);
  max-width: 640px;
}
@media (min-width: 768px) { .hero-tag { margin-top: var(--sp-5); } }
.hero-actions {
  margin-top: var(--sp-7);
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: var(--sp-7);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  max-width: 700px;
}
@media (min-width: 768px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}
.hero-stat-num {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: var(--sp-1);
}

/* =============================================================
   Service Cards
   ============================================================= */
.service-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-subtle);
  transition: var(--tr);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover {
  border-color: var(--gold-deep);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.service-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5,5,5,0.85) 100%);
}
.service-card-body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.service-card-price { margin-top: auto; }
.service-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: var(--sp-2);
}
.service-card-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.service-card-desc {
  margin-top: var(--sp-2);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}
.service-card-price {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.service-card-price-main {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.service-card-price-sub {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* =============================================================
   Pricing — Plan card
   ============================================================= */
.plan {
  background: var(--bg-elev-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: var(--sp-7);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan-features { flex: 1; }
.plan > a:last-child,
.plan > div:last-child { margin-top: auto; }
.plan-featured {
  background: linear-gradient(180deg, var(--bg-elev-2) 0%, var(--bg-elev-1) 100%);
  border-color: var(--gold-deep);
  box-shadow: var(--shadow-gold);
}
.plan-badge {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  background: var(--gold);
  color: #1a1300;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
}
.plan-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.plan-price {
  margin-top: var(--sp-3);
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}
.plan-price-num {
  font-size: clamp(36px, 9vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan-price-unit {
  font-size: 14px;
  color: var(--text-tertiary);
  white-space: nowrap;
}
@media (min-width: 768px) { .plan-price-unit { font-size: 16px; } }
.plan-tag {
  margin-top: var(--sp-3);
  font-size: 13px;
  color: var(--text-secondary);
}
.plan-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--sp-6) 0;
}
.plan-features { list-style: none; padding: 0; margin: 0; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.plan-features li::before {
  content: '';
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%23000' d='M6.5 11.5 3 8l1.4-1.4 2.1 2.1 5.1-5.1L13 5l-6.5 6.5z'/></svg>") center / 100% no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%23000' d='M6.5 11.5 3 8l1.4-1.4 2.1 2.1 5.1-5.1L13 5l-6.5 6.5z'/></svg>") center / 100% no-repeat;
}

/* =============================================================
   Section Header
   ============================================================= */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-6);
}
@media (min-width: 768px) { .section-header { margin-bottom: var(--sp-8); } }
.section-header.left { text-align: left; }
.section-header h2 { margin-top: var(--sp-3); }
.section-header p { margin-top: var(--sp-3); color: var(--text-secondary); max-width: 640px; margin-left: auto; margin-right: auto; }

/* =============================================================
   Process Steps
   ============================================================= */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step {
  background: var(--bg-elev-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
}
.step-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: 0.1em;
}
.step-title {
  margin-top: var(--sp-3);
  font-size: 18px;
  font-weight: 700;
}
.step-desc {
  margin-top: var(--sp-2);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* =============================================================
   CTA Banner
   ============================================================= */
.cta {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: var(--sp-8);
  background: linear-gradient(135deg, #1a1408 0%, #0a0a0a 100%);
  border: 1px solid var(--gold-deep);
}
.cta-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.18; }
.cta-content { position: relative; z-index: 1; text-align: center; }

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
  background: var(--bg-elev-1);
  border-top: 1px solid var(--border-subtle);
  padding: var(--sp-8) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand p { font-size: 13px; color: var(--text-tertiary); margin-top: var(--sp-3); line-height: 1.6; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-3);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: var(--sp-1) 0; }
.footer-col a { color: var(--text-secondary); font-size: 14px; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: 12px;
  color: var(--text-muted);
}

/* =============================================================
   Utility
   ============================================================= */
.fade-in {
  opacity: 1;
  animation: fadeIn 0.6s ease-out both;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
/* 애니메이션 미지원 환경 fallback */
@media (prefers-reduced-motion: reduce) {
  .fade-in { animation: none; opacity: 1 !important; transform: none !important; }
}

.divider { height: 1px; background: var(--border-subtle); margin: var(--sp-6) 0; }
