:root {
  --background: #FFFFFF;
  --foreground: #16191F;
  --primary: #0073BB;
  --primary-foreground: #FFFFFF;
  --secondary: #F2F3F3;
  --accent: #FF9900;
  --accent-foreground: #16191F;
  --muted-foreground: #687078;
  --card: #FFFFFF;
  --border: #E9EBED;
  --navy-dark: #232F3E;
  --navy-mid: #31465F;
  --amber-light: #FFB84D;
  --font-sans: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  padding-top: 0;
}

h1, h2, h3, h4, h5, h6, p { margin: 0; }

a { text-decoration: none; }

.text-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-hero-xl {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.text-section-xl {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-divider {
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.bg-navy { background-color: var(--navy-dark); }
.bg-surface { background-color: var(--background); }
.text-primary-custom { color: var(--primary); }
.text-accent-custom { color: var(--accent); }
.text-muted-custom { color: var(--muted-foreground); }

/* ===== Noise overlay ===== */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.015;
  pointer-events: none;
  z-index: 1000;
}

/* ===== Navbar ===== */
.navbar-aptus {
  background-color: rgba(19, 26, 36, 0.97);
  border-bottom: 1px solid #334155;
  transition: all 0.3s ease;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.navbar-aptus.scrolled {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.navbar-aptus .nav-link {
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  margin: 0 0.85rem;
  padding: 0.4rem 0 !important;
}
.navbar-aptus .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}
.navbar-aptus .nav-link:hover { color: #fff; }
.navbar-aptus .nav-link:hover::after { width: 100%; }

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.65rem 1.4rem;
  border-radius: 0.375rem;
  border: none;
}
.btn-accent:hover { background-color: #e68a00; color: var(--accent-foreground); }

.btn-outline-nav {
  border: 1px solid #64748b;
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.65rem 1.4rem;
  border-radius: 0.375rem;
}
.btn-outline-nav:hover { background-color: #334155; color: #fff; }

.btn-primary-custom {
  background-color: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.95rem 2rem;
  border-radius: 0.375rem;
  border: none;
}
.btn-primary-custom:hover { background-color: var(--primary); opacity: 0.9; color: #fff; }

.btn-outline-dark-custom {
  border: 1px solid rgba(0,0,0,0.15);
  color: rgba(0,0,0,0.7);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.95rem 2rem;
  border-radius: 0.375rem;
}
.btn-outline-dark-custom:hover { background-color: #f8f9fa; color: rgba(0,0,0,0.7); }

/* ===== Hero ===== */
.hero-section {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 5rem;
  overflow: hidden;
  background-color: #fff;
  background-image:
    linear-gradient(rgba(0,115,187,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,115,187,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow-1, .hero-glow-2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-glow-1 {
  top: 33%; left: 25%; width: 24rem; height: 24rem;
  background: radial-gradient(circle, rgba(0,115,187,0.08) 0%, transparent 70%);
  filter: blur(40px);
}
.hero-glow-2 {
  bottom: 25%; right: 25%; width: 20rem; height: 20rem;
  background: radial-gradient(circle, rgba(255,153,0,0.06) 0%, transparent 70%);
  filter: blur(50px);
}
.chapter-nav-strip a { color: #94a3b8; }
.chapter-nav-strip a:hover .chapter-label { color: #374151; }
.chapter-num { color: var(--accent); opacity: 0.7; }
.chapter-label { font-size: 0.9rem; font-weight: 600; color: #9ca3af; transition: color 0.2s; }

.hero-carousel {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
  min-height: 420px;
}
.hero-carousel .carousel-item {
  min-height: 420px;
  height: 520px;
}
.hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.slide-label {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0,0,0,0.45);
  color: #fff;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.hero-carousel .carousel-indicators [data-bs-target] {
  background-color: rgba(255,255,255,0.5);
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
}
.hero-carousel .carousel-indicators .active {
  background-color: var(--accent);
  width: 20px;
  border-radius: 9999px;
}
.hero-ring-1, .hero-ring-2 { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-ring-1 { top: -1.5rem; right: -1.5rem; width: 12rem; height: 12rem; border: 2px dashed rgba(0,115,187,0.15); }
.hero-ring-2 { bottom: -1rem; left: -1rem; width: 8rem; height: 8rem; border: 1px solid rgba(255,153,0,0.2); }

/* ===== Section shells ===== */
.section-dark { background-color: #0d1b2a; }
.section-light { background-color: var(--background); }

/* ===== Banner strips ===== */
.banner-strip {
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
}
.banner-strip-blue { background: rgba(0,115,187,0.1); border: 1px solid rgba(0,115,187,0.25); }
.banner-strip-amber { background: rgba(255,153,0,0.07); border: 1px solid rgba(255,153,0,0.25); }
.banner-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tag-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

/* ===== Capability cards (dark sections) ===== */
.cap-card {
  position: relative;
  padding: 1.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  transition: all 0.3s ease;
  height: 100%;
}
.cap-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
.cap-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  background: rgba(0,115,187,0.2);
  color: var(--primary);
  font-size: 1.1rem;
}
.cap-card .cap-arrow { opacity: 0; transition: opacity 0.2s; }
.cap-card:hover .cap-arrow { opacity: 1; }

/* ===== Operate tiers ===== */
.tier-card {
  position: relative;
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  height: 100%;
}
.tier-bg-num {
  position: absolute;
  top: 1rem; right: 1.25rem;
  font-size: 4.5rem;
  font-weight: 800;
  opacity: 0.05;
  line-height: 1;
  user-select: none;
}
.tier-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
}
.stat-inline .stat-val { font-size: 1.1rem; font-weight: 800; color: var(--accent); }
.stat-inline .stat-lbl { font-size: 0.72rem; color: var(--muted-foreground); }

/* ===== Secure section ===== */
.dpdp-banner {
  border-radius: 0.75rem;
  border: 1px solid rgba(255,153,0,0.4);
  background: rgba(255,153,0,0.07);
  padding: 1.5rem;
}
.secure-card {
  position: relative;
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  height: 100%;
}
.secure-card.dpdp { border-color: rgba(255,153,0,0.25); background: rgba(255,153,0,0.04); }
.secure-watermark {
  position: absolute; top: 1rem; right: 1.5rem;
  font-size: 3.5rem; font-weight: 800; opacity: 0.05;
  user-select: none;
}
.bullet-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 0.5rem; }

/* ===== Trust section ===== */
.iso-badge-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  padding: 1.25rem;
}
.iso-icon-lg {
  width: 3.5rem; height: 3.5rem;
  border-radius: 0.75rem;
  background: rgba(0,115,187,0.2);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.trust-panel {
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  padding: 2rem;
}
.client-chip {
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

/* Client logo tiles — every logo forced to one uniform white tone via CSS filter,
   so mixed source logos (color, black, white-only) all read consistently on the
   dark Trust section. One tile background for all, regardless of source color. */
.logo-tile {
  flex-shrink: 0;
  width: 148px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.75rem;
  padding: 16px 20px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.logo-tile:hover { transform: translateY(-2px); background: rgba(255,255,255,0.1); }
.logo-tile img {
  max-width: 100%;
  max-height: 30px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.logo-tile:hover img { opacity: 0.95; }

/* A couple of marks are solid-filled opaque badges with no internal transparency —
   the standard silhouette filter (brightness(0)) crushes all their internal detail
   into one flat blob. Inverting true grayscale tones instead keeps text/detail
   readable while still landing in the same light-monochrome family as everyone else. */
.logo-tile-tonal img { filter: grayscale(100%) invert(1); opacity: 0.75; }
.logo-tile-tonal:hover img { opacity: 1; }

.logo-tile-iconword img { max-height: 24px; }
.logo-tile-iconword span {
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.logo-tile-iconword:hover span { color: rgba(255,255,255,0.95); }

@media (max-width: 576px) {
  .logo-tile { width: 120px; height: 66px; padding: 12px 14px; }
}
.clients-panel {
  border-radius: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem;
}

/* ===== Leadership ===== */
.leader-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  transition: all 0.3s ease;
  height: 100%;
}
.leader-card:hover { border-color: rgba(255,255,255,0.25); }
.leader-avatar {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: rgba(0,115,187,0.2);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}
.leader-linkedin { color: rgba(0,115,187,0.7); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.leader-card-light {
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.leader-card-light:hover { border-color: #d1d5db; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.leader-photo {
  width: 8rem; height: 8rem;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ===== Contact ===== */
.contact-icon-box {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(0,115,187,0.08);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.form-label-custom {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}
.form-control-custom {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}
.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0,115,187,0.15);
}
/* Honeypot: off-screen (not display:none) so it stays in the DOM/a11y tree
   for bots that check computed visibility, but is unreachable to real users. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.success-box {
  border: 1px solid var(--border);
  background: var(--secondary);
  border-radius: 0.75rem;
  padding: 3rem;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.success-icon {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: rgba(0,115,187,0.1);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

/* ===== Footer ===== */
.footer-aptus {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: var(--navy-dark);
  padding-top: 4rem;
  padding-bottom: 2.5rem;
}
.footer-heading { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.footer-link { font-size: 0.9rem; color: rgba(255,255,255,0.6); font-weight: 500; }
.footer-link:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem; }
.footer-aptus p.small,
.footer-aptus p.small.text-muted,
.footer-aptus p.small.fw-medium { color: rgba(255,255,255,0.5) !important; }

/* ===== Reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 767.98px) {
  .hero-carousel { display: none; }
}

/* ===== Legal pages ===== */
.legal-hero {
  padding-top: 8rem;
  padding-bottom: 2.5rem;
  background-color: #fff;
  background-image:
    linear-gradient(rgba(0,115,187,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,115,187,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.legal-content { padding-top: 3rem; padding-bottom: 6rem; }
.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}
.legal-content p, .legal-content li {
  color: var(--muted-foreground);
  line-height: 1.7;
  font-size: 0.95rem;
}
.legal-content p { margin-bottom: 1rem; }
.legal-content ul, .legal-content ol { margin-bottom: 1rem; padding-left: 1.4rem; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { color: var(--primary); }
.legal-content strong { color: var(--foreground); }
.legal-updated { font-size: 0.85rem; color: var(--muted-foreground); }
.legal-toc {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: var(--secondary);
}
.legal-toc a { display: block; font-size: 0.88rem; color: var(--foreground); padding: 0.3rem 0; }
.legal-toc a:hover { color: var(--primary); }

/* ===== Cookie consent banner ===== */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080;
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.cookie-consent.is-visible { transform: translateY(0); }
.cookie-consent-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.cookie-consent-text {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  flex: 1 1 320px;
}
.cookie-consent-text a { color: rgba(255,255,255,0.9); text-decoration: underline; }
.cookie-consent-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cookie-consent .btn-sm { padding: 0.5rem 1.1rem; font-size: 0.72rem; }
@media (max-width: 576px) {
  .cookie-consent-inner { padding: 1rem 1.25rem; }
  .cookie-consent-actions { width: 100%; }
  .cookie-consent-actions .btn { flex: 1; }
}
