/* =========================================================================
   AI Capabl — shared stylesheet
   Plain CSS, no build step. Every theme value lives in :root, so the whole
   site re-colours from one place.
   Brand: carbon black + signal red, sampled from the aic mark.
   ========================================================================= */

:root {
  /* palette */
  --bg:           #ffffff;   /* page background */
  --surface:      #ffffff;   /* cards / raised surfaces */
  --surface-alt:  #f4f6f9;   /* banded sections */
  --carbon:       #101216;   /* dark sections, footer */
  --carbon-2:     #1a1e25;   /* raised surface on carbon */
  --ink:          #101216;   /* primary text */
  --muted:        #5c6472;   /* secondary text */
  --red:          #e21a16;   /* signal red — from the logo */
  --red-dark:     #b31410;
  --red-soft:     #fdeceb;
  --border:       #e3e7ec;
  --border-dark:  #2a2f38;
  --steel:        #8b95a5;   /* labels on carbon */

  /* type */
  --font-head: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* scale */
  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow:    0 24px 50px -30px rgba(16, 18, 22, .45);
  --shadow-sm: 0 10px 24px -18px rgba(16, 18, 22, .40);
}

/* ---- reset-ish -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -1.2px; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.8px; }
h3 { font-size: 1.18rem; letter-spacing: -.2px; }
h1, h2 { text-wrap: balance; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ---- layout helpers --------------------------------------------------- */
[id] { scroll-margin-top: 88px; }
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--surface-alt); border-block: 1px solid var(--border); }
.section--tight { padding-block: clamp(2.2rem, 4vw, 3.2rem); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.stack > * + * { margin-top: 1rem; }

/* mono label with a red tick — used above every section heading */
.eyebrow {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-weight: 600; font-size: .7rem;
  letter-spacing: 2.2px; text-transform: uppercase; color: var(--red-dark);
  margin: 0 0 .9rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 3px; margin-right: .7rem;
  background: var(--red); border-radius: 2px;
}

/* ---- buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .78rem 1.35rem; border-radius: 8px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .12s ease,
                              border-color .12s ease, color .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #24282f; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn--on-dark:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }

/* ---- header / nav ----------------------------------------------------- */
.skip-link {
  position: absolute; left: .75rem; top: -3rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .15s ease;
}
.skip-link:focus { top: .75rem; text-decoration: none; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 0; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav__links a:hover { color: var(--red-dark); text-decoration: none; }
.nav__links a.is-active { color: var(--red-dark); }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: .4rem; color: var(--ink);
}
.nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 800px) {
  .nav { position: relative; }
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: 100%; left: -1.25rem; right: -1.25rem;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav__links.is-open { max-height: 340px; }
  .nav__links a { display: block; padding: .9rem 1.25rem; border-top: 1px solid var(--border); }
  .nav__links li:first-child a { border-top: 0; }
  .nav__links .btn { margin: .8rem 1.25rem 1.1rem; justify-content: center; }
}

/* ---- carbon surface (hero, panels, footer) ---------------------------- */
.carbon {
  position: relative; overflow: hidden;
  background: var(--carbon); color: #dfe4ec; isolation: isolate;
}
.carbon h1, .carbon h2, .carbon h3, .carbon h4 { color: #fff; }
.carbon .lead { color: #a8b1c0; }
.carbon .eyebrow { color: #ff6b5e; }
/* fine technical grid + a red glow off the top-right corner */
.carbon::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 90% at 20% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 20% 0%, #000 20%, transparent 75%);
}
.carbon::after {
  content: ""; position: absolute; z-index: -1;
  top: -30%; right: -10%; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(226,26,22,.30) 0%, transparent 62%);
  pointer-events: none;
}

/* ---- hero ------------------------------------------------------------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero__grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__note {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .3px;
  color: var(--steel); margin-top: 1.4rem;
}
.hero__note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero__art { filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { width: 100%; max-width: 520px; margin-inline: auto; }
}

/* ---- marquee strip of capabilities ------------------------------------ */
.strip {
  border-block: 1px solid var(--border-dark);
  /* background-image layers over the .carbon background-colour rather than replacing it */
  background-image: linear-gradient(rgba(255,255,255,.03), rgba(255,255,255,.03));
}
.strip::after { display: none; }   /* no red glow on the thin band */
.strip ul {
  display: flex; flex-wrap: wrap; gap: .6rem 1.7rem; justify-content: center;
  list-style: none; margin: 0; padding: 1rem 0;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--steel);
}
.strip li { display: flex; align-items: center; gap: .55rem; }
.strip li::before { content: ""; width: 5px; height: 5px; background: var(--red); border-radius: 1px; }

/* ---- cards / grids ---------------------------------------------------- */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
/* red hairline that draws itself across the top on hover */
.card::after {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
  background: var(--red); border-radius: var(--radius) var(--radius) 0 0;
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d5dae1; }
.card:hover::after { transform: scaleX(1); }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .97rem; }
.card__meta {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--red-dark); margin-top: 1.1rem;
}

.icon {
  width: 46px; height: 46px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 1.05rem;
  background: var(--red-soft); color: var(--red-dark);
}
.icon--ink { background: #eef1f5; color: var(--ink); }
.icon svg { width: 24px; height: 24px; }

/* ---- feature lists ---------------------------------------------------- */
.feature-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .65rem; }
.feature-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .97rem; }
.feature-list svg { flex: 0 0 auto; width: 19px; height: 19px; color: var(--red); margin-top: 4px; }
.carbon .feature-list li { color: #cdd4df; }

/* ---- split rows (services) -------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--flip .split__media { order: -1; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
}
.split + .split { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--border); }

/* spec-sheet style key/value block */
.spec {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-alt); overflow: hidden;
}
.spec__head {
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem 1.1rem; background: var(--ink); color: #fff;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: 1.6px; text-transform: uppercase;
}
.spec__head::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.spec dl { margin: 0; }
.spec div {
  display: grid; grid-template-columns: minmax(7.5rem, 34%) minmax(0, 1fr); gap: 1rem;
  padding: .8rem 1.1rem; border-top: 1px solid var(--border);
}
.spec div:first-child { border-top: 0; }
.spec dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .6px; color: var(--muted); text-transform: uppercase; }
.spec dd { margin: 0; font-size: .95rem; }

/* ---- numbered process ------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { list-style: none; padding-top: 1.3rem; border-top: 3px solid var(--border); }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: 2px; color: var(--red); margin-bottom: .5rem;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.steps p { color: var(--muted); font-size: .93rem; margin: 0; }
.carbon .steps li { border-top-color: var(--border-dark); }
.carbon .steps p { color: #a8b1c0; }
/* three-across variant (declared after the base media queries so it wins) */
.steps--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .steps--3 { grid-template-columns: 1fr; } }

/* ---- dashboard panel / stats ------------------------------------------ */
.panel {
  background: var(--carbon-2); border: 1px solid var(--border-dark);
  border-radius: var(--radius); padding: clamp(1.4rem, 3.5vw, 2.2rem); color: #dfe4ec;
}
.panel h3 { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.4rem; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr 1fr; } }
.stats b {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: 1.75rem; line-height: 1.1; color: #fff; letter-spacing: -.5px;
}
.stats span {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--steel);
}
.stats b em { color: var(--red); font-style: normal; }

/* ---- logos / integration band ----------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; padding: 0; list-style: none; }
.chips li {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .4px;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: .35rem .8rem; color: var(--muted);
}
.carbon .chips li { border-color: var(--border-dark); background: rgba(255,255,255,.04); color: #bcc4d0; }

/* ---- callout / quote-ish ---------------------------------------------- */
.callout {
  border-left: 3px solid var(--red); background: var(--surface-alt);
  padding: 1.1rem 1.3rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---- CTA band --------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .hero__cta { justify-content: center; }
.cta-band .lead { margin-inline: auto; }

/* ---- contact ---------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.email-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; }
.email-card .icon { margin-bottom: 0; }
.email-card h3 { margin-bottom: .15rem; }
.email-card a { font-weight: 600; word-break: break-all; }
.email-card p { margin: .2rem 0 0; }
.copy {
  margin-left: auto; align-self: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: .35rem .6rem; cursor: pointer; color: var(--muted);
  font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: 1px;
}
.copy:hover { border-color: var(--ink); color: var(--ink); }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 1.9rem); }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; padding: .7rem .8rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft);
}
.form-note { font-size: .85rem; color: var(--muted); margin: .6rem 0 0; }

/* ---- FAQ -------------------------------------------------------------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 1.05rem 0; }
.faq summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.4rem; line-height: 1; font-family: var(--font-mono); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: .7rem 0 0; max-width: 74ch; }

/* ---- footer ----------------------------------------------------------- */
.site-footer { position: relative; background: var(--carbon); color: #aab3c1; padding: 3.2rem 0 1.8rem; }
/* signature: tyre-tread rule across the top edge */
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background-image: repeating-linear-gradient(115deg,
    var(--red) 0 10px, transparent 10px 14px, rgba(255,255,255,.16) 14px 24px, transparent 24px 28px);
}
.site-footer a { color: #aab3c1; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__grid h4 {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--steel); margin: 0 0 .9rem;
}
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .94rem; }
.footer__brand img { height: 32px; width: auto; margin-bottom: 1rem; }
.footer__brand p { max-width: 36ch; font-size: .94rem; color: #98a1af; }
.footer__bottom {
  border-top: 1px solid var(--border-dark); margin-top: 2.6rem; padding-top: 1.3rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .3px; color: #7c8695;
}

/* ---- utilities -------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
  .card:hover, .btn:hover { transform: none; }
}
