: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(79, 70, 229, 0.3);
}

* { box-sizing: border-box; }

/* ── 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; }

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

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

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(79, 70, 229, 0.15) 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.1) 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-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: #22d3ee;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

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

.hero .subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  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(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.hero-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 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: 32px; }

/* ── ECOSYSTEM POSITIONING STRIP ── */
.ecosystem-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 8px 0 48px;
  flex-wrap: wrap;
}

.eco-side {
  flex: 1 1 260px;
  max-width: 320px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
}

.eco-side .eco-icon { font-size: 22px; margin-bottom: 6px; }

.eco-side .eco-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.eco-side .eco-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.eco-side.eco-merchant .eco-title { color: var(--merchant-dark); }
.eco-side.eco-spend .eco-title { color: var(--primary-dark); }

.eco-connector {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 20px;
  min-width: 160px;
}

.eco-connector .eco-arrow {
  font-size: 20px;
  color: var(--text-muted);
}

.eco-connector .eco-connector-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 720px) {
  .eco-connector { flex-direction: row; padding: 8px 0; min-width: 0; }
  .eco-connector .eco-arrow { transform: rotate(90deg); }
}

/* ── 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;
}

/* ── FLAGSHIP SECTIONS ── */
.flagship-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.flagship-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.flagship-card.merchant::before {
  background: linear-gradient(90deg, var(--merchant), var(--merchant-accent));
}

.flagship-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: #ede9fe;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.flagship-card.merchant .flagship-eyebrow {
  color: var(--merchant-dark);
  background: #fef3c7;
}

.flagship-card h2.flagship-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.5px;
}

.flagship-tagline {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0 0 14px;
}

.flagship-card.merchant .flagship-tagline { color: var(--merchant-dark); }

.flagship-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 0 20px;
}

.value-statement {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ede9fe, #e0e7ff);
  border-left: 4px solid var(--primary);
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 20px 0 28px;
}

.flagship-card.merchant .value-statement {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-left-color: var(--merchant);
  color: var(--merchant-dark);
}

.ideal-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* ── IDEAL FOR TAGS ── */
.ideal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.ideal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: linear-gradient(135deg, #ede9fe, #e0e7ff);
  border: 1px solid #c7d2fe;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-dark);
  transition: all 0.3s ease;
}

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

.flagship-card.merchant .ideal-tag {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #fcd34d;
  color: var(--merchant-dark);
}

.flagship-card.merchant .ideal-tag:hover { border-color: var(--merchant); }

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

.flagship-card.merchant .ideal-tag .check { background: var(--merchant); }

/* ── SOLUTIONS GRID (Spend Intelligence sub-products) ── */
.solutions-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.solution-card {
  background: #fbfbff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.solution-card .solution-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ede9fe, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 12px;
}

.solution-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text);
}

.solution-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 10px;
}

.solution-card .solution-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* ── CAPABILITY CARDS (Merchant Intelligence areas) ── */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

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

.capability-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--merchant-accent);
}

.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;
}

/* ── FLAGSHIP CTA ROW ── */
.flagship-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

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

.flagship-cta .fc-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.flagship-cta .fc-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45);
}

.flagship-card.merchant .flagship-cta .fc-primary {
  background: linear-gradient(135deg, var(--merchant), var(--merchant-accent));
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.35);
}

.flagship-card.merchant .flagship-cta .fc-primary:hover {
  box-shadow: 0 8px 25px rgba(180, 83, 9, 0.45);
}

.flagship-cta .fc-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── CTA ── */
.cta-section {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd;
  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(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

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

.cta-btn-secondary {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.cta-btn-secondary:hover {
  background: rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.3);
}

/* ── 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); }
}

/* ── COMPARISON TABLE (Spend Intelligence vs Merchant Intelligence) ── */
.problem-intro { font-size: 15px; color: var(--text-muted); max-width: 760px; margin: 0 0 18px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  font-size: 13px;
  min-width: 560px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.comparison-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  background: #f8fafc;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.comparison-table tr:last-child td { border-bottom: none; }

.positioning-tagline {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  background: linear-gradient(135deg, #ede9fe, #e0e7ff);
  border-radius: 10px;
  padding: 14px 20px;
  margin-top: 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .hero { padding: 60px 20px 80px; }
  .hero h1 { font-size: 30px; }
  .hero .subtitle { font-size: 15px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta a { justify-content: center; }
  .flagship-card { padding: 22px; }
  .flagship-card h2.flagship-title { font-size: 24px; }
  .flagship-cta { flex-direction: column; align-items: stretch; }
  .flagship-cta a { justify-content: center; }
}

/* Demo videos inside flagship cards */
.flagship-card .video-frame { max-width: 720px; margin: 8px auto 0; }
.flagship-card .video-caption { max-width: 720px; margin: 12px auto 24px; }
