/* Layout concept: a quiet corporate page in the logo's cobalt, with one
   "company record" panel styled after a Companies House register entry. */
:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --ink: #0b1433;
  --muted: #4a5578;
  --line: #dde2f0;
  --cobalt: #1f3fe6;
  --cobalt-soft: #e8ecff;
  --navy: #0a1a4f;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.5rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.25rem, 5vw, 3.5rem);
  --radius: 10px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070b1c;
    --surface: #0e1530;
    --ink: #eef1ff;
    --muted: #a6b0d4;
    --line: #222c52;
    --cobalt: #6f86ff;
    --cobalt-soft: #16204a;
    --navy: #c9d3ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070b1c;
  --surface: #0e1530;
  --ink: #eef1ff;
  --muted: #a6b0d4;
  --line: #222c52;
  --cobalt: #6f86ff;
  --cobalt-soft: #16204a;
  --navy: #c9d3ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; color: var(--ink); }
p { margin: 0; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-name .a { color: var(--navy); }
.brand-name .b { color: var(--cobalt); }
.nav { display: flex; gap: 1.4rem; flex-wrap: nowrap; flex: none; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 1rem; }
.hero h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.025em; max-width: 16ch; }
.hero .lede { margin-top: 1.25rem; color: var(--muted); font-size: var(--step-1); max-width: 54ch; }
.hero-mark { justify-self: center; width: min(300px, 70%); }
.hero-mark svg { width: 100%; height: auto; display: block; }

/* Sections */
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-head { display: grid; gap: 0.6rem; margin-bottom: 2rem; max-width: 62ch; }
.section-head h2 { font-size: var(--step-3); letter-spacing: -0.02em; }
.section-head p { color: var(--muted); }
.band { border-top: 1px solid var(--line); }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.service { padding: 1.6rem 1.6rem 1.75rem; display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.service:nth-child(odd) { border-right: 1px solid var(--line); }
.service:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.service h3 { font-size: var(--step-1); }
.service p { color: var(--muted); }
.stack { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; }

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 0.75rem; align-content: start; min-width: 0; }
.product-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.product h3 { font-size: var(--step-2); }
.product h3 .ar { font-weight: 500; color: var(--muted); font-size: 0.75em; margin-inline-start: 0.4rem; }
.status { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--cobalt-soft); color: var(--cobalt); white-space: nowrap; }
.product p { color: var(--muted); }
.product ul { margin: 0; padding-left: 1.1rem; color: var(--muted); display: grid; gap: 0.3rem; }

/* Company record */
.record { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.record-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); background: var(--cobalt-soft); }
.record-head strong { font-family: var(--font-display); font-size: var(--step-1); }
.record dl { margin: 0; display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); }
.record dt, .record dd { padding: 0.85rem 1.5rem; border-bottom: 1px solid var(--line); margin: 0; }
.record dt { color: var(--muted); font-size: 0.92rem; }
.record dd { font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.record dl > :nth-last-child(-n+2) { border-bottom: 0; }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
.record-foot { padding: 0.9rem 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem 2.5rem; color: var(--muted); font-size: 0.88rem; }
.site-footer .wrap { display: grid; gap: 0.75rem; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }

/* Legal page */
.legal { padding-block: clamp(2.5rem, 6vw, 4rem); }
.legal article { max-width: 70ch; display: grid; gap: 1.1rem; }
.legal h1 { font-size: var(--step-3); letter-spacing: -0.02em; }
.legal h2 { font-size: var(--step-1); margin-top: 1rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.updated { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; justify-self: start; width: 96px; }
  .services, .products { grid-template-columns: 1fr; }
  .service:nth-child(odd) { border-right: 0; }
  .service:not(:last-child) { border-bottom: 1px solid var(--line); }
  .record dl { grid-template-columns: 1fr; }
  .record dt { border-bottom: 0; padding-bottom: 0.1rem; }
  .record dd { padding-top: 0; }
  .record dl > dt:nth-last-child(2) { border-bottom: 0; }
  .nav { gap: 1rem; }
}
@media (max-width: 420px) {
  .nav a.opt { display: none; }
  .nav { gap: 0.9rem; }
  .brand-name { font-size: 0.95rem; }
  .brand svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }
