:root {
  /* Brand */
  --primary: #b32e31;
  --primary-hover: #951f22;
  --primary-soft: color-mix(in srgb, var(--primary) 12%, white);
  --primary-muted: color-mix(in srgb, var(--primary) 22%, #fff);
  --secondary: #212529;
  --secondary-soft: #343a40;

  /* Colour accents (chemical / lab feel) */
  --teal: #0f766e;
  --teal-soft: color-mix(in srgb, var(--teal) 12%, white);
  --amber: #d97706;
  --amber-soft: color-mix(in srgb, var(--amber) 14%, white);
  --violet: #5b21b6;
  --violet-soft: color-mix(in srgb, var(--violet) 10%, white);

  --bg: #faf6f4;
  --bg-warm: #fff5f3;
  --bg-elevated: #ffffff;
  --surface: #f0e8e5;
  --surface-2: #e8f5f3;
  --text: #212529;
  --text-muted: #495057;
  --border: #e8ded9;
  --focus: #b32e31;
  --radius: 12px;
  --radius-lg: 20px;
  --shell-max: 1140px;
  --narrow-max: 720px;
  --header-h: 68px;
  --space-section: clamp(3.75rem, 9vw, 6.5rem);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  overflow-x: hidden;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 100% -20%, var(--primary-soft), transparent 50%),
    radial-gradient(ellipse 80% 60% at -10% 50%, var(--teal-soft), transparent 45%),
    radial-gradient(ellipse 60% 40% at 80% 100%, var(--amber-soft), transparent 40%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  background: var(--surface);
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.shell {
  width: min(100% - 2rem, var(--shell-max));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2rem, var(--narrow-max));
  margin-inline: auto;
}

/* ——— Header (transparent on hero → solid on scroll) ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header[data-scrolled="true"] {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(33, 37, 41, 0.08);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  transition: color 0.25s ease;
}

.site-header[data-scrolled="true"] .logo {
  color: var(--secondary);
}

.logo:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.logo__muted {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s ease;
}

.site-header[data-scrolled="true"] .logo__muted {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}

.site-header[data-scrolled="true"] .nav-toggle {
  border-color: var(--border);
  background: var(--bg-elevated);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    background 0.25s ease;
}

.site-header[data-scrolled="true"] .nav-toggle__bar {
  background: var(--secondary);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 0.35rem 0;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.site-header[data-scrolled="true"] .site-nav a {
  color: var(--text-muted);
}

.site-nav a:hover {
  color: #fff;
}

.site-header[data-scrolled="true"] .site-nav a:hover {
  color: var(--secondary);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.site-nav__cta {
  padding: 0.4rem 1rem !important;
  border-radius: 999px !important;
  background: var(--primary) !important;
  color: #fff !important;
}

.site-nav__cta:hover {
  background: var(--primary-hover) !important;
  color: #fff !important;
}

.site-header[data-scrolled="true"] .site-nav__cta {
  color: #fff !important;
}

/* Scroll spy: current section in nav */
.site-nav a.is-active {
  color: #fff !important;
  font-weight: 700;
}

.site-header[data-scrolled="true"] .site-nav a.is-active:not(.site-nav__cta) {
  color: var(--primary) !important;
}

.site-nav__cta.is-active {
  background: #fff !important;
  color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
}

.site-header[data-scrolled="true"] .site-nav__cta.is-active {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 0 0 2px var(--secondary);
}

@media (min-width: 769px) {
  .site-nav a:not(.site-nav__cta).is-active::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: 0;
    overflow: hidden;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 28px rgba(33, 37, 41, 0.09);
    transition: max-height 0.3s ease, box-shadow 0.3s ease;
  }

  .site-nav[data-open="true"] {
    max-height: min(78vh, 520px);
    overflow: auto;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    padding: 0.85rem 1rem 1rem;
    width: min(100% - 2rem, var(--shell-max));
    margin-inline: auto;
  }

  .site-nav a {
    display: block;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.08rem;
    line-height: 1.35;
    color: var(--text-muted) !important;
    border-radius: 8px;
  }

  .site-nav a:hover {
    color: var(--secondary) !important;
  }

  .site-nav__cta {
    margin-top: 0.7rem;
    text-align: left;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 7.2rem;
    padding-inline: 0.95rem !important;
    border: none !important;
  }

  .site-nav li:last-child a {
    border-bottom: 0;
  }

  .site-nav a.is-active {
    color: var(--primary) !important;
    font-weight: 700;
    border-bottom-color: #ead9d9;
  }

  .site-nav__cta.is-active {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: none !important;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  padding: calc(var(--header-h) + clamp(2rem, 6vw, 4rem)) 0 clamp(3rem, 8vw, 5rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(33, 37, 41, 0.92) 0%,
    rgba(33, 37, 41, 0.75) 38%,
    rgba(179, 46, 49, 0.45) 100%
  );
}

.hero--v2 .hero__bg::after {
  background: linear-gradient(
    108deg,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(15, 23, 42, 0.82) 42%,
    rgba(179, 46, 49, 0.56) 100%
  );
}

.hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero .shell {
  position: relative;
  z-index: 2;
}

.hero__grid {
  display: grid;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-muted);
}

.hero .eyebrow {
  color: #ffb4b6;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.hero__title em {
  font-style: normal;
  color: #ffb8ba;
}

.hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 56ch;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(179, 46, 49, 0.45);
}

.btn--primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__copy {
    animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero__bg img {
    animation: heroKen 18s ease-out both;
    transform: scale(1.06);
  }

  .hero__pattern {
    animation: patternDrift 22s ease-in-out infinite alternate;
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroKen {
  to {
    transform: scale(1);
  }
}

@keyframes patternDrift {
  from {
    opacity: 0.06;
  }

  to {
    opacity: 0.1;
  }
}

/* Industry strip */
.industry-strip {
  position: relative;
  z-index: 3;
  margin-top: -2rem;
  padding: 0 0 var(--space-section);
}

.industry-strip__inner {
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 16px 48px rgba(33, 37, 41, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.industry-strip__label {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-muted);
}

.industry-strip__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(179, 46, 49, 0.25);
  border: 1px solid rgba(179, 46, 49, 0.5);
  color: #ffe0e1;
}

.chip--teal {
  background: rgba(15, 118, 110, 0.35);
  border-color: rgba(45, 212, 191, 0.4);
  color: #ccfbf1;
}

.chip--amber {
  background: rgba(217, 119, 6, 0.3);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fef3c7;
}

/* Split sections with images */
.split-section {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .split-section--reverse .split-section__visual {
    order: -1;
  }
}

.split-section__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(33, 37, 41, 0.12);
  aspect-ratio: 4/3;
}

.split-section__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-section__visual--video {
  aspect-ratio: 16 / 9;
}

.split-section__visual--video .split-section__accent {
  pointer-events: none;
}

.embed-youtube {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #111;
}

.embed-youtube iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.split-section__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.split-section__accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(33, 37, 41, 0.85));
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
}

/* Sections */
.section {
  padding: var(--space-section) 0;
}

.section--tight {
  padding-top: 0;
}

.section--surface {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-warm) 100%);
  border-block: 1px solid var(--border);
}

.section--surface-teal {
  background: linear-gradient(135deg, var(--teal-soft) 0%, var(--bg) 55%, var(--amber-soft) 100%);
  border-block: 1px solid color-mix(in srgb, var(--teal) 15%, var(--border));
}

.section--dark {
  background: var(--secondary);
  color: #e9ecef;
}

.section--dark .section__title {
  color: #fff;
}

.section--dark .section__subtitle,
.section--dark .section__lead {
  color: #adb5bd;
}

.section--cta {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--primary) 18%, var(--secondary)) 0%,
    var(--secondary) 45%,
    #1a1d21 100%
  );
  color: #fff;
}

.section--cta .section__title {
  color: #fff;
}

.section--cta .section__lead {
  color: rgba(255, 255, 255, 0.78);
}

.section__head {
  margin-bottom: 2rem;
  max-width: 680px;
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--secondary);
}

.section__title--light {
  color: #fff;
}

.section__subtitle {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.section__lead {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.section__lead--center {
  text-align: center;
}

.section__lead--spaced {
  margin-top: 1rem;
}

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

.split-section--platform {
  margin-bottom: 2.5rem;
}

.split-section__visual--wide {
  aspect-ratio: 16 / 9;
  min-height: 240px;
}

#platform .split-section__visual--wide img {
  object-position: center center;
}

@media (min-width: 900px) {
  #platform .split-section__visual--wide {
    min-height: 300px;
  }
}

.section__note {
  margin: 2rem 0 0;
  padding: 1rem 1.35rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  max-width: 720px;
}

#deployment .section__note {
  max-width: none;
}

/* Pillars */
.pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .pillar-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .pillar-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  position: relative;
  padding: 1.35rem 1.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  border-radius: 4px 0 0 4px;
}

.pillar:nth-child(2)::before {
  background: var(--teal);
}

.pillar:nth-child(3)::before {
  background: var(--amber);
}

.pillar:nth-child(4)::before {
  background: var(--violet);
}

.pillar:nth-child(5)::before {
  background: linear-gradient(180deg, var(--primary), var(--amber));
}

.pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(33, 37, 41, 0.1);
}

.pillar__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
}

.pillar__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Current way vs Octopus */
.compare-grid {
  display: grid;
  gap: 1rem;
}

#comparison {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 5%, var(--bg)) 0%,
    var(--bg-elevated) 52%,
    color-mix(in srgb, var(--teal) 7%, var(--bg)) 100%
  );
  border-block: 1px solid var(--border);
}

.compare-row {
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

@media (min-width: 860px) {
  .compare-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
  }
}

.compare-col {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
}

.compare-col--pain {
  background: color-mix(in srgb, var(--primary) 6%, #fff);
  border-color: color-mix(in srgb, var(--primary) 24%, var(--border));
}

.compare-col--gain {
  background: color-mix(in srgb, var(--teal) 7%, #fff);
  border-color: color-mix(in srgb, var(--teal) 22%, var(--border));
}

.compare-label {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-col--pain .compare-label {
  color: var(--primary);
}

.compare-col--gain .compare-label {
  color: var(--teal);
}

.compare-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
}

.compare-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Module grid */
.module-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .module-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.module-card {
  position: relative;
  padding: 1.35rem 1.4rem 1.4rem;
  padding-top: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  overflow: hidden;
}

.module-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}

.module-card:nth-child(3n + 2)::before {
  background: var(--teal);
}

.module-card:nth-child(3n)::before {
  background: var(--amber);
}

.module-card:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: 0 14px 36px rgba(179, 46, 49, 0.12);
  transform: translateY(-2px);
}

.module-card__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
}

.module-card__text {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.module-card__value {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
}

.module-card:nth-child(3n + 2) .module-card__value {
  color: var(--teal);
}

.module-card:nth-child(3n) .module-card__value {
  color: var(--amber);
}

/* Split (platform) */
.split {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: repeat(3, 1fr);
  }
}

.split__block {
  padding: 1.35rem 1.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--primary);
}

.split__block:nth-child(2) {
  border-top-color: var(--teal);
}

.split__block:nth-child(3) {
  border-top-color: var(--amber);
}

.split__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
}

.split__block p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Diff list */
.diff-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: diff;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .diff-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

.diff-list li {
  position: relative;
  padding: 1rem 1rem 1rem 4rem;
  min-height: 120px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: #ced4da;
  counter-increment: diff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.diff-list li::before {
  content: counter(diff);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  background: rgba(179, 46, 49, 0.22);
  color: #ffd7d8;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius) 0 0 var(--radius);
}

.diff-list li:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.diff-list strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

/* Benefits */
.benefit-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .benefit-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit {
  padding: 1.25rem 1.35rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(33, 37, 41, 0.06);
}

.benefit:nth-child(1) {
  border-left: 4px solid var(--primary);
}

.benefit:nth-child(2) {
  border-left: 4px solid var(--teal);
}

.benefit:nth-child(3) {
  border-left: 4px solid var(--amber);
}

.benefit:nth-child(4) {
  border-left: 4px solid var(--violet);
}

.benefit:nth-child(5) {
  border-left: 4px solid color-mix(in srgb, var(--primary) 70%, var(--teal));
}

.benefit__title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--secondary);
}

.benefit p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Deploy */
.deploy-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .deploy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.deploy-card {
  padding: 1.4rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease;
}

.deploy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(33, 37, 41, 0.1);
}

.deploy-card:nth-child(1) {
  background: linear-gradient(160deg, #fff 0%, var(--primary-soft) 100%);
}

.deploy-card:nth-child(2) {
  background: linear-gradient(160deg, #fff 0%, var(--teal-soft) 100%);
}

.deploy-card:nth-child(3) {
  background: linear-gradient(160deg, #fff 0%, var(--amber-soft) 100%);
}

.deploy-card__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
}

.deploy-card__tag {
  display: inline-block;
  margin: 0.85rem 0 0;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--secondary) 86%, #fff);
}

.deploy-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.deploy-card__meta {
  margin-top: 0.8rem !important;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(33, 37, 41, 0.12);
  font-size: 0.84rem !important;
  color: color-mix(in srgb, var(--secondary) 72%, #fff) !important;
}

/* Quote */
.pullquote {
  margin: 0 auto 1.5rem;
  padding: 2rem 2rem 2rem 2.5rem;
  max-width: 720px;
  border: none;
  border-left: 5px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-elevated);
  box-shadow: 0 8px 28px rgba(33, 37, 41, 0.08);
}

.pullquote p {
  margin: 0;
  font-size: clamp(1.125rem, 2.5vw, 1.4rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.45;
  color: var(--secondary);
}

/* Contact */
.contact__actions {
  margin: 1.5rem 0 0;
}

.contact-grid {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.contact-card__title {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.contact-card__text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.contact-card__text a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.6);
  text-underline-offset: 2px;
}

.contact-card__text a:hover {
  text-decoration-color: #fff;
}

.contact-form {
  margin-top: 1.35rem;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
}

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

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 1px;
}

.section__note--dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  border-left-color: var(--primary-muted);
  color: #dbe4ea;
}

.section__note--dark a {
  color: #fff;
}

/* Footer */
.site-footer {
  padding: 2.75rem 0;
  border-top: 3px solid var(--primary);
  background: var(--secondary);
  color: #adb5bd;
}

.footer__inner {
  text-align: center;
}

.footer__brand {
  margin: 0 0 0.35rem;
  font-weight: 800;
  font-size: 1.125rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.footer__brand span {
  color: var(--primary-muted);
}

.footer__meta {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.footer__product {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  color: #ced4da;
}

.footer__product a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.6);
  text-underline-offset: 2px;
}

.footer__product a:hover {
  text-decoration-color: #fff;
}

.footer-links {
  margin: 0 auto 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  justify-content: center;
}

.footer-links a {
  color: #ced4da;
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer__copy {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
}

.footer__credits {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.75;
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.5;
}

.footer__credits a {
  color: #dee2e6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Nav: smooth underline (desktop) */
@media (min-width: 769px) {
  .site-nav a:not(.site-nav__cta) {
    position: relative;
  }

  .site-nav a:not(.site-nav__cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.1rem;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    opacity: 0.85;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-nav a:not(.site-nav__cta):hover::after,
  .site-nav a:not(.site-nav__cta):focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* Scroll-triggered section reveals */
.motion-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .motion-enabled [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Child stagger when parent is visible */
@media (prefers-reduced-motion: no-preference) {
  .motion-enabled .industry-strip__inner.is-visible .chip {
    animation: chipIn 0.52s cubic-bezier(0.34, 1.2, 0.64, 1) backwards;
  }

  .motion-enabled .industry-strip__inner.is-visible .chip:nth-child(1) {
    animation-delay: 0.04s;
  }

  .motion-enabled .industry-strip__inner.is-visible .chip:nth-child(2) {
    animation-delay: 0.1s;
  }

  .motion-enabled .industry-strip__inner.is-visible .chip:nth-child(3) {
    animation-delay: 0.16s;
  }

  .motion-enabled .industry-strip__inner.is-visible .chip:nth-child(4) {
    animation-delay: 0.22s;
  }

  .motion-enabled .industry-strip__inner.is-visible .chip:nth-child(5) {
    animation-delay: 0.28s;
  }

  .motion-enabled #philosophy.is-visible .pillar {
    animation: staggerUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .motion-enabled #philosophy.is-visible .pillar:nth-child(1) {
    animation-delay: 0.04s;
  }

  .motion-enabled #philosophy.is-visible .pillar:nth-child(2) {
    animation-delay: 0.1s;
  }

  .motion-enabled #philosophy.is-visible .pillar:nth-child(3) {
    animation-delay: 0.16s;
  }

  .motion-enabled #philosophy.is-visible .pillar:nth-child(4) {
    animation-delay: 0.22s;
  }

  .motion-enabled #philosophy.is-visible .pillar:nth-child(5) {
    animation-delay: 0.28s;
  }

  .motion-enabled #modules.is-visible .module-card {
    animation: staggerUp 0.48s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .motion-enabled #modules.is-visible .module-card:nth-child(1) {
    animation-delay: 0.02s;
  }

  .motion-enabled #modules.is-visible .module-card:nth-child(2) {
    animation-delay: 0.05s;
  }

  .motion-enabled #modules.is-visible .module-card:nth-child(3) {
    animation-delay: 0.08s;
  }

  .motion-enabled #modules.is-visible .module-card:nth-child(4) {
    animation-delay: 0.11s;
  }

  .motion-enabled #modules.is-visible .module-card:nth-child(5) {
    animation-delay: 0.14s;
  }

  .motion-enabled #modules.is-visible .module-card:nth-child(6) {
    animation-delay: 0.17s;
  }

  .motion-enabled #modules.is-visible .module-card:nth-child(7) {
    animation-delay: 0.2s;
  }

  .motion-enabled #modules.is-visible .module-card:nth-child(8) {
    animation-delay: 0.23s;
  }

  .motion-enabled #modules.is-visible .module-card:nth-child(9) {
    animation-delay: 0.26s;
  }

  .motion-enabled #modules.is-visible .module-card:nth-child(10) {
    animation-delay: 0.29s;
  }

  .motion-enabled #modules.is-visible .module-card:nth-child(11) {
    animation-delay: 0.32s;
  }

  .motion-enabled #differentiators.is-visible .diff-list li {
    animation: staggerUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .motion-enabled #differentiators.is-visible .diff-list li:nth-child(1) {
    animation-delay: 0.05s;
  }

  .motion-enabled #differentiators.is-visible .diff-list li:nth-child(2) {
    animation-delay: 0.12s;
  }

  .motion-enabled #differentiators.is-visible .diff-list li:nth-child(3) {
    animation-delay: 0.19s;
  }

  .motion-enabled #differentiators.is-visible .diff-list li:nth-child(4) {
    animation-delay: 0.26s;
  }

  .motion-enabled #differentiators.is-visible .diff-list li:nth-child(5) {
    animation-delay: 0.33s;
  }

  .motion-enabled #benefits.is-visible .benefit {
    animation: staggerUp 0.52s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .motion-enabled #benefits.is-visible .benefit:nth-child(1) {
    animation-delay: 0.04s;
  }

  .motion-enabled #benefits.is-visible .benefit:nth-child(2) {
    animation-delay: 0.1s;
  }

  .motion-enabled #benefits.is-visible .benefit:nth-child(3) {
    animation-delay: 0.16s;
  }

  .motion-enabled #benefits.is-visible .benefit:nth-child(4) {
    animation-delay: 0.22s;
  }

  .motion-enabled #benefits.is-visible .benefit:nth-child(5) {
    animation-delay: 0.28s;
  }

  .motion-enabled #deployment.is-visible .deploy-card {
    animation: staggerUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .motion-enabled #deployment.is-visible .deploy-card:nth-child(1) {
    animation-delay: 0.08s;
  }

  .motion-enabled #deployment.is-visible .deploy-card:nth-child(2) {
    animation-delay: 0.16s;
  }

  .motion-enabled #deployment.is-visible .deploy-card:nth-child(3) {
    animation-delay: 0.24s;
  }
}

@keyframes chipIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes staggerUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Back to top ——— */
.to-top {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  left: max(1.25rem, env(safe-area-inset-left, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--primary);
  box-shadow: 0 4px 18px rgba(33, 37, 41, 0.12);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  color: var(--primary-hover);
}

.to-top:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .to-top {
    transition-duration: 0.01ms;
    transform: none;
  }

  .to-top.is-visible {
    transform: none;
  }
}
