/* DexTech Solutions: one stylesheet, no build step.
   Colours live in the tokens below; dark mode only swaps tokens. */

:root {
  color-scheme: light dark;

  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --ink: #0e1726;
  --ink-2: #3f4b5d;
  --line: #dfe4ea;
  --accent: #0b5cd5;
  --accent-ink: #ffffff;
  --accent-soft: #e7effc;
  --ok: #0f7a4d;
  --ok-soft: #e3f4ec;
  --warn: #9a5800;
  --warn-soft: #fbefdc;

  /* The hero and contact bands are dark in both themes. */
  --night: #0b1424;
  --night-2: #13203a;
  --night-ink: #f3f6fb;
  --night-ink-2: #b9c4d6;
  --night-line: #2a3a58;
  --night-accent: #7fb0ff;

  --radius: 14px;
  --radius-small: 8px;
  --shadow: 0 1px 2px rgb(14 23 38 / 6%), 0 8px 24px rgb(14 23 38 / 6%);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-body);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a111e;
    --surface: #111a2b;
    --surface-2: #0d1523;
    --ink: #e8edf4;
    --ink-2: #aab6c8;
    --line: #23314a;
    --accent: #7fb0ff;
    --accent-ink: #06101f;
    --accent-soft: #15284a;
    --ok: #5fd39c;
    --ok-soft: #10301f;
    --warn: #f0b45c;
    --warn-soft: #36260d;

    --night: #060c17;
    --night-2: #0f1a2e;

    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

section[id] {
  scroll-margin-top: 72px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-small);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn--small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}

.btn--large {
  min-height: 54px;
  padding: 14px 26px;
  font-size: 1.0625rem;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--accent) 86%, var(--ink));
}

.btn--outline {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

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

.btn--light {
  background: #ffffff;
  color: var(--night);
}

.btn--light:hover {
  background: #dfe9fb;
}

.btn--ghost-light {
  border-color: rgb(255 255 255 / 35%);
  color: var(--night-ink);
}

.btn--ghost-light:hover {
  border-color: #ffffff;
  background: rgb(255 255 255 / 8%);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: 32px;
  height: 32px;
  flex: none;
  color: var(--accent);
}

@media (prefers-color-scheme: dark) {
  /* The mark's white strokes need a mid blue behind them in dark mode. */
  .brand__mark {
    color: #2f6fdc;
  }
}

.brand__name {
  font: 800 1.1875rem/1 var(--font-display);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .brand__sub {
    display: none;
  }
}

.brand__sub {
  font-weight: 600;
  color: var(--ink-2);
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-small);
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .site-header__inner > .btn {
    margin-left: auto;
  }
}

/* ---------- Eyebrows and section heads ---------- */

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow--on-dark {
  color: var(--night-accent);
}

.section {
  padding-block: clamp(64px, 9vw, 104px);
}

.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section__head h2 {
  font-size: clamp(1.875rem, 3.6vw, 2.625rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section__lede {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 1.125rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 20%, rgb(47 111 220 / 28%), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgb(47 111 220 / 14%), transparent 70%),
    var(--night);
  color: var(--night-ink);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(128px, 12vw, 160px);
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.hero__lede {
  max-width: 620px;
  margin-top: 22px;
  color: var(--night-ink-2);
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__proof {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--night-line);
  color: var(--night-ink-2);
  font-size: 0.9375rem;
}

/* The photo sits right, and the phone overlaps its lower-left corner.
   Both share one grid row, so the overlap scales with the column. */
.hero__art {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
}

.hero__photo {
  grid-column: 4 / -1;
  grid-row: 1;
  position: relative;
  margin: 0;
}

.hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgb(0 0 0 / 40%);
}

/* The phone is an illustration, drawn in CSS so it stays sharp and editable. */
.phone {
  position: relative;
  z-index: 1;
  grid-column: 1 / 7;
  grid-row: 1;
  margin-bottom: -56px;
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(160deg, #24324d, #0d1628);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 8%),
    0 30px 60px rgb(0 0 0 / 45%);
  transform: rotate(-3deg);
}

.phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 76px;
  height: 20px;
  border-radius: 999px;
  background: #05080f;
  transform: translateX(-50%);
}

.phone__screen {
  padding: 44px 12px 16px;
  border-radius: 30px;
  background: #f6f7f9;
  color: #0e1726;
}

.phone__kicker {
  color: #0b5cd5;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone__title {
  margin: 2px 0 12px;
  font: 800 1.1875rem/1.2 var(--font-display);
}

.feed {
  display: grid;
  gap: 8px;
}

.feed__item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(14 23 38 / 8%);
}

.feed__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 9px;
}

.feed__icon svg {
  width: 18px;
  height: 18px;
}

.feed__icon--ok {
  background: #e3f4ec;
  color: #0f7a4d;
}

.feed__icon--info {
  background: #e7effc;
  color: #0b5cd5;
}

.feed__icon--warn {
  background: #fbefdc;
  color: #9a5800;
}

.feed__text {
  display: grid;
  font-size: 0.75rem;
  line-height: 1.35;
}

.feed__text strong {
  font-size: 0.8125rem;
}

.feed__text span {
  color: #4a5668;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__art {
    max-width: 560px;
  }

  /* On a narrow screen the phone tucks under the photo instead of over it. */
  .hero__photo {
    grid-column: 3 / -1;
  }

  .phone {
    grid-column: 1 / 10;
    grid-row: 2;
    margin-top: -120px;
    margin-bottom: 0;
    transform: rotate(-2deg);
  }
}

/* ---------- At a glance ---------- */

.stats {
  position: relative;
  z-index: 2;
  margin-top: -64px;
}

.stats__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 28px;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat__value {
  color: var(--accent);
  font: 800 clamp(1.75rem, 3vw, 2.25rem)/1.1 var(--font-display);
  letter-spacing: -0.02em;
}

.stat__label {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.4;
}

@media (max-width: 860px) {
  .stats__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 420px) {
  .stat {
    padding: 20px 18px;
  }
}

/* ---------- Why it matters ---------- */

.why {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.why__photo {
  position: relative;
  margin: 0;
}

.why__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.why__caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgb(11 20 36 / 82%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.why .section__head {
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .why {
    grid-template-columns: 1fr;
  }

  .why__photo img {
    aspect-ratio: 4 / 3;
    object-position: center 40%;
  }
}

/* ---------- Pillars ---------- */

.pillars.pillars--stacked {
  grid-template-columns: 1fr;
  gap: 12px;
}

.pillars--stacked .pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  padding: 20px 22px;
}

.pillars--stacked .pillar__num {
  grid-row: span 2;
  margin-bottom: 0;
}

.pillars--stacked .pillar p {
  margin-top: 4px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pillar {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.pillar__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 800 1rem/1 var(--font-display);
}

.pillar h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.pillar p {
  margin-top: 10px;
  color: var(--ink-2);
}

@media (max-width: 820px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.service__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0 28px 28px;
}

.service__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  margin-bottom: 18px;
  border: 4px solid var(--bg);
  border-radius: 16px;
  background: var(--accent);
  color: var(--accent-ink);
}

.service__icon svg {
  width: 26px;
  height: 26px;
}

.service h3 {
  font-size: 1.3125rem;
  font-weight: 700;
}

.service__body > p {
  margin-top: 12px;
  color: var(--ink-2);
}

.service .checks {
  margin-top: 20px;
  margin-bottom: 24px;
}

.service__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
}

@media (max-width: 960px) {
  .services {
    grid-template-columns: 1fr;
  }
}

/* A list with a tick before each line, used across the page. */
.checks {
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 28px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.38em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.2L11.5 5.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat,
    var(--ok);
}

@media (prefers-color-scheme: dark) {
  .checks li::before {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.2L11.5 5.8' fill='none' stroke='%2306101f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 16px no-repeat,
      var(--ok);
  }
}

/* ---------- Apps ---------- */

.apps {
  display: grid;
  gap: 24px;
}

.app {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr) minmax(0, 1.1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3.5vw, 40px);
}

.app__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8125rem;
}

.tag--live {
  background: var(--ok-soft);
  color: var(--ok);
}

.tag__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.tag--muted {
  background: var(--surface-2);
  color: var(--ink-2);
}

.app h3 {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.app__problem {
  margin-top: 14px;
  margin-bottom: 28px;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.app__detail {
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--surface-2);
  border-left: 1px solid var(--line);
}

.app__detail h4 {
  margin-bottom: 14px;
  color: var(--ink-2);
  font: 600 0.8125rem/1.3 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fits {
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: var(--radius-small);
  border-left: 4px solid var(--accent);
  background: var(--surface);
}

.fits h4 {
  margin-bottom: 6px;
  color: var(--accent);
}

.app__media {
  position: relative;
  min-height: 260px;
}

.app__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app__media--tailoring img {
  object-position: 38% 70%;
}

.app:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 0.75fr);
}

.app:nth-child(even) .app__media {
  order: 3;
}

@media (max-width: 1080px) {
  .app,
  .app:nth-child(even) {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .app__media,
  .app:nth-child(even) .app__media {
    order: 0;
    grid-column: 1 / -1;
    min-height: 0;
    aspect-ratio: 16 / 7;
  }
}

@media (max-width: 860px) {
  .app,
  .app:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .app__media {
    aspect-ratio: 16 / 9;
  }

  .app__detail {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* ---------- Building blocks ---------- */

.patterns {
  background:
    radial-gradient(50% 70% at 0% 0%, rgb(47 111 220 / 22%), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgb(47 111 220 / 16%), transparent 70%),
    var(--night);
  color: var(--night-ink);
}

.patterns__lede {
  color: var(--night-ink-2);
}

.matrix {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 60px rgb(0 0 0 / 35%);
}

.matrix__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.matrix__table th,
.matrix__table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.matrix__table tbody tr:last-child > * {
  border-bottom: 0;
}

.matrix__table thead th {
  background: var(--surface-2);
  font-weight: 400;
}

.matrix__table tbody th {
  width: 28%;
  font-weight: 400;
}

.matrix__app {
  display: flex;
  align-items: center;
  gap: 12px;
}

.matrix__app img {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  object-fit: cover;
}

.matrix__app strong,
.matrix__block strong {
  display: block;
  font: 700 1rem/1.25 var(--font-display);
}

.matrix__app span span,
.matrix__block span span {
  display: block;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.matrix__block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.matrix__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.matrix__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* A tick before each filled box, matching the lists elsewhere on the page. */
.matrix__cell {
  position: relative;
  padding-left: 48px !important;
}

.matrix__cell::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.2L11.5 5.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 18px no-repeat,
    var(--ok);
}

.matrix__cell--none {
  color: var(--ink-2);
}

.matrix__cell--none::before {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

@media (prefers-color-scheme: dark) {
  .matrix__cell:not(.matrix__cell--none)::before {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.2L11.5 5.8' fill='none' stroke='%2306101f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 18px no-repeat,
      var(--ok);
  }
}

/* The app name over each box only shows once the table is restacked. */
.matrix__label {
  display: none;
}

.patterns__close {
  display: grid;
  justify-items: start;
  gap: 16px;
  max-width: 760px;
  margin-top: clamp(36px, 5vw, 56px);
}

.patterns__stat {
  color: var(--night-ink-2);
  font-size: 1.125rem;
}

.patterns__stat strong {
  display: block;
  color: var(--night-ink);
  font: 800 clamp(2.5rem, 5vw, 3.5rem)/1 var(--font-display);
  letter-spacing: -0.02em;
}

.patterns__pitch {
  color: var(--night-ink);
  font-size: 1.1875rem;
}

.patterns :focus-visible {
  outline-color: var(--night-accent);
}

.patterns .matrix :focus-visible {
  outline-color: var(--accent);
}

/* Narrow screens: each building block becomes a card listing the three apps.
   The ARIA roles on the table keep it a table for screen readers. */
@media (max-width: 860px) {
  .matrix__table,
  .matrix__table tbody,
  .matrix__table tr,
  .matrix__table th,
  .matrix__table td {
    display: block;
    width: auto;
  }

  .matrix__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .matrix__table tbody tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }

  .matrix__table tbody tr:last-child {
    border-bottom: 0;
  }

  .matrix__table th,
  .matrix__table td {
    border-bottom: 0;
    padding: 8px 18px;
  }

  .matrix__table tbody th {
    width: auto;
    padding-top: 14px;
  }

  .matrix__cell::before {
    left: 18px;
    top: 10px;
    margin-top: 0;
  }

  .matrix__cell {
    padding-left: 46px !important;
  }

  .matrix__label {
    display: block;
    color: var(--ink-2);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}

/* ---------- Experience ---------- */

.experience__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  margin-bottom: clamp(36px, 5vw, 56px);
}

.experience__intro .section__head {
  margin-bottom: 0;
}

.experience__photo {
  margin: 0;
}

.experience__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .experience__intro {
    grid-template-columns: 1fr;
  }
}

.industries {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.industry {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.industry__field {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.industry__org {
  margin-top: auto;
  font: 700 1.25rem/1.2 var(--font-display);
}

@media (max-width: 960px) {
  .industries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .industries {
    grid-template-columns: 1fr;
  }
}

.stack {
  margin-top: 40px;
}

.stack__title {
  margin-bottom: 14px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-weight: 500;
  font-size: 0.9375rem;
}

.stack__note {
  margin-top: 16px;
  color: var(--ink-2);
}

.fine-print {
  margin-top: 32px;
  color: var(--ink-2);
  font-size: 0.8125rem;
}

/* ---------- Process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 52px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font: 800 1rem/1 var(--font-display);
}

.step::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 48px;
  right: -8px;
  height: 2px;
  background: var(--line);
}

.step:last-child::after {
  display: none;
}

.step h3 {
  font-size: 1.1875rem;
  font-weight: 700;
}

.step p {
  margin-top: 8px;
  color: var(--ink-2);
}

.callout {
  margin-top: 44px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
}

.callout strong {
  color: var(--ink);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }

  .step::after {
    display: none;
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
  color: var(--night-ink);
}

.contact__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

/* Heavy on the left, where the muted text is, so it stays above 4.5:1 even
   over white cloud; lighter on the right, where only the buttons and the
   (white) address sit, so the bridge shows through. */
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(11 20 36 / 92%) 0%, rgb(11 20 36 / 86%) 45%, rgb(11 20 36 / 62%) 100%);
}

@media (max-width: 820px) {
  /* Stacked, the text runs full width, so the wash stays heavy everywhere. */
  .contact::before {
    background: rgb(11 20 36 / 86%);
  }
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
}

.contact__intro {
  position: sticky;
  top: 96px;
}

.contact__points {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact__points li {
  position: relative;
  padding-left: 28px;
  color: var(--night-ink);
}

.contact__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.2L11.5 5.8' fill='none' stroke='%2306101f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat,
    #5fd39c;
}

.contact__direct {
  margin-top: 20px;
  color: var(--night-ink-2);
}

.contact__direct a {
  color: var(--night-ink);
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* ---------- Form ---------- */

.form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3.5vw, 36px);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 60px rgb(0 0 0 / 35%);
}

.form__title {
  font-size: 1.375rem;
  font-weight: 800;
}

.form__trap {
  display: none;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 520px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field > label,
.field > legend {
  padding: 0;
  font-weight: 600;
  font-size: 0.9375rem;
}

.field > legend {
  margin-bottom: 8px;
}

.field__opt {
  color: var(--ink-2);
  font-weight: 400;
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.field textarea {
  resize: vertical;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-2);
  opacity: 0.85;
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent);
  outline-offset: 0;
}

.choices {
  display: grid;
  gap: 8px;
}

.choices--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choices--inline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 520px) {
  .choices--compact {
    grid-template-columns: 1fr;
  }
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--bg);
  font-size: 0.9375rem;
  line-height: 1.3;
  cursor: pointer;
}

.choice input {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 0;
  accent-color: var(--accent);
}

.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.choice:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.form__submit {
  justify-self: start;
}

.form__note {
  color: var(--ink-2);
  font-size: 0.875rem;
}

.form :focus-visible {
  outline-color: var(--accent);
}

.contact h2 {
  font-size: clamp(1.875rem, 3.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contact__lede {
  max-width: 560px;
  margin-top: 18px;
  color: var(--night-ink-2);
  font-size: 1.125rem;
}

.contact__area {
  max-width: 560px;
  margin-top: 16px;
  color: var(--night-ink-2);
}

.contact__area strong {
  color: var(--night-ink);
}

.contact :focus-visible,
.hero :focus-visible {
  outline-color: var(--night-accent);
}

@media (max-width: 900px) {
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact__intro {
    position: static;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 40px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px 40px;
}

.site-footer__tag {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer__links a {
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer__legal {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.875rem;
}

.site-footer__legal a {
  color: inherit;
}

@media (max-width: 640px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- 404 ---------- */

.not-found__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---------- Thanks ---------- */

.thanks__card {
  max-width: 680px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.thanks__tick {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.2L11.5 5.8' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 40px no-repeat,
    var(--ok);
}

.thanks__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.thanks__urgent {
  margin-top: 18px;
  color: var(--ink-2);
}

.thanks__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (prefers-color-scheme: dark) {
  .thanks__tick {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.2L11.5 5.8' fill='none' stroke='%2306101f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 40px no-repeat,
      var(--ok);
  }
}

/* ---------- Legal (privacy, terms) ---------- */

.legal__body {
  max-width: 760px;
}

.legal__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal__updated {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.legal__body h2 {
  margin-top: 40px;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal__body p,
.legal__body ul {
  margin-top: 14px;
  color: var(--ink-2);
  line-height: 1.65;
}

.legal__body ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal__body li + li {
  margin-top: 8px;
}

.legal__body strong {
  color: var(--ink);
}

.legal__body a {
  color: var(--accent);
}

.legal__back {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
