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

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #EFF6FF;
  --purple: #7C3AED;
  --purple-dark: #5B21B6;
  --teal: #0F766E;
  --bg: #F6F7FB;
  --surface: #FFFFFF;
  --text: #111827;
  --sub: #6B7280;
  --success: #059669;
  --warning: #D97706;
  --danger: #DC2626;
  --border: #E5E7EB;
  --radius-card: 18px;
  --radius-modal: 22px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hero: 0 20px 60px rgba(37,99,235,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--text); }
.nav-dl-btn {
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.2s;
}
.nav-dl-btn:hover { background: var(--primary-dark); }

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, #EFF6FF 0%, #F5F3FF 50%, #F0FDF4 100%);
  padding: 60px 20px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  border: 1px solid rgba(37,99,235,0.2);
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.hero h1 {
  font-size: clamp(28px, 8vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 14px;
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
}
.hero-sub {
  font-size: 17px;
  color: var(--sub);
  line-height: 1.65;
  max-width: 320px;
  margin: 0 auto 28px;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  min-height: 56px;
  transition: background 0.2s, transform 0.15s;
  box-shadow: var(--shadow-hero);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.97); }
.btn-ghost {
  font-size: 14px;
  color: var(--sub);
}
.hero-phone {
  margin-top: 36px;
  position: relative;
  display: inline-block;
}
.phone-frame {
  width: 200px;
  background: var(--surface);
  border-radius: 28px;
  border: 2px solid var(--border);
  padding: 16px 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
  margin: 0 auto;
}
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 4px;
}
.phone-time { font-size: 11px; font-weight: 600; }
.phone-icons { font-size: 10px; color: var(--sub); }
.phone-notif {
  background: var(--primary-light);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.notif-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.notif-icon {
  width: 22px; height: 22px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}
.notif-app { font-size: 10px; font-weight: 700; color: var(--primary); }
.notif-time { font-size: 9px; color: var(--sub); margin-left: auto; }
.notif-title { font-size: 11px; font-weight: 700; color: var(--text); }
.notif-body {
  font-size: 10px;
  color: var(--sub);
  margin-top: 2px;
  line-height: 1.4;
  overflow-wrap: break-word;
}
.phone-msg {
  background: #F0FDF4;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(5,150,105,0.2);
}
.msg-label { font-size: 9px; color: var(--success); font-weight: 700; margin-bottom: 3px; }
.msg-text {
  font-size: 10px;
  color: var(--text);
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── SECTION COMMON ── */
section { padding: 56px 20px; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 10px;
}
.section-desc {
  font-size: 15px;
  color: var(--sub);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* ── PAIN → SOLUTION ── */
.pain-section { background: var(--surface); }
.pain-card {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-card);
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.pain-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.pain-title { font-size: 15px; font-weight: 700; color: #991B1B; margin-bottom: 4px; }
.pain-body { font-size: 14px; color: #7F1D1D; line-height: 1.5; }
.arrow-divider {
  text-align: center;
  font-size: 28px;
  padding: 8px 0;
  color: var(--primary);
}
.solution-card {
  background: #F0FDF4;
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-card);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.solution-title { font-size: 15px; font-weight: 700; color: #065F46; margin-bottom: 4px; }
.solution-body { font-size: 14px; color: #064E3B; line-height: 1.5; }

/* ── SCENARIOS ── */
.scenarios-section { background: var(--bg); }
.scenario-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.scenario-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.scenario-card.missed::before { background: var(--primary); }
.scenario-card.ended::before  { background: var(--purple); }
.scenario-card.after::before  { background: var(--teal); }
.scenario-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.chip-missed { background: rgba(37,99,235,0.1);  color: var(--primary); }
.chip-ended  { background: rgba(124,58,237,0.1); color: var(--purple); }
.chip-after  { background: rgba(15,118,110,0.1); color: var(--teal); }
.scenario-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.scenario-scene { font-size: 13px; color: var(--sub); margin-bottom: 14px; line-height: 1.5; }
.message-bubble {
  background: var(--bg);
  border-radius: 4px 14px 14px 14px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  position: relative;
}
.message-bubble::before {
  content: 'Namgira 자동 문자';
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--sub);
  margin-bottom: 5px;
}
.message-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--sub);
  background: rgba(107,114,128,0.1);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* ── HOW IT WORKS ── */
.how-section { background: var(--surface); }
.step-list { display: flex; flex-direction: column; gap: 0; }
.step-item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 28px;
}
.step-item:last-child { padding-bottom: 0; }
.step-item:last-child .step-line { display: none; }
.step-num-wrap { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.step-num {
  width: 40px; height: 40px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--primary) 0%, transparent 100%);
  margin-top: 6px;
  opacity: 0.25;
}
.step-content { padding-top: 6px; }
.step-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.step-desc { font-size: 14px; color: var(--sub); line-height: 1.6; }

/* ── TARGET ── */
.target-section { background: var(--bg); }
.target-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.target-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.target-emoji { font-size: 26px; margin-bottom: 6px; }
.target-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.target-desc { font-size: 12px; color: var(--sub); line-height: 1.45; }

/* ── PLANS ── */
.plans-section { background: var(--surface); }
.plan-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-modal);
  padding: 24px 20px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.plan-card.featured      { border-color: var(--primary); background: #FAFCFF; }
.plan-card.premium-card  { border-color: var(--purple);  background: #FDFAFF; }
.plan-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.badge-free     { background: #F3F4F6; color: var(--sub); }
.badge-standard { background: var(--primary-light); color: var(--primary); }
.badge-premium  { background: rgba(124,58,237,0.1); color: var(--purple); }
.plan-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.plan-price {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.plan-price sub { font-size: 14px; font-weight: 500; color: var(--sub); }
.plan-tagline { font-size: 13px; color: var(--sub); margin-bottom: 16px; line-height: 1.5; }
.plan-features { list-style: none; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.plan-features li:last-child { border-bottom: none; }
.feat-check { font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.plan-gradient-free { background: linear-gradient(135deg, #6B7280, #4B5563); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.plan-gradient-std  { background: linear-gradient(135deg, #2563EB, #1D4ED8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.plan-gradient-prem { background: linear-gradient(135deg, #7C3AED, #5B21B6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── STATS ── */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 52px 20px;
  text-align: center;
  color: #fff;
}
.stats-section .section-title { color: #fff; }
.stats-section .section-desc  { color: rgba(255,255,255,0.75); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.stat-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-card);
  padding: 18px 14px;
  backdrop-filter: blur(4px);
}
.stat-num   { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -0.03em; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.8); line-height: 1.45; }

/* ── FILTER FEATURES ── */
.filter-section { background: var(--bg); }
.filter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
}
.filter-card.filter-featured {
  background: linear-gradient(135deg, #EFF6FF, #F5F3FF);
  border-color: rgba(37,99,235,0.2);
}
.filter-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.fi-blue   { background: rgba(37,99,235,0.1); }
.fi-green  { background: rgba(5,150,105,0.1); }
.fi-purple { background: rgba(124,58,237,0.1); }
.fi-orange { background: rgba(217,119,6,0.1); }
.filter-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.filter-card.filter-featured .filter-title { color: var(--primary); }
.filter-desc { font-size: 13px; color: var(--sub); line-height: 1.5; }

/* ── FAQ ── */
.faq-section { background: var(--surface); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.45;
}
.faq-arrow { font-size: 16px; color: var(--sub); transition: transform 0.25s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding-bottom: 16px;
  font-size: 14px;
  color: var(--sub);
  line-height: 1.65;
}
.faq-item.open .faq-answer { display: block; }

/* ── CTA BOTTOM ── */
.cta-section {
  background: linear-gradient(160deg, #F5F3FF 0%, #EFF6FF 100%);
  padding: 60px 20px;
  text-align: center;
}
.cta-section .section-title { margin-bottom: 14px; }
.cta-section .section-desc  { margin-bottom: 32px; max-width: 300px; margin-left: auto; margin-right: auto; }
.dl-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-modal);
  padding: 24px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.dl-label { font-size: 12px; font-weight: 700; color: var(--sub); letter-spacing: 0.06em; margin-bottom: 10px; }
.dl-row   { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.apk-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}
.dl-name { font-size: 16px; font-weight: 700; color: var(--text); }
.dl-size { font-size: 13px; color: var(--sub); }
.btn-dl {
  width: 100%;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 15px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-dl:hover { background: var(--primary-dark); }
.free-notice {
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
}
.install-guide {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.7;
}

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 36px 20px;
  font-size: 13px;
  line-height: 1.7;
}
.footer-logo { color: #fff; font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.footer-desc { margin-bottom: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; font-size: 12px; }
.footer-link { color: rgba(255,255,255,0.4); text-decoration: none; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up  { animation: fadeUp 0.55s ease both; }
.delay-1  { animation-delay: 0.1s; }
.delay-2  { animation-delay: 0.2s; }
.delay-3  { animation-delay: 0.3s; }
.delay-4  { animation-delay: 0.45s; }
