:root {
  --navy: #071b34;
  --navy2: #0c2b50;
  --blue: #155ca8;
  --red: #e51d2a;
  --ink: #101a2b;
  --muted: #66758a;
  --paper: #f6f8fb;
  --line: #dce4ed;
  --white: #fff;
  --gold: #d5b36a;
  --radius: 6px;
  --shadow: 0 20px 60px rgba(7, 27, 52, 0.1);
  --shadow-lg: 0 30px 80px rgba(7, 27, 52, 0.15);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

body.no-scroll {
  overflow: hidden !important;
  touch-action: none;
}

a {
  color: inherit;
  transition: color 0.2s var(--ease);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

.section {
  padding: 54px 0;
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  font: 800 11px/1.2 Arial, sans-serif;
  letter-spacing: .17em;
  color: #7c8b9e;
  text-transform: uppercase;
}

.eyebrow i {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--red);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 24px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 25px rgba(229, 29, 42, 0.22);
}

.btn-primary:hover {
  transform: translate3d(0, -3px, 0);
  background: #c91522;
  box-shadow: 0 15px 35px rgba(229, 29, 42, 0.3);
}

.btn-outline {
  border-color: #b9c6d5;
  background: #fff;
  color: var(--navy);
}

.btn-outline:hover {
  border-color: var(--navy);
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 10px 25px rgba(7, 27, 52, 0.08);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translate3d(0, -3px, 0);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: end;
  margin-bottom: 50px;
}

.section-head h2 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -.05em;
  max-width: 800px;
  margin: 15px 0 0;
}

.section-head > p {
  max-width: 440px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.section-head.light h2,
.section-head.light p {
  color: #fff;
}

/* Fluid reveal animations with hardware acceleration */
.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Page identities */
body.aa-page-home { --page-accent: #e51d2a; --page-soft: #edf4fb; }
body.aa-page-services { --page-accent: #d86b1f; --page-soft: #fbf2e9; }
body.aa-page-why-us { --page-accent: #16877b; --page-soft: #eaf7f5; }
body.aa-page-technology { --page-accent: #2869d8; --page-soft: #edf3ff; }
body.aa-page-pricing { --page-accent: #b18a2e; --page-soft: #faf5e6; }
body.aa-page-about { --page-accent: #7446a8; --page-soft: #f5effa; }
body.aa-page-get-started { --page-accent: #15805f; --page-soft: #eaf7f1; }

body.aa-page-home .eyebrow i,
body.aa-page-services .eyebrow i,
body.aa-page-why-us .eyebrow i,
body.aa-page-technology .eyebrow i,
body.aa-page-pricing .eyebrow i,
body.aa-page-about .eyebrow i,
body.aa-page-get-started .eyebrow i {
  background: var(--page-accent);
}

body.aa-page-services .service-card:hover,
body.aa-page-why-us .service-card:hover,
body.aa-page-technology .service-card:hover,
body.aa-page-pricing .service-card:hover {
  border-color: var(--page-accent);
}

body.aa-page-services .service-card b,
body.aa-page-why-us .service-card b,
body.aa-page-technology .service-card b,
body.aa-page-pricing .service-card b {
  color: var(--page-accent);
}

@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;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
