/* ============================================================
   AGPE FINTECH — Main Stylesheet v1.0.3
   ============================================================ */

/* ── 1. Design Tokens ──────────────────────────────────────── */
:root {
  /* Brand palette */
  --clr-blue:       #0A4DCC;
  --clr-blue-dark:  #0839A0;
  --clr-blue-light: #3B82F6;
  --clr-navy:       #0B1B3B;
  --clr-green:      #10B981;
  --clr-green-dark: #059669;
  --clr-mint:       #34D399;
  --clr-lime:       #A7F3D0;

  /* Neutrals */
  --clr-ink:        #0F172A;
  --clr-ink-2:      #1E293B;
  --clr-muted:      #475569;
  --clr-border:     #E2E8F0;
  --clr-bg:         #F8FAFC;
  --clr-bg-2:       #F0F4FF;
  --clr-white:      #FFFFFF;

  /* Gradients */
  --grad-brand:     linear-gradient(135deg, var(--clr-blue) 0%, var(--clr-green) 100%);
  --grad-brand-r:   linear-gradient(135deg, var(--clr-green) 0%, var(--clr-blue) 100%);
  --grad-blue:      linear-gradient(135deg, var(--clr-blue) 0%, var(--clr-blue-light) 100%);
  --grad-navy:      linear-gradient(160deg, var(--clr-navy) 0%, #0D2855 100%);
  --grad-glass:     linear-gradient(120deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.06) 100%);

  /* Typography */
  --ff-head:        'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --ff-body:        'Inter', 'Segoe UI', sans-serif;
  --fs-xs:          0.75rem;
  --fs-sm:          0.875rem;
  --fs-base:        1rem;
  --fs-lg:          1.125rem;
  --fs-xl:          1.25rem;
  --fs-2xl:         1.5rem;
  --fs-3xl:         1.875rem;
  --fs-4xl:         2.25rem;
  --fs-5xl:         3rem;
  --fs-6xl:         3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container: 1280px;
  --container-pad: clamp(1rem, 4vw, 2rem);
  --radius-sm: 0.375rem;
  --radius:    0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow:    0 4px 16px rgba(10,77,204,0.10), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(10,77,204,0.15), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 64px rgba(10,77,204,0.20);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.25s;
  --dur-slow: 0.45s;

  /* Header height */
  --header-h: 72px;
  --topbar-h: 40px;
}

/* ── 2. Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  color: var(--clr-ink);
  background: var(--clr-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--clr-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── 3. Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--clr-ink);
}

h1 { font-size: clamp(var(--fs-3xl), 5vw, var(--fs-6xl)); }
h2 { font-size: clamp(var(--fs-2xl), 3.5vw, var(--fs-4xl)); }
h3 { font-size: clamp(var(--fs-xl), 2.5vw, var(--fs-2xl)); }
h4 { font-size: var(--fs-lg); font-weight: 600; }

p { max-width: 65ch; }
.lead { font-size: var(--fs-lg); color: var(--clr-muted); }

/* Gradient text utility */
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 4. Layout utilities ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section-gap { padding-block: var(--space-20); }
@media (max-width: 768px) { .section-gap { padding-block: var(--space-16); } }

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}
.section-header h2 { margin-bottom: var(--space-4); }
.section-header p { color: var(--clr-muted); max-width: 60ch; margin-inline: auto; font-size: var(--fs-lg); }
.section-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  background: var(--clr-bg-2);
  color: var(--clr-blue);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid rgba(10,77,204,0.15);
  margin-bottom: var(--space-4);
}

/* ── 5. Scroll progress ────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-brand);
  z-index: 1000;
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  pointer-events: none;
}

/* ── 6. Topbar ─────────────────────────────────────────────── */
.topbar {
  background: var(--clr-navy);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.topbar__left, .topbar__right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.75);
}
.topbar__left a, .topbar__right a { color: rgba(255,255,255,0.85); transition: color var(--dur) var(--ease); }
.topbar__left a:hover, .topbar__right a:hover { color: var(--clr-mint); }
.topbar__icon { width: 14px; height: 14px; flex-shrink: 0; }
.topbar__sep { opacity: 0.4; }
.topbar__badge {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-3);
  background: rgba(16,185,129,0.15);
  color: var(--clr-mint);
  border-radius: 100px;
  border: 1px solid rgba(16,185,129,0.3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.topbar__login { font-weight: 600; color: var(--clr-mint) !important; }
@media (max-width: 640px) {
  .topbar__left a:not(:first-child), .topbar__sep { display: none; }
  .topbar__badge { display: none; }
}

/* ── 7. Site Header ────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  will-change: background, box-shadow;
  transform: translateZ(0);
}
.site-header.scrolled {
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.97);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.site-header__logo img { height: 44px; width: auto; }

.site-nav { flex: 1; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.site-nav__link {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-muted);
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-nav__link:hover, .site-nav__link.active {
  color: var(--clr-blue);
  background: var(--clr-bg-2);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-toggle { display: none; padding: var(--space-2); border-radius: var(--radius-sm); }
.nav-toggle__icon { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .site-nav, .site-header__actions .btn--ghost { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
}
@media (max-width: 480px) {
  .site-header__actions { gap: var(--space-2); }
  .site-header__actions .btn--primary { display: none; }
}

/* ── 8. Mobile Drawer ──────────────────────────────────────── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,27,59,0.6);
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease);
}
.mobile-overlay.open { opacity: 1; pointer-events: all; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 90vw);
  background: var(--clr-white);
  z-index: 960;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--clr-border);
}
.mobile-drawer__nav { flex: 1; padding: var(--space-6); overflow-y: auto; }
.mobile-drawer__nav ul { display: flex; flex-direction: column; gap: var(--space-1); }
.mobile-drawer__nav a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--clr-ink);
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.mobile-drawer__nav a:hover { background: var(--clr-bg-2); color: var(--clr-blue); }
.mobile-drawer__cta { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); border-top: 1px solid var(--clr-border); }
.nav-close { padding: var(--space-2); border-radius: var(--radius-sm); color: var(--clr-muted); }
.nav-close__icon { width: 24px; height: 24px; }

/* ── 9. Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--ff-head);
  font-weight: 700;
  border-radius: var(--radius);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--grad-brand);
  color: var(--clr-white);
  padding: var(--space-3) var(--space-6);
  font-size: var(--fs-sm);
  box-shadow: 0 4px 14px rgba(10,77,204,0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,77,204,0.35);
  filter: brightness(1.08);
}
.btn--ghost {
  background: transparent;
  color: var(--clr-blue);
  border-color: var(--clr-blue);
  padding: var(--space-3) var(--space-6);
  font-size: var(--fs-sm);
}
.btn--ghost:hover {
  background: var(--clr-blue);
  color: var(--clr-white);
}
.btn--outline-white {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,0.5);
  padding: var(--space-3) var(--space-6);
  font-size: var(--fs-sm);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--clr-white);
}
.btn--sm { padding: var(--space-2) var(--space-5); font-size: var(--fs-xs); }
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--fs-base); border-radius: var(--radius-lg); }
.btn--full { width: 100%; }

/* ── 10. Hero Section ──────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--grad-navy);
  overflow: hidden;
  padding-top: var(--space-20);
  padding-bottom: 0;
  min-height: calc(100svh - var(--header-h) - var(--topbar-h));
  display: flex;
  flex-direction: column;
}
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero__bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero__bg-orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(10,77,204,0.3) 0%, transparent 70%);
  top: -10%;
  right: -5%;
}
.hero__bg-orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.2) 0%, transparent 70%);
  bottom: 10%;
  left: -5%;
}
.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding-bottom: var(--space-16);
}
.hero__content { display: flex; flex-direction: column; gap: var(--space-6); }
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(16,185,129,0.15);
  color: var(--clr-mint);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
}
.hero__label-dot {
  width: 8px;
  height: 8px;
  background: var(--clr-mint);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.hero h1 {
  color: var(--clr-white);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 800;
}
.hero h1 .accent { color: var(--clr-mint); }
.hero__desc {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.72);
  max-width: 52ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}
.hero__quick-services {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.hero__service-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
}
.hero__service-chip:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(16,185,129,0.4);
  transform: translateY(-4px);
}
.hero__service-chip .icon { width: 32px; height: 32px; }
.hero__service-chip span { font-size: 10px; color: rgba(255,255,255,0.75); font-weight: 600; text-align: center; line-height: 1.3; }

/* Hero scene */
.hero__scene { position: relative; display: flex; align-items: center; justify-content: center; }
.hero__scene svg { width: 100%; max-width: 540px; }

/* Chip animations */
@keyframes float-up { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-down { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(12px); } }
@keyframes rotate-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes sparkle { 0%, 100% { opacity: 0; transform: scale(0); } 50% { opacity: 1; transform: scale(1); } }

.anim-float-up { animation: float-up 4s ease-in-out infinite; }
.anim-float-down { animation: float-down 4.5s ease-in-out infinite; }
.anim-rotate { animation: rotate-slow 20s linear infinite; transform-origin: center; }
.anim-sparkle-1 { animation: sparkle 3s ease-in-out infinite 0s; }
.anim-sparkle-2 { animation: sparkle 3s ease-in-out infinite 1s; }
.anim-sparkle-3 { animation: sparkle 3s ease-in-out infinite 2s; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { align-items: center; }
  .hero__desc { text-align: center; }
  .hero__scene { display: none; }
  .hero__quick-services { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .hero__quick-services { grid-template-columns: repeat(3, 1fr); }
}

/* ── 11. Trust Strip ───────────────────────────────────────── */
.trust-strip {
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--space-5) 0;
}
.trust-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-8);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-muted);
  white-space: nowrap;
}
.trust-item .icon {
  width: 20px;
  height: 20px;
  color: var(--clr-blue);
}
.trust-sep { color: var(--clr-border); font-size: var(--fs-lg); }
@media (max-width: 640px) {
  .trust-strip__inner { gap: var(--space-5); }
  .trust-sep { display: none; }
}

/* ── 12. Section: About (inside hero area) ─────────────────── */
#about { scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + 8px); }

/* ── 13. Services Bento Grid ───────────────────────────────── */
.services {
  position: relative;
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(10,77,204,0.06), transparent 60%),
    radial-gradient(900px 400px at -10% 110%, rgba(16,185,129,0.06), transparent 60%),
    var(--clr-white);
  overflow: hidden;
}
.services__bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.services__bg-orb--1 {
  width: 360px; height: 360px;
  top: 8%; right: -120px;
  background: radial-gradient(circle, rgba(10,77,204,0.45), transparent 70%);
}
.services__bg-orb--2 {
  width: 420px; height: 420px;
  bottom: 4%; left: -160px;
  background: radial-gradient(circle, rgba(16,185,129,0.4), transparent 70%);
}
.services .container { position: relative; z-index: 1; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(300px, auto);
  gap: var(--space-5);
}

.service-tile {
  position: relative;
  isolation: isolate;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: 22px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  cursor: default;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease;
  --svc-1: var(--clr-blue);
  --svc-2: var(--clr-green);
  --svc-grad: var(--grad-brand);
}

/* Subtle dot pattern in background corner */
.service-tile__pattern {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(circle at 1px 1px, rgba(15,23,42,0.06) 1px, transparent 0);
  background-size: 18px 18px;
  background-position: top right;
  -webkit-mask-image: linear-gradient(225deg, #000 0%, transparent 55%);
          mask-image: linear-gradient(225deg, #000 0%, transparent 55%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease;
}

/* Color-tinted glow that fades in on hover (bottom-right) */
.service-tile__glow {
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  bottom: -140px;
  border-radius: 50%;
  background: var(--svc-grad);
  filter: blur(60px);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

/* Animated gradient border on hover */
.service-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--svc-grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}
.service-tile:hover {
  transform: translateY(-8px);
  box-shadow:
    0 30px 60px -20px rgba(15,23,42,0.18),
    0 12px 24px -12px color-mix(in srgb, var(--svc-1) 35%, transparent);
  border-color: transparent;
}
.service-tile:hover::before { opacity: 1; }
.service-tile:hover .service-tile__glow { opacity: 0.18; transform: scale(1.06); }
.service-tile:hover .service-tile__pattern { opacity: 1; }

/* Layout */
.service-tile__head,
.service-tile__body,
.service-tile__foot { position: relative; z-index: 2; }

.service-tile__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.service-tile__icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--svc-1) 10%, white);
  box-shadow:
    0 10px 20px -10px color-mix(in srgb, var(--svc-1) 60%, transparent),
    inset 0 -2px 0 color-mix(in srgb, var(--svc-1) 12%, transparent);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-tile__icon .icon {
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 1;
  color: var(--svc-1);
  fill: var(--svc-1);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-tile__icon-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--svc-grad);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.service-tile:hover .service-tile__icon {
  transform: rotate(-6deg) scale(1.05);
}
.service-tile:hover .service-tile__icon-bg { opacity: 1; }
.service-tile:hover .service-tile__icon .icon {
  color: #fff;
  fill: #fff;
  transform: rotate(6deg);
}

.service-tile__num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  background: var(--svc-grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.55;
  letter-spacing: -0.02em;
}

.service-tile__pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--svc-1) 10%, white);
  color: var(--svc-1);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  border: 1px solid color-mix(in srgb, var(--svc-1) 18%, transparent);
}

.service-tile__body { flex: 1; }
.service-tile__body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--clr-ink);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.service-tile__body p {
  font-size: 13.5px;
  color: var(--clr-muted);
  line-height: 1.6;
}

.service-tile__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed color-mix(in srgb, var(--clr-border) 100%, transparent);
}
.service-tile__metric { display: flex; flex-direction: column; gap: 2px; }
.service-tile__metric strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-ink);
  letter-spacing: -0.01em;
}
.service-tile__metric span {
  font-size: 11px;
  color: var(--clr-muted);
  letter-spacing: 0.01em;
}

.service-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--svc-1);
  white-space: nowrap;
}
.service-tile__cta-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--svc-1) 12%, white);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}
.service-tile__cta-arrow .icon {
  width: 14px;
  height: 14px;
  color: var(--svc-1);
  fill: var(--svc-1);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease, fill 0.3s ease;
}
.service-tile:hover .service-tile__cta-arrow {
  background: var(--svc-grad);
  transform: translateX(4px);
}
.service-tile:hover .service-tile__cta-arrow .icon {
  color: #fff; fill: #fff;
  transform: translateX(2px);
}

/* Variants */
.service-tile--hero {
  grid-column: span 2;
  grid-row: span 2;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--svc-1) 6%, white) 0%, white 60%),
    var(--clr-white);
  padding: 32px;
}
.service-tile--hero .service-tile__icon { width: 68px; height: 68px; border-radius: 20px; }
.service-tile--hero .service-tile__icon .icon { width: 36px; height: 36px; }
.service-tile--hero .service-tile__num { font-size: 38px; }
.service-tile--hero .service-tile__body h3 { font-size: 28px; line-height: 1.2; }
.service-tile--hero .service-tile__body p { font-size: 15px; max-width: 95%; }
.service-tile--hero .service-tile__metric strong { font-size: 18px; }
.service-tile--hero .service-tile__glow { width: 480px; height: 480px; opacity: 0.12; }
.service-tile--hero .service-tile__pattern { background-size: 22px 22px; }

.service-tile--wide { grid-column: span 2; }

/* Responsive bento → graceful fallback */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-tile--hero { grid-column: span 3; grid-row: auto; }
  .service-tile--wide { grid-column: span 3; }
}
@media (max-width: 760px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .service-tile { padding: 22px; }
  .service-tile--hero,
  .service-tile--wide { grid-column: span 2; }
  .service-tile--hero { padding: 26px; }
  .service-tile--hero .service-tile__body h3 { font-size: 22px; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-tile--hero,
  .service-tile--wide { grid-column: span 1; }
  .service-tile__foot { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ── 14. Products Tabs ─────────────────────────────────────── */
.products { background: var(--clr-bg); }
.products__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-10);
}
.tab-btn {
  padding: var(--space-3) var(--space-6);
  border-radius: 100px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-muted);
  background: var(--clr-white);
  border: 1.5px solid var(--clr-border);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}
.tab-btn:hover { color: var(--clr-blue); border-color: var(--clr-blue); }
.tab-btn.active {
  background: var(--grad-brand);
  color: var(--clr-white);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(10,77,204,0.3);
}
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
.tab-panel__content { display: flex; flex-direction: column; gap: var(--space-5); }
.tab-panel__content h3 { font-size: clamp(var(--fs-2xl), 3vw, var(--fs-3xl)); }
.tab-panel__content p { color: var(--clr-muted); font-size: var(--fs-lg); }
.tab-panel__features { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-2); }
.tab-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--clr-ink-2);
}
.tab-feature__check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--clr-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.tab-feature__check .icon { width: 12px; height: 12px; color: white; }
.tab-panel__visual { position: relative; }
.phone-mock {
  position: relative;
  margin: 0 auto;
  max-width: 280px;
}
@media (max-width: 768px) {
  .tab-panel.active { grid-template-columns: 1fr; }
  .tab-panel__visual { order: -1; max-width: 240px; margin: 0 auto; }
}

/* ── 15. How It Works ──────────────────────────────────────── */
.how-it-works { background: var(--clr-white); }
.hiw-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  position: relative;
}
.hiw-connector {
  position: absolute;
  top: 40px;
  left: calc(12.5% + 40px);
  right: calc(12.5% + 40px);
  height: 2px;
  background: linear-gradient(90deg, var(--clr-blue) 0%, var(--clr-green) 100%);
  z-index: 0;
}
.hiw-connector::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 40%;
  height: 10px;
  background: var(--grad-brand);
  border-radius: 5px;
  animation: progress-bar 3s ease-in-out infinite alternate;
}
@keyframes progress-bar { from { width: 0%; } to { width: 100%; } }
.hiw-step {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.hiw-step__num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--clr-bg-2);
  border: 2px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-slow) var(--ease);
  position: relative;
}
.hiw-step__num .icon { width: 36px; height: 36px; }
.hiw-step:hover .hiw-step__num {
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(10,77,204,0.3);
  transform: scale(1.1);
}
.hiw-step__num-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  background: var(--clr-green);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hiw-step h4 { font-size: var(--fs-base); font-weight: 700; color: var(--clr-ink); }
.hiw-step p { font-size: var(--fs-sm); color: var(--clr-muted); text-align: center; }
@media (max-width: 768px) {
  .hiw-steps { grid-template-columns: repeat(2, 1fr); }
  .hiw-connector { display: none; }
}
@media (max-width: 480px) {
  .hiw-steps { grid-template-columns: 1fr; }
}

/* ── 16. Stats ─────────────────────────────────────────────── */
.stats { background: var(--grad-navy); position: relative; overflow: hidden; }
.stats__bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(59,130,246,0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.stat-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all var(--dur) var(--ease);
}
.stat-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.stat-ring {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-5);
}
.stat-ring circle { transition: stroke-dashoffset 2s ease var(--ease); }
.stat-value {
  font-family: var(--ff-head);
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1;
}
.stat-value .suffix { font-size: 0.6em; color: var(--clr-mint); }
.stat-label {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
  margin-top: var(--space-2);
  font-weight: 500;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

/* ── 17. Partners Marquee ──────────────────────────────────── */
.partners { background: var(--clr-bg); }
.partners__label { text-align: center; font-size: var(--fs-sm); font-weight: 600; color: var(--clr-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-8); }
.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: var(--space-10);
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.partner-logo {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-5);
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  color: var(--clr-muted);
  filter: grayscale(1) opacity(0.65);
  transition: all var(--dur) var(--ease);
  flex-shrink: 0;
}
.partner-logo:hover { filter: none; box-shadow: var(--shadow); }
.partner-logo svg { height: 28px; width: auto; }

/* ── 18. Testimonials ──────────────────────────────────────── */
.testimonials { background: var(--clr-white); }
.testimonials .swiper { padding-bottom: var(--space-10); }
.testimonials .swiper-pagination-bullet { background: var(--clr-blue); }
.testimonials .swiper-pagination-bullet-active { background: var(--clr-green); width: 24px; border-radius: 4px; }
.testimonial-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.testimonial-stars { display: flex; gap: 3px; }
.testimonial-stars .icon { width: 16px; height: 16px; color: #F59E0B; }
.testimonial-text { font-size: var(--fs-base); color: var(--clr-muted); line-height: 1.7; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: var(--space-4); }
.testimonial-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: var(--fs-sm);
  color: var(--clr-white);
}
.testimonial-name { font-weight: 700; font-size: var(--fs-sm); color: var(--clr-ink); }
.testimonial-role { font-size: var(--fs-xs); color: var(--clr-muted); }

/* ── 19. Partner CTA ───────────────────────────────────────── */
.partner-cta {
  background: var(--grad-brand);
  position: relative;
  overflow: hidden;
}
.partner-cta__bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.partner-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.partner-cta__content { color: var(--clr-white); }
.partner-cta__content h2 { color: var(--clr-white); margin-bottom: var(--space-4); }
.partner-cta__content p { color: rgba(255,255,255,0.8); font-size: var(--fs-lg); max-width: 45ch; }
.partner-cta__points { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); }
.partner-cta__point {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.9);
}
.partner-cta__point .icon { width: 20px; height: 20px; color: var(--clr-lime); flex-shrink: 0; }
.partner-form {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.partner-form h3 { font-size: var(--fs-xl); margin-bottom: var(--space-2); }
@media (max-width: 900px) {
  .partner-cta__inner { grid-template-columns: 1fr; }
}

/* ── 20. FAQ ───────────────────────────────────────────────── */
.faq { background: var(--clr-bg); }
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease);
}
.faq-item.open { box-shadow: var(--shadow); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--clr-ink);
  text-align: left;
  background: none;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.faq-question:hover { color: var(--clr-blue); }
.faq-item.open .faq-question { color: var(--clr-blue); }
.faq-chevron {
  width: 20px;
  height: 20px;
  min-width: 20px;
  color: var(--clr-muted);
  transition: transform var(--dur) var(--ease);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--clr-blue); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease), padding var(--dur) var(--ease);
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer__inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--fs-sm);
  color: var(--clr-muted);
  line-height: 1.8;
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-4);
}

/* ── 21. Contact ───────────────────────────────────────────── */
.contact { background: var(--clr-white); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-10);
  align-items: start;
}
.contact-info-card {
  background: var(--grad-navy);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  color: rgba(255,255,255,0.85);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.contact-info-card h3 { color: var(--clr-white); }
.contact-info-item { display: flex; align-items: flex-start; gap: var(--space-4); font-size: var(--fs-sm); }
.contact-info-item .icon { width: 20px; height: 20px; color: var(--clr-mint); flex-shrink: 0; margin-top: 2px; }
.contact-info-item strong { color: var(--clr-white); display: block; margin-bottom: 4px; }
.contact-cin {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}
@media (max-width: 768px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ── 22. Forms (shared) ────────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label { font-size: var(--fs-sm); font-weight: 600; color: var(--clr-ink-2); }
.form-label .req { color: var(--clr-green); }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  color: var(--clr-ink);
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--clr-blue);
  box-shadow: 0 0 0 3px rgba(10,77,204,0.1);
  background: var(--clr-white);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23475569' stroke-width='1.5' d='M5 7l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
.form-msg { font-size: var(--fs-sm); margin-top: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius); display: none; }
.form-msg.success { display: block; background: rgba(16,185,129,0.1); color: var(--clr-green-dark); border: 1px solid rgba(16,185,129,0.3); }
.form-msg.error { display: block; background: rgba(239,68,68,0.08); color: #DC2626; border: 1px solid rgba(239,68,68,0.2); }
.form-msg.loading { display: block; background: var(--clr-bg-2); color: var(--clr-muted); }

/* ── 23. Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--clr-navy);
  color: rgba(255,255,255,0.7);
  padding-top: var(--space-16);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand { display: flex; flex-direction: column; gap: var(--space-5); }
.footer__logo img { height: 38px; }
.footer__tagline { font-size: var(--fs-sm); line-height: 1.7; max-width: 36ch; }
.footer__social { display: flex; gap: var(--space-4); }
.footer__social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--dur) var(--ease);
}
.footer__social a:hover { background: var(--grad-brand); color: white; }
.footer__heading {
  font-family: var(--ff-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: var(--space-4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer__links { display: flex; flex-direction: column; gap: var(--space-2); }
.footer__links a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--dur) var(--ease);
}
.footer__links a:hover { color: var(--clr-mint); }
.footer__address { font-size: var(--fs-sm); line-height: 1.8; margin-bottom: var(--space-4); }
.footer__contact-list { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__contact-list li { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); }
.footer__contact-list a { color: rgba(255,255,255,0.7); transition: color var(--dur) var(--ease); }
.footer__contact-list a:hover { color: var(--clr-mint); }
.footer__icon { width: 16px; height: 16px; color: var(--clr-mint); flex-shrink: 0; }
.footer__compliance {
  padding: var(--space-6) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
}
.footer__compliance strong { color: rgba(255,255,255,0.7); }
.footer__disclaimer { margin-top: var(--space-2); }
.footer__bottom {
  padding: var(--space-5) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.footer__legal a { color: rgba(255,255,255,0.4); transition: color var(--dur) var(--ease); }
.footer__legal a:hover { color: var(--clr-mint); }

@media (max-width: 1024px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ── 24. Back to top ───────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  background: var(--grad-brand);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: all var(--dur) var(--ease);
  box-shadow: var(--shadow-lg);
  z-index: 800;
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

/* ── 25. Misc animations (scroll reveal) ──────────────────── */
/* Only hide reveal elements when JS is confirmed loaded. */
/* If JS fails, content is fully visible by default. */
html.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
html.js .reveal.visible,
html.no-js .reveal { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
/* Reduced motion users see content immediately */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── 26. About block responsive fix ───────────────────────── */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}
@media (max-width: 900px) {
  .about-block { grid-template-columns: 1fr; }
  .about-block > div:last-child { order: -1; }
}

/* Partner type cards responsive */
@media (max-width: 768px) {
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    display: flex !important;
    flex-direction: column !important;
  }
}

/* ── 26. Page / 404 ────────────────────────────────────────── */
.page-content { padding-block: var(--space-20); min-height: 60vh; }
.page-title { margin-bottom: var(--space-8); }
.page-body { max-width: 72ch; font-size: var(--fs-lg); line-height: 1.8; color: var(--clr-muted); }
.not-found { display: flex; align-items: center; justify-content: center; min-height: 60vh; text-align: center; }
.not-found__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
.not-found__code { font-size: 120px; font-weight: 800; font-family: var(--ff-head); background: var(--grad-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }

/* ── 27. Scroll margin for sections ───────────────────────── */
section[id], div[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}
