:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --accent: #06b6d4;
  --merchant: #b45309;
  --merchant-dark: #92400e;
  --merchant-accent: #f59e0b;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 40px -10px rgba(180, 83, 9, 0.25);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  padding-top: 8px;
}

.breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-current] { color: rgba(255,255,255,0.9); font-weight: 600; }

/* ── HERO ── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  color: #fff;
  padding: 40px 24px 56px;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(180, 83, 9, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  animation: float 20s infinite linear;
}

.hero-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 30%; top: 60%; animation-delay: -4s; width: 6px; height: 6px; }
.hero-particles span:nth-child(3) { left: 50%; top: 30%; animation-delay: -8s; }
.hero-particles span:nth-child(4) { left: 70%; top: 70%; animation-delay: -12s; width: 3px; height: 3px; }
.hero-particles span:nth-child(5) { left: 85%; top: 15%; animation-delay: -16s; }
.hero-particles span:nth-child(6) { left: 15%; top: 80%; animation-delay: -6s; width: 5px; height: 5px; }
.hero-particles span:nth-child(7) { left: 60%; top: 10%; animation-delay: -10s; }
.hero-particles span:nth-child(8) { left: 40%; top: 85%; animation-delay: -14s; width: 7px; height: 7px; }

@keyframes float {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 20px 0 24px;
  position: relative;
  z-index: 1;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--merchant-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  50% { opacity: 0.8; transform: scale(1.1); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #fff 0%, #fde68a 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero .subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.hero-cta {
  margin-top: 32px;
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-cta .btn-primary {
  background: linear-gradient(135deg, var(--merchant), var(--merchant-accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.4);
}

.hero-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(180, 83, 9, 0.5);
}

.hero-cta .btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}

.hero-cta .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}

/* ── WAVE DIVIDER ── */
.wave-divider { position: relative; margin-top: -1px; }
.wave-divider svg { display: block; width: 100%; height: auto; }

/* ── MAIN CONTENT ── */
main { max-width: 1100px; margin: 0 auto; padding: 16px 24px 48px; }
section { margin-bottom: 36px; }

/* ── SECTION HEADER ── */
.section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }

.section-header .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.icon-purple { background: linear-gradient(135deg, #ede9fe, #e0e7ff); }
.icon-green  { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.icon-blue   { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.icon-yellow { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.icon-amber  { background: linear-gradient(135deg, #fef3c7, #fed7aa); }

.section-header h2 { font-size: 22px; font-weight: 700; margin: 0; color: var(--text); }
.section-header p { margin: 2px 0 0; color: var(--text-muted); font-size: 14px; }
.section-header h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: var(--text); }

/* ── VALUE STATEMENT ── */
.value-statement {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-left: 4px solid var(--merchant);
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--merchant-dark);
  margin: 4px 0 20px;
}

/* ── IDEAL FOR / CHIP GRID ── */
.ideal-grid { display: flex; flex-wrap: wrap; gap: 12px; }

.ideal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fcd34d;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--merchant-dark);
  transition: all 0.3s ease;
}

.ideal-tag:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--merchant); }

.ideal-tag .check {
  width: 18px;
  height: 18px;
  background: var(--merchant);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* ── AUDIENCE GRID (Who is it for) ── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.audience-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.3s ease;
}

.audience-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--merchant);
}

.audience-item .icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.audience-item h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--text); }
.audience-item p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ── PROBLEM LIST ── */
.problem-intro { font-size: 15px; color: var(--text-muted); max-width: 760px; margin: 0 0 18px; }

.problem-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px 24px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.problem-list li {
  font-size: 14px;
  color: var(--text);
  padding: 10px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  gap: 8px;
}

.problem-list li::before { content: '❝'; color: var(--merchant-accent); font-weight: 700; }

.problem-resolve {
  font-size: 15px;
  font-weight: 700;
  color: var(--merchant-dark);
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-left: 4px solid var(--merchant);
  padding: 12px 18px;
  border-radius: 8px;
  margin: 0;
}

/* ── FLOW STEPS (How it works) ── */
.flow-steps {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}

.flow-step {
  flex: 1 1 200px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.flow-step .flow-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--merchant), var(--merchant-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin: 0 auto 10px;
}

.flow-step h3 { font-size: 14px; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.flow-step p { font-size: 13px; color: var(--text-muted); margin: 0; }

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-muted);
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .flow-steps { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); padding: 4px 0; }
}

/* ── CAPABILITY CARDS (What Merchants Can Ask) ── */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.capability-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--merchant), var(--merchant-accent));
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: left;
}

.capability-card:hover,
.capability-card:focus-within,
.capability-card:focus-visible,
.capability-card.is-active {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: transparent;
}

.capability-card:hover::before,
.capability-card:focus-within::before,
.capability-card:focus-visible::before,
.capability-card.is-active::before { transform: scaleX(1); }

.capability-card:focus-visible { outline: 2px solid var(--merchant); outline-offset: 2px; }

.card-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--merchant), var(--merchant-dark));
  color: #fff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 14px;
  z-index: 2;
}

.capability-card:hover .card-hover,
.capability-card:focus-within .card-hover,
.capability-card.is-active .card-hover { opacity: 1; transform: translateY(0); }

.card-hover h4 { font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.card-hover ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.card-hover li { font-size: 13px; display: flex; align-items: center; gap: 6px; line-height: 1.4; }
.card-hover li::before { content: '›'; font-weight: 700; font-size: 14px; color: #fde68a; }

.capability-card .icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.capability-card h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--text); }
.capability-card p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ── EXAMPLE QUESTIONS ── */
.questions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 8px;
}

.question-bubble {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  transition: all 0.3s ease;
}

.question-bubble:hover { transform: translateX(8px); box-shadow: var(--shadow); border-color: var(--merchant-accent); }

.question-bubble .q-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--merchant-accent), var(--merchant));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.question-bubble p { margin: 0; font-size: 14px; color: var(--text); font-weight: 500; padding-top: 4px; }

/* ── EXAMPLE INSIGHT / ANSWER ── */
.insight-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

.insight-example {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.insight-question {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--merchant-dark);
  background: #fef3c7;
  padding: 8px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.insight-answer {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  background: #fbfbff;
  border-left: 3px solid var(--merchant-accent);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 0;
}

.insight-disclaimer { font-size: 12px; color: var(--text-muted); font-style: italic; margin: 0; }

/* ── INTEGRATION FLOW ── */
.integration-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.integration-flow .flow-node {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.integration-flow .flow-sep { color: var(--text-muted); font-size: 16px; }

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }

.chip-list span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: #f1f5f9;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
}

/* ── EMPHASIZED LIST ── */
.emphasis-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.emphasis-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.emphasis-list li::before {
  content: '✓';
  color: #fff;
  background: var(--merchant);
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-top: 2px;
}

/* ── WHY GRID ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.why-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), var(--shadow-glow); border-color: var(--merchant); }

.why-item .icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.why-item h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--text); }
.why-item p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ── CTA ── */
.cta-section {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: 16px;
}

.cta-section h2 { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.cta-section p { font-size: 14px; color: var(--text-muted); margin: 0 0 16px; }

.cta-buttons { display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-btn-primary {
  background: linear-gradient(135deg, var(--merchant), var(--merchant-accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.4);
}

.cta-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(180, 83, 9, 0.5); }

.cta-btn-secondary {
  background: rgba(180, 83, 9, 0.08);
  color: var(--merchant-dark);
  border: 1px solid rgba(180, 83, 9, 0.2);
}

.cta-btn-secondary:hover { background: rgba(180, 83, 9, 0.15); border-color: rgba(180, 83, 9, 0.3); }

/* ── FOOTER (page-level back link) ── */
.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--merchant-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.back-link:hover { background: #fef3c7; }
.product-meta { font-size: 13px; color: var(--text-muted); }

/* ── SITE FOOTER PRODUCTS HIERARCHY ── */
.footer-subhead {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.footer-subhead-spaced { margin-top: 6px; }

/* ── ANIMATE ON SCROLL ── */
.reveal { opacity: 0; transform: translateY(24px); animation: reveal 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.reveal-d1 { animation-delay: 0.1s; }
.reveal-d2 { animation-delay: 0.2s; }
.reveal-d3 { animation-delay: 0.3s; }
.reveal-d4 { animation-delay: 0.4s; }

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .hero { padding: 36px 20px 76px; }
  .hero h1 { font-size: 30px; }
  .hero .subtitle { font-size: 15px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta a { justify-content: center; }
  .page-footer { flex-direction: column; gap: 16px; text-align: center; }
  .integration-flow { flex-direction: column; }
  .integration-flow .flow-sep { transform: rotate(90deg); }
}
