/* ============================================================
   PayClarity — Shared Design System
   ============================================================ */

:root{
  --blue-deep:#0A2E4D;
  --blue-deeper:#071F36;
  --blue-primary:#1E88C7;
  --blue-light:#5AC8E8;
  --green-primary:#6FBE44;
  --green-light:#A8E063;
  --bg-light:#F6FAF9;
  --bg-card:#FFFFFF;
  --ink:#0F2433;
  --ink-soft:#4A5F70;
  --line:#E2EBEC;

  --grad-brand: linear-gradient(120deg, var(--blue-primary) 0%, var(--blue-light) 45%, var(--green-primary) 100%);
  --grad-hero: radial-gradient(circle at 18% 20%, rgba(90,200,232,0.18), transparent 45%),
                radial-gradient(circle at 85% 75%, rgba(111,190,68,0.16), transparent 50%),
                linear-gradient(160deg, var(--blue-deeper) 0%, var(--blue-deep) 55%, #0E3A5C 100%);

  --shadow-sm: 0 2px 10px rgba(10,46,77,0.06);
  --shadow-md: 0 12px 32px rgba(10,46,77,0.10);
  --shadow-lg: 0 24px 60px rgba(10,46,77,0.16);

  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22,.9,.32,1);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}

body{
  margin:0;
  font-family:'Inter', system-ui, -apple-system, sans-serif;
  color:var(--ink);
  background:var(--bg-light);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3,h4{
  font-family:'Sora', 'Inter', sans-serif;
  letter-spacing:-0.02em;
  margin:0;
  line-height:1.12;
}

.mono{ font-family:'JetBrains Mono', monospace; letter-spacing:-0.02em; }

p{ color:var(--ink-soft); line-height:1.7; margin:0; }

a{ text-decoration:none; color:inherit; }

img{max-width:100%; display:block;}

::selection{ background:var(--green-light); color:var(--blue-deeper); }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

/* ============ Layout helpers ============ */
.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 32px;
}
section{ position:relative; }
.section-pad{ padding:96px 0; }
@media (max-width:768px){
  .container{ padding:0 20px; }
  .section-pad{ padding:64px 0; }
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:'JetBrains Mono', monospace;
  font-size:12.5px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--blue-primary);
  font-weight:600;
  margin-bottom:14px;
}
.eyebrow::before{
  content:'';
  width:7px; height:7px; border-radius:50%;
  background:var(--grad-brand);
  display:inline-block;
}
.eyebrow.on-dark{ color:var(--green-light); }

/* ============ Navbar ============ */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 32px;
  background:rgba(255,255,255,0.85);
  backdrop-filter:blur(16px) saturate(160%);
  -webkit-backdrop-filter:blur(16px) saturate(160%);
  box-shadow:0 1px 0 rgba(10,46,77,0.06), 0 8px 30px rgba(10,46,77,0.06);
  color:var(--ink);
  transition:background .35s var(--ease), backdrop-filter .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.dark-ctx{ color:var(--ink); }
.nav.scrolled{
  background:rgba(255,255,255,0.92);
  padding:12px 32px;
}
.nav .nav-link{ color:var(--ink-soft); }
.nav .logo-word{ color:var(--ink); }

.nav-left{ display:flex; align-items:center; gap:12px; }
.logo-mark{ height:44px; width:auto; display:block; }
.logo-word{
  font-family:'Sora', sans-serif; font-weight:700; font-size:21px;
  color:var(--ink);
}
.footer-brand .logo-word{ color:#fff; }

.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-link{
  font-size:14.5px; font-weight:500; color:var(--ink-soft);
  transition:color .25s var(--ease);
  position:relative;
}
.nav-link:hover{ color:var(--blue-primary); }
.nav-link.active{ color:var(--blue-primary); }

.nav-actions{ display:flex; align-items:center; gap:14px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:'Inter', sans-serif; font-weight:600; font-size:14.5px;
  padding:12px 24px; border-radius:999px; border:none; cursor:pointer;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space:nowrap;
}
.btn:active{ transform:scale(.97); }

.btn-primary{
  background:var(--grad-brand);
  color:#fff;
  box-shadow:0 8px 24px rgba(30,136,199,0.35);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 12px 30px rgba(30,136,199,0.45); }

.btn-ghost-dark{
  background:rgba(15,36,51,0.05);
  color:var(--ink);
  border:1px solid var(--line);
}
.btn-ghost-dark:hover{ background:rgba(15,36,51,0.08); }

.btn-sm{ padding:9px 18px; font-size:13.5px; }

.nav-toggle{ display:none; }

.mobile-menu{ display:none; }

@media (max-width:920px){
  .nav-links{ display:none; }
  .nav-toggle{
    display:flex; flex-direction:column; gap:5px; cursor:pointer;
    width:26px; padding:6px 0;
  }
  .nav-toggle span{ height:2px; width:100%; background:currentColor; border-radius:2px; transition:.3s; }
  .mobile-menu{
    position:fixed; inset:0; z-index:1100;
    background:var(--blue-deeper);
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:28px;
    transform:translateY(-100%); transition:transform .45s var(--ease);
  }
  .mobile-menu.open{ transform:translateY(0); }
  .mobile-menu a{ color:#fff; font-size:22px; font-family:'Sora',sans-serif; font-weight:600; }
  .mobile-close{ position:absolute; top:24px; right:28px; color:#fff; font-size:28px; cursor:pointer; background:none; border:none; }
}

/* ============ Hero (dark) ============ */
.hero{
  position:relative;
  background:var(--grad-hero);
  color:#fff;
  padding:170px 0 110px;
  overflow:hidden;
}
.hero::after{
  content:'';
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:linear-gradient(to bottom, transparent, rgba(0,0,0,0.7) 30%, transparent 90%);
  pointer-events:none;
}
.hero-grid{
  position:relative; z-index:2;
  display:grid; grid-template-columns:1.05fr 0.95fr; gap:60px; align-items:center;
}
@media (max-width:980px){
  .hero-grid{ grid-template-columns:1fr; gap:48px; text-align:left; }
}
.hero h1{
  font-size:clamp(38px, 5.4vw, 68px);
  font-weight:700;
  margin-bottom:22px;
}
.hero h1 .accent{
  background:linear-gradient(90deg, var(--blue-light), var(--green-light));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero p.lead{
  font-size:18px; color:rgba(255,255,255,0.74); max-width:520px; margin-bottom:34px;
}
.hero-cta-row{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-service-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:12px;
}
.hero-svc-card{
  display:flex; align-items:flex-start; gap:12px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:12px; padding:14px 16px;
  backdrop-filter:blur(8px);
  transition:background 0.2s;
}
.hero-svc-card:hover{ background:rgba(255,255,255,0.1); }
.hero-svc-icon{
  flex-shrink:0; width:36px; height:36px;
  background:rgba(99,179,237,0.15);
  border-radius:8px; display:flex; align-items:center; justify-content:center;
}
.hero-svc-icon svg{ width:18px; height:18px; stroke:var(--blue-light); }
.hero-svc-name{
  font-family:'JetBrains Mono',monospace;
  font-size:13px; font-weight:700;
  color:#fff; letter-spacing:0.04em; margin-bottom:3px;
}
.hero-svc-desc{ font-size:12px; color:rgba(255,255,255,0.6); line-height:1.4; }
@media(max-width:980px){
  .hero-service-grid{ grid-template-columns:repeat(3,1fr); }
}
@media(max-width:600px){
  .hero-service-grid{ grid-template-columns:1fr 1fr; }
}

/* fade up on load */
.fade-up{ opacity:0; transform:translateY(26px); animation:fadeUp .9s var(--ease) forwards; }
.fade-up.d1{ animation-delay:.08s; }
.fade-up.d2{ animation-delay:.18s; }
.fade-up.d3{ animation-delay:.28s; }
.fade-up.d4{ animation-delay:.38s; }
@keyframes fadeUp{ to{ opacity:1; transform:translateY(0); } }

/* ============ Hero visual / ledger card ============ */
.hero-visual{ position:relative; }
.ledger-card{
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.14);
  border-radius:20px;
  padding:24px;
  backdrop-filter:blur(14px);
  box-shadow:var(--shadow-lg);
}
.ledger-card h4{ color:#fff; font-size:14px; font-weight:600; letter-spacing:0.04em; opacity:.8; margin-bottom:16px; text-transform:uppercase; font-family:'JetBrains Mono',monospace; }
.ledger-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:13px 0; border-bottom:1px solid rgba(255,255,255,0.08);
  font-size:14px;
}
.ledger-row:last-child{ border-bottom:none; }
.ledger-tag{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:600; color:#fff;
}
.ledger-dot{ width:8px; height:8px; border-radius:50%; }
.dot-blue{ background:var(--blue-light); }
.dot-green{ background:var(--green-light); }
.ledger-amt{ font-family:'JetBrains Mono',monospace; color:var(--green-light); font-weight:600; }
.ledger-amt.neg{ color:#FF9D7A; }
.ledger-time{ color:rgba(255,255,255,0.45); font-size:12px; font-family:'JetBrains Mono',monospace; }

/* floating chips */
.float-chip{
  position:absolute;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.16);
  backdrop-filter:blur(10px);
  border-radius:14px;
  padding:10px 16px;
  font-size:13px; font-weight:600; color:#fff;
  display:flex; align-items:center; gap:8px;
  box-shadow:var(--shadow-md);
  animation:float 6s ease-in-out infinite;
}
.float-chip.c1{ top:-26px; right:18%; animation-delay:0s; }
.float-chip.c2{ bottom:-22px; left:6%; animation-delay:1.4s; }
@keyframes float{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-12px); }
}

/* ============ Marquee strip ============ */
.marquee-wrap{
  position:relative; z-index:2;
  margin-top:64px;
  overflow:hidden;
  border-top:1px solid rgba(255,255,255,0.08);
  border-bottom:1px solid rgba(255,255,255,0.08);
  padding:22px 0;
}
.marquee-wrap::before, .marquee-wrap::after{
  content:''; position:absolute; top:0; bottom:0; width:80px; z-index:2; pointer-events:none;
}
.marquee-wrap::before{ left:0; background:linear-gradient(90deg, var(--blue-deeper), transparent); }
.marquee-wrap::after{ right:0; background:linear-gradient(270deg, var(--blue-deeper), transparent); }
.marquee-track{
  display:flex; gap:14px; width:max-content;
  animation:marquee 38s linear infinite;
}
.marquee-wrap:hover .marquee-track{ animation-play-state:paused; }
.marquee-chip{
  display:flex; align-items:center; gap:10px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:999px;
  padding:10px 20px;
  font-size:13px; color:rgba(255,255,255,0.78);
  font-family:'JetBrains Mono',monospace;
  white-space:nowrap;
}
.marquee-chip b{ color:#fff; }
.marquee-chip .ok{ color:var(--green-light); }
@keyframes marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ============ Stats ============ */
.stats-strip{
  background:var(--bg-card);
  border-radius:var(--radius);
  margin-top:-46px;
  position:relative; z-index:3;
  box-shadow:var(--shadow-lg);
  display:grid; grid-template-columns:repeat(6,1fr);
  border:1px solid var(--line);
}
.stat-item{
  padding:24px 16px; text-align:center;
  border-right:1px solid var(--line);
}
.stat-item:last-child{ border-right:none; }
.stat-num{
  font-family:'JetBrains Mono',monospace;
  font-size:clamp(13px,1.4vw,17px);
  font-weight:700;
  background:var(--grad-brand);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  letter-spacing:0.04em;
}
.stat-label{ font-size:12px; color:var(--ink-soft); margin-top:6px; font-weight:500; }
@media (max-width:900px){
  .stats-strip{ grid-template-columns:repeat(3,1fr); margin-top:-30px; }
  .stat-item{ border-bottom:1px solid var(--line); padding:18px 10px; }
  .stat-item:nth-child(3n){ border-right:none; }
}
@media (max-width:480px){
  .stats-strip{ grid-template-columns:repeat(2,1fr); }
  .stat-item:nth-child(3n){ border-right:1px solid var(--line); }
  .stat-item:nth-child(2n){ border-right:none; }
}

/* ============ Section heading ============ */
.section-head{ max-width:640px; margin-bottom:52px; }
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head h2{ font-size:clamp(28px,3.6vw,42px); margin-bottom:14px; }
.section-head p{ font-size:16.5px; }

/* ============ Service cards ============ */
.grid-cards{
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
}
@media (max-width:980px){ .grid-cards{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .grid-cards{ grid-template-columns:1fr; } }

.card{
  background:var(--bg-card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:30px;
  transition:transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-md);
  border-color:rgba(30,136,199,0.25);
}
.card-icon{
  width:48px; height:48px; border-radius:14px;
  background:var(--grad-brand);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px;
  color:#fff;
}
.card-icon svg{ width:24px; height:24px; }
.card h3{ font-size:19px; margin-bottom:10px; }
.card p{ font-size:14.5px; }
.card-tag{
  margin-top:18px; display:inline-flex; align-items:center; gap:6px;
  font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--blue-primary);
  font-weight:600; letter-spacing:0.04em;
}

/* ============ Scroll reveal ============ */
.reveal{ opacity:0; transform:translateY(36px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible{ opacity:1; transform:translateY(0); }
.reveal-stagger > *{ opacity:0; transform:translateY(28px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-stagger.visible > *{ opacity:1; transform:translateY(0); }
.reveal-stagger.visible > *:nth-child(1){ transition-delay:.05s; }
.reveal-stagger.visible > *:nth-child(2){ transition-delay:.12s; }
.reveal-stagger.visible > *:nth-child(3){ transition-delay:.19s; }
.reveal-stagger.visible > *:nth-child(4){ transition-delay:.26s; }
.reveal-stagger.visible > *:nth-child(5){ transition-delay:.33s; }
.reveal-stagger.visible > *:nth-child(6){ transition-delay:.40s; }

/* ============ CTA band ============ */
.cta-band{
  background:var(--grad-hero);
  border-radius:28px;
  padding:64px 48px;
  text-align:center;
  color:#fff;
  position:relative; overflow:hidden;
}
.cta-band h2{ font-size:clamp(26px,3.4vw,40px); margin-bottom:14px; }
.cta-band p{ color:rgba(255,255,255,0.72); max-width:520px; margin:0 auto 30px; }
.cta-glow{
  position:absolute; width:380px; height:380px; border-radius:50%;
  background:var(--grad-brand); opacity:0.18; filter:blur(80px);
  top:-120px; right:-120px;
}

/* ============ Testimonials ============ */
.testi-track{
  display:flex; gap:22px; overflow-x:auto; scroll-snap-type:x mandatory;
  padding-bottom:10px; -ms-overflow-style:none; scrollbar-width:none;
}
.testi-track::-webkit-scrollbar{ display:none; }
.testi-card{
  flex:0 0 auto; width:340px; scroll-snap-align:start;
  background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px;
}
.testi-stars{ color:var(--green-primary); font-size:15px; margin-bottom:14px; letter-spacing:2px; }
.testi-quote{ font-size:15px; color:var(--ink); margin-bottom:20px; line-height:1.7; }
.testi-person{ display:flex; align-items:center; gap:12px; }
.testi-avatar{
  width:42px; height:42px; border-radius:50%;
  background:var(--grad-brand);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:700; font-family:'Sora',sans-serif; font-size:15px;
}
.testi-name{ font-weight:600; font-size:14px; }
.testi-role{ font-size:12.5px; color:var(--ink-soft); }

/* ============ Footer ============ */
.footer{
  background:var(--blue-deeper);
  color:rgba(255,255,255,0.7);
  padding:64px 0 28px;
}
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px;
  padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,0.08);
}
@media (max-width:860px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.footer-brand .logo-word{ color:#fff; }
.footer p{ color:rgba(255,255,255,0.55); font-size:14px; max-width:280px; }
.footer h5{
  color:#fff; font-family:'Sora',sans-serif; font-size:14px; letter-spacing:0.06em;
  text-transform:uppercase; margin-bottom:18px; font-weight:600;
}
.footer-links{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:11px; }
.footer-links a{ color:rgba(255,255,255,0.6); font-size:14px; transition:color .25s; }
.footer-links a:hover{ color:var(--green-light); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
  padding-top:26px; font-size:13px; color:rgba(255,255,255,0.45);
}
.social-row{ display:flex; gap:10px; }
.social-icon{
  width:38px; height:38px; border-radius:50%;
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12);
  display:flex; align-items:center; justify-content:center;
  transition:background .25s, transform .25s, border-color .25s;
  color:#fff;
}
.social-icon:hover{ background:var(--grad-brand); transform:translateY(-3px); border-color:transparent; }
.social-icon svg{ width:17px; height:17px; }

/* ============ Modal popup ============ */
.modal-overlay{
  position:fixed; inset:0; z-index:2000;
  background:rgba(7,31,54,0.55);
  backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transition:opacity .35s var(--ease), visibility .35s;
  padding:20px;
}
.modal-overlay.open{ opacity:1; visibility:visible; }
.modal-box{
  background:#fff; border-radius:22px; padding:40px;
  max-width:460px; width:100%;
  box-shadow:var(--shadow-lg);
  transform:translateY(24px) scale(.97); transition:transform .4s var(--ease);
  position:relative;
}
.modal-overlay.open .modal-box{ transform:translateY(0) scale(1); }
.modal-close{
  position:absolute; top:18px; right:18px;
  width:34px; height:34px; border-radius:50%;
  border:1px solid var(--line); background:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  color:var(--ink-soft); transition:.25s;
}
.modal-close:hover{ background:var(--bg-light); }
.modal-box h3{ font-size:23px; margin-bottom:8px; }
.modal-box p.sub{ font-size:14px; margin-bottom:24px; }
.form-field{ margin-bottom:16px; }
.form-field label{ display:block; font-size:13px; font-weight:600; margin-bottom:7px; color:var(--ink); }
.form-field input, .form-field select, .form-field textarea{
  width:100%; padding:12px 14px; border-radius:10px; border:1px solid var(--line);
  font-size:14px; font-family:'Inter',sans-serif; color:var(--ink);
  transition:border-color .25s, box-shadow .25s; background:var(--bg-light);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline:none; border-color:var(--blue-primary); box-shadow:0 0 0 3px rgba(30,136,199,0.12); background:#fff;
}
.form-field textarea{ resize:vertical; min-height:90px; }
.btn-block{ width:100%; }

/* Keyboard focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:2px solid var(--blue-primary); outline-offset:2px;
}

/* ============ Page hero (light pages) ============ */
.page-hero{
  background:var(--grad-hero); color:#fff;
  padding:160px 0 80px; position:relative; overflow:hidden;
}
.page-hero::after{
  content:'';
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:linear-gradient(to bottom, transparent, rgba(0,0,0,0.6) 30%, transparent 95%);
}
.page-hero h1{ font-size:clamp(34px,5vw,56px); position:relative; z-index:2; }
.page-hero p{ position:relative; z-index:2; color:rgba(255,255,255,0.74); max-width:560px; margin-top:16px; font-size:17px; }

/* ============ Badge pill ============ */
.pill{
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.18);
  border-radius:999px; padding:7px 16px; font-size:12.5px; font-weight:600; color:#fff;
  backdrop-filter:blur(8px);
}

/* utility */
.text-grad{ background:var(--grad-brand); -webkit-background-clip:text; background-clip:text; color:transparent; }
.mt-12{ margin-top:12px; } .mt-24{ margin-top:24px; } .mt-48{ margin-top:48px; }