/* ====== Mission Pay Landing - Static CSS ====== */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&display=swap");

:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --card: #ffffff;
  --brand: #3182f6;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;
  --brand-foreground: #ffffff;
  --accent-orange: #ff5f00;
  --kakao: #fee500;
  --success: #22c55e;
  --gradient-hero: linear-gradient(180deg, #f5f9ff 0%, #ffffff 70%);
  --gradient-brand: linear-gradient(135deg, #3182f6, #1d4ed8);
  --shadow-soft: 0 10px 40px -15px rgba(49, 130, 246, 0.45);
  --shadow-card: 0 4px 24px -8px rgba(15, 23, 42, 0.12);
  --radius: 14px;
}

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

html, body {
  font-family: "Pretendard", "Noto Sans KR", system-ui, -apple-system, sans-serif;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

/* ====== Layout ====== */
.container { max-width: 1152px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }

/* ====== Header ====== */
.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--gradient-brand);
  color: #fff; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.btn-nav {
  background: var(--foreground); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 8px 16px; border-radius: 999px;
}
.btn-nav:hover { opacity: 0.9; }

/* ====== Hero ====== */
.hero { background: var(--gradient-hero); overflow: hidden; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  /* Add horizontal padding for mobile to prevent sticking to edges */
  padding: 48px 20px; 
  align-items: center;
}
@media (min-width: 768px) {
  .hero-grid { 
    grid-template-columns: 1fr 1fr; 
    padding: 80px 0; /* Revert to vertical-only padding on desktop if container handles horizontal */
  }
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-orange); color: #fff;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 999px; background: #fff;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.hero-title {
  font-size: 2.2rem; font-weight: 900; line-height: 1.15; letter-spacing: -0.02em;
  margin-top: 24px;
}
.hero-title .highlight {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
.hero-sub {
  font-size: 1rem; color: var(--muted-foreground);
  margin-top: 24px; line-height: 1.6;
}
.hero-sub strong { color: var(--foreground); font-weight: 700; }
.hero-cta-row {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 28px; align-items: flex-start;
}
@media (min-width: 640px) {
  .hero-cta-row { flex-direction: row; align-items: center; }
}
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-orange); color: #fff;
  padding: 16px 28px; border-radius: 16px;
  font-size: 16px; font-weight: 700;
  box-shadow: var(--shadow-soft);
  animation: pulse-cta 2.2s ease-in-out infinite;
  transition: transform 0.2s;
}
.btn-cta:hover { transform: translateY(-2px); }
.btn-cta svg { transition: transform 0.2s; }
.btn-cta:hover svg { transform: translateX(4px); }
.cta-trust {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--muted-foreground);
}
.cta-trust svg { color: var(--success); }

.avatars { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.avatar-stack { display: flex; }

/* Update this selector to target images instead of divs, or add img specifically */
.avatar-stack > img {
  width: 32px; 
  height: 32px; 
  border-radius: 999px;
  border: 2px solid #fff; 
  margin-left: -8px;
  object-fit: cover; /* Ensures the image covers the circle without distortion */
  background-color: #eee; /* Fallback color if image fails to load */
}

.avatar-stack > img:first-child { 
  margin-left: 0; 
}

.avatar-stack > div {
  width: 32px; height: 32px; border-radius: 999px;
  border: 2px solid #fff; margin-left: -8px;
}
.avatar-stack > div:first-child { margin-left: 0; }
.stars { display: flex; align-items: center; gap: 2px; color: var(--accent-orange); font-size: 12px; }
.stars strong { color: var(--foreground); margin-left: 4px; }
.user-count { font-size: 12px; color: var(--muted-foreground); }

/* Phone Visual */
.phone-wrap {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.phone-glow {
  position: absolute; inset: 0; pointer-events: none;
}
.phone-glow::before {
  content: ""; position: absolute;
  left: 50%; top: 50%; width: 420px; height: 420px;
  transform: translate(-50%, -50%);
  background: rgba(49, 130, 246, 0.15);
  border-radius: 999px; filter: blur(80px);
}
.phone-img {
  position: relative; z-index: 10;
  width: 260px; height: auto;
  filter: drop-shadow(0 25px 30px rgba(0,0,0,0.25));
  animation: float 4s ease-in-out infinite;
}
@media (min-width: 768px) { .phone-img { width: 340px; } }
.notif {
  position: absolute; z-index: 20;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 10px;
  animation: float 4s ease-in-out infinite;
}
.notif-1 { left: -16px; top: 40px; animation-delay: 0.3s; }
.notif-2 { right: -8px; bottom: 64px; animation-delay: 0.8s; }
@media (min-width: 768px) {
  .notif-1 { left: -48px; }
  .notif-2 { right: -32px; }
}
.notif-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
}
.notif-icon.kakao { background: var(--kakao); color: #000; }
.notif-icon.toss { background: var(--brand); color: #fff; }
.notif-label { font-size: 10px; color: var(--muted-foreground); font-weight: 500; }
.notif-amount { font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums; }

/* ====== Marquee ====== */
.proof { background: rgba(239, 246, 255, 0.5); border-block: 1px solid var(--border); padding: 40px 0; }
.proof-head { text-align: center; }
.proof-label { font-size: 14px; color: var(--muted-foreground); font-weight: 500; }
.proof-title {
  margin-top: 8px; font-size: 1.5rem; font-weight: 900;
}
@media (min-width: 768px) { .proof-title { font-size: 1.875rem; } }
.proof-title .b { color: var(--brand); }

.marquee { margin-top: 32px; overflow: hidden; }
.marquee-track {
  display: flex; gap: 12px; width: max-content;
  animation: marquee 30s linear infinite;
}
.chip {
  display: inline-flex; align-items: center; gap: 12px;
  white-space: nowrap;
  border: 1px solid var(--border); background: #fff;
  padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  font-size: 14px;
}
.chip-check {
  width: 16px; height: 16px; border-radius: 999px;
  background: var(--success); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
}
.chip-name { font-weight: 600; }
.chip-phone { font-size: 12px; color: var(--muted-foreground); }
.chip-amount { font-weight: 700; color: var(--brand); }
.chip-status { font-size: 12px; color: var(--muted-foreground); }

/* ====== Sections shared ====== */
.section-head { text-align: center; margin-bottom: 48px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--brand); }
.section-title { margin-top: 12px; font-size: 1.875rem; font-weight: 900; }
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }

/* ====== Features ====== */
.grid-3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  border: 1px solid var(--border); background: var(--card);
  border-radius: 24px; padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.25rem; font-weight: 900; }
.feature-card p { margin-top: 8px; font-size: 14px; color: var(--muted-foreground); line-height: 1.6; }

/* ====== Steps ====== */
.steps { background: rgba(239, 246, 255, 0.5); }
.step {
  position: relative; background: #fff;
  border-radius: 24px; padding: 32px;
  box-shadow: var(--shadow-card);
}
.step-num { font-size: 3rem; font-weight: 900; color: rgba(49, 130, 246, 0.15); line-height: 1; }
.step h3 { margin-top: 8px; font-size: 1.25rem; font-weight: 900; }
.step p { margin-top: 8px; font-size: 14px; color: var(--muted-foreground); }
.step-arrow {
  position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  color: rgba(49, 130, 246, 0.4); display: none;
}
@media (min-width: 768px) {
  .step:not(:last-child) .step-arrow { display: block; }
}
.pay-trust {
  margin-top: 48px; display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}
.pay-trust-label { font-size: 12px; color: var(--muted-foreground); font-weight: 500; }
.pay-badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.pay-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 12px;
  font-weight: 900; box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.pay-badge.kakao { background: var(--kakao); color: #000; }
.pay-badge.toss { background: var(--brand); color: #fff; }
.pay-badge.bank { background: #fff; border: 1px solid var(--border); }

/* ====== Testimonials ====== */
.grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.testimonial {
  border: 1px solid var(--border); background: var(--card);
  border-radius: 24px; padding: 32px;
  box-shadow: var(--shadow-card);
}
.t-stars { display: flex; gap: 2px; color: var(--accent-orange); margin-bottom: 16px; }
.t-quote { font-size: 1rem; line-height: 1.7; }
.t-foot {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.t-person { display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--gradient-brand); }
.t-name { font-size: 14px; font-weight: 700; }
.t-age { font-size: 12px; color: var(--muted-foreground); }
.t-tag {
  background: rgba(34, 197, 94, 0.15); color: var(--success);
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}

/* ====== Final CTA ====== */
.final {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #1e1b4b 0%, #1e293b 100%);
  padding: 80px 0;
}
.final::before, .final::after {
  content: ""; position: absolute; width: 320px; height: 320px;
  border-radius: 999px; filter: blur(80px); opacity: 0.3;
}
.final::before { background: var(--brand); left: -80px; top: 0; }
.final::after { background: var(--accent-orange); right: -80px; bottom: 0; }
.final-inner { position: relative; max-width: 640px; margin: 0 auto; padding: 0 20px; text-align: center; }
.final-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-orange); color: #fff;
  padding: 6px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.final h2 {
  margin-top: 20px; font-size: 1.875rem; font-weight: 900; line-height: 1.2;
}
@media (min-width: 768px) { .final h2 { font-size: 3rem; } }
.final h2 .seats { color: var(--accent-orange); }
.final-sub { margin-top: 16px; color: rgba(255,255,255,0.7); }
.final-sub strong { color: #fff; font-weight: 700; }

.form {
  max-width: 420px; margin: 40px auto 0;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px; border-radius: 24px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.form input {
  width: 100%; padding: 14px 16px;
  border-radius: 12px; border: none;
  background: rgba(255,255,255,0.1); color: #fff;
  font-size: 14px; outline: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
  transition: box-shadow 0.2s;
}
.form input::placeholder { color: rgba(255,255,255,0.5); }
.form input:focus { box-shadow: inset 0 0 0 2px var(--accent-orange); }
.form button {
  width: 100%; padding: 16px;
  background: var(--accent-orange); color: #fff;
  font-size: 16px; font-weight: 900;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: var(--shadow-soft);
  animation: pulse-cta 2.2s ease-in-out infinite;
}
.form-note {
  padding-top: 4px; font-size: 11px; color: rgba(255,255,255,0.5);
}

/* ====== Footer ====== */
.footer {
  border-top: 1px solid var(--border); background: #fff;
  padding: 32px 0; font-size: 12px; color: var(--muted-foreground);
}
.footer-inner {
  display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: space-between;
}
@media (min-width: 768px) { .footer-inner { flex-direction: row; } }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--foreground); }

/* ====== Animations ====== */
@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 95, 0, 0.55); }
  50% { box-shadow: 0 0 0 18px rgba(255, 95, 0, 0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.7s ease-out both; }
