:root {
  --bg: #111114;
  --bg-alt: #1a1a2e;
  --accent: #00e5a0;
  --text: #f5f5f7;
  --text-dim: #a0a0b0;
  --border: #2a2a3a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.05);
  --radius: 12px;
  --radius-pill: 999px;
  --max-width: 1080px;
  --font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
  color: var(--text);
  line-height: 1.5;
}

h1, h2, h3, .wordmark {
  font-family: var(--font-heading);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}

.wordmark {
  font-weight: 800;
  font-size: 24px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.wordmark .accent { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 6px;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.site-nav a.cta-link {
  color: var(--accent);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn-accent {
  background: var(--accent);
  color: #0a0a0a;
}

.btn-accent:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 229, 160, 0.35);
}

.btn-outline {
  border-color: var(--text-dim);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero, .page-hero {
  padding: 64px 0 48px;
}

.hero h1, .page-hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  max-width: 720px;
  margin: 0 0 16px;
}

.lede {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 0 32px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 32px 0;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.feature .icon-badge {
  margin-bottom: 14px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

.differentiator, .pillar, .about-body {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.differentiator h2, .pillar h2, .about-body h2 {
  font-size: 30px;
  margin: 0 0 16px;
  max-width: 640px;
}

.differentiator p, .pillar p, .about-body p {
  color: var(--text-dim);
  max-width: 640px;
}

.cta-banner {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-banner h2 {
  margin: 0 0 24px;
}

.contact-form-wrap {
  max-width: 520px;
  margin: 40px auto 64px;
  padding: 40px;
  background: #f4f2ee;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --text: #16161a;
  --text-dim: #5a5a63;
  --border: #ddd8d0;
  --surface-strong: rgba(0, 0, 0, 0.04);
  color: var(--text);
}

@media (max-width: 640px) {
  .contact-form-wrap { padding: 24px; margin: 24px auto 48px; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 12px;
}

.contact-form input,
.contact-form textarea {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 160, 0.18);
}

.contact-form button {
  margin-top: 20px;
  align-self: flex-start;
  cursor: pointer;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
}

.alert-success {
  background: rgba(0, 229, 160, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.alert-error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid #ff5050;
  color: #ff9090;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 8px;
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 229, 160, 0.12);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-badge svg {
  width: 24px;
  height: 24px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.method-card {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.method-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.method-card > .icon-badge,
.method-card > .logo-chip,
.method-card > .logo-chip-group {
  flex-shrink: 0;
}

.method-card-content {
  flex: 1 1 180px;
  min-width: 0;
}

.method-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.method-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 8px 0 32px;
}

.payment-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 16px 6px 6px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.payment-badge:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.payment-badge .icon-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
}

.payment-badge .icon-badge svg {
  width: 16px;
  height: 16px;
}

.payment-badge span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.subcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.subcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.subcard:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.subcard .icon-badge {
  margin-bottom: 12px;
}

.subcard h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.subcard p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

.integration-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.integration-badge {
  display: inline-block;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.integration-badge:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.integration-badge--icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.integration-badge--icon svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.api-callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.api-callout h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.api-callout p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  max-width: 560px;
}

.section-with-graphic {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.section-with-graphic > .section-text {
  flex: 1 1 320px;
}

.section-with-graphic > .hero-graphic,
.section-with-graphic > .section-graphic {
  flex: 1 1 280px;
  max-width: 480px;
  margin: 0 auto;
}

.hero-graphic svg,
.section-graphic svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-graphic img,
.section-graphic img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--border);
}

/* For transparent-background illustrations that look better without a frame. */
.hero-graphic img.unframed,
.section-graphic img.unframed {
  border: none;
  border-radius: 0;
}

/*
 * Full-bleed light section within a centered, max-width container.
 * Overrides the theme tokens locally so every component inside it
 * (cards, text, borders) automatically picks up light-appropriate
 * colors, since those components are all built on var(--text),
 * var(--text-dim), var(--border), var(--surface), var(--surface-strong).
 */
.section-light {
  --text: #16161a;
  --text-dim: #5a5a63;
  --border: #ddd8d0;
  --surface: rgba(0, 0, 0, 0.035);
  --surface-strong: rgba(0, 0, 0, 0.05);
  background: #f4f2ee;
  color: var(--text);
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

.photo-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  min-height: 320px;
  color: var(--text);
}

.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.photo-card:hover img {
  transform: scale(1.06);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.85));
}

.photo-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  z-index: 1;
}

.photo-card-body .section-label {
  color: var(--accent);
  margin-bottom: 8px;
}

.photo-card-body h2 {
  margin: 0;
  font-size: 26px;
  color: #fff;
}

.photo-card-body .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.photo-card:hover .photo-card-body .arrow {
  transform: translateX(6px);
}

.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
  height: 32px;
}

.logo-chip img {
  height: 18px;
  width: auto;
  display: block;
}

.logo-chip--lg {
  height: auto;
  max-width: 130px;
  padding: 12px 16px;
}

.logo-chip--lg img {
  height: auto;
  width: auto;
  max-height: 34px;
  max-width: 100%;
}

.logo-chip-group {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Animated real-metric strip (Payment Solutions > Dashboarding & Analytics). */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.stat-tile-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.stat-tile-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
  color: var(--text);
}

.stat-tile-delta {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  .hero h1, .page-hero h1 { font-size: 32px; }
  .differentiator h2, .pillar h2, .about-body h2 { font-size: 24px; }
  .photo-card { min-height: 240px; }
  .wordmark { font-size: 20px; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 14px; }
}
