/* ============================================================================
   Aion — shared light/blue design system ("clean, trustworthy SaaS").
   One source of truth for the palette + common chrome (nav, buttons, footer).
   Linked from every public page; pages keep only their page-specific layout CSS
   and reference these tokens. Served from /public, so it's CSP 'self'.
   ========================================================================== */

:root {
  /* Surfaces — white with the faintest cool tint for depth */
  --bg: #ffffff;
  --bg-2: #f6f9fe;          /* alternating section / page wash */
  --bg-3: #eef3fb;          /* deeper wash, hero glows */
  --panel: #ffffff;         /* cards */
  --panel-2: #f3f6fb;       /* inset fills: inputs, hovers */

  /* Lines */
  --border: #e6ebf3;
  --border-strong: #d2dbe8;

  /* Ink */
  --text: #0f1b2e;          /* near-slate-900, slightly warm */
  --muted: #566375;         /* slate-600 */
  --faint: #93a0b4;         /* slate-400 */

  /* Blue accent (trust) */
  --accent: #2563eb;        /* blue-600 */
  --accent-2: #1d4ed8;      /* blue-700, hover */
  --accent-3: #1e40af;      /* blue-800, active */
  --accent-soft: #eaf1ff;   /* blue-50 wash */
  --accent-softer: #f4f8ff;
  --accent-fg: #ffffff;
  --ring: rgba(37, 99, 235, 0.35);

  /* Status */
  --ok: #15a34a;
  --ok-soft: #e9f7ef;
  --warn: #b45309;
  --err: #dc2626;
  --err-soft: #fdecec;

  /* Shape & depth */
  --radius: 16px;
  --radius-sm: 11px;
  --radius-xs: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 30, 54, 0.05), 0 1px 1px rgba(16, 30, 54, 0.03);
  --shadow: 0 10px 30px -12px rgba(23, 43, 84, 0.14), 0 3px 8px -3px rgba(16, 30, 54, 0.06);
  --shadow-lg: 0 40px 90px -40px rgba(23, 53, 110, 0.30), 0 12px 30px -18px rgba(16, 30, 54, 0.12);
  --shadow-blue: 0 12px 28px -10px rgba(37, 99, 235, 0.42), 0 2px 6px -2px rgba(29, 78, 216, 0.30);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --nav-h: 64px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.006em;
}
::selection { background: var(--accent-soft); color: var(--accent-3); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.1; margin: 0; text-wrap: balance; }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Soft blue hero glow — drop on a positioned section */
.glow { position: relative; isolation: isolate; }
.glow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(720px 380px at 50% -8%, var(--accent-soft) 0%, rgba(234, 241, 255, 0) 70%),
    radial-gradient(560px 320px at 88% 6%, #f0ecff 0%, rgba(240, 236, 255, 0) 72%);
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 600 14.5px var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn-primary {
  background: linear-gradient(180deg, #3d78f2 0%, var(--accent) 55%, var(--accent-2) 100%);
  color: var(--accent-fg); border-color: var(--accent-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), var(--shadow-blue);
}
.btn-primary:hover {
  color: #fff; transform: translateY(-1px);
  background: linear-gradient(180deg, #4a82f7 0%, var(--accent) 50%, var(--accent-2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 16px 34px -12px rgba(37, 99, 235, 0.5), 0 3px 8px -3px rgba(29, 78, 216, 0.35);
}
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-soft { background: var(--accent-soft); color: var(--accent-2); }
.btn-soft:hover { background: #dfeaff; color: var(--accent-3); }
.btn-lg { padding: 14px 24px; font-size: 15.5px; border-radius: 13px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

/* ── Site nav ──────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-nav .container { display: flex; align-items: center; gap: 18px; height: 100%; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -0.02em; font-size: 17px; }
.nav-brand:hover { color: var(--text); }
.nav-logo { width: 32px; height: 32px; flex: none; display: grid; place-items: center; }
.nav-logo img { width: 100%; height: 100%; display: block; object-fit: contain; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.nav-brand:hover .nav-logo img { transform: rotate(360deg); }
.nav-brand .tag { font-size: 12.5px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.nav-spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 13px; border-radius: 9px; color: var(--muted); font-weight: 500; font-size: 14.5px; }
.nav-link:hover { color: var(--text); background: var(--panel-2); }
.nav-link.active { color: var(--accent-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  /* Tighten the bar so brand + both actions fit a phone width without the
     last button ("Book a demo") overflowing off the right edge. */
  .site-nav .container { gap: 10px; padding: 0 16px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 9px 13px; font-size: 13.5px; }
}
@media (max-width: 460px) {
  /* On the narrowest screens drop the "· UK Immigration" tagline — the brand
     name alone leaves room for both action buttons. */
  .nav-brand .tag { display: none; }
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); margin-top: 72px; }
.site-footer .container { padding-top: 40px; padding-bottom: 40px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 26px 60px; align-items: flex-start; justify-content: space-between; }
.foot-brand { max-width: 300px; }
.foot-brand .nav-brand { margin-bottom: 12px; }
.foot-brand p { color: var(--muted); font-size: 13.5px; margin: 0; line-height: 1.65; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 26px 56px; }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin: 0 0 12px; font-weight: 600; }
.foot-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; }
.foot-col a:hover { color: var(--accent-2); }
.foot-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between; align-items: center;
  color: var(--faint); font-size: 12.5px; }

/* ── Small shared bits ─────────────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(180deg, #f3f8ff, var(--accent-soft)); color: var(--accent-2);
  font-size: 12.5px; font-weight: 600; border: 1px solid #d7e6fd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 1px 2px rgba(23, 43, 84, 0.05); }
.pill .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }
.eyebrow { font: 600 12px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

/* ── Scroll reveal — opt-in via .rv; active only when the page enables .js-anim
   on <html> (JS + IntersectionObserver present, reduced motion off). ── */
.js-anim .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js-anim .rv.in { opacity: 1; transform: none; }
.js-anim .rv.d1 { transition-delay: 0.06s; }
.js-anim .rv.d2 { transition-delay: 0.12s; }
.js-anim .rv.d3 { transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) {
  .js-anim .rv { opacity: 1; transform: none; transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .nav-brand:hover .nav-logo img { transform: none; }
}
