:root {
  --navy: #1b1f5e;
  --teal: #00a79d;
  --uk-blue: #0033a0;
  --ink: #2a2d3a;
  --muted: #555a6c;
  --rule: rgba(27, 31, 94, 0.10);
  --bg: #f7fafc;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

/* ---- Background layers -------------------------------------------------- */

/* Two soft colour washes that drift very slowly behind everything.
   Plain gradients, no blur filter: a filter this size is slow on machines
   without a graphics card. */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  opacity: 0.26;
  pointer-events: none;
  will-change: transform;
}

body::before {
  top: -22vmax;
  left: -18vmax;
  background: radial-gradient(closest-side, rgba(0, 167, 157, 0.85), rgba(0, 167, 157, 0.35) 45%, transparent 100%);
  animation: drift-a 38s ease-in-out infinite alternate;
}

body::after {
  bottom: -26vmax;
  right: -20vmax;
  background: radial-gradient(closest-side, rgba(0, 51, 160, 0.8), rgba(0, 51, 160, 0.3) 45%, transparent 100%);
  opacity: 0.17;
  animation: drift-b 46s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(14vmax, 9vmax, 0) scale(1.15); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to   { transform: translate3d(-12vmax, -10vmax, 0) scale(0.95); }
}

/* The dot field. Drawn by /assets/hub.js; never intercepts clicks. */
#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* ---- Content ------------------------------------------------------------ */

main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 56px 20px 40px;
}

.card {
  width: 100%;
  max-width: 700px;
  padding: 52px 44px 46px;
  text-align: center;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 60px -24px rgba(27, 31, 94, 0.28),
    0 2px 6px rgba(27, 31, 94, 0.05);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  animation: rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.card > * { animation: fade 900ms ease both; }
.card > :nth-child(1) { animation-delay: 120ms; }
.card > :nth-child(2) { animation-delay: 240ms; }
.card > :nth-child(3) { animation-delay: 340ms; }
.card > :nth-child(4) { animation-delay: 460ms; }
.card > :nth-child(5) { animation-delay: 580ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.ctac-logo {
  display: block;
  width: min(320px, 76%);
  height: auto;
  margin: 0 auto 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 6px 16px 6px 14px;
  color: #00796f;
  background: rgba(0, 167, 157, 0.10);
  border: 1px solid rgba(0, 167, 157, 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--teal);
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  0%        { transform: scale(1);   opacity: 0.6; }
  80%, 100% { transform: scale(3.2); opacity: 0; }
}

h1 {
  margin: 0 0 20px;
  color: var(--navy);
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Gradient headline where supported; solid navy everywhere else. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 {
    background: linear-gradient(100deg, var(--navy) 0%, var(--uk-blue) 48%, #008f86 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.lead {
  margin: 0 auto 20px;
  max-width: 580px;
  text-wrap: pretty;
}

.more {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

a {
  color: var(--uk-blue);
  font-weight: 600;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

a:hover, a:focus-visible { color: var(--navy); }

a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

footer {
  position: relative;
  z-index: 1;
  padding: 8px 24px 30px;
  text-align: center;
  animation: fade 900ms ease 700ms both;
}

.uk-logo {
  width: 160px;
  height: auto;
}

footer p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  main { padding: 28px 14px 24px; }
  .card { padding: 36px 22px 32px; border-radius: 22px; }
  .ctac-logo { margin-bottom: 24px; }
}

/* Visitors who ask their device for less motion get a still page. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Forced-colours / high-contrast modes: drop the decoration entirely. */
@media (forced-colors: active) {
  #field, body::before, body::after { display: none; }
  .card { background: Canvas; border: 1px solid CanvasText; }
  h1 { -webkit-text-fill-color: currentColor; color: CanvasText; background: none; }
}
