/* ==========================================================
   PAYNEXUS — Shared Stylesheet
   Used across index.html, developers.html, and all solution pages.
   ========================================================== */

/* ---------- Tokens ---------- */
:root{
  --background: 0 0% 8%;
  --foreground: 0 0% 96%;
  --primary: 142 72% 45%;
  --primary-foreground: 0 0% 4%;
  --secondary: 0 0% 16%;
  --secondary-foreground: 0 0% 96%;
  --muted: 0 0% 14%;
  --muted-foreground: 0 0% 60%;
  --accent: 142 72% 45%;
  --accent-foreground: 0 0% 4%;
  --destructive: 0 84% 60%;
  --border: 0 0% 20%;
  --input: 0 0% 20%;
  --ring: 142 72% 45%;
  --radius: 0.5rem;
  --nav-button: 0 0% 16%;
  --hero-bg: 0 0% 6%;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
html, body {
  background: hsl(var(--hero-bg));
  color: hsl(var(--foreground));
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: hsl(var(--primary) / .35); color: hsl(var(--foreground)); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: hsl(0 0% 18%); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: hsl(0 0% 26%); }

/* ---------- Keyframes ---------- */
@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(20px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes gridDrift {
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-60px,-60px,0); }
}
@keyframes pulseDot {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:.4; transform:scale(.85); }
}
@keyframes sweep {
  0%   { transform: translateX(-100%); opacity: 0; }
  15%  { opacity: .9; } 85% { opacity: .9; }
  100% { transform: translateX(100%); opacity: 0; }
}

.fade-up { opacity:0; animation: fadeUp .9s cubic-bezier(.22,1,.36,1) forwards; }
.fade-in { opacity:0; animation: fadeIn .9s ease forwards; }
.on-view { opacity:0; }
.on-view.in { animation: fadeUp .9s cubic-bezier(.22,1,.36,1) forwards; }

.d-050{animation-delay:.05s}.d-100{animation-delay:.10s}.d-150{animation-delay:.15s}
.d-200{animation-delay:.20s}.d-300{animation-delay:.30s}.d-400{animation-delay:.40s}
.d-500{animation-delay:.50s}.d-600{animation-delay:.60s}.d-700{animation-delay:.70s}
.d-800{animation-delay:.80s}.d-900{animation-delay:.90s}.d-1000{animation-delay:1s}
.d-1200{animation-delay:1.2s}

/* ---------- Navbar ---------- */
.nav-root {
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav-root.scrolled {
  background: hsl(var(--hero-bg) / .72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid hsl(0 0% 100% / .06);
}
.nav-link {
  position: relative;
  color: hsl(0 0% 70%);
  transition: color .2s ease;
  letter-spacing: .01em;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: hsl(var(--foreground)); }
.nav-link::after {
  content:""; position:absolute; left:0; right:0; bottom:-6px;
  height:1px; background: hsl(var(--primary));
  transform-origin:left; transform: scaleX(0);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-cta {
  background: hsl(var(--nav-button));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.nav-cta:hover {
  background: hsl(0 0% 20%); border-color: hsl(0 0% 28%);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px -8px hsl(var(--primary) / .4);
}

.wordmark {
  font-weight:600; letter-spacing:.14em; font-size:14px;
  display:inline-flex; align-items:center; gap:10px;
  text-decoration: none; color: hsl(var(--foreground));
}
.wordmark-dot {
  width:7px; height:7px; border-radius:999px;
  background: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / .18), 0 0 18px hsl(var(--primary) / .6);
  animation: pulseDot 2.4s ease-in-out infinite;
}

/* ---------- Generic section pattern ---------- */
.section {
  position:relative;
  min-height:100vh;
  padding: clamp(5rem, 10vh, 8rem) clamp(1.25rem, 4vw, 4rem) clamp(3rem, 6vh, 5rem);
  overflow:hidden;
  isolation:isolate;
}
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-eyebrow {
  display:inline-flex; align-items:center; gap:10px;
  font-family:"JetBrains Mono", monospace;
  font-size:11px; letter-spacing:.24em; text-transform:uppercase;
  color: hsl(var(--primary));
  margin-bottom: 18px;
}
.section-eyebrow::before { content:""; width:22px; height:1px; background: hsl(var(--primary)); }
.section-heading {
  font-weight:500;
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  line-height:1.02;
  letter-spacing:-.028em;
  color: hsl(var(--foreground));
  max-width: 22ch;
}
.section-heading .soft { color: hsl(0 0% 55%); font-weight:400; }
.section-kicker {
  margin-top:18px;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height:1.55;
  color: hsl(0 0% 65%);
  max-width: 60ch;
}
.section-bg-grid {
  position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(60% 40% at 70% 0%, hsl(var(--primary) / .07), transparent 70%),
    hsl(var(--hero-bg));
}
.section-bg-grid::after {
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(hsl(0 0% 100% / .035) 1px, transparent 1px),
    linear-gradient(90deg, hsl(0 0% 100% / .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 40%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 40%, #000 30%, transparent 90%);
  opacity:.55;
}

/* ---------- Buttons ---------- */
.btn {
  position:relative; display:inline-flex; align-items:center; gap:10px;
  height:48px; padding:0 22px; border-radius:10px;
  font-size:14.5px; font-weight:500; letter-spacing:.005em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .3s ease, color .2s ease;
  white-space:nowrap; cursor:pointer;
  text-decoration: none;
}
.btn .arrow { transition: transform .25s cubic-bezier(.22,1,.36,1); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  border:1px solid hsl(142 72% 52%);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / .25), 0 10px 30px -10px hsl(var(--primary) / .7);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: hsl(142 72% 50%);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / .3), 0 14px 40px -10px hsl(var(--primary) / .85), 0 0 0 6px hsl(var(--primary) / .14);
}
.btn-ghost {
  background: hsl(0 0% 100% / .04);
  color: hsl(var(--foreground));
  border:1px solid hsl(0 0% 100% / .14);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: hsl(0 0% 100% / .08); border-color: hsl(0 0% 100% / .28); transform: translateY(-1px); }

/* ---------- Code cards (shared by docs and solution pages) ---------- */
.code-card {
  position:relative;
  border-radius: 12px;
  overflow:hidden;
  background: hsl(0 0% 5%);
  border:1px solid hsl(0 0% 100% / .1);
  box-shadow:
    0 20px 40px -20px rgb(0 0 0 / .6),
    0 0 0 1px hsl(var(--primary) / .04);
}
.code-head {
  display:flex; align-items:center; justify-content:space-between;
  padding: 10px 14px;
  background: hsl(0 0% 8%);
  border-bottom:1px solid hsl(0 0% 100% / .06);
}
.code-head .dots { display:flex; gap:5px; }
.code-head .dots span { width:9px; height:9px; border-radius:999px; background: hsl(0 0% 25%); }
.code-head .file { font-family:"JetBrains Mono", monospace; font-size:11.5px; color: hsl(0 0% 58%); }
.code-head .file .dot { color: hsl(var(--primary)); margin-right:6px; }
.code-head .lang {
  font-family:"JetBrains Mono", monospace;
  font-size:10.5px; letter-spacing:.16em; text-transform:uppercase;
  color: hsl(0 0% 45%);
  padding: 2px 8px;
  background: hsl(0 0% 100% / .03);
  border: 1px solid hsl(0 0% 100% / .08);
  border-radius: 4px;
}
.code-body {
  font-family:"JetBrains Mono", monospace;
  font-size: 12.5px; line-height: 1.75;
  padding: 18px 20px;
  color: hsl(0 0% 82%);
  white-space:pre; overflow:auto;
}
.tok-k { color: hsl(300 60% 75%); }
.tok-s { color: hsl(142 55% 68%); }
.tok-n { color: hsl(28 85% 68%); }
.tok-c { color: hsl(0 0% 40%); font-style:italic; }
.tok-p { color: hsl(142 80% 68%); }
.tok-m { color: hsl(52 90% 68%); }
.tok-t { color: hsl(200 70% 72%); }

/* ---------- Footer ---------- */
footer {
  padding: 48px clamp(1.25rem, 4vw, 4rem);
  border-top:1px solid hsl(0 0% 100% / .06);
  background: hsl(var(--hero-bg));
}
footer .inner { max-width:1280px; margin:0 auto; display:flex; flex-wrap:wrap; justify-content:space-between; gap:20px; align-items:center; }
footer .copy { color: hsl(0 0% 45%); font-size:12.5px; letter-spacing:.02em; }
footer .links { display:flex; gap:22px; flex-wrap:wrap; }
footer .links a { color: hsl(0 0% 55%); font-size:12.5px; letter-spacing:.04em; transition: color .2s ease; text-decoration: none; }
footer .links a:hover { color: hsl(var(--foreground)); }

@media (max-width: 780px) { .nav-center { display:none; } }

/* ==========================================================
   SOLUTION PAGE PATTERNS
   Shared across /solutions/*.html
   ========================================================== */

/* Atmospheric bg (fixed, subtle) */
.sol-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 40% at 80% 0%, hsl(var(--primary) / .10), transparent 70%),
    radial-gradient(40% 30% at 15% 60%, hsl(var(--primary) / .06), transparent 70%),
    hsl(var(--hero-bg));
}
.sol-bg::after {
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(hsl(0 0% 100% / .03) 1px, transparent 1px),
    linear-gradient(90deg, hsl(0 0% 100% / .03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, #000 30%, transparent 90%);
  opacity:.5;
}

/* Page hero (compact, content-left) */
.sol-hero {
  position: relative;
  padding: 140px clamp(1.25rem, 4vw, 4rem) 80px;
  max-width: 1280px;
  margin: 0 auto;
}
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: hsl(0 0% 55%);
  text-decoration: none;
  transition: color .2s ease;
  margin-bottom: 28px;
}
.back-link:hover { color: hsl(var(--primary)); }
.sol-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: 20px;
}
.sol-tag::before { content:""; width:22px; height:1px; background: hsl(var(--primary)); }
.sol-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 500;
  line-height: .99;
  letter-spacing: -.032em;
  max-width: 18ch;
  margin-bottom: 22px;
  color: hsl(var(--foreground));
}
.sol-title .soft { color: hsl(0 0% 55%); font-weight: 400; }
.sol-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: hsl(0 0% 75%);
  max-width: 58ch;
  margin-bottom: 32px;
}
.sol-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Generic section */
.sol-section {
  padding: 60px clamp(1.25rem, 4vw, 4rem);
  max-width: 1280px; margin: 0 auto;
}
.sol-section + .sol-section { padding-top: 40px; }
.sol-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.08;
  max-width: 22ch;
  color: hsl(var(--foreground));
  margin-bottom: 20px;
}
.sol-section h2 .soft { color: hsl(0 0% 55%); font-weight: 400; }
.sol-section > .inner { max-width: 1100px; }
.sol-section p.lede {
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.65;
  color: hsl(0 0% 72%);
  max-width: 65ch;
  margin-bottom: 14px;
}
.sol-section p.lede + p.lede { margin-top: 10px; }

.sol-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: 16px;
}
.sol-eyebrow::before { content:""; width:22px; height:1px; background: hsl(var(--primary)); }

/* Benefits grid */
.benefit-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 14px;
}
.benefit {
  padding: 24px;
  border-radius: 14px;
  background: linear-gradient(180deg, hsl(0 0% 100% / .035), hsl(0 0% 100% / .01));
  border: 1px solid hsl(0 0% 100% / .08);
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.benefit:hover { border-color: hsl(var(--primary) / .35); transform: translateY(-2px); }
.benefit .metric {
  font-size: 36px; font-weight: 500;
  letter-spacing: -.03em; line-height: 1;
  color: hsl(var(--primary));
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.benefit h3 {
  font-size: 15px; font-weight: 600;
  letter-spacing: -.005em;
  color: hsl(var(--foreground));
  margin-bottom: 8px;
}
.benefit p {
  font-size: 13.5px; line-height: 1.55;
  color: hsl(0 0% 65%);
}

/* Feature list (capabilities) */
.feature-list {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid hsl(0 0% 100% / .08);
  background: hsl(0 0% 100% / .08);
}
.feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 22px 24px;
  background: hsl(var(--hero-bg));
  transition: background .2s ease;
}
.feature:hover { background: hsl(0 0% 100% / .025); }
.feature .ico {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: hsl(var(--primary) / .1);
  border: 1px solid hsl(var(--primary) / .28);
  color: hsl(var(--primary));
  flex-shrink: 0;
}
.feature h3 {
  font-size: 16px; font-weight: 600;
  letter-spacing: -.005em;
  color: hsl(var(--foreground));
  margin-bottom: 6px;
}
.feature p {
  font-size: 13.5px; line-height: 1.6;
  color: hsl(0 0% 66%);
  max-width: 75ch;
}
.feature p strong { color: hsl(var(--foreground)); font-weight: 500; }
.feature p code {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  padding: 1px 5px;
  background: hsl(var(--primary) / .1);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / .2);
  border-radius: 4px;
  white-space: nowrap;
}

/* Numbered steps for integration */
.steps {
  counter-reset: li;
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 14px;
  max-width: 800px;
}
.step {
  counter-increment: li;
  position: relative;
  padding: 20px 24px 20px 68px;
  border-radius: 12px;
  border: 1px solid hsl(0 0% 100% / .08);
  background: hsl(0 0% 100% / .02);
  transition: border-color .2s ease, background .2s ease;
}
.step:hover { border-color: hsl(0 0% 100% / .18); background: hsl(0 0% 100% / .035); }
.step::before {
  content: counter(li, decimal-leading-zero);
  position: absolute;
  left: 22px; top: 22px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: hsl(var(--primary) / .1);
  border: 1px solid hsl(var(--primary) / .3);
  color: hsl(var(--primary));
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .06em;
  font-weight: 500;
}
.step h3 {
  font-size: 15.5px; font-weight: 600;
  letter-spacing: -.005em;
  color: hsl(var(--foreground));
  margin-bottom: 6px;
}
.step p {
  font-size: 13.5px; line-height: 1.6;
  color: hsl(0 0% 66%);
}
.step code {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  padding: 1px 5px;
  background: hsl(var(--primary) / .1);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / .2);
  border-radius: 4px;
  white-space: nowrap;
}

/* Next steps cards */
.next-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 20px;
}
.next-card {
  padding: 24px;
  border-radius: 14px;
  background: hsl(0 0% 100% / .02);
  border: 1px solid hsl(0 0% 100% / .08);
  text-decoration: none;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.next-card:hover {
  transform: translateY(-2px);
  border-color: hsl(var(--primary) / .4);
  background: linear-gradient(180deg, hsl(var(--primary) / .05), hsl(0 0% 100% / .02));
}
.next-card h3 {
  font-size: 16px; font-weight: 600;
  letter-spacing: -.005em;
  color: hsl(var(--foreground));
  display: flex; align-items: center; justify-content: space-between;
}
.next-card h3 .arrow {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: hsl(0 0% 100% / .04);
  border: 1px solid hsl(0 0% 100% / .1);
  color: hsl(0 0% 70%);
  transition: all .25s ease;
}
.next-card:hover h3 .arrow {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
  transform: translate(3px, -3px);
}
.next-card p {
  font-size: 13.5px; line-height: 1.55;
  color: hsl(0 0% 65%);
}

/* Final CTA band */
.final-cta {
  margin: 80px clamp(1.25rem, 4vw, 4rem) 40px;
  max-width: 1100px;
  margin-left: auto; margin-right: auto;
  padding: 48px clamp(1.5rem, 4vw, 4rem);
  border-radius: 20px;
  background:
    radial-gradient(70% 100% at 50% 0%, hsl(var(--primary) / .15), transparent 70%),
    linear-gradient(180deg, hsl(var(--primary) / .04), hsl(0 0% 100% / .02));
  border: 1px solid hsl(var(--primary) / .3);
  text-align: center;
}
.final-cta h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 auto 12px;
  max-width: 22ch;
  color: hsl(var(--foreground));
}
.final-cta p {
  font-size: 15px; line-height: 1.55;
  color: hsl(0 0% 70%);
  max-width: 55ch; margin: 0 auto 28px;
}
.final-cta .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ==========================================================
   ARCHITECTURE PAGE
   ========================================================== */

/* Architecture diagram (responsive 3-column flow) */
.arch-diagram {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 32px 0;
}
@media (min-width: 900px) {
  .arch-diagram { grid-template-columns: 1fr 60px 1.4fr 60px 1fr; align-items: stretch; }
}
.arch-col {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px 20px;
  background: hsl(0 0% 100% / .02);
  border: 1px solid hsl(0 0% 100% / .08);
  border-radius: 14px;
}
.arch-col-center {
  background:
    radial-gradient(60% 80% at 50% 0%, hsl(var(--primary) / .1), transparent 70%),
    hsl(var(--primary) / .03);
  border-color: hsl(var(--primary) / .3);
}
.arch-col-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: hsl(0 0% 50%);
  margin-bottom: 8px;
  text-align: center;
}
.arch-col-center .arch-col-label { color: hsl(var(--primary)); }
.arch-box {
  padding: 14px 16px;
  background: hsl(var(--hero-bg));
  border: 1px solid hsl(0 0% 100% / .1);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.arch-box strong {
  font-size: 14px; font-weight: 600;
  letter-spacing: -.005em;
  color: hsl(var(--foreground));
}
.arch-box span {
  font-size: 12px; line-height: 1.45;
  color: hsl(0 0% 60%);
}
.arch-box.primary {
  background: linear-gradient(180deg, hsl(var(--primary) / .12), hsl(var(--primary) / .05));
  border-color: hsl(var(--primary) / .4);
}
.arch-box.primary strong { color: hsl(var(--foreground)); }
.arch-box.big { padding: 20px 22px; }
.arch-box.big strong { font-size: 15.5px; }
.arch-sub-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.arch-psp-list {
  display: flex; flex-direction: column; gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  color: hsl(0 0% 72%);
}
.arch-psp-list > div {
  padding: 6px 10px;
  background: hsl(0 0% 100% / .03);
  border: 1px solid hsl(0 0% 100% / .06);
  border-radius: 6px;
}
.arch-psp-list .more {
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .08);
  border-color: hsl(var(--primary) / .25);
  text-align: center;
}

/* Arrows between architecture columns */
.arch-arrow {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: hsl(0 0% 45%);
  padding: 20px 0;
}
.arch-arrow svg { color: hsl(var(--primary)); }
.arch-arrow-label {
  white-space: nowrap;
  text-align: center;
  line-height: 1.4;
}

/* At mobile: arrows become horizontal (downward) */
@media (max-width: 899px) {
  .arch-arrow {
    flex-direction: row; padding: 4px 0;
  }
  .arch-arrow svg { transform: rotate(90deg); }
}

/* Integration flow steps */
.flow-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 20px;
  counter-reset: flow-counter;
}
.flow-step {
  counter-increment: flow-counter;
  position: relative;
  padding: 20px 22px;
  background: hsl(0 0% 100% / .02);
  border: 1px solid hsl(0 0% 100% / .08);
  border-radius: 12px;
  transition: border-color .25s ease, background .25s ease;
}
.flow-step:hover { border-color: hsl(var(--primary) / .35); background: hsl(0 0% 100% / .035); }
.flow-step::before {
  content: counter(flow-counter, decimal-leading-zero);
  position: absolute; top: -1px; right: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px; letter-spacing: .2em;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .1);
  padding: 4px 8px;
  border: 1px solid hsl(var(--primary) / .25);
  border-top: none;
  border-radius: 0 0 6px 6px;
}
.flow-step h3 {
  font-size: 14px; font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 8px;
  letter-spacing: -.005em;
}
.flow-step p {
  font-size: 13px; line-height: 1.55;
  color: hsl(0 0% 65%);
}
.flow-step code {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .08);
  padding: 1px 5px;
  border: 1px solid hsl(var(--primary) / .2);
  border-radius: 4px;
  white-space: nowrap;
}

/* Side-by-side "who does what" split */
.split-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-top: 20px;
  background: hsl(0 0% 100% / .08);
  border: 1px solid hsl(0 0% 100% / .08);
  border-radius: 12px;
  overflow: hidden;
}
@media (min-width: 720px) { .split-table { grid-template-columns: 1fr 1fr; } }
.split-side {
  padding: 24px 26px;
  background: hsl(var(--hero-bg));
}
.split-side.you { background: hsl(0 0% 100% / .025); }
.split-side.us  { background: linear-gradient(180deg, hsl(var(--primary) / .07), hsl(var(--primary) / .02)); }
.split-side h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: hsl(0 0% 70%);
  margin-bottom: 16px;
}
.split-side.us h3 { color: hsl(var(--primary)); }
.split-side ul {
  display: flex; flex-direction: column; gap: 10px;
  list-style: none; padding: 0; margin: 0;
}
.split-side li {
  position: relative;
  padding-left: 22px;
  font-size: 14px; line-height: 1.55;
  color: hsl(0 0% 78%);
}
.split-side li::before {
  content: ""; position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 999px;
  background: hsl(0 0% 45%);
}
.split-side.us li::before { background: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / .2); }
