/* ===== 폰트 ===== */
@font-face {
  font-family: 'PretendardStd';
  src: url('./assets/PretendardStdVariable.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-display: swap;
}

/* ===== 디자인 토큰 ===== */
:root {
  --accent: #2e9e8a;
  --accent-dark: #258f7c;

  --bg: #f6f8f9;
  --card: #eff2f4;
  --surface: #ffffff;
  --text: #212529;
  --text-muted: #5b636b;
  --border: #e3e8eb;

  --maxw: 1080px;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(20, 40, 40, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #23282c;
    --card: #363d43;
    --surface: #2b3136;
    --text: #f8f9fa;
    --text-muted: #aeb6bd;
    --border: #3f474e;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  }
}

/* ===== 리셋 ===== */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'PretendardStd', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 헤더 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.brand-name {
  font-weight: 800;
  font-size: 18px;
}
.nav-cta {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.nav-cta:hover {
  background: var(--accent-dark);
}

/* ===== 히어로 ===== */
.hero {
  padding: 56px 0 40px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: clamp(15px, 2.4vw, 18px);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 28px;
}
.store-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 스토어 버튼 ===== */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111417;
  color: #fff;
  padding: 11px 18px;
  border-radius: 12px;
  min-width: 172px;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.store-btn:hover {
  transform: translateY(-2px);
}
.store-glyph {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.store-btn-text small {
  font-size: 10px;
  opacity: 0.8;
  letter-spacing: 0.02em;
}
.store-btn-text strong {
  font-size: 17px;
  font-weight: 700;
}
.store-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}
/* accent 밴드 위 버튼: 흰색 카드형으로 대비 확보 */
.store-buttons--on-accent .store-btn {
  background: #fff;
  color: #111417;
}
.store-buttons--on-accent .store-btn.is-disabled {
  opacity: 0.55;
}

/* ===== 히어로 폰 목업 ===== */
.hero-visual {
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: min(280px, 78vw);
  aspect-ratio: 9 / 19;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.phone-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.phone-shot.is-empty {
  display: none;
}
.phone-placeholder {
  position: absolute;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}
.phone-shot:not(.is-empty) + .phone-placeholder {
  display: none;
}

/* ===== 섹션 공통 ===== */
.section-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  text-align: center;
  margin: 0 0 36px;
  letter-spacing: -0.01em;
}

/* ===== 기능 ===== */
.features {
  padding: 56px 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-icon {
  font-size: 30px;
  margin-bottom: 12px;
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ===== 내러티브 (문제 → 해법) ===== */
.narrative {
  padding: 56px 0;
}
.narrative-eyebrow {
  display: block;
  text-align: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.narrative-title {
  margin-bottom: 16px;
}
.narrative-lead {
  max-width: 620px;
  margin: 0 auto 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: clamp(15px, 2.2vw, 17px);
}
.symptom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
.symptom {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
}
.symptom h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}
.symptom p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}
.narrative--shift {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.shift-punch {
  max-width: 620px;
  margin: 22px auto 0;
  text-align: center;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  line-height: 1.4;
}
.shift-punch strong {
  color: var(--accent);
}
@media (min-width: 768px) {
  .symptom-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== 갤러리 ===== */
.gallery {
  padding: 24px 0 64px;
}
.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shot {
  position: relative;
  flex: 0 0 auto;
  width: 230px;
  aspect-ratio: 9 / 19;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot-placeholder {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}
.shot:not(.is-empty) .shot-placeholder {
  display: none;
}

/* ===== 최종 CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  padding: 64px 0;
}
.cta-inner {
  text-align: center;
  color: #fff;
}
.cta-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  margin: 0 0 10px;
}
.cta-sub {
  margin: 0 0 28px;
  opacity: 0.92;
  font-size: 16px;
}
.cta .store-buttons {
  justify-content: center;
}

/* ===== 푸터 ===== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .brand-icon {
  width: 28px;
  height: 28px;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 14px;
  color: var(--text-muted);
}
.footer-meta a:hover {
  color: var(--accent);
}
.copyright {
  font-size: 13px;
}

/* ===== 반응형 ===== */
@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .hero {
    padding: 80px 0 64px;
  }
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 520px) {
  .store-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-meta {
    align-items: flex-start;
  }
}
