/* ==========================================================================
   NexeGo — AI Automation Agency
   Design system. Brand palette carried over from the original NexeGo identity.
   ========================================================================== */

:root {
  /* Brand — unchanged from the original NexeGo identity */
  --cobalt: #0047AB;
  --cobalt-deep: #003B8F;
  --brand-mid: #0079CC;   /* sampled from the logo gradient; safe for white text (4.6:1) */
  --titan-light: #5FD0F7; /* lighter tint of titan, for text on dark surfaces */
  --titan: #00ACEE;

  /* Neutrals */
  --bg: #FFFFFF;
  --bg-alt: #F7F9FC;
  --bg-tint: #E8F4FD;
  --border: #E5E9F0;
  --border-soft: #EEF2F7;
  --slate: #374151;
  --slate-soft: #6B7280;
  --ink: #0B1220;

  /* Dark surfaces */
  --navy: #060B1A;
  --navy-soft: #0C1428;
  --navy-line: rgba(255, 255, 255, 0.10);
  --navy-text: rgba(255, 255, 255, 0.68);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.05);
  --shadow-md: 0 8px 24px -8px rgba(0, 71, 171, 0.16);
  --shadow-lg: 0 18px 40px -12px rgba(0, 71, 171, 0.20);
  --shadow-xl: 0 25px 50px -12px rgba(0, 71, 171, 0.15);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --maxw: 1180px;
  --gutter: 24px;
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--slate);
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { color: var(--cobalt-deep); }
button { font: inherit; }
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.4vw, 3.9rem); font-weight: 800; letter-spacing: -0.032em; }
h2 { font-size: clamp(1.85rem, 3.7vw, 2.7rem); letter-spacing: -0.028em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: 0.45em; }
:focus-visible {
  outline: 3px solid var(--brand-mid);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding: clamp(48px, 6vw, 76px) 0; }
.section--alt { background: var(--bg-alt); }
.section--line { border-top: 1px solid var(--border-soft); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--cobalt); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--radius-md) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.lede {
  font-size: clamp(1.03rem, 1.6vw, 1.18rem);
  color: var(--slate-soft);
  max-width: 60ch;
}
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.775rem; font-weight: 650;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--cobalt); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cobalt), var(--titan));
}
.eyebrow--center { justify-content: center; }
.eyebrow--onDark { color: var(--titan); }

.section-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--radius-pill);
  font-weight: 620; font-size: 0.965rem; letter-spacing: -0.006em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
              background-color 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease);
}
.btn svg { flex: none; transition: transform 0.22s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary {
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--brand-mid) 100%);
  color: #fff; box-shadow: var(--shadow-md);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--cobalt); color: var(--cobalt); transform: translateY(-2px); }
.btn--onDark {
  background: rgba(255,255,255,0.07); color: #fff;
  border-color: var(--navy-line); backdrop-filter: blur(8px);
}
.btn--onDark:hover { background: rgba(255,255,255,0.14); color: #fff; transform: translateY(-2px); }
.btn--lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--border); box-shadow: 0 2px 16px rgba(11,18,32,0.05); }
.nav { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand__logo { height: 30px; width: auto; }
@media (max-width: 480px) { .brand__logo { height: 25px; } }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 9px 14px; border-radius: var(--radius-sm);
  color: var(--slate); font-weight: 550; font-size: 0.945rem;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav__links a:hover { color: var(--cobalt); background: var(--bg-alt); }
.nav__links a[aria-current="page"] { color: var(--cobalt); font-weight: 650; }
/* The CTA inside the links list is for the mobile menu only. */
.nav__links > .btn { display: none; }
/* `.nav__links a` (0,1,1) outweighs `.btn--primary` (0,1,0), which would leave the
   mobile menu's CTA with dark link text on a blue background. Restore white. */
.nav__links > .btn--primary,
.nav__links > .btn--primary:hover { color: #fff; }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle span {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink);
  position: relative; transition: background-color 0.2s var(--ease);
}
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  border-radius: 2px; background: var(--ink); transition: transform 0.24s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 14px var(--gutter) 22px;
    box-shadow: 0 16px 30px -14px rgba(11,18,32,0.18);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 13px 12px; font-size: 1.02rem; }
  .nav__cta .btn--primary { display: none; }
  .nav__links > .btn { display: inline-flex; margin-top: 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: clamp(74px, 11vw, 132px) 0 clamp(80px, 10vw, 120px);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 480px at 12% -5%, rgba(0, 143, 219, 0.30), transparent 62%),
    radial-gradient(760px 420px at 92% 8%, rgba(0, 172, 238, 0.22), transparent 60%),
    radial-gradient(620px 400px at 60% 105%, rgba(0, 71, 171, 0.30), transparent 65%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 38%, #000 38%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 38%, #000 38%, transparent 78%);
}
.hero h1 { color: #fff; max-width: 17ch; }
.hero h1 em {
  font-style: normal;
  /* Stays in the bright half of the logo gradient so it reads on the dark hero. */
  background: linear-gradient(110deg, var(--titan) 0%, var(--titan-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.75vw, 1.24rem);
  color: var(--navy-text); max-width: 58ch; margin-bottom: 32px;
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 72px); align-items: center;
}
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; gap: 48px; } }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 9px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.07); border: 1px solid var(--navy-line);
  font-size: 0.83rem; font-weight: 550; color: rgba(255,255,255,0.86);
  margin-bottom: 26px; backdrop-filter: blur(8px);
}
.pill__dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #34D399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.20);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.20); }
  50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
}

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 26px 40px;
  margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--navy-line);
}
.hero__meta div { min-width: 120px; }
.hero__meta dt {
  font-size: 0.775rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(255,255,255,0.50); margin-bottom: 6px; font-weight: 600;
}
.hero__meta dd { margin: 0; font-size: 1.02rem; font-weight: 600; color: #fff; }

/* Hero visual — automation flow */
.flow {
  position: relative; border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(255,255,255,0.075), rgba(255,255,255,0.02));
  border: 1px solid var(--navy-line); padding: 26px;
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.7);
}
.flow__title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.52); font-weight: 600; margin-bottom: 20px;
}
.flow__dots { display: flex; gap: 6px; }
.flow__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.flow__dots i:first-child { background: rgba(255,255,255,0.32); }
.flow__steps { display: grid; gap: 11px; }
.flow__step {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05); border: 1px solid var(--navy-line);
  opacity: 0; transform: translateY(8px);
  animation: flowIn 0.62s var(--ease-out) forwards;
}
.flow__step:nth-child(1) { animation-delay: 0.15s; }
.flow__step:nth-child(2) { animation-delay: 0.33s; }
.flow__step:nth-child(3) { animation-delay: 0.51s; }
.flow__step:nth-child(4) { animation-delay: 0.69s; }
@keyframes flowIn { to { opacity: 1; transform: none; } }
.flow__icon {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,143,219,0.24), rgba(0,172,238,0.16));
  border: 1px solid rgba(0,172,238,0.24); color: var(--titan);
}
.flow__label { font-size: 0.925rem; font-weight: 600; color: #fff; line-height: 1.35; }
.flow__sub { font-size: 0.79rem; color: rgba(255,255,255,0.50); }
.flow__arrow { display: grid; place-items: center; color: rgba(255,255,255,0.22); height: 6px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
/* The two-up grids hold four cards; lock them to 2x2 so the last one is never
   stranded alone on its own row. */
@media (min-width: 960px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); }

.card {
  position: relative; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 26px; overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--cobalt), var(--titan));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.34s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(0,71,171,0.09), rgba(0,172,238,0.10));
  color: var(--cobalt); border: 1px solid rgba(0,71,171,0.10);
}
.card__link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 620; font-size: 0.925rem; margin-top: 14px;
}
.card__link svg { transition: transform 0.22s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }
a.card { display: block; color: inherit; }
a.card:hover { color: inherit; }

.card--flat { background: var(--bg-alt); border-color: var(--border-soft); }
.card--flat:hover { transform: none; box-shadow: none; border-color: var(--border); }
.card--flat::after { display: none; }

/* Tag list */
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; list-style: none; }
.tags li {
  margin: 0; padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--bg-alt); border: 1px solid var(--border-soft);
  font-size: 0.815rem; font-weight: 550; color: var(--slate-soft);
}

/* Check list */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; margin: 0; }
.checks svg { flex: none; margin-top: 4px; color: var(--cobalt); }
.checks--onDark svg { color: var(--titan); }

/* ---------- Process ---------- */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); counter-reset: step; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--border); counter-increment: step; }
.step::before {
  content: "0" counter(step);
  position: absolute; top: -2px; left: 0; padding-top: 26px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; color: var(--cobalt);
}
.step::after {
  content: ""; position: absolute; top: -2px; left: 0; width: 42px; height: 2px;
  background: linear-gradient(90deg, var(--cobalt), var(--titan));
}
.step h3 { margin: 26px 0 8px; font-size: 1.1rem; }
.step p { font-size: 0.955rem; color: var(--slate-soft); margin: 0; }

/* ---------- Stat / metric row ---------- */
.metrics { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.metric { padding: 22px 24px; border-radius: var(--radius-lg); background: var(--bg-alt); border: 1px solid var(--border-soft); }
.metric__k {
  font-size: clamp(1.7rem, 3vw, 2.15rem); font-weight: 800; letter-spacing: -0.03em;
  color: var(--ink); line-height: 1.05; margin-bottom: 6px;
}
.metric__v { font-size: 0.93rem; color: var(--slate-soft); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: #fff; border-radius: var(--radius-xl);
  padding: clamp(44px, 6vw, 68px) clamp(28px, 5vw, 60px);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(620px 320px at 8% 0%, rgba(0,143,219,0.34), transparent 62%),
    radial-gradient(520px 300px at 96% 100%, rgba(0,172,238,0.26), transparent 62%);
}
.cta h2 { color: #fff; max-width: 20ch; }
.cta p { color: var(--navy-text); max-width: 54ch; }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 36px; align-items: center; }
@media (max-width: 820px) { .cta__grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 15px; padding: 20px 0; border-bottom: 1px solid var(--border-soft); }
.contact-item:last-child { border-bottom: 0; }
.contact-item__icon {
  width: 42px; height: 42px; flex: none; border-radius: var(--radius-md); display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,71,171,0.09), rgba(0,172,238,0.10));
  color: var(--cobalt); border: 1px solid rgba(0,71,171,0.10);
}
.contact-item h3 { font-size: 0.82rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--slate-soft); margin-bottom: 4px; font-weight: 620; }
.contact-item a, .contact-item p { font-size: 1.03rem; color: var(--ink); font-weight: 550; margin: 0; }
.contact-item a:hover { color: var(--cobalt); }

/* ---------- Form ---------- */
.form { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: clamp(24px, 3.6vw, 36px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.885rem; font-weight: 620; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--cobalt); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 0.97rem; color: var(--ink);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-mid); box-shadow: 0 0 0 3px rgba(0,143,219,0.14);
}
.form__note { font-size: 0.85rem; color: var(--slate-soft); margin: 14px 0 0; }
.form__status { margin-top: 14px; font-size: 0.93rem; font-weight: 550; display: none; }
.form__status.is-error { display: block; color: #B42318; }
.form__status.is-ok { display: block; color: #067647; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-weight: 620; font-size: 1.06rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 2px solid var(--slate-soft); border-bottom: 2px solid var(--slate-soft);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.24s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details[open] summary { color: var(--cobalt); }
.faq__body { padding: 0 0 22px; max-width: 74ch; }
.faq__body p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--navy-text); padding: clamp(52px, 6vw, 76px) 0 32px; }
.site-footer h2 {
  color: #fff; font-size: 0.79rem; letter-spacing: 0.11em;
  text-transform: uppercase; margin-bottom: 16px; font-weight: 650;
}
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.site-footer .brand { margin-right: 0; }
.site-footer .brand__logo { height: 32px; }
.footer__about { max-width: 38ch; font-size: 0.94rem; margin: 18px 0 0; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__list a { color: var(--navy-text); font-size: 0.94rem; }
.footer__list a:hover { color: #fff; }
.footer__bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--navy-line);
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  font-size: 0.87rem; color: rgba(255,255,255,0.45);
}
.footer__bottom a { color: rgba(255,255,255,0.45); }
.footer__bottom a:hover { color: #fff; }

/* ---------- Touch targets ----------
   On touch screens, links rendered at their text height (~20px) are awkward to
   hit. WCAG 2.5.5 and Google's mobile guidance both want ~44px. These are the
   links people actually tap on a phone: contact details and footer navigation.
   The footer's row gap is reduced to compensate, so it does not grow taller. */
@media (max-width: 900px) {
  .footer__list a,
  .contact-item a,
  .crumbs a,
  .footer__bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .footer__list { gap: 2px; }
  .footer__bottom { padding-top: 8px; }
}

/* ---------- Reveal on scroll ----------
   Content is visible by DEFAULT. It is only hidden once the inline head script
   has confirmed IntersectionObserver exists to bring it back. That way a JS
   failure, a blocked script or an old browser shows the page rather than a
   blank column. */
.reveal { transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Page header (inner pages) ---------- */
.page-head {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: #fff;
  padding: clamp(56px, 7.5vw, 92px) 0 clamp(52px, 7vw, 84px);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(760px 380px at 10% 0%, rgba(0,143,219,0.28), transparent 62%),
    radial-gradient(620px 340px at 92% 20%, rgba(0,172,238,0.20), transparent 60%);
}
.page-head h1 { color: #fff; max-width: 20ch; font-size: clamp(2.05rem, 4.4vw, 3.1rem); }
.page-head .lede { color: var(--navy-text); }
.crumbs { font-size: 0.86rem; color: rgba(255,255,255,0.50); margin-bottom: 18px; }
.crumbs a { color: rgba(255,255,255,0.68); }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 8px; opacity: 0.5; }

/* ---------- Prose (service detail) ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2em; font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 68px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.aside {
  position: sticky; top: calc(var(--nav-h) + 22px);
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
}
@media (max-width: 900px) { .aside { position: static; } }
.aside h3 { font-size: 1.02rem; margin-bottom: 12px; }
.aside p { font-size: 0.94rem; color: var(--slate-soft); }

/* ---------- 404 ---------- */
.err { display: grid; place-items: center; text-align: center; padding: clamp(72px, 12vw, 140px) 0; }
.err__code {
  font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--cobalt), var(--titan));
  -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px;
}
