:root {
  --bg: #0a0d16;
  --bg-elev: #0f1320;
  --surface: #131829;
  --surface-2: #171d31;
  --border: #242c44;
  --text: #eef1f8;
  --text-muted: #96a0bb;
  --text-faint: #5c6684;
  --navy: #1b2746;
  --red: #ff4d61;
  --red-soft: rgba(255, 77, 97, 0.14);
  --blue: #5ab3ff;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --font: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

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

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

a { color: inherit; text-decoration: none; }
svg.icon { width: 18px; height: 18px; flex-shrink: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Background blobs ---------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  will-change: transform;
}
.blob-1 {
  width: 560px; height: 560px;
  top: -180px; right: -120px;
  background: var(--red);
  animation: drift1 22s ease-in-out infinite;
}
.blob-2 {
  width: 480px; height: 480px;
  top: 30vh; left: -200px;
  background: var(--blue);
  animation: drift2 26s ease-in-out infinite;
}
.blob-3 {
  width: 420px; height: 420px;
  bottom: -160px; right: 10vw;
  background: #7c5cff;
  opacity: 0.16;
  animation: drift3 30s ease-in-out infinite;
}
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 50px) scale(1.08); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, -40px) scale(1.05); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, -60px) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.brand .amp { color: var(--red); }
.brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.brand-footer { font-size: 1rem; }

.nav {
  display: flex;
  gap: 26px;
}
.nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--text); }

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

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  height: 2px;
  margin-inline: 8px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red), #e23350);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(255, 77, 97, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(255, 77, 97, 0.65); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--red); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 110px 0 70px;
  position: relative;
}
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 16px 0;
}
.hero-title {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin: 0 0 20px 0;
  font-weight: 800;
}
.grad-text {
  background: linear-gradient(135deg, var(--red), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 32px 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hstat { display: flex; flex-direction: column; gap: 4px; }
.hstat-num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}
.hstat-label {
  font-size: 0.82rem;
  color: var(--text-faint);
  max-width: 160px;
}

.hero-scroll-cue {
  display: none;
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.016) 10%, rgba(255,255,255,0.016) 90%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px 0;
  max-width: 760px;
}
.sub { color: var(--text-muted); max-width: 720px; font-size: 1.02rem; margin: 0; }
.sub.small { font-size: 0.85rem; color: var(--text-faint); margin-top: 30px; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(.2,.7,.2,1), transform 0.65s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 36px;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-left: 3px solid var(--red);
}

/* ---------- Tiles / grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.tile:hover { transform: translateY(-4px); border-color: var(--red); }
.tile .num {
  font-family: var(--mono);
  color: var(--red);
  font-size: 1.6rem;
  font-weight: 700;
}
.tile h3 { margin: 14px 0 8px 0; font-size: 1.05rem; }
.tile p { color: var(--text-muted); margin: 0; font-size: 0.92rem; }

/* ---------- Marquee (clients/experience) ---------- */
.marquee {
  position: relative;
  margin: 36px 0 28px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* Logo tiles — every tile is the same size; each logo is scaled to fill it evenly */
.logo-tile {
  flex-shrink: 0;
  width: 184px;
  height: 92px;
  padding: 14px 18px;
  background: #ffffff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.logo-tile-text {
  font-weight: 800;
  font-size: 1.25rem;
  color: #1b2746;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
/* Per-logo tweaks: compensate for empty space inside the image files */
.logo-onu { background: #0086cd; padding: 4px; }
.logo-onu img { transform: scale(1.3); }
.logo-cvc { background: #ffe600; padding: 4px; }
.logo-cvc img { transform: scale(1.25); }
.logo-sefaz { padding: 6px; }
.logo-sefaz img { transform: scale(1.3); }
.logo-carrefour img { transform: scale(1.5); }
.logo-edenred img { transform: scale(1.22); }
.logo-dotz { padding: 12px 22px; }

.disclaimer {
  font-size: 0.78rem;
  color: var(--text-faint);
  max-width: 760px;
  margin: 0;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.step {
  position: relative;
  padding: 26px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-top: 3px solid var(--red);
}
.step-num {
  position: absolute;
  top: -14px;
  left: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step strong { display: block; margin: 10px 0 6px 0; font-size: 1rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.88rem; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 100px 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(255,77,97,0.12), transparent 70%);
}
.cta h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  margin: 0 0 12px 0;
}
.cta p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 32px auto;
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 14px 24px; border-bottom: 1px solid var(--border); }
  .menu-btn { display: flex; }
  .btn-sm { display: none; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 80px; }
}
