/* Pragmatic AI Labs — site theme
   Dark, practitioner-built aesthetic. IBM Plex Mono/Sans, single accent color. */

:root {
  --bg: #070B12;
  --bg-alt: #101825;
  --bg-alt-2: #16223a;
  --bg-tile: #101825;
  --border: #1c2942;
  --border-strong: #2c3e5c;
  --text: #F2F5F7;
  --text-dim: #b3c3d6;
  --text-dim-2: #adbed2;
  --text-mute: #8298b4;
  --text-mute-2: #6b83a1;
  --text-mute-3: #9db0c8;

  /* Primary accent — used for CTAs, links, highlights, selection */
  --accent: #7FD8CE;
  /* Secondary palette colors, used sparingly for the hero glow */
  --accent-blue: #2374B5;
  --accent-teal: #14A6A6;

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;

  --max-width: 1240px;
  --pad-inline: clamp(18px, 4vw, 44px);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  text-wrap: pretty;
  overflow-x: hidden;
}

a {
  color: var(--text);
  text-decoration: none;
}
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }

.mono { font-family: var(--mono); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-inline);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 15px 26px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-sm { font-size: 13.5px; padding: 13px 22px; }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}
.btn-primary:hover {
  color: var(--bg);
  filter: brightness(1.08);
}

.btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--text-dim-2); color: var(--text); }

.btn-outline-accent {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline-accent:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  height: 64px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 40px);
}
.brand {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-logo {
  height: 22px;
  width: auto;
  display: block;
}
.site-nav {
  display: flex;
  gap: clamp(12px, 2.2vw, 26px);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim-2);
  flex-wrap: wrap;
  margin-left: auto;
}
.site-nav a { color: inherit; }
.header-cta {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  border: 1px solid var(--border-strong);
  padding: 8px 14px;
  white-space: nowrap;
}
.header-cta:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  pointer-events: none;
}
.hero-glow--a {
  top: -300px; left: 8%;
  width: min(1200px, 110%); height: 820px;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent-blue) 40%, transparent), transparent 100%);
  filter: blur(24px);
  opacity: 0.5;
}
.hero-glow--b {
  top: -180px; right: -180px;
  width: min(760px, 90%); height: 660px;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 30%, transparent), transparent 100%);
  filter: blur(36px);
  opacity: 0.5;
}
.hero-glow--line {
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--accent) 55%, transparent), transparent);
}
.hero-inner {
  position: relative;
  /* padding-top/bottom only: this element also carries .wrap, which sets
     the horizontal padding — a `padding:` shorthand here would zero it out. */
  padding-top: clamp(56px, 9vw, 132px);
  padding-bottom: clamp(44px, 6vw, 84px);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: clamp(20px, 3vw, 34px);
}
.hero-title {
  margin: 0;
  max-width: 20ch;
  font-weight: 600;
  font-size: clamp(38px, 6.4vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.028em;
}
.manifesto {
  margin-top: clamp(28px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(20px, 3vw, 40px);
  font-family: var(--mono);
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.9;
  color: var(--text);
}
.hero-lede {
  margin: clamp(20px, 3vw, 30px) 0 0;
  max-width: 62ch;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--text-dim);
}
.hero-actions {
  margin-top: clamp(30px, 4vw, 46px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Sections / lanes ---------- */
section { border-bottom: 1px solid var(--border); }
section.alt { background: var(--bg-alt); }

.lane-grid {
  /* padding-top/bottom only — this element also carries .wrap for horizontal padding */
  padding-top: clamp(48px, 7vw, 100px);
  padding-bottom: clamp(48px, 7vw, 100px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 5vw, 76px);
  align-items: start;
}
.lane-grid--tight { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.lane-order-2 { order: 2; }
.lane-order-1 { order: 1; }

.lane-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  display: flex;
  gap: 14px;
}
.lane-kicker-accent { color: var(--accent); }
.lane-heading {
  margin: 14px 0 0;
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 600;
  letter-spacing: -0.026em;
  line-height: 1.08;
}
.lane-heading--sm { font-size: clamp(24px, 3.2vw, 40px); line-height: 1.12; max-width: 26ch; }
.lane-audience {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-mute-3);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.lane-lede {
  margin: 0;
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--text);
}
.lane-body {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim-2);
  max-width: 58ch;
}
.lane-walkaway {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 2;
  color: #c6d2e0;
}
.lane-walkaway .muted { color: var(--text-mute); }
.lane-cta { margin-top: 24px; }
.lane-cta--tight { margin-top: 22px; }

/* Tool / feature list boxes */
.tool-list {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.tool-row { background: var(--bg-tile); padding: 18px 20px; }
.tool-row--split {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.tool-head {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline; flex-wrap: wrap;
}
.tool-name { font-family: var(--mono); font-size: 16px; font-weight: 600; color: var(--accent); }
.tool-badge { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-mute); }
.tool-desc { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: #b8c7d9; }

.feature-list { margin-top: 24px; border-top: 1px solid var(--border); max-width: 46ch; }
.feature-row {
  display: flex; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 14px;
}
.feature-num { color: var(--text-mute-2); min-width: 22px; }
.feature-name { color: var(--text); }

/* "Where are you standing" tiles */
/* padding-top only — these elements also carry .wrap for horizontal padding */
.eyebrow-row { padding-top: clamp(18px, 2.5vw, 26px); }
.eyebrow-row .lane-kicker { color: var(--text-mute); }
.stand-grid {
  padding-top: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.stand-card {
  background: var(--bg-tile);
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
}
.stand-card:hover { background: var(--bg-alt-2); }
.stand-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent); }
.stand-title { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.02em; }
.stand-desc { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-dim); }
.stand-link { margin-top: auto; font-family: var(--mono); font-size: 12.5px; color: #e7ecf2; }

/* "Why this matters" intro block */
.why-grid {
  /* padding-top/bottom only — this element also carries .wrap for horizontal padding */
  padding-top: clamp(44px, 6vw, 92px);
  padding-bottom: clamp(44px, 6vw, 92px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 5vw, 76px);
  align-items: start;
}
.why-heading {
  margin: 14px 0 0;
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1.1;
  max-width: 26ch;
}
.why-body { display: grid; gap: 20px; }
.why-body p { margin: 0; font-size: clamp(15px, 1.6vw, 17px); line-height: 1.7; max-width: 56ch; }

/* Closing CTA */
.cta-inner {
  /* padding-top/bottom only — this element also carries .wrap for horizontal padding */
  padding-top: clamp(60px, 9vw, 128px);
  padding-bottom: clamp(60px, 9vw, 128px);
  text-align: center;
}
.cta-title {
  margin: 0 auto;
  max-width: 22ch;
  font-size: clamp(32px, 5.4vw, 68px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.04;
}
.cta-lede {
  margin: 22px auto 0;
  max-width: 52ch;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--text-dim);
}
.cta-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* "Coming next" / "Work with us" style rows */
.plain-list { border-top: 1px solid var(--border); }
.plain-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.plain-row-title { font-size: clamp(17px, 1.9vw, 21px); font-weight: 600; letter-spacing: -0.018em; }
.plain-row-desc { font-size: 15px; line-height: 1.6; color: var(--text-dim-2); }

.work-list { border-top: 1px solid var(--border); }
.work-row { padding: 18px 0; border-bottom: 1px solid var(--border); }
.work-row--head {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline;
}
.work-row-title { font-size: clamp(19px, 2vw, 25px); font-weight: 600; letter-spacing: -0.02em; }
.work-row-stage { font-family: var(--mono); font-size: 12.5px; color: var(--text-mute-2); }

/* ---------- Footer ---------- */
.site-footer .wrap {
  padding: clamp(28px, 4vw, 44px) var(--pad-inline);
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: #8ca1bc;
}
.site-footer.footer-grid .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px 40px;
  align-items: start;
  justify-content: normal;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: 0.14em;
  color: #dbe3ec;
}
.footer-logo { height: 18px; width: auto; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-col { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-col-title { color: var(--text-mute-2); }

/* ---------- Scroll reveal ---------- */
.reveal {
  transition: opacity 620ms cubic-bezier(.22,.61,.36,1), transform 620ms cubic-bezier(.22,.61,.36,1);
}
.reveal.reveal-hidden {
  opacity: 0;
  transform: translateY(14px);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
