/* ============================================================
   AmpyPay — Landing page
   Brand: Navy #0A1F44 · Electric Blue #2563EA · Cream #FBFBEE
   Type: Inter
   ============================================================ */

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0A1F44;
  --navy-80: rgba(10, 31, 68, 0.8);
  --navy-deep: #071737;
  --blue: #2563EA;
  --blue-soft: rgba(37, 99, 234, 0.14);
  --cream: #FBFBEE;
  --cream-60: rgba(251, 251, 238, 0.6);
  --ink: #0A1F44;
  --line-light: rgba(251, 251, 238, 0.12);
  --line-dark: rgba(10, 31, 68, 0.12);
  --red: #E5484D;
  --amber: #E89B0C;
  --purple: #7C6AEF;
  --green: #22C55E;
  --radius: 20px;
  --nav-h: 76px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: #fff; }

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

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* Subtle film grain */
body::after {
  content: '';
  position: fixed; inset: -50%;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ Typography ============ */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 22px;
}
.eyebrow-line { display: inline-block; width: 34px; height: 2px; background: var(--blue); flex: none; }
.eyebrow-light { color: #6E96F5; }
.eyebrow-light .eyebrow-line { background: #6E96F5; }
.hero-eyebrow { color: #6E96F5; }

.h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 24px;
  max-width: 16ch;
}
.h2-light { color: var(--cream); }
.h2.h2-light.split { line-height: 1.16; }

.lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(10, 31, 68, 0.72);
  max-width: 54ch;
  font-weight: 400;
}
.lead-light { color: rgba(251, 251, 238, 0.72); }

.section-footnote {
  margin-top: 64px;
  padding-left: 20px;
  border-left: 3px solid var(--blue);
  font-weight: 600;
  color: var(--navy);
  max-width: 60ch;
  font-size: 0.98rem;
}
.footnote-light { color: var(--cream); }

/* Split-text helpers: words wrapped by JS into masked spans */
.split .w { display: inline-block; overflow: clip; vertical-align: bottom; }
.split .wi { display: inline-block; will-change: transform; }

/* ============ Buttons & pills ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
  will-change: transform;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1d52cc; }
.btn-ghost { border: 1px solid rgba(251, 251, 238, 0.28); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-sm { padding: 11px 24px; font-size: 0.88rem; }
.btn-lg { padding: 19px 44px; font-size: 1.05rem; }

.pill {
  display: inline-flex; align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.pill-outline { border: 1px solid rgba(251, 251, 238, 0.3); color: var(--cream); }
.pill-soft { background: rgba(251, 251, 238, 0.08); color: var(--cream); }
.powered { font-size: 0.85rem; color: rgba(251, 251, 238, 0.55); }
.powered strong { color: var(--cream); font-weight: 700; }

/* ============ Preloader ============ */
.preloader {
  position: fixed; inset: 0; z-index: 5000;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.preloader-spinner { position: relative; width: 64px; height: 64px; }
.spinner-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--blue);
  border-right-color: rgba(37, 99, 234, 0.25);
  animation: spinner-rotate 1s linear infinite;
}
.spinner-ring-inner {
  inset: 9px;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: rgba(251, 251, 238, 0.55);
  animation: spinner-rotate 1.6s linear infinite reverse;
}
.spinner-core {
  position: absolute; inset: 26px;
  border-radius: 50%;
  background: var(--blue);
  animation: spinner-pulse 1.2s ease-in-out infinite;
}
@keyframes spinner-rotate { to { transform: rotate(360deg); } }
@keyframes spinner-pulse {
  0%, 100% { transform: scale(0.55); opacity: 0.45; }
  50% { transform: scale(1); opacity: 1; }
}
.preloader-count {
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.2em;
  color: rgba(251, 251, 238, 0.6);
  font-variant-numeric: tabular-nums;
}

/* ============ Custom cursor ============ */
.cursor, .cursor-dot { display: none; }
@media (pointer: fine) {
  .cursor {
    display: block;
    position: fixed; top: 0; left: 0; z-index: 4000;
    width: 36px; height: 36px;
    border: 1.5px solid rgba(37, 99, 234, 0.9);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.25s, height 0.25s, opacity 0.25s, background 0.25s;
  }
  .cursor.is-hover { width: 64px; height: 64px; background: rgba(37, 99, 234, 0.12); }
  .cursor-dot {
    display: block;
    position: fixed; top: 0; left: 0; z-index: 4001;
    width: 5px; height: 5px;
    background: var(--blue);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
  }
}

/* ============ Navigation ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy-deep);
  padding-top: env(safe-area-inset-top);
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
/* Always-solid bar covering the iOS status-bar / safe-area inset,
   so page content never shows through above the header. Mounted on
   <body> (not .nav) and given a z-index ABOVE the nav so it sits on
   top of the scrolled nav's translucent + backdrop-filter layer. */
body::before {
  content: "";
  position: fixed; top: 0; left: 0; right: 0;
  height: env(safe-area-inset-top);
  background: var(--navy-deep);
  z-index: 1100;
  pointer-events: none;
}
.nav.scrolled {
  background: rgba(10, 31, 68, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(251, 251, 238, 0.08);
}
.nav-inner {
  width: min(1280px, 100% - 48px); margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 30px; width: auto; }

.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: rgba(251, 251, 238, 0.72);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-actions .mobile-cta { display: none; }
.nav-burger {
  display: none;
  flex-direction: column; gap: 6px;
  padding: 10px;
}
.nav-burger span { width: 24px; height: 2px; background: var(--cream); transition: transform 0.3s, opacity 0.3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 900;
  background: var(--navy-deep);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 32px 48px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu nav a {
  font-size: 2rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--cream);
  padding: 10px 0;
  border-bottom: 1px solid var(--line-light);
}
.mobile-menu nav a:last-child { border-bottom: none; }
/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 85svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + 48px) 0 96px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 60%);
}
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.9;
}
.hero-glow {
  position: absolute;
  width: 720px; height: 720px;
  right: -180px; top: -220px;
  background: radial-gradient(circle, rgba(37, 99, 234, 0.22) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-title {
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--cream);
  margin-bottom: 28px;
}
.hero-title .accent { color: var(--blue); }
/* Desktop: exactly two lines — "Purpose-built for" / "Global Payroll" */
@media (min-width: 961px) {
  .hero-title { white-space: nowrap; font-size: clamp(2.6rem, 4.5vw, 4.4rem); }
  .hero-title .accent { display: block; }
  .conf-head { max-width: 70vw; }
}
.hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: rgba(251, 251, 238, 0.7);
  max-width: 44ch;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }
.hero-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* Hero product shot */
.hero-visual { position: relative; perspective: 1200px; }
.hero-shot {
  position: relative; z-index: 2;
  width: 100%; height: auto;
  will-change: transform;
}
/* Desktop: oversize the product shot for impact; right edge clips at the viewport */
@media (min-width: 961px) {
  .hero-shot { width: 130%; max-width: none; margin-left: -75px; }
}
.ai-tag {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
  background: var(--blue); color: #fff;
  padding: 2px 7px; border-radius: 5px;
}
.ai-tag-spark { font-size: 0.9em; letter-spacing: 0; }

/* Confidence rings */
.ring { position: relative; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(251, 251, 238, 0.12); stroke-width: 8; }
.ring-val {
  fill: none; stroke: var(--green); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: var(--circ, 251); stroke-dashoffset: var(--circ, 251);
}
.ring-sm { width: 76px; height: 76px; }
.ring-sm svg { width: 76px; height: 76px; }
.ring-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: var(--green);
  font-variant-numeric: tabular-nums;
}

/* Floating chips */
.float-chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  background: rgba(10, 31, 68, 0.8);
  border: 1px solid rgba(251, 251, 238, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.55);
  color: var(--cream);
  white-space: nowrap;
}
.float-chip em { font-style: normal; color: rgba(251, 251, 238, 0.6); }
/* Overhang up to 97px on wide screens, but tuck in to fit the gutter on smaller
   desktops so the chip is never clipped by the hero's overflow: hidden. */
.chip-blockers { top: 154px; right: calc(0px - min(97px, max(24px, (100vw - 1200px) / 2) - 8px)); }
.chip-ai { bottom: calc(18% + 80px); left: -97px; }
.chip-filed { bottom: 26px; right: calc(14% + 5px); color: #9DC0FF; }
.chip-check { width: 16px; height: 16px; color: var(--blue); }
.spark { color: var(--purple); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-red { background: var(--red); }
.dot-amber { background: var(--amber); }
.dot-purple { background: var(--purple); }

/* Scroll hint */
.scroll-hint {
  position: absolute; z-index: 2;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0.65;
}
.scroll-hint-track {
  width: 24px; height: 38px;
  border: 1.5px solid rgba(251, 251, 238, 0.4);
  border-radius: 999px;
  display: flex; justify-content: center; padding-top: 7px;
}
.scroll-hint-dot { width: 4px; height: 8px; border-radius: 999px; background: var(--blue); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0.2; } }
.scroll-hint-label { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(251, 251, 238, 0.55); }

/* ============ Sections base ============ */
.section-cream { background: #f7f9fa; color: var(--navy); }
.section-navy { background: var(--navy); }
.section-navy-soft { background: var(--navy-deep); }

/* ============ Why ============ */
.why { padding: 130px 0 110px; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.feature-list { display: flex; flex-direction: column; }
.feature-row {
  display: flex; align-items: center; gap: 22px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line-dark);
  transition: background 0.3s, padding-left 0.3s;
}
.feature-row:first-child { border-top: 1px solid var(--line-dark); }
.feature-row:hover { background: rgba(37, 99, 234, 0.05); padding-left: 18px; }
.feature-num { font-size: 0.75rem; font-weight: 700; color: var(--blue); letter-spacing: 0.08em; flex: none; }
.feature-icon { width: 26px; height: 26px; color: var(--blue); flex: none; }
.feature-row p { font-size: 1.08rem; font-weight: 600; color: var(--navy); }
.feature-row strong { color: var(--blue); }

.why-shot { max-width: 705px; margin: 72px auto 0; }
.why-shot img { width: 100%; height: auto; display: block; }

.built-for {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding-top: 36px;
  border-top: 1px solid var(--line-dark);
}
.built-for-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy); flex: none;
}
.built-for-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(10, 31, 68, 0.2);
  font-size: 0.88rem; font-weight: 600;
  color: var(--navy);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }

/* ============ Exceptions ============
   Vertical stack on mobile; on desktop a two-column grid —
   compact cards on the left, large product visual on the right. */
.exceptions { position: relative; }
.exc-pin { overflow: hidden; }
.exc-track {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 20px;
  padding: 110px 0;
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}
.exc-intro { margin-bottom: 24px; }

.exc-cards { display: flex; flex-direction: column; gap: 16px; }

@media (min-width: 961px) {
  .exc-track {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px 80px;
    align-items: center;
  }
  .exc-intro { grid-column: 1; margin-bottom: 24px; }
  .exc-cards { grid-column: 1; }
  .exc-visual { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 114%; }
}

/* Product visual — oversized, glowing, layered shots */
.exc-visual { position: relative; max-width: 700px; width: 100%; margin: auto; }
.exc-visual::before {
  content: '';
  position: absolute; inset: -14% -12%;
  background: radial-gradient(closest-side, rgba(37, 99, 234, 0.5), transparent 72%);
  filter: blur(48px);
  pointer-events: none;
}
.exc-shot-back, .exc-shot-front {
  position: relative;
  width: 100%; height: auto;
  filter: none;
}
/* Apply the drop-shadow only once the image has loaded — otherwise the
   reserved (empty) box casts a phantom rectangular shadow during load. */
.exc-shot-back.is-loaded { filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45)); }
.exc-shot-back { width: 88%; }
.exc-shot-front {
  width: 64%; margin: -26% 0 0 auto; display: block;
}
.exc-shot-front.is-loaded { filter: drop-shadow(0 32px 60px rgba(0, 0, 0, 0.55)); }
.exc-note {
  margin-top: 28px; padding-left: 18px;
  border-left: 3px solid var(--blue);
  color: rgba(251, 251, 238, 0.65);
  font-size: 0.92rem; font-weight: 500;
  max-width: 40ch;
}

.exc-card {
  flex: none;
  background: rgba(251, 251, 238, 0.04);
  border: 1px solid rgba(251, 251, 238, 0.1);
  border-radius: var(--radius);
  padding: 12px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s;
}
.exc-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
}
.exc-card--blockers::before { background: var(--red); }
.exc-card--warnings::before { background: var(--amber); }
.exc-card--anomalies::before { background: var(--purple); }
.exc-card:hover { transform: translateY(-4px); border-color: rgba(251, 251, 238, 0.25); }
.exc-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.exc-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(251, 251, 238, 0.6);
}
.exc-card h3 {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 8px;
}
.exc-card > p { color: rgba(251, 251, 238, 0.62); font-size: 0.9rem; }

/* ============ Confidence ============ */
.confidence { padding: 130px 0 110px; }
.conf-head { max-width: 760px; margin-bottom: 80px; }
.conf-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.conf-visual {
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  background: var(--navy);
  border-radius: 28px;
  padding: 44px 36px 40px;
  position: relative;
  overflow: hidden;
}
.conf-visual::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  top: -160px; right: -160px;
  background: radial-gradient(circle, rgba(37, 99, 234, 0.3) 0%, transparent 65%);
}
.conf-shot-wrap { position: relative; width: 100%; }
.conf-shot { width: 100%; height: auto; border-radius: 12px; }
.conf-badge {
  position: absolute; left: -14px; bottom: -18px;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px 12px 12px;
  border-radius: 16px;
  background: rgba(10, 31, 68, 0.88);
  border: 1px solid rgba(251, 251, 238, 0.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.55);
}
.conf-badge-label {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.88rem; color: var(--cream);
}
.conf-badge-sub { display: block; font-size: 0.76rem; color: rgba(251, 251, 238, 0.6); }
.conf-visual-note { position: relative; text-align: center; font-size: 0.88rem; color: rgba(251, 251, 238, 0.6); max-width: 38ch; }

.conf-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.conf-card {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  padding: 30px 28px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s;
}
.conf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(10, 31, 68, 0.25);
  border-color: rgba(37, 99, 234, 0.4);
}
.conf-icon {
  width: 30px; height: 30px; color: var(--blue);
  margin-bottom: 18px;
  background: var(--blue-soft);
  border-radius: 10px;
  padding: 6px;
  box-sizing: content-box;
}
.conf-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; letter-spacing: -0.01em; }
.conf-card p { font-size: 0.9rem; color: rgba(10, 31, 68, 0.65); }

/* ============ Compliance ============ */
.compliance { padding: 130px 0 110px; }
.comp-head { max-width: 760px; margin-bottom: 72px; }
.comp-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}
.comp-list { border-top: 1px solid var(--line-light); }
.comp-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  align-items: start;
  padding: 28px 8px;
  border-bottom: 1px solid var(--line-light);
  transition: background 0.3s, padding-left 0.3s;
}
.comp-row:hover { background: rgba(37, 99, 234, 0.07); padding-left: 22px; }
.comp-num { font-size: 0.85rem; font-weight: 700; color: #6E96F5; letter-spacing: 0.08em; padding-top: 6px; }
.comp-row h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 700; letter-spacing: -0.015em; color: var(--cream); margin-bottom: 6px; }
.comp-row p { font-size: 0.92rem; color: rgba(251, 251, 238, 0.6); }

.comp-visuals { position: relative; aspect-ratio: 1/1; max-width: 700px; width: 100%; margin: auto; }
.comp-shot { position: absolute; height: auto; }
.comp-shot--audit { top: 0; left: 0; width: 88%; z-index: 1; }
.comp-shot--tax { top: 34%; right: 0; width: 70%; z-index: 2; }
.comp-shot--receipt { bottom: 0; left: 2%; width: 50%; z-index: 3; }

/* ============ Security ============ */
.security { padding: 130px 0 110px; }
.sec-head { max-width: 800px; margin-bottom: 72px; }
.sec-globe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 88px;
}
.globe-wrap {
  position: relative;
  aspect-ratio: 1;
  max-width: 560px;
  margin-inline: auto;
  width: 100%;
}
#globe-canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}
.globe-logo {
  position: absolute;
  top: 0; left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.globe-logo img {
  display: block;
  height: 27px;
  width: auto;
}
.sec-sub { font-size: 1.15rem; font-weight: 700; color: var(--cream); margin-bottom: 26px; letter-spacing: -0.01em; }
.region-list { display: flex; flex-direction: column; }
.region-list li {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line-light);
}
.region-list li:first-child { border-top: 1px solid var(--line-light); }
.region-list strong { display: block; font-size: 0.98rem; font-weight: 700; color: var(--cream); }
.region-list span:not(.region-pulse) { font-size: 0.82rem; color: rgba(251, 251, 238, 0.55); }
.region-flag {
  flex: none;
  width: 30px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  object-fit: cover;
}
.region-pulse {
  width: 10px; height: 10px; flex: none;
  border-radius: 50%;
  background: var(--blue);
  position: relative;
}
.region-pulse::after {
  content: '';
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--blue);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.arch-summary {
  margin-top: 36px;
  background: rgba(37, 99, 234, 0.08);
  border: 1px solid rgba(37, 99, 234, 0.25);
  border-radius: 16px;
  padding: 26px 28px;
}
.arch-summary h4 {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #6E96F5;
  margin-bottom: 14px;
}
.arch-summary ul { display: grid; gap: 9px; }
.arch-summary li {
  font-size: 0.9rem; color: rgba(251, 251, 238, 0.78);
  padding-left: 18px; position: relative;
}
.arch-summary li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
}

.sec-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 64px;
}
.sec-stat {
  padding: 40px 28px;
  border-right: 1px solid var(--line-light);
  display: flex; flex-direction: column; gap: 10px;
}
.sec-stat:first-child { padding-left: 4px; }
.sec-stat:last-child { border-right: none; }
.sec-stat-num {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sec-stat-num [data-count] { color: var(--cream); }
.sec-stat-label { font-size: 0.85rem; color: rgba(251, 251, 238, 0.58); max-width: 24ch; }

.sec-certs, .sec-controls, .sec-partners {
  display: flex; align-items: baseline; gap: 28px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.sec-certs-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(251, 251, 238, 0.5);
  width: 180px; flex: none;
}
/* Only the "Security compliance" label centers against its chip row */
.sec-certs > .sec-certs-label {
  display: flex; align-items: center; gap: 28px;
  align-self: stretch;
}
.cert-chips, .control-chips { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
.cert {
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 234, 0.45);
  background: rgba(37, 99, 234, 0.1);
  font-weight: 700; font-size: 0.9rem;
  color: var(--cream);
}
.cert em { font-style: normal; font-weight: 500; font-size: 0.75rem; color: rgba(251, 251, 238, 0.55); margin-left: 6px; }
.control-chips span {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(251, 251, 238, 0.14);
  font-size: 0.82rem; font-weight: 500;
  color: rgba(251, 251, 238, 0.7);
}
.partner-row { display: flex; gap: 28px; flex-wrap: wrap; }
.partner-row span {
  font-size: 15px; font-weight: 800; letter-spacing: 0.06em;
  color: rgba(251, 251, 238, 0.45);
  text-transform: uppercase;
}

/* ============ CTA ============ */
.cta {
  position: relative;
  padding: 170px 0 80px;
  background: var(--navy-deep);
  overflow: hidden;
  text-align: center;
}
.cta-glow {
  position: absolute;
  width: 900px; height: 900px;
  left: 50%; top: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(37, 99, 234, 0.25) 0%, transparent 60%);
  pointer-events: none;
}
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta-inner .eyebrow { justify-content: center; flex-direction: column; gap: 24px; }
.cta-inner .cta-title { margin-top: 12px; }
.cta-title {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--cream);
  margin-bottom: 30px;
  max-width: 14ch;
}
.cta-strong { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; color: var(--blue); margin-bottom: 24px; }
.cta-lead { margin-inline: auto; margin-bottom: 44px; max-width: 58ch; }
.cta-ctas { justify-content: center; margin-bottom: 36px; }
/* CTA badges: stacked plain-text status lines with glow dots, left-aligned
   as a group and centered by the cta-inner column */
.cta-badges { flex-direction: column; align-items: center; gap: 12px; margin-bottom: 36px; }
.cta-badges .pill { border: none; background: none; padding: 0; gap: 10px; }
.cta-status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-live { background: #1DE2A7; box-shadow: 0 0 6px 2px #1DE2A7; }
.dot-ready { background: #6BA9FF; box-shadow: 0 0 6px 2px #6BA9FF; }
.cta-shot { max-width: 700px; margin-top: 72px; width: 100%; margin-left: -25px; }
.cta-shot img { width: 100%; height: auto; }

/* ============ Demo Modal ============ */
.demo-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(7, 23, 55, 0.82);
  backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 32px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  animation: overlayIn 0.22s ease;
}
.demo-overlay[hidden] { display: none; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.demo-modal {
  background: var(--navy-deep);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 36px 36px 40px;
  width: 100%; max-width: 680px;
  position: relative;
  margin: auto;
  /* max-height: calc(100dvh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; */
  animation: modalIn 0.26s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.94) translateY(16px); } to { opacity: 1; transform: none; } }

.demo-close {
  position: absolute; top: 18px; right: 20px;
  background: none; border: none; color: rgba(255,255,255,0.45);
  font-size: 1.5rem; cursor: pointer; line-height: 1;
  padding: 4px 8px; border-radius: 6px; transition: color 0.2s;
}
.demo-close:hover { color: var(--cream); }

.demo-modal-head { margin-bottom: 20px; }
.demo-modal .eyebrow { color: #3D7DFF; }
.demo-modal .eyebrow-line { background: #3D7DFF; }
.demo-title { font-size: 1.55rem; font-weight: 700; color: var(--cream); margin: 8px 0 6px; }
.demo-subtitle { font-size: 0.88rem; color: rgba(251,251,238,0.55); }

.demo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.demo-form[hidden], .demo-success[hidden] { display: none; }
.demo-form .demo-privacy-note,
.demo-form #errGlobal,
.demo-form .demo-submit { grid-column: 1 / -1; }
.demo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) {
  .demo-form { grid-template-columns: 1fr; }
  .demo-row { grid-template-columns: 1fr; }
}

.demo-field { display: flex; flex-direction: column; gap: 6px; }
.demo-field label { font-size: 0.82rem; font-weight: 600; color: rgba(251,251,238,0.7); letter-spacing: 0.01em; }
.demo-field label span { color: #3D7DFF; }
.demo-field input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px; padding: 11px 14px;
  color: var(--cream); font-size: 0.9rem;
  outline: none; transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
}
.demo-field input::placeholder { color: rgba(251,251,238,0.25); }
.demo-field input:focus { border-color: var(--blue); background: rgba(37,99,234,0.08); }
.demo-field input.is-error { border-color: #f87171; }
/* Custom dropdown */
.demo-select { position: relative; }
.demo-select-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px; padding: 11px 14px;
  color: var(--cream); font-size: 0.9rem; font-family: inherit;
  cursor: pointer; text-align: left;
  transition: border-color 0.2s, background 0.2s;
}
.demo-select-btn:hover { border-color: rgba(255,255,255,0.28); }
.demo-select.is-open .demo-select-btn { border-color: var(--blue); background: rgba(37,99,234,0.08); }
.demo-select-val { color: rgba(251,251,238,0.35); transition: color 0.15s; }
.demo-select-val.has-value { color: var(--cream); }
.demo-select-chevron { color: rgba(251,251,238,0.4); flex-shrink: 0; transition: transform 0.2s; }
.demo-select.is-open .demo-select-chevron { transform: rotate(180deg); }
.demo-select-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 200;
  background: #0b1e45; border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px; overflow: hidden; list-style: none; padding: 4px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
.demo-select.is-open .demo-select-list { opacity: 1; transform: none; pointer-events: auto; }
.demo-select.is-dropup .demo-select-list { top: auto; bottom: calc(100% + 6px); transform: translateY(6px); }
.demo-select.is-dropup.is-open .demo-select-list { transform: none; }
.demo-select-opt {
  padding: 9px 12px; font-size: 0.88rem; color: rgba(251,251,238,0.65);
  border-radius: 8px; cursor: pointer; transition: background 0.12s, color 0.12s;
  display: flex; align-items: center; justify-content: space-between;
}
.demo-select-opt:hover { background: rgba(37,99,234,0.2); color: var(--cream); }
.demo-select-opt.is-selected { color: #6E96F5; font-weight: 600; }
.demo-select-opt.is-selected::after {
  content: '';
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: #6E96F5; flex-shrink: 0;
}

.demo-privacy-note {
  font-size: 0.75rem; color: rgba(251,251,238,0.38);
  line-height: 1.5; margin-top: 2px;
}

.field-error { font-size: 0.78rem; color: #f87171; min-height: 1em; }
.field-error:empty { display: none; }

.demo-submit {
  margin-top: 6px; width: 100%; justify-content: center;
  padding: 14px; font-size: 0.95rem;
}
.demo-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.demo-success { text-align: center; padding: 20px 0 10px; }
.demo-success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(37,99,234,0.18); color: var(--blue);
  font-size: 1.6rem; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 20px;
}
.demo-success h3 { font-size: 1.3rem; color: var(--cream); margin-bottom: 10px; }
.demo-success p { font-size: 0.9rem; color: rgba(251,251,238,0.6); line-height: 1.6; }
.demo-success strong { color: var(--cream); }

/* ============ Footer ============ */
.footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--line-light);
  padding: 72px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: start;
}
.footer-tag { margin: 18px 0 8px; color: rgba(251, 251, 238, 0.6); font-size: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 0.92rem; color: rgba(251, 251, 238, 0.65);
  transition: color 0.25s; position: relative; width: fit-content;
}
.footer-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s ease;
}
.footer-links a:hover { color: var(--cream); }
.footer-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-contact-heading {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(251, 251, 238, 0.4); margin-bottom: 16px;
}
.footer-contact-heading--hidden { visibility: hidden; }
.footer-contact-country {
  font-size: 0.88rem; font-weight: 600; color: var(--cream);
  margin-bottom: 8px;
}
.footer-contact-address {
  font-style: normal; font-size: 0.84rem; line-height: 1.7;
  color: rgba(251, 251, 238, 0.6);
}
.footer-contact-address a {
  color: rgba(251, 251, 238, 0.6); transition: color 0.25s;
}
.footer-contact-address a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid var(--line-light); padding-top: 28px; display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: flex-start; gap: 120px; }
.footer-disclaimer { font-size: 0.68rem; color: rgba(251, 251, 238, 0.35); line-height: 1.6; max-width: 106ch; }
.footer-copy { font-size: 0.78rem; color: rgba(251, 251, 238, 0.65); white-space: nowrap; flex-shrink: 0; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .conf-grid { gap: 48px; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-actions .btn { display: none; }
  .nav-actions .mobile-cta { display: inline-flex; padding: 4px 16px;}

  .hero { padding-bottom: 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  /* Chips mirror the desktop layout proportionally: upper-right edge /
     mid-left edge / bottom-right. Zones are vertically disjoint by >8px
     even with the ±12px idle-float drift, and hug the bezel edges so the
     core dashboard UI stays clear. */
  .chip-blockers { top: calc(28% + 35px); right: 2%; }
  .chip-ai { bottom: calc(33% - 20px); left: -3%; }
  .chip-filed { bottom: 2%; right: 24%; }
  .scroll-hint { display: none; }

  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .conf-grid { grid-template-columns: 1fr; }
  .conf-visual { max-width: 560px; margin-inline: auto; width: 100%; }

  .comp-grid { grid-template-columns: 1fr; gap: 56px; }
  .comp-row { grid-template-columns: 44px 1fr; }

  .sec-globe-grid { grid-template-columns: 1fr; gap: 40px; }
  .sec-stats { grid-template-columns: 1fr 1fr; }
  .sec-stat { padding: 28px 20px; }
  .sec-stat:first-child { padding-left: 20px; }
  .sec-stat:nth-child(2n) { border-right: none; }
  .sec-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-light); }
  .sec-certs-label { width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact-heading--hidden { display: none; }
}

@media (max-width: 768px) {
  .footer-bottom { flex-direction: column; gap: 20px; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 40px); }
  .why, .confidence, .compliance, .security { padding: 90px 0 80px; }
  .cta { padding: 120px 0 100px; }
  .cta-shot { margin-left: 0; }
  .float-chip { font-size: 0.74rem; padding: 10px 14px; }
  .conf-head { margin-bottom: 56px; }
  .comp-head { margin-bottom: 56px; }
  .sec-head { margin-bottom: 56px; }
  .conf-cards { grid-template-columns: none; }
  .conf-badge { left: 8px; bottom: -14px; padding: 10px 14px 10px 10px; gap: 10px; }
  .conf-badge .ring-sm, .conf-badge .ring-sm svg { width: 56px; height: 56px; }
  .conf-badge .ring-num { font-size: 0.85rem; }
  .sec-stats { grid-template-columns: 1fr; }
  .sec-stat { border-right: none; border-bottom: 1px solid var(--line-light); gap: 4px; }
  .sec-stat-label { line-height: 1.4; max-width: none; }
  .sec-stat:first-child { padding-left: 20px; }
  .sec-stat:last-child { border-bottom: none; }
  .hero-badges { gap: 10px; }

  /* Compact hero: every element visible within the first fold */
  .hero { min-height: 85svh; padding: calc(78px) 0 24px; }
  .hero-grid { gap: 20px; }
  .hero-eyebrow { margin-top: 16px; margin-bottom: 24px; font-size: 0.7rem; }
  .hero-title { font-size: clamp(1.6rem, 9.5vw, 2.1rem); margin-bottom: 16px; }
  .hero-sub { font-size: clamp(1rem, 1.4vw, 1.15rem); margin-bottom: 32px; }
  .hero-ctas { gap: 10px; margin-bottom: 16px; }
  .hero-ctas .btn { padding: 12px 20px; font-size: 0.88rem; }
  .hero-visual { max-width: min(100%, 42svh); }
  .hero-shot { margin-top: 12px; }
  .float-chip { font-size: 0.68rem; padding: 8px 12px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-contact-heading--hidden { display: none; }

  .demo-overlay { padding: 0; }
  .demo-modal { border-radius: 0; border: 0; padding: 24px; min-height: 100%; }
}

@media (max-width: 380px) {
  .h2 { font-size: clamp(1.6rem, 9.5vw, 2.1rem); }
  .cta-title { font-size: clamp(1.8rem, 11vw, 2.6rem); }
  .conf-visual { padding: 44px 16px; }
  .conf-cards { grid-template-columns: 1fr; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ring-val { stroke-dashoffset: calc(var(--circ, 251) * 0.1) !important; }
  .preloader { display: none; }
}
