/* Binary Plus Limited. Colours sampled from the 2026 BP logo (navy #084070, teal #2098b0, the mark's
   cyan-to-teal gradient); the dark theme keeps the original site's navy (#0a1428) and cyan (#29abe2). */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #f6f9fc;
  --bg-alt: #ebf2f8;
  --surface: #ffffff;
  --text: #0b1f33;
  --muted: #4a5d70;
  --line: #d6e2ec;
  --navy: #084070;
  --teal: #1b8aa6;
  --accent: #1b8aa6;
  --accent-ink: #ffffff;
  --grid: rgba(8, 64, 112, 0.06);
  --shadow: 0 1px 2px rgba(8, 40, 70, 0.06), 0 8px 24px rgba(8, 40, 70, 0.06);
  --ok: #17794a;
  --err: #b42318;
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1428;
    --bg-alt: #0d1830;
    --surface: #111f3a;
    --text: #e6eef6;
    --muted: #9db0c4;
    --line: #1f3252;
    --navy: #8fd0ee;
    --teal: #29abe2;
    --accent: #29abe2;
    --accent-ink: #061020;
    --grid: rgba(41, 171, 226, 0.06);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --ok: #4ade80;
    --err: #f87171;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 7vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 16px; }

.accent { color: var(--accent); }
.b1 { color: var(--navy); }
.b2 { color: var(--teal); }

.grid-bg {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; }
.brand-text { font: 700 1.15rem var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--text); background: var(--bg-alt); }
@media (max-width: 760px) {
  .nav-links li:not(:last-child) { display: none; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid transparent; border-radius: 999px;
  padding: 12px 22px; font: 600 1rem var(--font); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-small { padding: 8px 16px; font-size: 0.95rem; }

/* hero */
.hero { padding: clamp(48px, 10vw, 112px) 0; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.25fr 1fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line); background: var(--surface); padding: 6px 14px; border-radius: 999px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--muted); max-width: 38em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-mark {
  justify-self: center; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px, 5vw, 44px); box-shadow: var(--shadow); width: min(100%, 400px);
}
.hero-mark img { width: 75%; margin: 0 auto 18px; }
.wordmark { font: 600 clamp(1.6rem, 5vw, 2.1rem) var(--display); text-transform: uppercase; letter-spacing: 0.04em; margin: 0; line-height: 1.1; }
.wordmark .ltd { display: block; color: var(--navy); font-size: 0.62em; letter-spacing: 0.12em; margin-top: 6px; }

/* sections */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section.alt { background-color: var(--bg-alt); }
.kicker { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; margin-bottom: 0.5em; }
.two-col { display: grid; gap: 24px 56px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1.3fr; } }
.prose { color: var(--muted); font-size: 1.08rem; }

.cards { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 760px) { .cards.three { grid-template-columns: repeat(3, 1fr); } .cards.two { grid-template-columns: 1.4fr 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.product .sub { margin-top: -0.4em; font-weight: 500; color: var(--text); }
.product.muted { background: transparent; box-shadow: none; border-style: dashed; }
.text-link { font-weight: 600; text-decoration: none; }

.studio {
  display: grid; gap: 24px; align-items: center;
  padding: clamp(28px, 5vw, 48px); border-radius: 24px;
  background: linear-gradient(135deg, #084070, #1b8aa6);
  color: #ffffff;
}
.studio .kicker { color: #bfe9f7; }
.studio p { color: #e3f4fb; max-width: 40em; margin-bottom: 0; }
.studio .btn { background: #ffffff; color: #084070; justify-self: start; }
@media (min-width: 760px) { .studio { grid-template-columns: 1fr auto; } }

/* contact */
.contact-form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.form-status { min-height: 1.5em; margin: 0; font-weight: 500; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.notice { display: none; border-radius: var(--radius); padding: 24px; margin-top: 16px; border: 1px solid var(--line); background: var(--surface); }
.notice:target { display: block; }
.notice.ok h3 { color: var(--ok); }
.notice.err h3 { color: var(--err); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg-alt); font-size: 0.95rem; }
.footer-inner { display: grid; gap: 20px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto; } .legal { grid-column: 1 / -1; } }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.footer-brand img { width: 36px; margin-top: 4px; }
.footer-brand p { margin: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: var(--muted); }
.legal { color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); padding-top: 20px; margin: 0; }

/* 404 */
.page-404 { min-height: 100vh; display: grid; place-items: center; }
.page-404-inner { text-align: center; max-width: 36rem; }
.page-404-inner img { width: 120px; margin: 0 auto 24px; }
