/* Payment CRM LLC — public marketing site
   Plain CSS, no build step. Modern payments + CRM aesthetic. */

:root {
  --bg: #0b1020;
  --bg-elevated: #11182e;
  --surface: #ffffff;
  --surface-muted: #f5f7fb;
  --border: #e6eaf2;
  --text: #0b1020;
  --text-muted: #5a6478;
  --text-invert: #f7f9ff;
  --text-invert-muted: #aeb8d4;
  --brand: #5b8cff;
  --brand-strong: #3a6bff;
  --brand-2: #18d6c5;
  --accent: #9b6bff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 24px 60px -20px rgba(12, 22, 60, 0.45);
  --shadow-md: 0 12px 30px -12px rgba(12, 22, 60, 0.25);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.nav.is-scrolled {
  background: rgba(11, 16, 32, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 34px -18px rgba(0, 0, 0, 0.7);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-invert);
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15l5-5 3 3 8-8'/%3E%3Cpath d='M16 5h4v4'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  background-size: 64%, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  box-shadow: 0 6px 18px -6px rgba(91, 140, 255, 0.8);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links a {
  color: var(--text-invert-muted);
  font-size: 15px;
  font-weight: 500;
}

.nav__links a:hover {
  color: var(--text-invert);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(58, 107, 255, 0.7);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-invert);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn--light {
  background: #fff;
  color: var(--brand-strong);
  box-shadow: var(--shadow-md);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
      1200px 600px at 80% -10%,
      rgba(155, 107, 255, 0.35),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 0% 10%,
      rgba(24, 214, 197, 0.25),
      transparent 55%
    ),
    var(--bg);
  color: var(--text-invert);
  padding: 96px 0 120px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.6), transparent 70%);
  top: -130px;
  right: -70px;
  animation: floatA 16s ease-in-out infinite;
}

.hero::after {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(24, 214, 197, 0.45), transparent 70%);
  bottom: -140px;
  left: -60px;
  animation: floatB 20s ease-in-out infinite;
}

@keyframes floatA {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-34px, 22px);
  }
}

@keyframes floatB {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(28px, -22px);
  }
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-invert-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 20px 0 18px;
}

.hero h1 .grad {
  background: linear-gradient(
    120deg,
    var(--brand-2),
    var(--brand),
    var(--accent),
    var(--brand-2)
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 7s linear infinite;
}

@keyframes gradShift {
  to {
    background-position: 220% center;
  }
}

.hero p.lead {
  font-size: 19px;
  color: var(--text-invert-muted);
  max-width: 560px;
  margin: 0 0 32px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-invert-muted);
}

/* Floating product card */
.glass-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
  animation: cardFloat 7s ease-in-out infinite;
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.stat-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.stat {
  flex: 1;
}

.stat__num {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-invert);
}

.stat__label {
  font-size: 13px;
  color: var(--text-invert-muted);
}

.mock-line {
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  margin: 12px 0;
}

.mock-line.w70 {
  width: 70%;
}
.mock-line.w50 {
  width: 50%;
}
.mock-line.w85 {
  width: 85%;
}

.mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  background: rgba(24, 214, 197, 0.16);
  color: #7df3e6;
  border: 1px solid rgba(24, 214, 197, 0.3);
}

.mock-pill__check {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 9px;
  background: rgba(24, 214, 197, 0.9);
  color: #06231f;
}

/* ===== SECTIONS ===== */
.section {
  padding: 88px 0;
}

.section--muted {
  background: var(--surface-muted);
}

.section__head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section__head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.section__head p {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-strong);
  margin-bottom: 10px;
}

/* Feature grid */
.grid {
  display: grid;
  gap: 24px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--brand-strong);
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.16),
    rgba(155, 107, 255, 0.16)
  );
  transition: transform 0.18s ease;
}

.card:hover .card__icon {
  transform: scale(1.08);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 19px;
  margin: 0 0 8px;
}

.card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 15px;
}

/* Split feature (text + visual) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split__body h2 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
}

.split__body p {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 20px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: #2a3346;
  font-size: 15px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.split__media {
  background: linear-gradient(
      160deg,
      rgba(91, 140, 255, 0.12),
      rgba(155, 107, 255, 0.1)
    ),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.chat-bubble {
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 12px;
  max-width: 88%;
}

.chat-bubble--ai {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--text);
}

.chat-bubble--user {
  margin-left: auto;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
}

/* Ledger (residual breakdown visual) */
.ledger {
  display: grid;
  gap: 2px;
}

.ledger__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-size: 14px;
}

.ledger__row:first-child {
  border-radius: 12px 12px 0 0;
}

.ledger__label {
  color: var(--text-muted);
}

.ledger__val {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.ledger__row--total {
  border-radius: 0 0 12px 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  border-color: transparent;
}

.ledger__row--total .ledger__label,
.ledger__row--total .ledger__val {
  color: #fff;
}

.ledger__caption {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* Integration chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.chip__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

/* Pillars band */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar {
  text-align: center;
  padding: 22px 14px;
}

.pillar__num {
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pillar__label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  margin-bottom: 16px;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* CTA band */
.cta {
  background: radial-gradient(
      800px 400px at 100% 0%,
      rgba(155, 107, 255, 0.4),
      transparent 60%
    ),
    var(--bg-elevated);
  color: var(--text-invert);
  border-radius: 24px;
  padding: 56px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 12px;
}

.cta p {
  color: var(--text-invert-muted);
  font-size: 18px;
  margin: 0 0 28px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  color: var(--text-invert-muted);
  padding: 56px 0 40px;
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.footer__brand {
  max-width: 320px;
}

.footer__brand p {
  font-size: 14px;
  margin-top: 12px;
}

.footer__col h4 {
  color: var(--text-invert);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}

.footer__col a {
  display: block;
  color: var(--text-invert-muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.footer__col a:hover {
  color: var(--text-invert);
  text-decoration: none;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ===== LEGAL / CONTENT PAGES ===== */
.legal {
  padding: 64px 0 88px;
}

.legal__inner {
  max-width: 800px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 22px;
  margin: 36px 0 12px;
}

.legal p,
.legal li {
  color: #2a3346;
  font-size: 16px;
}

.legal ul {
  padding-left: 22px;
}

.callout {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  border-left: 4px solid var(--brand-strong);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0;
}

.callout strong {
  color: var(--text);
}

.backlink {
  display: inline-block;
  margin-bottom: 28px;
  font-weight: 600;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== MOTION PREFERENCES ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero::before,
  .hero::after,
  .glass-card,
  .hero h1 .grad {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .grid--3,
  .steps {
    grid-template-columns: 1fr;
  }
  .grid--2 {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav__links a:not(.btn) {
    display: none;
  }
  .cta {
    padding: 40px 24px;
  }
}
