/* ================================================================
   styles.css  —  3Works Strategic Partners
   Architecture: CSS Custom Properties → Reset → Layout → Components
   Author: Expert Front-End Architect (Figma → Vanilla CSS)
   Approach: Mobile-first, CSS Grid + Flexbox, rem/em units only.
   ================================================================ */


/* ----------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES  (Design Tokens)
   All colours, type scales, spacing, radii and transitions are
   declared here so changing one variable ripples everywhere.
   ---------------------------------------------------------------- */
:root {
  /* ── Brand Colours ── */
  --clr-primary:         #005eb8;   /* Main blue                    */
  --clr-primary-hover:   #004e9a;   /* Darker blue on interaction   */
  --clr-primary-dark:    #001c38;   /* Very dark navy               */
  --clr-primary-light:   #d3e3ff;   /* Pale blue tint               */
  --clr-primary-muted:   #adc8f2;   /* Muted sky blue               */

  --clr-navy:            #000c1e;   /* Deepest navy (headings)      */
  --clr-navy-mid:        #002344;   /* Mid navy                     */
  --clr-navy-footer:     #0f172a;   /* Footer background            */
  --clr-navy-cta:        #02162b;   /* Dark tag background          */

  /* ── Neutral / Surface ── */
  --clr-white:           #ffffff;
  --clr-bg-page:         #f8f9fa;
  --clr-bg-light:        #f3f4f5;
  --clr-bg-card:         #edeeef;
  --clr-bg-blue-tint:    #e5f5f9;

  /* ── Text ── */
  --clr-text-body:       #43474e;
  --clr-text-mid:        #475569;
  --clr-text-muted:      #94a3b8;
  --clr-text-slate:      #64748b;

  /* ── Borders ── */
  --clr-border:          rgba(195, 198, 207, 0.22);
  --clr-border-footer:   rgba(30, 41, 59, 0.50);

  /* ── Overlays ── */
  --clr-overlay-white:   rgba(255, 255, 255, 0.80);
  --clr-overlay-dot:     rgba(255, 255, 255, 0.04);

  /* ── Typography ── */
  --ff-heading:  'Manrope',  sans-serif;
  --ff-body:     'Inter',    sans-serif;

  /* Type scale — fluid where noted */
  --fs-xs:    0.75rem;     /*  12px */
  --fs-sm:    0.875rem;    /*  14px */
  --fs-base:  1rem;        /*  16px */
  --fs-md:    1.125rem;    /*  18px */
  --fs-lg:    1.25rem;     /*  20px */
  --fs-xl:    1.5rem;      /*  24px */
  --fs-2xl:   1.875rem;    /*  30px */
  --fs-3xl:   2.25rem;     /*  36px */
  --fs-4xl:   3rem;        /*  48px */
  /* Fluid hero type: scales between 2.5rem and 3.4375rem */
  --fs-hero:  clamp(2.5rem, 4.5vw, 3.4375rem);

  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;

  --lh-tight:   1.15;
  --lh-snug:    1.30;
  --lh-normal:  1.50;
  --lh-relaxed: 1.65;

  --ls-wide:   0.075em;
  --ls-wider:  0.10em;

  /* ── Spacing ── */
  --sp-1:   0.25rem;   /*  4px */
  --sp-2:   0.5rem;    /*  8px */
  --sp-3:   0.75rem;   /* 12px */
  --sp-4:   1rem;      /* 16px */
  --sp-5:   1.25rem;   /* 20px */
  --sp-6:   1.5rem;    /* 24px */
  --sp-8:   2rem;      /* 32px */
  --sp-10:  2.5rem;    /* 40px */
  --sp-12:  3rem;      /* 48px */
  --sp-16:  4rem;      /* 64px */
  --sp-20:  5rem;      /* 80px */
  --sp-24:  6rem;      /* 96px */
  --sp-32:  8rem;      /* 128px */

  /* ── Border Radii ── */
  --rad-sm:   0.5rem;    /*  8px */
  --rad-md:   1rem;      /* 16px */
  --rad-lg:   1.5rem;    /* 24px */
  --rad-xl:   2rem;      /* 32px */
  --rad-pill: 62.5rem;   /* fully round */

  /* ── Shadows ── */
  --shadow-sm:  0 1px 3px  rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.12);
  --shadow-btn: 0 4px 14px rgba(0, 94, 184, 0.30);
  --shadow-btn-hover: 0 8px 28px rgba(0, 94, 184, 0.48);

  /* ── Transitions ── */
  --t-fast:   all 0.18s ease-in-out;
  --t-base:   all 0.25s ease-in-out;
  --t-slow:   all 0.45s ease-out;

  /* ── Layout ── */
  --max-w:       80rem;     /* 1280px container max-width */
  --nav-h:       4.75rem;   /* 76px  nav height          */
}


/* ----------------------------------------------------------------
   2. RESET & BASE DEFAULTS
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Prevent iOS font-size inflation */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:             var(--ff-body);
  font-size:               var(--fs-base);
  font-weight:             var(--fw-regular);
  color:                   var(--clr-text-body);
  background-color:        var(--clr-bg-page);
  line-height:             var(--lh-normal);
  -webkit-font-smoothing:  antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x:              hidden;
}

/* Sensible element defaults */
img, picture, video, canvas, svg {
  display:   block;
  max-width: 100%;
}

input, button, textarea, select { font: inherit; }

a {
  color:           inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family:  var(--ff-heading);
  line-height:  var(--lh-tight);
  color:        var(--clr-navy);
  font-weight:  var(--fw-extrabold);
}

/* ── Focus-visible: keyboard navigation ring ── */
:focus-visible {
  outline:        2px solid var(--clr-primary);
  outline-offset: 3px;
  border-radius:  3px;
}

/* ── Skip-to-content link (screen-reader / keyboard) ── */
.skip-link {
  position:      absolute;
  top:           -100%;
  left:          var(--sp-4);
  background:    var(--clr-primary);
  color:         var(--clr-white);
  padding:       var(--sp-2) var(--sp-6);
  border-radius: var(--rad-pill);
  font-size:     var(--fs-sm);
  font-weight:   var(--fw-semibold);
  z-index:       9999;
  transition:    top 0.2s ease;
}
.skip-link:focus { top: var(--sp-3); }


/* ----------------------------------------------------------------
   3. LAYOUT UTILITY — Container
   ---------------------------------------------------------------- */
.container {
  width:          100%;
  max-width:      var(--max-w);
  margin-inline:  auto;
}
nav .container {padding-top: 20px;}

@media (max-width: 768px) {
  .container { padding-inline: var(--sp-5); }
}
@media (max-width: 480px) {
  .container { padding-inline: var(--sp-4); }
}


/* ----------------------------------------------------------------
   4. SCROLL-TRIGGERED ANIMATIONS
   JS adds .is-visible via IntersectionObserver.
   Wrapped in prefers-reduced-motion so users who opt-out see
   content instantly with no layout shift.
   ---------------------------------------------------------------- */

/* Only apply animations when the user has NOT requested reduced motion */
@media (prefers-reduced-motion: no-preference) {

  /* Fade-up: opacity + vertical translate */
  .anim-fade-up {
    opacity:    0;
    transform:  translateY(2rem);
    transition: opacity 0.65s ease-out, transform 0.65s ease-out;
  }
  .anim-fade-up.is-visible {
    opacity:   1;
    transform: translateY(0);
  }

  /* Slide from left */
  .anim-slide-left {
    opacity:    0;
    transform:  translateX(-2.5rem);
    transition: opacity 0.65s ease-out, transform 0.65s ease-out;
  }
  .anim-slide-left.is-visible {
    opacity:   1;
    transform: translateX(0);
  }

  /* Slide from right */
  .anim-slide-right {
    opacity:    0;
    transform:  translateX(2.5rem);
    transition: opacity 0.65s ease-out, transform 0.65s ease-out;
  }
  .anim-slide-right.is-visible {
    opacity:   1;
    transform: translateX(0);
  }

  /* Fade only (no translate) */
  .anim-fade {
    opacity:    0;
    transition: opacity 0.7s ease-out;
  }
  .anim-fade.is-visible { opacity: 1; }

  /* ── Staggered grid children ──
     Parent gets .anim-stagger; each direct child staggers in. */
  .anim-stagger > * {
    opacity:    0;
    transform:  translateY(1.25rem);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }
  .anim-stagger.is-visible > *:nth-child(1) {
    opacity: 1; transform: none; transition-delay: 0.05s;
  }
  .anim-stagger.is-visible > *:nth-child(2) {
    opacity: 1; transform: none; transition-delay: 0.15s;
  }
  .anim-stagger.is-visible > *:nth-child(3) {
    opacity: 1; transform: none; transition-delay: 0.25s;
  }
  .anim-stagger.is-visible > *:nth-child(4) {
    opacity: 1; transform: none; transition-delay: 0.35s;
  }
  .anim-stagger.is-visible > *:nth-child(5) {
    opacity: 1; transform: none; transition-delay: 0.45s;
  }
}

/* Safety net: ensure content is ALWAYS visible for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up,
  .anim-slide-left,
  .anim-slide-right,
  .anim-fade,
  .anim-stagger > * {
    opacity:    1 !important;
    transform:  none !important;
    transition: none !important;
  }
}


/* ----------------------------------------------------------------
   5. SHARED BUTTON COMPONENT
   ---------------------------------------------------------------- */
.btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             var(--sp-2);
  font-family:     var(--ff-body);
  font-weight:     var(--fw-semibold);
  font-size:       var(--fs-base);
  border-radius:   var(--rad-pill);
  border:          none;
  cursor:          pointer;
  white-space:     nowrap;
  text-decoration: none;
  transition:      var(--t-base);
  line-height:     1;
}

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

/* Primary — navy blue fill */
.btn-primary {
  background:  var(--clr-primary);
  color:       var(--clr-white);
  padding:     0.65rem var(--sp-6);
  box-shadow:  var(--shadow-btn);
}
.btn-primary:hover {
  background:  var(--clr-primary-hover);
  box-shadow:  var(--shadow-btn-hover);
  transform:   translateY(-1px);
}
.btn-primary:active { transform: translateY(0) scale(0.97); }

/* Primary Large — hero CTA */
.btn-primary-lg {
  background:  var(--clr-primary);
  color:       var(--clr-white);
  padding:     var(--sp-4) var(--sp-8);
  font-size:   var(--fs-md);
  font-weight: var(--fw-bold);
  box-shadow:  var(--shadow-btn);
}
.btn-primary-lg:hover {
  background:  var(--clr-primary-hover);
  box-shadow:  var(--shadow-btn-hover);
  transform:   translateY(-2px);
}

/* Ghost — transparent, dark text */
.btn-ghost {
  background:  transparent;
  color:       var(--clr-navy);
  padding:     var(--sp-4) var(--sp-6);
  font-weight: var(--fw-bold);
}
.btn-ghost:hover { color: var(--clr-primary); }

/* White — inverted for dark backgrounds */
.btn-white {
  background:  var(--clr-white);
  color:       var(--clr-primary);
  padding:     1.25rem var(--sp-10);
  font-size:   var(--fs-lg);
  font-weight: var(--fw-bold);
  box-shadow:  var(--shadow-lg);
}
.btn-white:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.20);
  transform:  translateY(-2px);
}


/* ----------------------------------------------------------------
   6. NAVIGATION
   Sticky, glassmorphism backdrop-blur, full keyboard a11y.
   ---------------------------------------------------------------- */
.nav {
  position:         sticky;
  top:              0;
  z-index:          100;
  width:            100%;
  height:           var(--nav-h);
  background:       rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter:  blur(14px);
  border-bottom:    1px solid rgba(0, 0, 0, 0.07);
}

.nav__inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  height:          100%;
  gap:             var(--sp-8);
}

/* ── Logo ── */
.nav__logo {
  display:     flex;
  align-items: center;
  gap:         var(--sp-2);
  flex-shrink: 0;
  transition:  opacity 0.2s ease;
}
.nav__logo:hover { opacity: 0.85; }

.nav__logo-mark {
  width:           2.125rem;
  height:          2.125rem;
  background:      var(--clr-primary);
  border-radius:   var(--rad-sm);
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}

.nav__logo-mark svg { color: white; }

.nav__logo-text {
  font-family:     var(--ff-heading);
  font-weight:     var(--fw-extrabold);
  font-size:       var(--fs-lg);
  color:           var(--clr-navy);
  letter-spacing:  -0.03em;
}
.nav__logo-text span { color: var(--clr-primary); }

/* ── Desktop links ── */
.nav__links {
  display:     flex;
  align-items: center;
  gap:         var(--sp-8);
}

.nav__link {
  font-size:      var(--fs-base);
  font-weight:    var(--fw-medium);
  color:          var(--clr-text-mid);
  position:       relative;
  padding-block:  var(--sp-1);
  transition:     color 0.2s ease-in-out;
}

/* Underline sweep on hover */
.nav__link::after {
  content:       '';
  position:      absolute;
  bottom:        -2px;
  left:          0;
  width:         0;
  height:        2px;
  background:    var(--clr-primary);
  border-radius: 1px;
  transition:    width 0.22s ease-in-out;
}
.nav__link:hover              { color: var(--clr-primary); }
.nav__link:hover::after       { width: 100%; }

/* ── Hamburger button (mobile only) ── */
.nav__hamburger {
  display:         none;
  flex-direction:  column;
  gap:             5px;
  padding:         var(--sp-2);
  background:      none;
  border:          none;
  cursor:          pointer;
  border-radius:   var(--rad-sm);
  transition:      var(--t-fast);
}
.nav__hamburger:hover { background: rgba(0,0,0,0.05); }

.nav__hamburger span {
  display:       block;
  width:         24px;
  height:        2px;
  background:    var(--clr-navy);
  border-radius: 2px;
  transition:    var(--t-base);
  transform-origin: center;
}

/* Morphs to ✕ when menu is open */
.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile dropdown ── */
.nav__mobile-menu {
  display:        none;
  flex-direction: column;
  gap:            var(--sp-4);
  padding:        var(--sp-5) var(--sp-5) var(--sp-6);
  background:     var(--clr-white);
  border-top:     1px solid rgba(0,0,0,0.07);
  box-shadow:     var(--shadow-md);
}
.nav__mobile-menu.is-open { display: flex; }
.nav__mobile-menu .nav__link { font-size: var(--fs-md); }

/* ── Responsive hide/show ── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__hamburger { display: flex; }
}


/* ----------------------------------------------------------------
   7. HERO SECTION
   Two-column grid on desktop, stacks on mobile.
   ---------------------------------------------------------------- */
.hero {
  overflow:      hidden;
  padding-block: var(--sp-10) var(--sp-20);
  background:    var(--clr-white);
  position:      relative;
}

/* Subtle decorative radial orb (top-right) */
.hero::before {
  content:         '';
  position:        absolute;
  top:             -5rem;
  right:           -3rem;
  width:           32rem;
  height:          32rem;
  border-radius:   50%;
  background:      radial-gradient(circle, rgba(0,94,184,0.06) 0%, transparent 65%);
  pointer-events:  none;
}

.hero__grid {
  display:     grid;
  grid-template-columns: 1fr 1fr;
  gap:         var(--sp-16);
  align-items: center;
}

/* ── Left column: text ── */
.hero__content {
  display:        flex;
  flex-direction: column;
  gap:            var(--sp-8);
}

/* Eyebrow pill label */
.hero__eyebrow {
  display:         inline-flex;
  align-items:     center;
  gap:             var(--sp-2);
  font-size:       var(--fs-xs);
  font-weight:     var(--fw-bold);
  text-transform:  uppercase;
  letter-spacing:  var(--ls-wider);
  color:           var(--clr-primary);
  background:      rgba(0, 94, 184, 0.09);
  padding:         var(--sp-1) var(--sp-3);
  border-radius:   var(--rad-pill);
  width:           fit-content;
}

.hero__title {
  font-family:    var(--ff-heading);
  font-weight:    var(--fw-extrabold);
  font-size:      var(--fs-hero);
  line-height:    1.08;
  letter-spacing: -0.034em;
  color:          var(--clr-navy);
}

/* Highlighted word in heading */
.hero__title-accent { color: var(--clr-primary); }

.hero__description {
  font-size:   var(--fs-lg);
  line-height: var(--lh-relaxed);
  color:       var(--clr-text-body);
  max-width:   38rem;
}

.hero__actions {
  display:     flex;
  align-items: center;
  flex-wrap:   wrap;
  gap:         var(--sp-3);
}

/* ── Right column: image ── */
.hero__img-wrap {
  position:      relative;
  border-radius: var(--rad-md);
  overflow:      hidden;
  background:    var(--clr-bg-light);
  aspect-ratio:  1 / 1;
  /* Subtle inner border */
  box-shadow:    inset 0 0 0 1px rgba(0,0,0,0.06);
}

.hero__img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  transition: transform 0.55s ease-out;
}
.hero__img-wrap:hover .hero__img { transform: scale(1.03); }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__img-wrap { max-width: 30rem; margin-inline: auto; }
}
@media (max-width: 480px) {
  .hero { padding-block: var(--sp-8) var(--sp-12); }
  .hero__title { font-size: 2.25rem; }
}


/* ----------------------------------------------------------------
   8. AUTHORITY BAR  (Social-proof stats)
   ---------------------------------------------------------------- */
.authority {
  background:   var(--clr-bg-light);
  padding-block: var(--sp-12);
}

.authority__grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   var(--sp-8);
}

/* Individual stat item */
.stat {
  padding-left: var(--sp-6);
  border-left:  3px solid var(--clr-primary);
}

.stat__value {
  font-family:  var(--ff-heading);
  font-weight:  var(--fw-extrabold);
  font-size:    var(--fs-2xl);
  color:        var(--clr-navy);
  line-height:  1.2;
}

.stat__label {
  margin-top:     var(--sp-1);
  font-size:      var(--fs-xs);
  font-weight:    var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color:          var(--clr-text-body);
}

@media (max-width: 640px) {
  .authority__grid {
    grid-template-columns: repeat(2, 1fr);
    gap:                   var(--sp-6);
  }
}


/* ----------------------------------------------------------------
   9. CORE PILLAR SECTIONS
   ---------------------------------------------------------------- */
.pillars {
  display:        flex;
  flex-direction: column;
  gap:            0;            /* Each pillar controls own spacing */
  padding-top:    var(--sp-24);
}

/* ── Generic pillar layout (light bg, constrained max-width) ── */
.pillar {
  width:          100%;
  padding-block:  var(--sp-20);
}

.pillar__inner {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   var(--sp-16);
  align-items:           center;
}

/* Image column first by default */
.pillar__inner--img-left  .pillar__img-col { order: 1; }
.pillar__inner--img-left  .pillar__txt-col { order: 2; }
.pillar__inner--img-right .pillar__txt-col { order: 1; }
.pillar__inner--img-right .pillar__img-col { order: 2; }

/* ── Full-bleed pillar (dark or tinted bg) ── */
.pillar--dark {
  background: var(--clr-navy-mid);
  position:   relative;
  overflow:   hidden;
}

/* Dot texture on dark pillar */
.pillar--dark::before {
  content:        '';
  position:       absolute;
  inset:          0;
  background:     radial-gradient(circle, var(--clr-overlay-dot) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.pillar--teal { background: var(--clr-bg-blue-tint); }
.pillar--light { background: var(--clr-white); }

/* ── Text column ── */
.pillar__txt-col {
  display:        flex;
  flex-direction: column;
  gap:            var(--sp-6);
}

.pillar__eyebrow {
  font-size:      var(--fs-xs);
  font-weight:    var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color:          var(--clr-primary);
}
.pillar__eyebrow--light { color: var(--clr-primary-muted); }

.pillar__heading {
  font-family:    var(--ff-heading);
  font-weight:    var(--fw-extrabold);
  font-size:      clamp(1.75rem, 2.8vw, var(--fs-3xl));
  letter-spacing: -0.025em;
  color:          var(--clr-navy);
  line-height:    var(--lh-snug);
}
.pillar__heading--light { color: var(--clr-white); }

.pillar__description {
  font-size:   var(--fs-md);
  line-height: var(--lh-relaxed);
  color:       var(--clr-text-body);
}
.pillar__description--light { color: var(--clr-primary-muted); }

/* ── Feature items (bordered cards inside pillar) ── */
.feature-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   var(--sp-4);
  margin-top:            var(--sp-2);
}
.feature-grid--2col { grid-template-columns: repeat(2, 1fr); }

.feature-item {
  background:    var(--clr-bg-card);
  border-radius: var(--rad-lg);
  border-left:   4px solid var(--clr-primary);
  padding:       var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-5);
  transition:    transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-item:hover {
  transform:   translateY(-3px);
  box-shadow:  var(--shadow-md);
}

.feature-item__title {
  font-size:      var(--fs-base);
  font-weight:    var(--fw-bold);
  text-transform: uppercase;
  color:          var(--clr-primary);
  letter-spacing: 0.02em;
}
.feature-item__desc {
  font-size:   var(--fs-sm);
  color:       var(--clr-text-body);
  margin-top:  var(--sp-1);
  line-height: var(--lh-normal);
}

/* ── Feature cards with icon (software pillar) ── */
.feature-card-grid {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   var(--sp-8);
  margin-top:            var(--sp-4);
}

.feature-card {
  display:     flex;
  gap:         var(--sp-4);
  align-items: flex-start;
}

.feature-card__icon-wrap {
  flex-shrink:     0;
  width:           2.5rem;
  height:          2.5rem;
  background:      var(--clr-primary);
  border-radius:   var(--rad-lg);
  display:         flex;
  align-items:     center;
  justify-content: center;
  transition:      background 0.2s ease, transform 0.2s ease;
}
.feature-card:hover .feature-card__icon-wrap {
  background:  var(--clr-primary-hover);
  transform:   scale(1.08);
}

.feature-card__icon-wrap svg { color: white; }

.feature-card__title {
  font-size:     var(--fs-md);
  font-weight:   var(--fw-bold);
  color:         var(--clr-white);
  margin-bottom: var(--sp-1);
  line-height:   1.3;
}
.feature-card__desc {
  font-size:   var(--fs-sm);
  color:       var(--clr-primary-muted);
  line-height: var(--lh-relaxed);
}

/* ── Tag badge groups ── */
.tag-group {
  display:   flex;
  flex-wrap: wrap;
  gap:       var(--sp-3);
  margin-top: var(--sp-2);
}

.tag {
  display:         inline-flex;
  align-items:     center;
  padding:         var(--sp-2) var(--sp-4);
  border-radius:   var(--rad-pill);
  font-size:       var(--fs-sm);
  font-weight:     var(--fw-bold);
  transition:      background 0.2s ease;
}
.tag--blue {
  background: var(--clr-primary-light);
  color:      var(--clr-primary-dark);
}
.tag--blue:hover { background: #c2d6f8; }

.tag--dark {
  background: var(--clr-navy-cta);
  color:      var(--clr-white);
}
.tag--dark:hover { background: #011828; }

/* ── Image column ── */
.pillar__img-wrap {
  position:      relative;
  border-radius: var(--rad-xl);
  overflow:      hidden;
  aspect-ratio:  4 / 3;
  background:    var(--clr-bg-light);
}
.pillar__img-wrap--square { aspect-ratio: 1 / 1; }

.pillar__img-wrap--glow {
  box-shadow: 0 0 60px 16px rgba(78, 225, 255, 0.22);
  border:     1px solid rgba(255, 255, 255, 0.12);
}

.pillar__img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  transition: transform 0.6s ease-out;
}
.pillar__img-wrap:hover .pillar__img { transform: scale(1.05); }

/* ── Responsive breakpoints for pillar grid ── */
@media (max-width: 900px) {
  .pillar__inner {
    grid-template-columns: 1fr;
    gap:                   var(--sp-10);
  }
  /* Reset ordering so content always appears first on mobile */
  .pillar__inner--img-left  .pillar__img-col,
  .pillar__inner--img-left  .pillar__txt-col,
  .pillar__inner--img-right .pillar__img-col,
  .pillar__inner--img-right .pillar__txt-col {
    order: unset;
  }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .pillars { padding-top: var(--sp-12); }
  .pillar { padding-block: var(--sp-12); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid--2col { grid-template-columns: 1fr; }
}


/* ----------------------------------------------------------------
   10. TECHNICAL EDGE SECTION
   ---------------------------------------------------------------- */
.technical-edge {
  background:   var(--clr-bg-page);
  padding-block: var(--sp-20) var(--sp-12);
}

.section-header {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  text-align:     center;
  gap:            var(--sp-5);
  margin-bottom:  var(--sp-10);
}

.section-title {
  font-family:    var(--ff-heading);
  font-weight:    var(--fw-extrabold);
  font-size:      clamp(1.75rem, 3vw, var(--fs-3xl));
  letter-spacing: -0.025em;
  color:          var(--clr-navy);
}

.section-subtitle {
  font-size:   var(--fs-md);
  color:       var(--clr-text-body);
  max-width:   46rem;
  line-height: var(--lh-relaxed);
}

/* Three-column edge cards */
.edge-grid {
  display:       grid;
  grid-template-columns: repeat(3, 1fr);
  border:        1px solid var(--clr-border);
  border-radius: var(--rad-md);
  overflow:      hidden;
}

.edge-card {
  padding:        var(--sp-12);
  display:        flex;
  flex-direction: column;
  gap:            var(--sp-6);
  transition:     background 0.25s ease-in-out;
}
.edge-card:hover { background: var(--clr-white); }

/* Middle card gets side borders */
.edge-card:nth-child(2) {
  border-inline: 1px solid var(--clr-border);
}

.edge-card__icon {
  width:  1.875rem;
  height: 1.875rem;
  color:  var(--clr-primary);
}

.edge-card__title {
  font-family:  var(--ff-heading);
  font-weight:  var(--fw-bold);
  font-size:    var(--fs-xl);
  color:        var(--clr-navy);
}

.edge-card__desc {
  font-size:   var(--fs-base);
  color:       var(--clr-text-body);
  line-height: var(--lh-relaxed);
}

@media (max-width: 768px) {
  .edge-grid { grid-template-columns: 1fr; }
  .edge-card:nth-child(2) {
    border-inline: none;
    border-block:  1px solid var(--clr-border);
  }
  .edge-card { padding: var(--sp-8); }
}


/* ----------------------------------------------------------------
   11. CTA SECTION
   ---------------------------------------------------------------- */
.cta-section {
  padding-block:   var(--sp-20);
  background:      var(--clr-bg-page);
}

.cta-card {
  background:    var(--clr-primary);
  border-radius: var(--rad-lg);
  padding:       var(--sp-20);
  position:      relative;
  overflow:      hidden;
  display:       flex;
  align-items:   center;
  justify-content: space-between;
  gap:           var(--sp-8);
}

/* Dot-grid texture */
.cta-card::before {
  content:         '';
  position:        absolute;
  inset:           0;
  background:      radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events:  none;
}

/* Skewed decorative shape */
.cta-card::after {
  content:        '';
  position:       absolute;
  right:          -5%;
  top:            0;
  bottom:         0;
  width:          30%;
  background:     rgba(255, 255, 255, 0.05);
  transform:      skewX(-12deg);
  pointer-events: none;
}

.cta-card__content {
  position:       relative;
  z-index:        1;
  display:        flex;
  flex-direction: column;
  gap:            var(--sp-5);
  max-width:      38rem;
}

.cta-card__title {
  font-family:    var(--ff-heading);
  font-weight:    var(--fw-extrabold);
  font-size:      clamp(1.75rem, 4vw, var(--fs-4xl));
  line-height:    1.1;
  color:          var(--clr-white);
  letter-spacing: -0.02em;
}

.cta-card__subtitle {
  font-size:   var(--fs-md);
  color:       rgba(255, 255, 255, 0.82);
  line-height: var(--lh-relaxed);
}

.cta-card__action {
  position: relative;
  z-index:  1;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cta-card {
    flex-direction: column;
    align-items:    flex-start;
    padding:        var(--sp-12) var(--sp-8);
  }
}


/* ----------------------------------------------------------------
   12. FOOTER
   ---------------------------------------------------------------- */
.footer {
  background: var(--clr-navy-footer);
  position:   relative;
  overflow:   hidden;
}

/* Subtle dot texture */
.footer::before {
  content:         '';
  position:        absolute;
  inset:           0;
  background:      radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events:  none;
}

.footer__inner {
  position:        relative;
  z-index:         1;
  padding-block:   var(--sp-16);
  display:         flex;
  flex-direction:  column;
  gap:             var(--sp-16);
}

.footer__grid {
  display:               grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap:                   var(--sp-12);
  padding-top:           var(--sp-12);
  border-top:            1px solid var(--clr-border-footer);
}

/* ── Brand column ── */
.footer__brand-logo {
  display:     flex;
  align-items: center;
  gap:         var(--sp-2);
  margin-bottom: var(--sp-4);
}

.footer__logo-mark {
  width:           2rem;
  height:          2rem;
  background:      var(--clr-primary);
  border-radius:   var(--rad-sm);
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}

.footer__brand-name {
  font-family:    var(--ff-heading);
  font-weight:    var(--fw-extrabold);
  font-size:      var(--fs-md);
  color:          var(--clr-white);
  letter-spacing: -0.02em;
}
.footer__brand-name span { color: var(--clr-primary-muted); }

.footer__tagline {
  font-size:   var(--fs-sm);
  color:       var(--clr-text-muted);
  line-height: var(--lh-relaxed);
}

/* ── Link columns ── */
.footer__col-title {
  font-size:      var(--fs-xs);
  font-weight:    var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color:          var(--clr-text-slate);
  margin-bottom:  var(--sp-5);
}

.footer__links {
  display:        flex;
  flex-direction: column;
  gap:            var(--sp-3);
}

.footer__link {
  font-size:  var(--fs-base);
  color:      var(--clr-text-muted);
  transition: color 0.2s ease;
}
.footer__link:hover { color: var(--clr-white); }

/* ── Copyright bar ── */
.footer__copyright {
  padding-top:  var(--sp-6);
  border-top:   1px solid var(--clr-border-footer);
  font-size:    var(--fs-xs);
  color:        var(--clr-text-slate);
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand-col { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}
