/* ============================================
   STYLE CSS — NanuPay Landing Page
   ============================================ */

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --navy-dark: #0a1628;
  --navy-mid: #0d2144;
  --navy-light: #162b4d;
  --blue-accent: #1a56db;
  --blue-light: #3b82f6;
  --gold: #f5a623;
  --white: #ffffff;
  --text-on-dark: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.55);
  --section-bg: #f4f6fb;
  --card-glass: rgba(255, 255, 255, 0.07);
  --card-border: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.14);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 0.28s ease;
  --container: 1200px;
  --header-h: 72px;
}

/* ============================================
   GLOBAL
   ============================================ */
body {
  font-family:
    'Noto Sans KR',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: var(--white);
  color: var(--navy-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.pc-br {
  display: inline;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  transition:
    background var(--transition),
    box-shadow var(--transition);
}

.header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 36px;
}

/* Logo */
.logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  img {
    height: 22px;
  }
}
.logo-nanu {
  color: var(--navy-dark);
}
.logo-pay {
  color: var(--gold);
}

/* Nav */
.nav {
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  color: rgba(10, 22, 40, 0.65);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition:
    color var(--transition),
    background var(--transition);
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--navy-dark);
  background: rgba(10, 22, 40, 0.06);
}

.nav-link.is-active {
  color: #1e5ed9;
  background: transparent;
  position: relative;
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -17px;
  height: 2px;
  background: #1e5ed9;
  border-radius: 999px;
}

/* Visa badge in header */
.header-visa {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  white-space: nowrap;
}
.powered-by {
  font-size: 11px;
  color: rgba(10, 22, 40, 0.45);
  letter-spacing: 0.3px;
}
.visa-logo {
  display: inline-block;
  width: 40px;
  height: 23px;
  filter: brightness(0) invert(0);
  opacity: 0.6;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  margin-left: auto;
  cursor: pointer;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-dark);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}
.hamburger.active span:nth-child(1),
.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2),
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3),
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hamburger {
  display: none;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: auto;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 20%,
      rgba(26, 86, 219, 0.14) 0%,
      transparent 70%
    ),
    linear-gradient(160deg, #060e1a 0%, #0a1628 35%, #0d2144 65%, #07111f 100%);
  background: url('./../img/hero-bg.jpg') no-repeat center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

/* subtle bottom separator */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 80px 0 100px;
}

/* ---- Left: text content ---- */
.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 86, 219, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #60a5fa;
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.hero-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.22;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  word-break: keep-all;
}

.text-highlight {
  color: var(--gold);
}

.hero-desc {
  font-size: 16px;
  color: var(--text-on-dark);
  line-height: 1.6;
  margin-bottom: 40px;
  word-break: keep-all;
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: stretch;
  background: var(--card-glass);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 560px;
}

.stat-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 20px;
}
.stat-card:first-child {
  padding-left: 0;
}
.stat-card:last-child {
  padding-right: 0;
}

.stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-value {
  font-size: 18px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-value em {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-on-dark);
}

.stat-value--sm {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.stat-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* ---- Right: visual ---- */
.hero-visual {
  flex: 0 0 auto;
  width: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Large decorative 0% */
.hero-zero-percent {
  position: absolute;
  top: -10px;
  right: -10px;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
  text-align: center;
}
.zero-num {
  display: inline;
  font-size: 170px;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.13;
  letter-spacing: -6px;
  line-height: 0.9;
}
.zero-percent-sign {
  font-size: 100px;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.13;
}
.zero-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.2;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ---- CSS Credit Card ---- */
.credit-card {
  position: relative;
  z-index: 1;
  width: 340px;
  height: 215px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    #f8e7bc 0%,
    #dfb55a 38%,
    #b67c1b 68%,
    #f3d48b 100%
  );
  padding: 26px 28px;
  box-shadow:
    0 34px 68px rgba(36, 20, 4, 0.42),
    0 0 0 1px rgba(255, 244, 214, 0.72),
    inset 0 1px 0 rgba(255, 248, 230, 0.92);
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease;
  overflow: hidden;
}
.credit-card:hover {
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) scale(1.03);
  box-shadow:
    0 44px 82px rgba(36, 20, 4, 0.5),
    0 0 0 1px rgba(255, 248, 224, 0.82),
    inset 0 1px 0 rgba(255, 250, 236, 0.98);
}

/* glow blobs inside card */
.credit-card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 248, 220, 0.55) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.credit-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -5%;
  width: 260px;
  height: 260px;
  background: radial-gradient(
    circle,
    rgba(124, 76, 16, 0.2) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      110deg,
      rgba(255, 250, 236, 0.12) 0px,
      rgba(255, 250, 236, 0.12) 1px,
      rgba(139, 96, 26, 0.06) 1px,
      rgba(139, 96, 26, 0.06) 3px
    ),
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0) 45%
    );
  opacity: 0.45;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Chip */
.card-chip {
  width: 44px;
  height: 33px;
  background: linear-gradient(
    135deg,
    #c9a227 0%,
    #f0ce6c 40%,
    #c9a227 70%,
    #a07b0f 100%
  );
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}
.card-chip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.22);
  transform: translateY(-50%);
}
.card-chip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.22);
  transform: translateX(-50%);
}
.chip-lines {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 3px;
}

/* Contactless icon */
.card-contactless svg {
  opacity: 0.55;
}

/* Card number */
.card-number {
  font-size: 15px;
  letter-spacing: 4px;
  color: rgba(57, 34, 7, 0.82);
  font-family: 'Courier New', 'Courier', monospace;
  font-weight: 600;
}

/* Card bottom */
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.card-holder {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.card-label {
  font-size: 8px;
  color: rgba(70, 42, 8, 0.58);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.card-name {
  font-size: 12px;
  color: rgba(57, 34, 7, 0.88);
  letter-spacing: 1.8px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Visa wordmark */
.visa-text {
  display: inline-block;
  width: 71px;
  height: 23px;
  filter: none;
  opacity: 1;
}

/* Floating animation */
@keyframes float {
  0%,
  100% {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) translateY(0);
  }
  50% {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg)
      translateY(-10px);
  }
}
.credit-card.floating {
  animation: float 4s ease-in-out infinite;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-it-works {
  background: var(--white);
  padding: 80px 0 100px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: var(--blue-accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #0d1a2e;
  line-height: 1.25;
  letter-spacing: -0.8px;
  word-break: keep-all;
}

/* Steps row */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.step-item {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  background: none;
  border: none;
  box-shadow: none;
  min-height: auto;
}

.step-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.step-icon {
  width: 96px;
  height: 96px;
  background: #edf0f8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e54d4;
}
.step-img-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.step-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.step-badge-num {
  width: 32px;
  height: 32px;
  background: #385cc7;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.step-text-wrap {
  flex: 1;
}

.step-title {
  color: #0d1a2e;
  margin-bottom: 10px;
  line-height: 1.35;
  letter-spacing: -0.2px;
  font-size: 15px;
  font-weight: 700;
  height: auto;
  word-break: keep-all;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-desc {
  font-size: 14px;
  color: #6b7a99;
  word-break: keep-all;
  line-height: 1.6;
}

/* Dashed connector arrow between steps */
.step-connector {
  flex: 0 0 72px;
  position: relative;
  align-self: flex-start;
  margin-top: 48px; /* center of 96px icon */
}
/* .step-connector::before {
  content: '';
  display: block;
  height: 2px;
  width: calc(100% - 12px);
  background: repeating-linear-gradient(
    to right,
    #9ab5e0 0,
    #9ab5e0 7px,
    transparent 7px,
    transparent 13px
  );
}
.step-connector::after {
  content: '';
  position: absolute;
  right: 0;
  top: -5px;
  border: 6px solid transparent;
  border-left-color: #9ab5e0;
} */

/* ============================================
   BENEFITS
   ============================================ */
.benefits {
  background: var(--section-bg);
  padding: 80px 0 100px;
}

/* Single-row card bar (image reference) */
.benefits-bar {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid #e5e9f2;
  box-shadow: 0 4px 24px rgba(26, 86, 219, 0.07);
  overflow: hidden;
}

.benefit-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 36px 32px;
  transition: background var(--transition);
}

.benefit-divider {
  width: 1px;
  background: #e5e9f2;
  align-self: stretch;
  margin: 20px 0;
}

.benefit-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-zero-text {
  font-size: 26px;
  font-weight: 900;
  color: #1a56db;
  line-height: 1;
  letter-spacing: -1px;
}

.benefit-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a56db;
  margin-bottom: 6px;
  line-height: 1.4;
}
.benefit-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.65;
  word-break: keep-all;
}

/* ============================================
   PARTICIPATING MERCHANT
   ============================================ */
.merchant-section {
  background: linear-gradient(180deg, #f7faff 0%, #eef3fb 100%);
  padding: 84px 0 100px;
}

.merchant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.merchant-card {
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e8edf7;
  box-shadow:
    0 6px 18px rgba(22, 39, 74, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.merchant-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 14px 32px rgba(22, 39, 74, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.merchant-thumb {
  aspect-ratio: 1.6 / 1;
  overflow: hidden;
  background: #f1f4fb;
}

.merchant-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.merchant-meta {
  padding: 16px 16px 18px;
}

.merchant-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.2px;
  /* color: #122d62; */
  color: #000000;
  margin: 4px 0 0;
}

.merchant-category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #5c739d;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  background: #f9fbff;
  padding: 80px 0 100px;
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid #dde5f3;
}

.faq-item {
  border-bottom: 1px solid #dde5f3;
}

.faq-question-wrap {
  margin: 0;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding: 20px 8px;
  font-weight: 700;
  color: var(--navy-dark);
  cursor: pointer;
  font-size: 16px;
}

.faq-icon {
  font-size: 28px;
  line-height: 1;
  color: #1a56db;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.faq-answer {
  padding: 0 8px 24px;
}

.faq-answer p {
  font-size: 16px;
  line-height: 1.75;
  color: #5b6578;
  max-width: 860px;
}

.faq-support {
  margin: 44px auto 0;
  max-width: 920px;
  background: #edf1f6;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
}

.faq-support-title {
  font-size: 24px;
  font-weight: 700;
  color: #122951;
  line-height: 1.25;
  margin-bottom: 8px;
}

.faq-support-desc {
  font-size: 14px;
  color: #60708d;
  line-height: 1.6;
}

.faq-support-actions {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.faq-support-btn {
  height: 44px;
  padding: 0 30px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.faq-support-btn--primary {
  background: #1e5ed9;
  border: 1px solid #1e5ed9;
  color: #ffffff;
}

.faq-support-btn--primary:hover {
  background: #1a52bf;
  border-color: #1a52bf;
}

.faq-support-btn--ghost {
  background: transparent;
  border: 1px solid #1e5ed9;
  color: #1e5ed9;
}

.faq-support-btn--ghost:hover {
  background: rgba(30, 94, 217, 0.08);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #f7f7f7;
  border-top: 1px solid rgba(10, 22, 40, 0.1);
  padding: 56px 0 24px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-logo {
  flex: 1;
  min-width: 160px;
}
.footer-tagline {
  font-size: 13px;
  color: rgba(10, 22, 40, 0.45);
  margin-top: 8px;
  line-height: 1.6;
  word-break: keep-all;
}

.footer-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px;
  color: rgba(10, 22, 40, 0.55);
  transition: color var(--transition);
  white-space: nowrap;
}
.footer-links a:hover {
  color: var(--navy-dark);
}

.footer-visa {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(10, 22, 40, 0.4);
  flex-shrink: 0;
}
.visa-logo--sm {
  width: 50px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(10, 22, 40, 0.1);
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p {
  font-size: 12.5px;
  color: rgba(10, 22, 40, 0.35);
}

/* ============================================
   SCROLL ANIMATION
   ============================================ */
.animate-fade {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.animate-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger delays — steps (connector divs sit at positions 2,4,6) */
.steps .step-item:nth-child(1) {
  transition-delay: 0s;
}
.steps .step-item:nth-child(3) {
  transition-delay: 0.08s;
}
.steps .step-item:nth-child(5) {
  transition-delay: 0.15s;
}
.steps .step-item:nth-child(7) {
  transition-delay: 0.22s;
}

/* stagger — benefits bar fade-in */
.benefits-bar.animate-fade {
  transition-delay: 0.1s;
}

/* stagger — merchant cards */
.merchant-grid .merchant-card:nth-child(1) {
  transition-delay: 0s;
}

.merchant-grid .merchant-card:nth-child(2) {
  transition-delay: 0.08s;
}

.merchant-grid .merchant-card:nth-child(3) {
  transition-delay: 0.16s;
}

/* ============================================
   RESPONSIVE — Tablet (≤ 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 36px;
  }
  .hero-visual {
    width: 360px;
  }

  .credit-card {
    width: 300px;
    height: 190px;
    padding: 22px 24px;
  }
  .zero-num {
    font-size: 140px;
  }
  .zero-percent-sign {
    font-size: 80px;
  }

  /* Steps: 2×2 grid on tablet */
  .steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }
  .step-connector {
    display: none;
  }
  .step-item {
    padding: 0 8px;
  }
  .step-title {
    font-size: 15px;
  }
  .step-icon {
    width: 80px;
    height: 80px;
  }
  .step-img-icon {
    width: 44px;
    height: 44px;
  }
  .step-connector {
    display: none;
  }

  .benefit-item {
    padding: 28px 20px;
  }

  .merchant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .merchant-title {
    font-size: 18px;
  }

  .footer-inner {
    gap: 32px;
  }
}

/* ============================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .container {
    padding: 0 20px;
  }

  /* Header: show hamburger */
  .hamburger {
    display: flex;
    position: relative;
    z-index: 1001;
  }
  .header-visa {
    display: none;
  }

  /* Mobile nav drawer */
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    padding: 12px 20px 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform var(--transition),
      opacity var(--transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
	.nav.open,
	.nav.is-open {
	  transform: translateY(0);
	  opacity: 1;
	  pointer-events: all;
	}
  .nav-list {
    flex-direction: column;
    gap: 2px;
  }
  .nav-link {
    display: block;
    padding: 13px 16px;
    font-size: 15px;    
    
    color: #ffffff !important;
  }

  /* Hero: stack vertically */
  .hero-inner {
    flex-direction: column;
    padding: 60px 0 60px;
    gap: 48px;
  }
  .hero-title {
    font-size: 28px;
  }
  .pc-br {
    display: none;
  }

  .hero-stats {
    flex-direction: column;
    max-width: 100%;
    padding: 16px 20px;
    gap: 0;
  }
  .stat-card {
    padding: 14px 0;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .stat-card:first-child {
    padding-top: 0;
  }
  .stat-card:last-child {
    padding-bottom: 0;
  }
  .stat-divider {
    width: 100%;
    height: 1px;
  }
  .stat-label {
    min-width: 90px;
    flex-shrink: 0;
  }

  .hero-visual {
    width: 100%;
  }

  .credit-card {
    width: 300px;
    height: 190px;
    padding: 22px 24px;
  }
  .zero-num {
    font-size: 130px;
  }
  .zero-percent-sign {
    font-size: 70px;
  }

  /* Benefits */
  .benefits {
    padding: 64px 0;
  }
  .benefits-bar {
    flex-wrap: wrap;
    border-radius: var(--radius-md);
  }
  .benefit-item {
    flex: 1 1 calc(50% - 1px);
    padding: 28px 24px;
  }
  .benefit-divider:nth-child(4) {
    display: none;
  }
  .benefit-divider {
    width: 1px;
    margin: 16px 0;
  }

  /* Participating Merchant */
  .merchant-section {
    padding: 72px 0 80px;
  }

  .merchant-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .merchant-title {
    font-size: 16px;
  }

  /* FAQ */
  .faq {
    padding: 72px 0 80px;
  }
  .faq-question {
    font-size: 17px;
    padding: 20px 4px;
  }
  .faq-answer {
    padding: 0 4px 20px;
  }
  .faq-answer p {
    font-size: 14px;
    line-height: 1.7;
  }

  .faq-support {
    margin-top: 34px;
    border-radius: 10px;
    padding: 26px 16px;
  }
  .faq-support-title {
    font-size: 22px;
  }
  .faq-support-desc {
    font-size: 13px;
  }
  .faq-support-actions {
    margin-top: 16px;
    gap: 10px;
    width: 100%;
  }
  .faq-support-btn {
    min-width: 132px;
    height: 42px;
    font-size: 16px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }
  .footer-links {
    gap: 16px;
  }
}


/* ============================================
   NAV ACTIVE STATE FIX
   - include로 삽입된 header 메뉴에도 active 표시 적용
   ============================================ */
.nav-link.active,
.nav-link.is-active {
  color: #1e5ed9;
  background: transparent;
  position: relative;
}

.nav-link.active::after,
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -17px;
  height: 2px;
  background: #1e5ed9;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .nav-link.active,
  .nav-link.is-active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 700;
  }

  .nav-link.active::after,
  .nav-link.is-active::after {
    display: none;
  }
}
