
/* ============================= */
/* TERRAIN — PREMIUM MASTER CSS */
/* ============================= */

/* ============================= */
/* RESET */
/* ============================= */

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

:root {
  --bg: #050506;
  --bg-elevated: rgba(255, 255, 255, 0.035);
  --bg-elevated-strong: rgba(255, 255, 255, 0.06);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-soft: rgba(255, 255, 255, 0.05);

  --text-primary: #ffffff;
  --text-secondary: #ffffff;
  --text-tertiary: #ffffff;
  --text-muted: #ffffff;

  --blue-a: #295dff;
  --blue-b: #00a6ff;

  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.22);
  --shadow-strong: 0 22px 70px rgba(0, 0, 0, 0.34);

  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 26px;

  --transition-fast: 0.25s ease;
  --transition-med: 0.4s ease;
  --transition-slow: 0.8s ease;

  --max-width: 1440px;
  --nav-left-gap: 18px;
  --mega-width: min(1340px, calc(100vw - 40px));
}

/* ============================= */
/* DOCUMENT */
/* ============================= */

html,
body {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.8s ease;
  position: relative;
}

body.loaded {
  opacity: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 88, 255, 0.14), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(0, 166, 255, 0.08), transparent 26%),
    radial-gradient(circle at 70% 70%, rgba(36, 69, 173, 0.08), transparent 24%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

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

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

.site-shell {
  position: relative;
  z-index: 1;
}

main {
  position: relative;
  z-index: 1;
}

/* ============================= */
/* TYPOGRAPHY */
/* ============================= */

h1,
h2,
h3,
h4,
strong,
.brand-word {
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(31px, 3.35vw, 50px);
  line-height: 1.08;
  font-weight: 600;
  max-width: 13ch;
}

h2 {
  font-size: clamp(25px, 2.45vw, 40px);
  line-height: 1.12;
  font-weight: 600;
  max-width: 16ch;
}

h3 {
  font-size: clamp(18px, 1.32vw, 23px);
  line-height: 1.24;
  font-weight: 600;
}

h4 {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.72;
  letter-spacing: 0.006em;
}

small,
.footer-tagline,
.mega-link small {
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.82;
}

.eyebrow,
.mega-eyebrow,
.platform-label,
.feature-kicker,
.pillar-index {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.72;
}

.category-inline-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}

.category-inline-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 44px;
}

.platforms-logo .category-inline-label {
  gap: 8px;
}

.platforms-logo .category-inline-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.secondary-text {
  color: var(--text-tertiary);
}

/* ============================= */
/* LAYOUT */
/* ============================= */

.section {
  position: relative;
  padding: 156px 8vw;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.section-tight {
  padding: 118px 8vw;
}

.section-head {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-bottom: 56px;
}

.section-head.centered {
  max-width: 760px;
  margin: 0 auto 70px;
  text-align: center;
}

.section-head.left-bound {
  max-width: 740px;
}

.section-head.narrow {
  max-width: 640px;
}

.section-head p,
.section-head h2 {
  margin-top: 14px;
}

.section-learn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 24px;
  width: fit-content;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(64, 120, 255, 0.36);
  background: linear-gradient(135deg, #173bcf, #0f69da);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(10, 44, 166, 0.34);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.section-learn-more:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1b45e4, #1380ef);
  border-color: rgba(92, 145, 255, 0.42);
  box-shadow: 0 20px 42px rgba(10, 44, 166, 0.42);
}

.section-head.centered .section-learn-more {
  margin-left: auto;
  margin-right: auto;
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}

.section-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.96;
  filter: brightness(1.08) saturate(1.04);
}

.section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(41, 93, 255, 0.12), transparent 24%),
    linear-gradient(90deg, rgba(5, 5, 6, 0.46) 0%, rgba(5, 5, 6, 0.24) 28%, rgba(5, 5, 6, 0.10) 56%, rgba(5, 5, 6, 0.03) 76%, rgba(5, 5, 6, 0) 100%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.06), rgba(5, 5, 6, 0.18));
  backdrop-filter: blur(10px) saturate(1.04);
  -webkit-backdrop-filter: blur(10px) saturate(1.04);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 44%, rgba(0, 0, 0, 0.66) 68%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 44%, rgba(0, 0, 0, 0.66) 68%, transparent 100%);
}

.bg-systems::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(34, 76, 208, 0.26), transparent 22%),
    radial-gradient(circle at 80% 28%, rgba(0, 166, 255, 0.14), transparent 24%),
    url("terrain-site-images/home/pexels-charles-parker-5847765.jpg") center / cover no-repeat;
}

.bg-studio::before {
  background: url("terrain-site-images/home/pexels-622162183-20673011.jpg") center / cover no-repeat;
  opacity: 0.9;
}

/* ============================= */
/* HEADER */
/* ============================= */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  z-index: 1200;
  padding: 12px 24px;
  transition:
    background var(--transition-med),
    border-color var(--transition-med),
    box-shadow var(--transition-med),
    backdrop-filter var(--transition-med);
  border-bottom: 1px solid transparent;
  background: rgba(5, 5, 6, 0.18);
  backdrop-filter: blur(12px);
}

.site-header.is-scrolled {
  background: rgba(5, 5, 6, 0.76);
  border-bottom-color: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.22);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}


.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-a), var(--blue-b));
  box-shadow: 0 0 28px rgba(41, 93, 255, 0.4);
}

.brand-word {
  font-size: 18px;
  font-weight: 600;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: max-content;
  flex: 0 0 auto;
}

.brand-tagline {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1;
  margin-top: -1px;
  margin-left: 14px;
}

.brand-logo {
  display: block;
  height: 26px;
  width: auto;
  object-fit: contain;
}

/* ============================= */
/* NAVIGATION */
/* ============================= */

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  position: static;
  margin-left: var(--nav-left-gap);
  margin-right: auto;
  min-width: 0;
  flex: 1 1 auto;
}

.nav-item {
  position: static;
}

.nav-cta-cluster {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  margin-left: auto;
}

.nav-item-side-cta-start {
  margin-left: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.01em;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link-cta {
  height: 40px;
  padding: 0 12px;
  border-radius: 0;
  white-space: nowrap;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition:
    color var(--transition-fast),
    background var(--transition-fast);
}

.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-link.active {
  color: #ffffff;
}

.nav-link-cta:hover,
.nav-item:hover > .nav-link-cta,
.nav-link-cta.active {
  color: #ffffff;
}

.nav-link::after,
.nav-link-cta::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 1px;
  background: rgba(255, 255, 255, 0.96);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.nav-link:hover::after,
.nav-item:hover > .nav-link::after,
.nav-link.active::after,
.nav-link-cta:hover::after,
.nav-item:hover > .nav-link-cta::after,
.nav-link-cta.active::after {
  transform: scaleX(1);
}

.mobile-nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
}

.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  margin: 0 auto;
}

/* ============================= */
/* SITE SEARCH */
/* ============================= */

body.search-modal-open {
  overflow: hidden;
}

.nav-search-trigger {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(10, 12, 16, 0.68);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
  flex: 0 0 auto;
}

.nav-search-trigger:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(10, 12, 16, 0.74);
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.nav-search-trigger-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-search-trigger svg,
.site-search-field-icon svg,
.site-search-close svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.site-search-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.site-search-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(41, 93, 255, 0.12), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(0, 166, 255, 0.08), transparent 24%),
    rgba(4, 5, 7, 0.58);
  backdrop-filter: blur(24px) saturate(1.15);
}

.site-search-shell {
  --search-modal-block-padding: clamp(18px, 3.6vh, 40px);
  --search-modal-inline-padding: clamp(24px, 6vw, 56px);
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--search-modal-block-padding) var(--search-modal-inline-padding);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.site-search-panel {
  width: min(1040px, 100%);
  height: min(
    820px,
    calc(100vh - var(--search-modal-block-padding) - var(--search-modal-block-padding))
  );
  height: min(
    820px,
    calc(100dvh - var(--search-modal-block-padding) - var(--search-modal-block-padding))
  );
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(18, 21, 28, 0.96), rgba(7, 8, 10, 0.98));
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.44),
    0 10px 28px rgba(0, 0, 0, 0.24);
  transform: translateY(18px) scale(0.985);
  transition:
    transform 0.34s ease,
    opacity 0.34s ease;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.site-search-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(41, 93, 255, 0.12), transparent 26%),
    radial-gradient(circle at bottom left, rgba(0, 166, 255, 0.08), transparent 24%);
  pointer-events: none;
}

body.search-modal-open .site-search-modal {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.search-modal-open .site-search-panel {
  transform: translateY(0) scale(1);
}

.site-search-header,
.site-search-content {
  position: relative;
  z-index: 1;
}

.site-search-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-search-field {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 0 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.site-search-field:focus-within {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
}

.site-search-field-icon {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.58);
  flex: 0 0 auto;
}

.site-search-input {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.01em;
}

.site-search-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.site-search-input:focus {
  outline: none;
}

.site-search-close {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
}

.site-search-close:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.site-search-close svg {
  width: 16px;
  height: 16px;
}

.site-search-content {
  display: grid;
  grid-template-columns: minmax(220px, 0.84fr) minmax(0, 1.16fr);
  min-height: 0;
}

.site-search-aside {
  padding: 30px 28px 30px 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

.site-search-copy {
  color: var(--text-secondary);
  max-width: 31ch;
  font-size: 14px;
  line-height: 1.6;
}

.site-search-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-search-chip {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
}

.site-search-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.site-search-results-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  position: relative;
}

.site-search-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 28px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-search-results-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.site-search-status {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  text-align: right;
}

.site-search-results-wrap {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.site-search-results {
  min-height: 0;
  padding: 10px 18px 76px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  scroll-behavior: smooth;
  scroll-padding-bottom: 88px;
}

.site-search-result {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 14px 16px 13px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.018));
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
  overflow: hidden;
}

.site-search-result-link {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
}

.site-search-result::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 34%),
    radial-gradient(circle at top right, rgba(41, 93, 255, 0.12), transparent 26%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.site-search-result:hover,
.site-search-result.is-active {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(12, 23, 64, 0.36), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-search-result:hover::before,
.site-search-result.is-active::before {
  opacity: 1;
}

.site-search-result-meta,
.site-search-result-title,
.site-search-result-copy,
.site-search-result-arrow,
.site-search-subpage-list {
  position: relative;
  z-index: 1;
}

.site-search-result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-search-result-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-search-result-path {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.35;
}

.site-search-result-title {
  display: block;
  font-size: 16px;
  line-height: 1.18;
  color: var(--text-primary);
}

.site-search-result-copy {
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.45;
}

.site-search-result-faq {
  gap: 9px;
  background:
    linear-gradient(180deg, rgba(17, 31, 83, 0.64), rgba(9, 14, 26, 0.92));
  border-color: rgba(90, 136, 255, 0.22);
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-search-result-faq::before {
  opacity: 1;
  background:
    radial-gradient(circle at top right, rgba(41, 93, 255, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 34%);
}

.site-search-result-faq:hover,
.site-search-result-faq.is-active {
  background:
    linear-gradient(180deg, rgba(25, 46, 119, 0.72), rgba(11, 18, 32, 0.96));
  border-color: rgba(112, 156, 255, 0.34);
}

.site-search-result-fallback {
  background:
    linear-gradient(180deg, rgba(28, 31, 40, 0.84), rgba(10, 11, 14, 0.96));
  border-color: rgba(255, 255, 255, 0.12);
}

.site-search-faq-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  margin-top: 4px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(41, 93, 255, 0.96), rgba(0, 166, 255, 0.82));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 34px rgba(16, 53, 173, 0.28);
}

.site-search-result-arrow {
  display: inline-flex;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.site-search-result.featured {
  padding: 0;
  gap: 0;
}

.site-search-result.featured .site-search-result-link {
  padding: 14px 16px 13px;
}

.site-search-featured-copy {
  max-width: 30ch;
  max-height: 56px;
  opacity: 1;
  transition:
    opacity var(--transition-fast),
    max-height var(--transition-fast),
    margin var(--transition-fast);
}

.site-search-subpage-list {
  list-style: none;
  display: grid;
  gap: 6px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 16px 0;
  transition:
    max-height var(--transition-fast),
    opacity var(--transition-fast),
    padding var(--transition-fast);
}

.site-search-subpage-item {
  margin: 0;
}

.site-search-subpage-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.3;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.site-search-subpage-link::after {
  content: "Open";
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.site-search-subpage-link:hover,
.site-search-subpage-link:focus-visible {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.site-search-result.featured.has-children:hover,
.site-search-result.featured.has-children:focus-within {
  padding-bottom: 14px;
}

.site-search-result.featured.has-children:hover .site-search-featured-copy,
.site-search-result.featured.has-children:focus-within .site-search-featured-copy {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
}

.site-search-result.featured.has-children:hover .site-search-result-arrow,
.site-search-result.featured.has-children:focus-within .site-search-result-arrow {
  color: rgba(255, 255, 255, 0.26);
}

.site-search-result.featured.has-children:hover .site-search-subpage-list,
.site-search-result.featured.has-children:focus-within .site-search-subpage-list {
  max-height: 220px;
  opacity: 1;
  padding: 0 16px 14px;
}

.site-search-scroll-button {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  height: 42px;
  padding: 0 12px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(18, 23, 33, 0.96), rgba(8, 10, 14, 0.98));
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.84);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.site-search-scroll-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-search-scroll-button:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(20, 28, 42, 0.98), rgba(9, 12, 17, 0.99));
}

.site-search-scroll-button-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-search-scroll-button-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.site-search-scroll-button-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.site-search-scroll-button.is-at-end .site-search-scroll-button-icon {
  transform: rotate(180deg);
}

.site-search-result mark {
  background: rgba(0, 166, 255, 0.18);
  color: #fff;
  border-radius: 5px;
  padding: 0 3px;
}

.site-search-state-card {
  padding: 28px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.site-search-state-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.site-search-state-card p {
  color: var(--text-secondary);
}

.site-search-spinner {
  width: 18px;
  height: 18px;
  display: inline-block;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: rgba(0, 166, 255, 0.92);
  animation: site-search-spin 0.9s linear infinite;
}

@keyframes site-search-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================= */
/* MEGA MENU — DESKTOP */
/* ============================= */

@media (min-width: 981px) {
  .header-inner {
    max-width: min(1600px, calc(100vw - 48px));
  }

  .nav-item {
    position: static;
  }

  .nav-item-side-cta {
    position: static;
  }

  .nav-cta-cluster {
    margin-left: auto;
    flex: 0 0 auto;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-cta-cluster .nav-item-side-cta {
    flex: 0 0 auto;
  }

  .nav-cta-cluster .nav-link-cta {
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: #ffffff;
    box-shadow: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
  }

  .nav-cta-cluster .nav-item-side-cta + .nav-item-side-cta .nav-link-cta {
    margin-left: 2px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
  }

  .nav-cta-cluster .nav-link-cta:hover,
  .nav-cta-cluster .nav-item:hover > .nav-link-cta,
  .nav-cta-cluster .nav-link-cta.active {
    transform: none;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: none;
  }

  .mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      visibility 0.22s ease;
    z-index: 1200;
  }

  .nav-item:hover .mega-menu,
  .nav-item:focus-within .mega-menu,
  .nav-item.open .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Header merges with dropdown when open */
  .site-header:has(.nav-item:hover),
  .site-header:has(.nav-item:focus-within),
  .site-header:has(.nav-item.open) {
    background: rgba(18, 20, 25, 0.97);
    backdrop-filter: blur(22px);
    border-bottom-color: transparent;
  }

  .mega-menu-inner {
    display: grid;
    grid-template-columns: minmax(190px, 0.9fr) minmax(320px, 1.5fr) minmax(360px, 2fr);
    gap: 24px;
    background: linear-gradient(
      180deg,
      rgba(18, 20, 25, 0.95),
      rgba(8, 9, 11, 0.97)
    );
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    border-radius: 0;
    padding: 28px 24px;
    backdrop-filter: blur(22px);
    position: relative;
    overflow: hidden;
  }

  .mega-menu-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at top right, rgba(41, 93, 255, 0.10), transparent 28%),
      radial-gradient(circle at bottom left, rgba(0, 166, 255, 0.06), transparent 24%);
    pointer-events: none;
  }

  .mega-menu-intro,
  .mega-menu-links,
  .mega-menu-cards {
    position: relative;
    z-index: 1;
  }

  .mega-menu-cta-wide {
    left: 0;
    right: 0;
    width: 100%;
  }

  .mega-menu-inner-cta-wide {
    grid-template-columns: minmax(240px, 1.05fr) minmax(260px, 1fr) minmax(260px, 1fr);
    gap: 22px;
    align-items: stretch;
  }

  .mega-menu-inner-cta-compact {
    align-items: start;
  }

  .mega-menu-inner-apps-support {
    grid-template-columns: minmax(188px, 0.82fr) minmax(188px, 0.82fr) minmax(160px, 0.72fr) minmax(160px, 0.72fr) minmax(160px, 0.72fr);
    gap: 16px;
  }

  .mega-menu-inner-partners {
    grid-template-columns: minmax(206px, 0.88fr) minmax(178px, 0.72fr) minmax(178px, 0.72fr) minmax(188px, 0.8fr) minmax(188px, 0.8fr);
    gap: 16px;
  }

  .mega-menu-cta-spacer {
    display: none;
  }

  .mega-menu-group-cta {
    display: grid;
    gap: 8px;
    align-content: start;
    position: relative;
    z-index: 1;
    order: 0;
    min-width: 0;
  }

  .mega-menu-group-title {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .mega-menu-group-links {
    display: grid;
    gap: 10px;
  }

  .mega-menu-group-app-support .mega-menu-group-links,
  .mega-menu-group-link-column .mega-menu-group-links {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mega-link-cta-menu {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .mega-link-cta-menu:hover,
  .mega-link-cta-menu.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .mega-link-cta-menu:hover {
    transform: translateX(4px);
  }

  .mega-link-cta-plain {
    padding: 12px 13px;
  }

  .mega-link-cta-plain:hover,
  .mega-link-cta-plain.active {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
  }

  .mega-link-cta-plain span {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.35;
  }

  .mega-link-cta-menu span {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.3;
  }

  .mega-link-cta-menu small {
    display: none;
  }

  .mega-link-cta-app {
    padding: 13px 14px;
    border-radius: 14px;
  }

  .mega-link-cta-app:hover,
  .mega-link-cta-app.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .mega-link-cta-head {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mega-link-cta-head > span:last-child {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.3;
  }

  .mega-link-cta-app small {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.4;
  }

  .mega-menu-card-slot {
    display: flex;
    align-items: stretch;
    min-width: 0;
  }

  .mega-menu-card-slot .menu-image-card {
    width: 100%;
  }

  .mega-menu-card-slot-primary .menu-image-card {
    min-height: 100%;
  }

  .mega-menu-inner-cta-compact .menu-card-image {
    height: 136px;
  }

  .mega-menu-inner-cta-compact .menu-card-copy {
    padding: 13px 14px 14px;
  }

  .mega-menu-inner-cta-compact .menu-card-copy strong {
    font-size: 13px;
    line-height: 1.34;
  }

  .mega-menu-card-slot-primary .menu-card-image,
  .mega-menu-cta-panel {
    min-height: 194px;
  }

  .mega-menu-card-slot-primary .menu-card-copy strong {
    font-size: 15px;
  }

  .mega-menu-intro {
    display: grid;
    gap: 8px;
    align-content: start;
    align-self: start;
    padding: 0 8px 0 24px;
  }

  .mega-menu-intro h3 {
    margin: 0;
    max-width: 14ch;
    line-height: 1.08;
  }

  .mega-menu-intro p:last-of-type {
    margin-top: 0;
    max-width: 34ch;
  }

  .mega-menu-intro .eyebrow,
  .mega-menu-intro .mega-eyebrow {
    min-height: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
  }

  .mega-menu-intro .category-inline-label {
    gap: 4px;
  }

  .mega-menu-intro > .mega-link {
    justify-self: start;
    width: min(100%, 232px);
    background:
      linear-gradient(180deg, rgba(35, 71, 182, 0.18), rgba(16, 27, 68, 0.22)),
      rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(82, 127, 255, 0.18);
  }

  .mega-menu-intro > .mega-link:hover,
  .mega-menu-intro > .mega-link.active {
    background:
      linear-gradient(180deg, rgba(41, 86, 232, 0.22), rgba(18, 34, 90, 0.28)),
      rgba(255, 255, 255, 0.03);
    border-color: rgba(104, 148, 255, 0.24);
  }

  .mega-menu-support-card {
    width: 100%;
    margin-top: 2px;
  }

  .mega-menu-cta-panel {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 196px;
    padding: 16px 16px 18px;
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
      rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    transition:
      transform 0.35s ease,
      border-color 0.35s ease,
      background 0.35s ease,
      box-shadow 0.35s ease;
  }

  .mega-menu-cta-panel:hover {
    transform: translateY(-4px);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
      rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
      0 20px 44px rgba(0, 0, 0, 0.24),
      0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  }

  .mega-menu-cta-panel strong {
    display: block;
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .mega-menu-cta-panel p {
    margin: 0;
    max-width: 20ch;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.5;
  }

  .mega-menu-inner-apps-support .mega-menu-group-links,
  .mega-menu-inner-partners .mega-menu-group-links {
    gap: 8px;
  }

  .mega-menu-inner-apps-support .mega-menu-group-cta {
    grid-column: span 3;
  }

  .mega-menu-inner-apps-support .mega-menu-group-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
  }


  .mega-menu-support-card .menu-card-image {
    height: 122px;
  }

  .mega-menu-support-card .menu-card-copy {
    padding: 14px 16px 16px;
  }

  .mega-menu-support-card .menu-card-copy strong {
    margin-bottom: 8px;
    font-size: 16px;
  }

  .mega-menu-support-card .menu-card-copy small {
    display: block;
    max-width: 28ch;
  }

  .mega-menu-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    align-content: start;
  }

  .mega-link {
    display: block;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    transition:
      background var(--transition-fast),
      border-color var(--transition-fast),
      transform var(--transition-fast);
  }

  .mega-link:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
  }

  .mega-link.active {
    background: rgba(255, 255, 255, 0.07);
  }

.mega-link span {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.mega-link-mobile-overview {
  display: none;
}

  .mega-menu-cards {
    display: flex;
    gap: 14px;
    align-items: stretch;
  }

  .mega-menu-cards .menu-image-card {
    flex: 1;
    min-width: 0;
  }

  .menu-image-card {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition:
      transform 0.35s ease,
      border-color 0.35s ease,
      box-shadow 0.35s ease,
      filter 0.35s ease;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  }

  .menu-image-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
      0 24px 55px rgba(0, 0, 0, 0.26),
      0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    filter: brightness(1.05);
  }

  .menu-image-card.featured {
    background: linear-gradient(135deg, rgba(12, 25, 72, 0.88), rgba(6, 13, 22, 0.94));
  }

  .menu-card-image {
    height: 160px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
  }

  .menu-card-logo {
    position: absolute;
    top: 16px;
    left: 16px;
    width: var(--menu-card-logo-width, 112px);
    height: 30px;
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.28));
    z-index: 2;
    pointer-events: none;
  }

  .menu-card-logo.is-top-right {
    left: auto;
    right: 16px;
    background-position: right center;
  }

  .menu-card-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.65s ease;
  }

  .menu-image-card:hover .menu-card-image::before {
    transform: scale(1.06);
  }

  .menu-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to top, rgba(4, 5, 7, 0.7), rgba(4, 5, 7, 0.08)),
      linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
  }

  .menu-card-copy {
    padding: 16px;
  }

  .menu-card-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 6px;
  }

  .menu-card-copy strong {
    display: block;
    line-height: 1.45;
    font-size: 15px;
    font-weight: 600;
  }

  .menu-card-logo-accountshop {
    --menu-card-logo-width: 122px;
    background-image: url("platformlogos/accountshop.png");
  }

  .menu-card-logo-fanspark {
    --menu-card-logo-width: 108px;
    background-image: url("platformlogos/fanspark.png");
  }

  .menu-card-logo-ourspace {
    --menu-card-logo-width: 114px;
    background-image: url("platformlogos/ourspace.png");
  }

  /* Placeholder premium image treatments */
  .image-home-platform::before {
    background: url("terrain-site-images/platforms/istockphoto-2226380225-612x612 copy.jpg") center / cover no-repeat;
  }

  .image-commerce-platform::before {
    background: url("terrain-site-images/platforms/hardware-for-ecommerce-must-have-tools.webp") center / cover no-repeat;
  }

  .image-fanspark-platform::before {
    background: url("platforms-images/fansparked.png") center / cover no-repeat;
  }

  .image-business-platforms::before {
    background:
      radial-gradient(circle at 18% 62%, rgba(255, 255, 255, 0.08), transparent 18%),
      linear-gradient(135deg, #08121f, #111b2f 44%, #050506);
  }

  .image-commerce-systems::before {
    background:
      radial-gradient(circle at 80% 18%, rgba(0, 166, 255, 0.26), transparent 18%),
      linear-gradient(135deg, #09111b, #122643 48%, #050506);
  }

  .image-intelligence::before {
    background:
      radial-gradient(circle at 40% 22%, rgba(255, 255, 255, 0.08), transparent 18%),
      linear-gradient(135deg, #0a0e15, #17233b 52%, #050506);
  }

  .image-performance-photo::before {
    background: url("terrain-site-images/intelligence/gettyimages-1434212178.jpg.webp") center / cover no-repeat;
  }

  .image-studio-web::before {
    background: url("terrain-site-images/studio/GettyImages-614421992-5bb4b837c9e77c002637a247.jpg") center / cover no-repeat;
  }

  .image-brand-creative::before {
    background: url("terrain-site-images/studio/360_F_583489087_LXo22kK0Iku36oLzTc95abY18qBZTlnF.jpg") center / cover no-repeat;
  }

  .image-labs-ai::before {
    background: url("terrain-site-images/labs/tech-blog-image copy.jpg") center / cover no-repeat;
  }

  .image-terrain-network::before {
    background:
      linear-gradient(180deg, rgba(6, 9, 14, 0.18), rgba(6, 9, 14, 0.36)),
      url("terrain-site-images/home/pexels-charles-parker-5847765.jpg") center / cover no-repeat;
  }

  .image-enterprise-systems::before {
    background: url("terrain-site-images/systems/warehouse-manager-1-2.jpeg") center / cover no-repeat;
  }

  .image-workflow-systems::before {
    background: url("terrain-site-images/systems/24399_l_02-Sell digital products-min.jpg.webp") center / cover no-repeat;
  }

  .image-intelligence-planning::before {
    background: url("terrain-site-images/intelligence/vecteezy_a-woman-with-curly-hair-in-a-business-suit_69504730 copy.jpg") center top / cover no-repeat;
  }

  .image-labs-automation::before {
    background: url("terrain-site-images/intelligence/a-digital-marketing-guide-for-kenyan-businesses.webp") center / cover no-repeat;
  }

  .image-industries-supported::before {
    background:
      radial-gradient(circle at 24% 24%, rgba(41, 93, 255, 0.24), transparent 20%),
      radial-gradient(circle at 76% 72%, rgba(0, 166, 255, 0.18), transparent 18%),
      linear-gradient(135deg, #08111f, #111a2f 46%, #050506);
  }
}
/* ============================= */
/* HERO */
/* ============================= */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 0 8vw 6vh 79px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media,
.hero-grid,
.hero-glow,
.hero-content,
.hero-bottom {
  position: relative;
  z-index: 2;
}

.hero-media,
.hero-grid,
.hero-glow {
  position: absolute;
}

.hero-media {
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(0, 166, 255, 0.18), transparent 24%),
    radial-gradient(circle at 75% 18%, rgba(41, 93, 255, 0.22), transparent 26%),
    linear-gradient(180deg, #040507 0%, #050608 42%, #070c14 100%);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5, 5, 6, 0.3), rgba(5, 5, 6, 0.46)),
    linear-gradient(to right, rgba(5, 5, 6, 0.38), rgba(5, 5, 6, 0.1));
}

.hero-grid {
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 95%);
}

.hero-glow {
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.4;
  will-change: transform;
  transition: transform 0.5s ease-out;
}

.hero-glow-a {
  width: 560px;
  height: 560px;
  left: 8%;
  top: 12%;
  background: rgba(41, 93, 255, 0.32);
}

.hero-glow-b {
  width: 520px;
  height: 520px;
  right: 10%;
  bottom: 4%;
  background: rgba(0, 166, 255, 0.18);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s ease;
}

body.loaded .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-content .eyebrow {
  margin-bottom: 24px;
  font-weight: 700;
}

.hero-content h1 {
  max-width: 100%;
  margin-bottom: 28px;
}

.hero-copy {
  max-width: 460px;
  margin-top: 0;
  margin-bottom: 22px;
  font-size: 15px;
  color: var(--text-secondary);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.page-hero-actions .primary-button,
.page-hero-actions .secondary-button,
.hero-discover-btn,
.hero-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.page-hero-actions .primary-button,
.hero-discover-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #1535cc, #0d65d0);
  color: #fff;
  box-shadow: 0 18px 38px rgba(12, 40, 160, 0.42);
}

.page-hero-actions .secondary-button,
.hero-secondary-btn {
  border: 2px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 34px rgba(5, 8, 18, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.page-hero-actions .primary-button:hover,
.page-hero-actions .secondary-button:hover,
.hero-discover-btn:hover,
.hero-secondary-btn:hover {
  transform: translateY(-2px);
}

.page-hero-actions .primary-button:hover,
.hero-discover-btn:hover {
  box-shadow: 0 24px 48px rgba(12, 40, 160, 0.54);
}

.page-hero-actions .secondary-button:hover,
.hero-secondary-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 22px 40px rgba(5, 8, 18, 0.28);
}

.platform-hero-logo {
  position: absolute;
  top: 50%;
  right: clamp(28px, 5vw, 80px);
  z-index: 2;
  width: clamp(150px, 18vw, 250px);
  height: clamp(44px, 5vw, 76px);
  transform: translateY(-42%);
  background-position: right center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.98;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.platform-hero-logo-fanspark {
  background-image: url("platformlogos/fanspark.png");
}

.platform-hero-logo-ourspace {
  background-image: url("platformlogos/ourspace.png");
}

.platform-hero-logo-storeview {
  background-image: url("platformlogos/storeview.png");
}

.platform-hero-logo-accountshop {
  background-image: url("platformlogos/accountshop.png");
}

@media (max-width: 980px) {
  .platform-hero-logo {
    display: none;
  }
}

.hero-bottom {
  position: absolute;
  left: 8vw;
  bottom: 42px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-line {
  display: inline-block;
  width: 44px;
  height: 1px;
  background: rgba(255, 255, 255, 0.86);
}

/* ============================= */
/* PILLARS / SURFACES */
/* ============================= */

.pillar-grid {
  display: grid;
  gap: 22px;
}

.pillar-grid.five-up {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pillar-card,
.feature-panel,
.rail-card,
.insight-card,
.platform-card,
.menu-image-card,
.content-card,
.proof-metric {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.pillar-card::before,
.feature-panel::before,
.rail-card::before,
.insight-card::before,
.platform-card::before,
.menu-image-card::before,
.content-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.01) 26%,
    transparent 55%
  );
  pointer-events: none;
}

.pillar-card {
  min-height: 260px;
  padding: 28px 24px 26px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

.pillar-card:hover,
.feature-panel:hover,
.rail-card:hover,
.insight-card:hover,
.platform-card:hover,
.menu-image-card:hover,
.content-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.pillar-card:hover {
  background: rgba(255, 255, 255, 0.045);
}

.pillar-card h3 {
  margin-top: 12px;
  margin-bottom: 8px;
  font-size: clamp(17px, 1.2vw, 21px);
}

.soft-card {
  background:
    linear-gradient(135deg, rgba(12, 23, 64, 0.45), rgba(255, 255, 255, 0.03));
}

/* ============================= */
/* SYSTEMS */
/* ============================= */

.spotlight {
  overflow: hidden;
}

.feature-stack {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.feature-panel {
  padding: 34px;
  border-radius: 20px;
  background: rgba(10, 12, 16, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.feature-panel:hover {
  background: rgba(12, 15, 20, 0.78);
}

.feature-panel h3 {
  margin-top: 10px;
  max-width: 20ch;
  font-size: clamp(17px, 1.18vw, 21px);
}

/* ============================= */
/* STUDIO */
/* ============================= */

.fullbleed-panel {
  overflow: hidden;
}

.panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.34) 0%, rgba(5, 5, 6, 0.14) 34%, rgba(5, 5, 6, 0.04) 66%, rgba(5, 5, 6, 0) 100%);
}

.studio-hero .section-bg::after {
  background:
    radial-gradient(circle at 76% 22%, rgba(0, 166, 255, 0.12), transparent 22%),
    radial-gradient(circle at 18% 18%, rgba(41, 93, 255, 0.12), transparent 28%),
    linear-gradient(90deg, rgba(5, 5, 6, 0.40) 0%, rgba(5, 5, 6, 0.20) 28%, rgba(5, 5, 6, 0.08) 56%, rgba(5, 5, 6, 0.03) 76%, rgba(5, 5, 6, 0) 100%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.06), rgba(5, 5, 6, 0.18));
}

.studio-hero .panel-overlay {
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.28) 0%, rgba(5, 5, 6, 0.12) 34%, rgba(5, 5, 6, 0.03) 66%, rgba(5, 5, 6, 0) 100%);
}

.studio-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 64px;
  align-items: start;
}

.studio-copy p:last-child {
  max-width: 40ch;
}

.studio-rail {
  display: grid;
  gap: 18px;
}

.rail-card {
  padding: 24px 24px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-soft);
}

.rail-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rail-card strong {
  display: block;
  line-height: 1.5;
  font-size: 14px;
  font-weight: 600;
}

/* ============================= */
/* INTELLIGENCE / LABS / PLATFORMS */
/* ============================= */

.insight-grid,
.platform-showcase {
  display: grid;
  gap: 22px;
}

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

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

.platforms-preview-home .platform-showcase,
.labs-preview-home .platform-showcase,
.intelligence-preview-home .insight-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.insight-card,
.platform-card {
  padding: 30px 28px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.065);
  box-shadow: var(--shadow-soft);
}

.insight-card:hover,
.platform-card:hover {
  background: rgba(255, 255, 255, 0.048);
}

.insight-card h3,
.platform-card h3 {
  margin-top: 10px;
  max-width: 16ch;
  font-size: clamp(17px, 1.18vw, 21px);
}

.highlighted {
  background:
    linear-gradient(135deg, rgba(9, 23, 74, 0.86), rgba(8, 18, 32, 0.92));
}

.platforms-preview-home {
  overflow: hidden;
}

.platforms-preview-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.14), rgba(5, 5, 6, 0.32)),
    url("terrain-site-images/home/pexels-image-hunter-281453274-36687006.jpg") center / cover no-repeat;
  opacity: 0.92;
  pointer-events: none;
}

.platforms-preview-home::after,
.framework-preview-home::after,
.labs-preview-home::after,
.intelligence-preview-home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(41, 93, 255, 0.12), transparent 24%),
    linear-gradient(90deg, rgba(5, 5, 6, 0.40) 0%, rgba(5, 5, 6, 0.22) 30%, rgba(5, 5, 6, 0.08) 58%, rgba(5, 5, 6, 0.02) 78%, rgba(5, 5, 6, 0) 100%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.06), rgba(5, 5, 6, 0.16));
  backdrop-filter: blur(10px) saturate(1.04);
  -webkit-backdrop-filter: blur(10px) saturate(1.04);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 46%, rgba(0, 0, 0, 0.62) 70%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 46%, rgba(0, 0, 0, 0.62) 70%, transparent 100%);
}

.platforms-preview-home > * {
  position: relative;
  z-index: 2;
}

.framework-preview-home,
.labs-preview-home,
.intelligence-preview-home {
  overflow: hidden;
}

.framework-preview-home::before,
.labs-preview-home::before,
.intelligence-preview-home::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.framework-preview-home::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(41, 93, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(0, 166, 255, 0.10), transparent 24%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.10), rgba(5, 5, 6, 0.30)),
    url("terrain-site-images/home/pexels-rebaz-geo-1735378-27364222.jpg") center / cover no-repeat;
  opacity: 0.92;
}

.labs-preview-home::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(41, 93, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(0, 166, 255, 0.10), transparent 24%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.10), rgba(5, 5, 6, 0.30)),
    url("terrain-site-images/home/pexels-kelly-33133727.jpg") center / cover no-repeat;
  opacity: 0.92;
}

.intelligence-preview-home::before {
  background:
    radial-gradient(circle at 18% 14%, rgba(41, 93, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(0, 166, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.12), rgba(5, 5, 6, 0.32)),
    url("terrain-site-images/home/pexels-silverkblack-30535623.jpg") center / cover no-repeat;
  opacity: 0.92;
}

.framework-preview-home > *,
.labs-preview-home > *,
.intelligence-preview-home > * {
  position: relative;
  z-index: 2;
}

/* ============================= */
/* HOMEPAGE SECTION TUNING */
/* ============================= */

.framework-preview-home,
#systems-preview,
#studio-preview,
#intelligence-preview,
#labs-preview,
#platforms-preview {
  padding-top: clamp(88px, 9vw, 108px);
  padding-bottom: clamp(88px, 9vw, 108px);
}

.framework-preview-home .section-head,
#systems-preview .section-head,
#intelligence-preview .section-head,
#labs-preview .section-head,
#platforms-preview .section-head {
  margin-bottom: 42px;
}

.framework-preview-home .section-head {
  max-width: 980px;
}

.framework-preview-home .section-head h2,
#systems-preview .section-head h2 {
  max-width: 26ch;
  text-wrap: balance;
}

#systems-preview .section-head {
  max-width: 1040px;
}

#systems-preview .section-head p {
  max-width: 640px;
}

#platforms-preview .section-head {
  max-width: 980px;
}

#platforms-preview .section-head h2 {
  max-width: 20ch;
  text-wrap: balance;
}

#systems-preview .feature-stack {
  max-width: 100%;
  margin-left: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

#systems-preview .feature-panel {
  min-height: 100%;
  padding: 24px 22px;
}

#systems-preview .feature-panel h3 {
  max-width: 17ch;
  font-size: 22px;
  line-height: 1.12;
}

#systems-preview .feature-panel p {
  font-size: 14px;
  line-height: 1.5;
}

#studio-preview .studio-layout {
  gap: 44px;
}

#intelligence-preview .section-head {
  max-width: 820px;
  margin: 0 0 42px;
  text-align: left;
}

#intelligence-preview .section-head h2 {
  max-width: 20ch;
  text-wrap: balance;
}

#intelligence-preview .section-head.centered .section-learn-more {
  margin-left: 0;
  margin-right: 0;
}

/* ============================= */
/* FOOTER */
/* ============================= */

.site-footer {
  position: relative;
  padding: 88px 8vw 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 18% 14%, rgba(41, 93, 255, 0.07), transparent 28%),
    radial-gradient(circle at 82% 82%, rgba(0, 166, 255, 0.05), transparent 26%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.42), rgba(5, 5, 6, 0.98));
  backdrop-filter: blur(18px);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.05fr 2.35fr;
  gap: 56px;
  align-items: start;
}

.footer-brand-block {
  max-width: 340px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.footer-brand .brand-logo {
  display: block;
  width: 140px;
  height: 34px;
  object-fit: contain;
}

.footer-tagline {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.65;
  max-width: 30ch;
}

.footer-locations {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.footer-locations li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.80);
  font-size: 13px;
  line-height: 1.5;
}

.footer-locations li span:last-child {
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-nav-area {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 34px;
}

.footer-column h4 {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 12px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-column a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-subscribe-compact {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.footer-subscribe-compact input {
  width: 240px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.footer-subscribe-compact input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.footer-subscribe-compact input:focus {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.footer-subscribe-compact button {
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.footer-subscribe-compact button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateY(-1px);
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.4;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  transition: color 0.25s ease;
}

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


/* ============================= */
/* MOTION */
/* ============================= */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.hover-lift:hover {
  transform: translateY(-6px);
}

.fade-in {
  opacity: 1;
  transition: opacity var(--transition-slow);
}

/* ============================= */
/* ACCESSIBILITY / FOCUS STATES */
/* ============================= */

a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.mega-link:focus-visible,
.footer-column a:focus-visible,
.footer-legal a:focus-visible,
.mobile-nav-toggle:focus-visible,
.menu-image-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
  border-radius: 10px;
}

.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.mega-link:focus-visible,
.footer-column a:focus-visible,
.footer-legal a:focus-visible {
  color: #ffffff;
}

/* ============================= */
/* HEADER / PAGE OFFSET HELPERS */
/* ============================= */

.page-with-fixed-header {
  padding-top: 92px;
}

.anchor-offset {
  scroll-margin-top: 110px;
}

/* ============================= */
/* PAGE HERO VARIANTS */
/* ============================= */

.page-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding: 160px 8vw 92px;
  overflow: hidden;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 24%, rgba(41, 93, 255, 0.18), transparent 22%),
    linear-gradient(180deg, #050608 0%, #08111f 48%, #050506 100%);
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.70) 0%, rgba(5, 5, 6, 0.46) 34%, rgba(5, 5, 6, 0.18) 62%, rgba(5, 5, 6, 0) 100%),
    linear-gradient(to bottom, rgba(5, 5, 6, 0.08), rgba(5, 5, 6, 0.26)),
    radial-gradient(circle at 74% 24%, rgba(41, 93, 255, 0.06), transparent 18%);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.70) 0%, rgba(5, 5, 6, 0.46) 34%, rgba(5, 5, 6, 0.18) 62%, rgba(5, 5, 6, 0) 100%),
    linear-gradient(to bottom, rgba(5, 5, 6, 0.08), rgba(5, 5, 6, 0.26));
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.page-hero-content p {
  max-width: 560px;
}

.page-hero .page-hero-content {
  display: grid;
  align-content: start;
}

.page-hero .page-hero-content > .hero-context-label,
.page-hero .page-hero-content > .eyebrow {
  margin-bottom: 18px;
}

.page-hero .page-hero-content > h1 {
  max-width: min(24ch, 100%);
  margin-bottom: 22px;
  text-wrap: balance;
}

.page-hero .page-hero-content > p:not(.hero-context-label):not(.eyebrow) {
  max-width: 60ch;
  margin-bottom: 0;
}

.page-hero .page-hero-actions {
  margin-top: 32px;
}

#product-ecosystem,
#solution-ecosystems,
#capabilities-overview,
#contact-routes,
#contact-inquiry,
#request-demo,
.platform-video-tile[id],
.systems-card[id],
.overview-card[id],
.product-card[id],
.solution-card[id],
.capability-card[id],
.contact-route-card[id] {
  scroll-margin-top: 120px;
}

@media (min-width: 981px) {
  .page-hero.intelligence-hero,
  .page-hero.systems-hero,
  .page-hero.platforms-hero,
  .page-hero.studio-hero,
  .page-hero.labs-hero,
  .page-hero.capabilities-hero,
  .products-hero,
  .solutions-hero,
  .industries-hero {
    align-items: center !important;
  }
}

/* ============================= */
/* OVERVIEW / SUBPAGE UTILITIES */
/* ============================= */

.content-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

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

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

.content-card {
  padding: 28px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.065);
  box-shadow: var(--shadow-soft);
}

.content-card h3 {
  margin-bottom: 10px;
}

.content-card p + p {
  margin-top: 10px;
}

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

.proof-metric {
  padding: 26px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.proof-metric strong {
  display: block;
  font-size: clamp(24px, 2vw, 38px);
  line-height: 1;
  margin-bottom: 8px;
}

.proof-metric span {
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 1.5;
}

/* ============================= */
/* OVERVIEW TILE CTAS */
/* ============================= */

.tile-learn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  width: max-content;
  border-radius: 999px;
  background: linear-gradient(135deg, #1535cc, #0d65d0);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 16px 32px rgba(12, 40, 160, 0.34);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.tile-learn-more:hover,
.tile-learn-more:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(12, 40, 160, 0.48);
  filter: brightness(1.04);
}

.overview-card .tile-learn-more,
.platform-video-tile .tile-learn-more,
.product-card .tile-learn-more,
.solution-card .tile-learn-more,
.capability-card .tile-learn-more {
  pointer-events: none;
}

.overview-card .tile-learn-more,
.platform-video-tile .tile-learn-more,
.systems-card .tile-learn-more,
.product-card .tile-learn-more,
.solution-card .tile-learn-more,
.capability-card .tile-learn-more {
  align-self: flex-start;
  margin-bottom: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1;
}

.overview-card .tile-learn-more,
.systems-card .tile-learn-more,
.product-card .tile-learn-more,
.solution-card .tile-learn-more,
.capability-card .tile-learn-more {
  margin-top: 22px;
}

.platform-video-tile .tile-learn-more {
  margin-top: 18px;
}

.overview-card:hover .tile-learn-more,
.platform-video-tile:hover .tile-learn-more,
.product-card:hover .tile-learn-more,
.solution-card:hover .tile-learn-more,
.capability-card:hover .tile-learn-more,
.systems-card:hover .tile-learn-more {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(12, 40, 160, 0.48);
}

/* ============================= */
/* UTILITY */
/* ============================= */

.max-width-wide {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.max-width-standard {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.max-width-narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ============================= */
/* FOOTER — FINAL REFINED */
/* ============================= */

.site-footer {
  position: relative;
  padding: 82px 8vw 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 18% 14%, rgba(41, 93, 255, 0.07), transparent 28%),
    radial-gradient(circle at 82% 82%, rgba(0, 166, 255, 0.05), transparent 26%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.42), rgba(5, 5, 6, 0.98));
  backdrop-filter: blur(18px);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 34px;
  align-items: start;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.footer-brand .brand-logo {
  display: block;
  width: 108px;
  height: 26px;
  object-fit: contain;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

.footer-contact-layer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: max-content;
  flex: 0 1 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
  line-height: 1.4;
}

.footer-contact-locations {
  justify-content: flex-start;
}

.footer-contact-label {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  white-space: nowrap;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s ease;
  white-space: nowrap;
}

.footer-contact-item a:hover {
  color: #ffffff;
}

.footer-column h4 {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 11px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-column a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-column-locations .footer-locations {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column-locations .footer-locations li {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  column-gap: 10px;
  margin-bottom: 11px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.45;
}

.footer-column-locations .footer-locations li span:first-child {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  align-self: center;
}

.footer-column-locations .footer-locations li span:last-child {
  color: rgba(255, 255, 255, 0.84);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.footer-bottom-left p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.footer-bottom-subscribe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.footer-news-label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  white-space: nowrap;
}

.footer-bottom-subscribe input {
  width: 220px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-size: 12px;
  outline: none;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.footer-bottom-subscribe input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.footer-bottom-subscribe input:focus {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.footer-bottom-subscribe button {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
  white-space: nowrap;
}

.footer-bottom-subscribe button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateY(-1px);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  transition: color 0.25s ease;
}

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

/* ============================= */
/* FOOTER RESPONSIVE */
/* ============================= */

@media (max-width: 1380px) {
  .footer-top {
    grid-template-columns: 120px 1fr;
    gap: 28px;
  }

  .footer-grid {
    gap: 22px;
  }

  .footer-contact-layer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .footer-bottom-subscribe {
    justify-content: flex-start;
  }

  .footer-bottom-links {
    justify-content: flex-start;
  }
}

@media (max-width: 1180px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
  }
}

@media (max-width: 980px) {
  .site-footer {
    padding: 74px 6vw 30px;
  }

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

  .footer-contact-layer {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-contact-item {
    min-width: 0;
    flex: initial;
    flex-wrap: wrap;
  }

  .footer-bottom-subscribe {
    flex-wrap: wrap;
  }

  .footer-bottom-subscribe input {
    width: min(100%, 240px);
  }
}

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

  .footer-bottom-subscribe {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-bottom-subscribe input,
  .footer-bottom-subscribe button {
    width: 100%;
  }
}
/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1320px) {
  .pillar-grid.five-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .main-nav {
    margin-left: 48px;
    margin-right: auto;
  }

  .mega-menu-inner {
    grid-template-columns: minmax(170px, 0.85fr) minmax(280px, 1.4fr) minmax(300px, 1.8fr);
    gap: 20px;
  }

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

@media (max-width: 1240px) {
  #systems-preview .feature-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .platforms-preview-home .platform-showcase,
  .labs-preview-home .platform-showcase,
  .intelligence-preview-home .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .studio-layout,
  .footer-top,
  .content-grid-2 {
    grid-template-columns: 1fr;
  }

  .platform-showcase,
  .insight-grid,
  .proof-strip,
  .content-grid-3 {
    grid-template-columns: 1fr;
  }

  .feature-stack {
    margin-left: 0;
    max-width: 100%;
  }

  #systems-preview .feature-stack {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  .platforms-preview-home .platform-showcase,
  .labs-preview-home .platform-showcase,
  .intelligence-preview-home .insight-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .platform-card,
  .insight-card,
  .feature-panel,
  .rail-card,
  .overview-card,
  .assistant-card,
  .automation-system-card,
  .market-card,
  .personalization-card,
  .recommendation-card,
  .intelligence-card {
    min-width: 0;
    min-height: 0;
  }

  .platform-card h3,
  .insight-card h3,
  .feature-panel h3,
  .overview-card h3,
  .assistant-card h3,
  .automation-system-card h3,
  .market-card h3,
  .personalization-card h3,
  .recommendation-card h3,
  .intelligence-card h3,
  .rail-card strong {
    max-width: 100%;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .platform-card p,
  .insight-card p,
  .feature-panel p,
  .overview-card p,
  .assistant-card p,
  .automation-system-card p,
  .market-card p,
  .personalization-card p,
  .recommendation-card p,
  .intelligence-card p {
    max-width: 100%;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .site-header {
    z-index: 1800;
    overflow: visible;
    background: rgba(5, 5, 6, 0.88);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header-inner {
    position: relative;
    z-index: 1801;
    overflow: visible;
  }

  .main-nav {
    position: fixed;
    top: var(--site-header-height, 76px);
    left: 0;
    right: 0;
    bottom: auto;
    height: calc(100dvh - var(--site-header-height, 76px));
    min-height: calc(100dvh - var(--site-header-height, 76px));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 6vw calc(32px + env(safe-area-inset-bottom, 0px));
    margin-left: 0;
    margin-right: 0;
    background:
      linear-gradient(180deg, rgba(8, 9, 11, 0.98), rgba(5, 5, 6, 0.995));
    backdrop-filter: blur(18px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 0.28s ease,
      transform 0.32s ease,
      visibility 0.28s ease;
    z-index: 1790;
  }

  body.mobile-nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  .header-inner.has-nav-search .nav-search-trigger {
    margin-left: auto;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 1802;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
      rgba(10, 12, 16, 0.78);
    box-shadow:
      0 14px 30px rgba(0, 0, 0, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .header-inner.has-nav-search .mobile-nav-toggle {
    margin-left: 12px;
  }

  .mobile-nav-toggle span {
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.18);
  }

  .section,
  .section-tight {
    padding: 96px 6vw;
  }

  .site-header {
    padding: 14px 6vw;
  }

  .hero,
  .page-hero {
    padding-left: 24px;
    padding-right: 6vw;
    padding-bottom: 0;
  }

  .page-hero {
    padding-top: 140px;
    padding-bottom: 72px;
    min-height: 64vh;
  }

  .hero-bottom {
    left: 6vw;
  }

  .pillar-grid.five-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .framework-preview-home .section-head h2,
  #systems-preview .section-head h2,
  #intelligence-preview .section-head h2 {
    max-width: 100%;
  }

  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    height: auto;
    min-height: 60px;
    padding: 16px 0;
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.96);
  }

  .nav-item-side-cta-start {
    margin-left: 0;
  }

  .nav-link-cta {
    min-height: 60px;
    height: auto;
    width: 100%;
    padding: 16px 24px 16px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .nav-cta-cluster {
    display: block;
    width: 100%;
    margin-left: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .nav-cta-cluster .nav-item-side-cta + .nav-item-side-cta .nav-link-cta {
    border-left: 0;
  }

  .nav-link::after {
    left: 0;
    right: auto;
    bottom: 14px;
    width: 48px;
    transform: scaleX(0);
  }

  .nav-item:hover > .nav-link::after,
  .nav-link:hover::after,
  .nav-link.active::after,
  .nav-item.open > .nav-link::after {
    transform: scaleX(1);
  }

  .nav-item.has-mega-menu > .nav-link {
    position: relative;
    padding-right: 28px;
  }

  .nav-item.has-mega-menu > .nav-link::before {
    content: "";
    position: absolute;
    right: 2px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.75);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.75);
    transform: translateY(-60%) rotate(45deg);
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.9;
  }

  .nav-item.open > .nav-link::before {
    transform: translateY(-30%) rotate(-135deg);
  }

  .nav-item:hover > .nav-link-cta,
  .nav-link-cta:hover,
  .nav-link-cta.active {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transform: none;
  }

  body.mobile-nav-open .mobile-nav-toggle span:nth-child(1) {
    transform: translateY(3.75px) rotate(45deg);
  }

  body.mobile-nav-open .mobile-nav-toggle span:nth-child(2) {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .mobile-nav-toggle span {
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  .mega-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin: 0;
  }

  .nav-item.open .mega-menu {
    max-height: 1400px;
  }

  .mega-menu-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 0 22px;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .mega-menu-inner-cta-wide {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mega-menu-inner-apps-support,
  .mega-menu-inner-partners {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mega-menu-inner::before {
    display: none;
  }

  .mega-menu-cta-spacer {
    display: none;
  }

  .mega-menu-group-cta {
    display: grid;
    gap: 0;
    width: 100%;
  }

  .mega-menu-group-title {
    display: none;
  }

  .mega-menu-group-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mega-menu-group-app-support .mega-menu-group-links,
  .mega-menu-group-link-column .mega-menu-group-links {
    grid-template-columns: 1fr;
  }

  .mega-menu-intro {
    display: block;
    padding: 0;
  }

  .mega-menu-intro .eyebrow,
  .mega-menu-intro .mega-eyebrow,
  .mega-menu-intro h3,
  .mega-menu-intro > .mega-link:not(.mega-link-mobile-overview),
  .mega-menu-intro p:last-of-type,
  .mega-menu-support-card,
  .mega-menu-cta-panel,
  .mega-menu-cards,
  .mega-menu-card-slot,
  .menu-image-card {
    display: none;
  }

  .mega-menu-links {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mega-link {
    padding: 14px 0;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mega-link:hover {
    background: transparent;
    transform: none;
  }

  .mega-link small,
  .mega-link-cta-menu small,
  .mega-link-cta-app small,
  .mega-link-cta-logo,
  .category-inline-icon {
    display: none;
  }

  .mega-link span,
  .mega-link-cta-menu span,
  .mega-link-cta-plain span,
  .mega-link-cta-head > span:last-child {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.45;
  }

  .mega-link-cta-head {
    display: block;
  }

  .mega-link-cta-menu,
  .mega-link-cta-plain,
  .mega-link-cta-app {
    padding: 14px 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mega-link-cta-menu:hover,
  .mega-link-cta-plain:hover,
  .mega-link-cta-app:hover,
  .mega-link-cta-menu.active,
  .mega-link-cta-plain.active,
  .mega-link-cta-app.active {
    background: transparent;
    transform: none;
    border-color: rgba(255, 255, 255, 0.05);
  }

  .mega-link-mobile-overview {
    display: block;
  }

  .site-search-shell {
    --search-modal-block-padding: 18px;
    --search-modal-inline-padding: 6vw;
    padding: var(--search-modal-block-padding) var(--search-modal-inline-padding) 24px;
    align-items: flex-start;
  }

  .site-search-panel {
    height: calc(100vh - 42px);
    height: calc(100dvh - 42px);
    border-radius: 24px;
  }

  .site-search-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
  }

  .site-search-aside {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 22px;
  }

  .site-search-copy {
    max-width: 100%;
  }

  .site-search-results-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 22px 16px;
  }

  .site-search-status {
    text-align: left;
  }

  .site-search-results {
    padding: 10px 16px 72px;
    max-height: min(52vh, 520px);
  }

  .site-search-result.featured.has-children:hover .site-search-subpage-list,
  .site-search-result.featured.has-children:focus-within .site-search-subpage-list {
    max-height: 240px;
  }

  .site-search-scroll-button {
    right: 16px;
    bottom: 14px;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-content,
  .page-hero-content {
    max-width: 100%;
  }

  .hero-copy,
  .page-hero-content p {
    max-width: 100%;
  }

  .pillar-grid.five-up,
  .footer-grid,
  .content-grid-4 {
    grid-template-columns: 1fr;
  }

  #systems-preview .feature-stack {
    grid-template-columns: 1fr;
  }

  .feature-panel,
  .insight-card,
  .platform-card,
  .pillar-card,
  .rail-card,
  .content-card,
  .proof-metric {
    padding: 24px 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-search-header {
    padding: 16px;
    gap: 12px;
  }

  .site-search-field {
    min-height: 62px;
    border-radius: 18px;
    padding: 0 14px;
  }

  .site-search-close {
    width: 42px;
    height: 42px;
  }

  .site-search-aside {
    padding: 22px 16px;
  }

  .site-search-results-head {
    padding: 16px 16px 14px;
  }

  .site-search-results {
    padding: 8px 12px 70px;
  }

  .site-search-result {
    padding: 13px 14px 12px;
    border-radius: 18px;
  }

  .site-search-result.featured .site-search-result-link {
    padding: 13px 14px 12px;
  }

  .site-search-result-title {
    font-size: 16px;
  }

  .site-search-result-copy {
    font-size: 12px;
  }

  .site-search-scroll-button {
    right: 12px;
    bottom: 12px;
    height: 38px;
    padding: 0 11px 0 12px;
  }

  .site-search-subpage-list {
    padding: 0 14px 0;
  }

  .site-search-result.featured.has-children:hover .site-search-subpage-list,
  .site-search-result.featured.has-children:focus-within .site-search-subpage-list {
    padding: 0 14px 12px;
  }
}

/* ============================= */
/* REDUCED MOTION */
/* ============================= */

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #040507 0%, #050608 42%, #070c14 100%);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  filter: brightness(0.74) contrast(1.02) saturate(1.05);
  opacity: 0;
  transition: opacity 1.2s ease;
}

body.loaded .hero-video {
  opacity: 1;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5, 5, 6, 0.06), rgba(5, 5, 6, 0.20)),
    linear-gradient(to right, rgba(5, 5, 6, 0.28), rgba(5, 5, 6, 0.04));
  z-index: 1;
}
