:root {
  color-scheme: dark;
  --bg: #010209;
  --surface: #07091a;
  --surface-muted: #060817;
  --ink: #f7f8ff;
  --ink-soft: #c7ccef;
  --muted: #8f99c8;
  --line: rgba(109, 40, 217, 0.24);
  --dark: #010209;
  --dark-2: #050617;
  --dark-soft: #b7bee8;
  --accent: #7c3aed;
  --accent-2: #0369d9;
  --accent-3: #4f46e5;
  --accent-4: #a21caf;
  --success: #16a34a;
  --success-soft: rgba(22, 163, 74, 0.13);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.13);
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --container: min(1140px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Aptos", "Bahnschrift", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(3, 105, 217, 0.13), transparent 28rem),
    radial-gradient(circle at 84% 10%, rgba(124, 58, 237, 0.16), transparent 24rem),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
summary {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

figure {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 1.25rem;
  font-size: clamp(2.55rem, 6vw, 5.5rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.45rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.18rem;
}

p {
  color: var(--ink-soft);
}

code,
pre {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050713;
  color: #e5e7ff;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

.section-dark {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(3, 105, 217, 0.16), transparent 36%),
    linear-gradient(210deg, rgba(124, 58, 237, 0.18), transparent 42%),
    var(--dark);
  color: #ffffff;
}

.section-problem {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.14), transparent 34%),
    linear-gradient(180deg, #07050d, #0a0713);
}

.section-problem .eyebrow,
.problem-accent .eyebrow {
  color: #f87171;
}

.section-solution {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  background:
    linear-gradient(135deg, rgba(22, 163, 74, 0.15), transparent 36%),
    linear-gradient(180deg, #030811, #06120f);
}

.section-solution .eyebrow,
.fit-good .eyebrow {
  color: #4ade80;
}

.section-fit {
  padding: 64px 0;
}

.section-dark p,
.section-dark li {
  color: var(--dark-soft);
}

.section-muted {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    var(--surface-muted);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-heading p {
  font-size: 1.08rem;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 42px;
}

.split-heading p:last-child {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 40px;
  align-items: center;
}

.solution-layout {
  align-items: start;
}

.solution-copy,
.solution-layout .section-visual {
  align-self: start;
}

.problem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
  margin-bottom: 42px;
}

.section-lead {
  max-width: 660px;
  font-size: 1.1rem;
}

.text-highlight {
  color: var(--ink);
  font-weight: 800;
  background: linear-gradient(180deg, transparent 58%, rgba(124, 58, 237, 0.34) 0);
  border-radius: 0.2em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.04em;
}

.section-dark .text-highlight,
.page-hero .text-highlight {
  color: #ffffff;
  background: linear-gradient(180deg, transparent 58%, rgba(3, 105, 217, 0.42) 0);
  text-shadow: 0 0 22px rgba(124, 58, 237, 0.34);
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: #60a5fa;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(2, 3, 10, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 850;
  color: var(--ink);
}

.section-dark .brand,
.footer .brand {
  color: #ffffff;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-block;
  overflow: hidden;
  color: transparent;
  background: #101827 url("assets/brain-logo.svg") center / cover no-repeat;
  border-radius: 8px;
  font-size: 0;
  line-height: 0;
  flex: 0 0 38px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.22);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-menu a {
  padding: 0.55rem 0;
  border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: #ffffff;
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  display: block;
  margin: 4px auto;
  background: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.86rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 30px rgba(3, 105, 217, 0.24);
}

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.button-secondary-on-light {
  color: #ffffff;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.button-small {
  min-height: 42px;
  padding: 0.7rem 0.95rem;
  font-size: 0.92rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
  font-weight: 800;
  border-bottom: 2px solid var(--accent);
}

.hero {
  min-height: auto;
  padding: 68px 0 46px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 3, 10, 0.96) 0%, rgba(2, 3, 10, 0.74) 52%, rgba(2, 3, 10, 0.92) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 72px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 24px;
  align-items: stretch;
}

.hero-copy {
  max-width: none;
  display: flex;
  flex-direction: column;
}

.hero-details {
  display: grid;
  row-gap: 0.85rem;
  grid-column: 1 / -1;
  align-items: start;
  width: 100%;
  max-width: none;
}

.hero h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(2.35rem, 4.8vw, 4.75rem);
  line-height: 1;
  text-wrap: balance;
}

.hero-lead {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.microcopy {
  max-width: none;
  margin: 0;
  font-size: 0.98rem;
  grid-column: 1 / -1;
}

.benefit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  grid-column: 1 / -1;
}

.benefit-row li {
  padding: 0.42rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7ff;
  font-size: 0.86rem;
  font-weight: 750;
}

.signal-board {
  display: grid;
  gap: 0.55rem;
  padding: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(8, 10, 30, 0.66);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.signal-board-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #ffffff;
}

.signal-board-header span {
  color: var(--dark-soft);
}

.pipeline {
  display: grid;
  gap: 0.45rem;
}

.pipeline div {
  position: relative;
  padding: 0.52rem 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.pipeline span,
.signal-metrics span {
  display: block;
  color: var(--dark-soft);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.pipeline strong {
  display: block;
  margin-top: 0.12rem;
  color: #ffffff;
  font-size: 0.98rem;
}

.signal-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.signal-metrics span {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0.55rem;
  border: 1px solid rgba(3, 105, 217, 0.32);
  border-radius: var(--radius);
  color: #e5e7ff;
  text-align: center;
  text-transform: none;
  background: rgba(3, 105, 217, 0.12);
}

.pain-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.service-card,
.system-steps article,
.process article,
.included-box,
.qualification-form,
.fit-panel,
.faq-list details,
.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card,
.service-card,
.content-card {
  padding: 1.35rem;
}

.card p,
.service-card p,
.content-card p {
  margin-bottom: 0;
}

.service-card span {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.28rem 0.55rem;
  color: #93c5fd;
  background: rgba(124, 58, 237, 0.16);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.solution-layout .solution-steps-carousel {
  grid-column: 1 / -1;
}

.system-steps article {
  padding: 1rem;
}

.system-steps span,
.process span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.72rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: var(--radius);
  font-weight: 850;
}

.system-steps p,
.process p {
  margin-bottom: 0;
}

.section-end {
  margin-top: 28px;
}

.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
}

.fit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1.1rem;
  align-items: stretch;
}

.check-list,
.muted-list {
  display: grid;
  gap: 0.52rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li,
.muted-list li {
  position: relative;
  padding-left: 1.55rem;
}

.check-list li::before,
.muted-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 2px;
}

.muted-list li::before {
  background: var(--danger);
}

.fit-panel,
.fit-card {
  padding: 1.5rem;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.fit-good,
.fit-bad {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: stretch;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fit-good .visual-card,
.fit-bad .visual-card {
  display: none;
}

.fit-good {
  background:
    radial-gradient(circle at 18% 16%, rgba(22, 163, 74, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(22, 163, 74, 0.14), transparent 72%),
    rgba(255, 255, 255, 0.06);
  border-color: rgba(22, 163, 74, 0.38);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  padding: 1.15rem;
}

.fit-bad,
.fit-panel.fit-bad {
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.12), transparent 72%),
    rgba(255, 255, 255, 0.035);
  border-color: rgba(220, 38, 38, 0.22);
}

.fit-bad .eyebrow {
  color: #f87171;
}

.fit-card h2,
.fit-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.42rem, 2.2vw, 2rem);
}

.fit-good h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.45rem);
}

.fit-bad h2 {
  color: #e5e7ff;
  font-size: clamp(1.25rem, 1.75vw, 1.55rem);
}

.fit-card .eyebrow {
  margin-bottom: 0;
}

.fit-card li {
  font-size: 0.95rem;
  line-height: 1.42;
}

.fit-visual {
  align-self: end;
  min-height: clamp(240px, 22vw, 330px);
  overflow: hidden;
  background: rgba(2, 3, 10, 0.5);
  box-shadow: none;
}

.fit-visual img {
  height: 100%;
  min-height: inherit;
  max-height: none;
  padding: 0;
  object-fit: contain;
}

.fit-visual-good {
  border-color: rgba(22, 163, 74, 0.34);
}

.fit-visual-bad {
  border-color: rgba(220, 38, 38, 0.34);
}

.fit-good .fit-visual {
  min-height: clamp(320px, 30vw, 430px);
}

.fit-bad .fit-visual {
  min-height: clamp(200px, 18vw, 270px);
  opacity: 0.86;
}

.card-carousel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 0.8rem;
  align-items: center;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.8rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.pain-grid.carousel-track,
.system-steps.carousel-track {
  display: flex;
  grid-template-columns: none;
}

.carousel-track > article {
  flex: 0 0 clamp(250px, 31vw, 340px);
  min-height: 220px;
  scroll-snap-align: start;
}

.pain-grid.carousel-track > article {
  min-height: 176px;
}

.system-steps.carousel-track > article {
  flex-basis: clamp(230px, 28vw, 310px);
  min-height: 190px;
}

.process article {
  padding: 1.2rem;
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border: 1px solid rgba(124, 58, 237, 0.34);
  border-radius: var(--radius);
  background: rgba(124, 58, 237, 0.14);
  box-shadow: var(--shadow);
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  border-color: rgba(3, 105, 217, 0.54);
  background: rgba(3, 105, 217, 0.2);
}

.carousel-arrow:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.carousel-arrow span {
  font-size: 2rem;
  line-height: 1;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 48px;
  align-items: start;
}

.included-box {
  margin-top: 1.5rem;
  padding: 1.35rem;
}

.included-box h3 {
  margin-bottom: 0.2rem;
}

.included-box p {
  margin: 1.2rem 0 0;
}

.qualification-form {
  padding: 1.35rem;
}

.form-heading {
  margin-bottom: 1.2rem;
}

.form-heading p {
  margin-bottom: 0;
}

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

label {
  display: grid;
  gap: 0.35rem;
}

label span {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 780;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.78rem 0.85rem;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: #050713;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18);
}

.form-full {
  grid-column: 1 / -1;
}

small {
  color: var(--muted);
  text-align: right;
}

.form-submit {
  width: 100%;
  margin-top: 1rem;
}

.form-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.form-status {
  margin: 0.8rem 0 0;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-status[data-status="info"] {
  color: #d7e7ff;
  border: 1px solid rgba(96, 165, 250, 0.3);
  background: rgba(96, 165, 250, 0.1);
}

.form-status[data-status="success"] {
  color: #dcfce7;
  border: 1px solid rgba(22, 163, 74, 0.38);
  background: rgba(22, 163, 74, 0.12);
}

.form-status[data-status="error"] {
  color: #fee2e2;
  border: 1px solid rgba(220, 38, 38, 0.36);
  background: rgba(220, 38, 38, 0.12);
}

.form-next-step {
  margin-top: 1.1rem;
  padding: 1rem;
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: var(--radius);
  background: rgba(22, 163, 74, 0.1);
}

.form-next-step h4 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.form-next-step p {
  margin-bottom: 0.9rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
  max-width: 920px;
}

.faq-list details {
  padding: 1rem 1.1rem;
}

.faq-list summary {
  color: var(--ink);
  font-weight: 820;
}

.faq-list p {
  margin: 0.75rem 0 0;
}

.final-cta {
  padding: 88px 0;
}

.final-cta-content {
  max-width: 820px;
}

.final-cta h2 {
  color: #ffffff;
}

.final-cta p {
  max-width: 700px;
  font-size: 1.1rem;
}

.footer {
  padding: 64px 0 28px;
  background: #020304;
  color: #ffffff;
}

.footer p,
.footer a,
.footer span {
  color: #b8c6d4;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(180px, 0.5fr));
  gap: 48px;
}

.footer h2 {
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: 1rem;
}

.footer a {
  display: block;
  margin-bottom: 0.55rem;
}

.footer a:hover,
.footer a:focus-visible {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
}

.page-hero {
  padding: 104px 0 76px;
}

.page-hero .container {
  max-width: 920px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.page-lead {
  max-width: 760px;
  font-size: 1.18rem;
}

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

.wide-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 42px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 1rem;
}

.highlight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.highlight-strip div {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.section-visual {
  display: grid;
  gap: 0.75rem;
  align-self: stretch;
}

.visual-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
}

.visual-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  padding: 0.75rem;
  object-fit: contain;
}

.visual-card figcaption {
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.visual-card.problem {
  border-color: rgba(220, 38, 38, 0.34);
}

.visual-card.solution {
  border-color: rgba(22, 163, 74, 0.34);
}

.section-solution .visual-card.solution img {
  min-height: 240px;
  max-height: 360px;
}

.visual-card.fit-visual img {
  height: 100%;
  min-height: clamp(240px, 22vw, 330px);
  max-height: none;
  padding: 0;
  object-fit: contain;
}

.fit-good .visual-card.fit-visual img {
  min-height: clamp(320px, 30vw, 430px);
}

.visual-card.fit-visual-bad img {
  min-height: clamp(200px, 18vw, 270px);
  max-height: none;
  padding: 0;
}

.visual-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.visual-strip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.highlight-strip strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

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

  .hero-grid,
  .fit-grid,
  .split-layout,
  .diagnostic-grid,
  .wide-grid,
  .problem-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .signal-board {
    max-width: 620px;
  }

  .hero-details {
    grid-template-columns: 1fr;
  }

  .carousel-track > article,
  .process article {
    flex-basis: min(42vw, 340px);
  }

  .pain-grid,
  .service-grid,
  .process,
  .content-grid,
  .visual-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process article:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  :root {
    --container: min(100% - 28px, 1140px);
  }

  .section {
    padding: 68px 0;
  }

  .site-header {
    position: sticky;
  }

  .nav {
    min-height: 66px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: fixed;
    inset: 66px 14px auto 14px;
    display: none;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #070817;
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 0.85rem;
  }

  .hero {
    padding: 88px 0 64px;
  }

  .hero-grid {
    gap: 34px;
  }

  .card-carousel {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 0.5rem;
  }

  .carousel-track > article,
  .process article {
    flex-basis: 100%;
    min-height: 230px;
  }

  .carousel-arrow {
    width: 44px;
    height: 44px;
  }

  .hero-actions,
  .inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .text-link {
    width: 100%;
  }

  .split-heading,
  .two-columns,
  .fit-grid,
  .footer-grid,
  .footer-bottom,
  .highlight-strip {
    grid-template-columns: 1fr;
  }

  .split-heading {
    gap: 18px;
  }

  .pain-grid,
  .service-grid,
  .system-steps,
  .process,
  .form-grid,
  .content-grid,
  .signal-metrics,
  .visual-strip {
    grid-template-columns: 1fr;
  }

  .pain-grid.carousel-track,
  .system-steps.carousel-track,
  .process.carousel-track {
    display: flex;
    grid-template-columns: none;
  }

  .process article:last-child {
    grid-column: auto;
  }

  .qualification-form {
    padding: 1rem;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
