/* Gravita Premium Experience Layer */
:root {
  --g-bg: #060a14;
  --g-panel: #0c1324;
  --g-panel-2: #101a31;
  --g-border: rgba(146, 170, 220, .18);
  --g-cyan: #25d9ff;
  --g-blue: #4d75ff;
  --g-violet: #a66cff;
  --g-text: #eef4ff;
  --g-muted: #9eacc7;
}

html { scroll-behavior: smooth; }
body { background: #f6f8fc; }
.site-header { backdrop-filter: blur(18px); background: rgba(6,10,20,.84); border-bottom: 1px solid rgba(150,170,220,.14); }
.site-header.is-scrolled { box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.brand { letter-spacing: .18em; }
.nav a { transition: color .2s ease, opacity .2s ease; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--g-cyan); }

.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(circle at 78% 18%, rgba(52,104,255,.20), transparent 34%), radial-gradient(circle at 52% 70%, rgba(133,55,255,.13), transparent 34%), #070b16; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .34; background-image: linear-gradient(rgba(130,160,220,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(130,160,220,.07) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero-copy h1 { letter-spacing: -.055em; }
.hero-copy .line-quiet { color: #94a9d4; }
.hero-lead { color: #b3c0d9; max-width: 60ch; }
.eyebrow { color: #8ea6d6; }
.mark { box-shadow: 0 0 18px rgba(37,217,255,.7); }
.button { border-radius: 999px; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 12px 30px rgba(44,95,255,.25); }
.button-primary:hover { box-shadow: 0 0 0 1px rgba(37,217,255,.35), 0 16px 38px rgba(44,95,255,.42); }

.product-visual { border: 1px solid rgba(115,156,255,.32); background: linear-gradient(145deg, rgba(18,31,59,.96), rgba(7,13,27,.98)); box-shadow: 0 24px 90px rgba(0,0,0,.35), 0 0 80px rgba(42,90,255,.12); transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); transition: transform .5s ease, box-shadow .5s ease; }
.product-visual:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg) translateY(-5px); box-shadow: 0 32px 110px rgba(0,0,0,.45), 0 0 90px rgba(42,90,255,.22); }
.workspace-top { border-bottom-color: rgba(160,185,240,.14); }
.workspace-body { background: linear-gradient(180deg, rgba(18,31,58,.45), rgba(5,10,22,.2)); }
.signal-panel, .insight-panel, .workflow-panel { position: relative; overflow: hidden; border: 1px solid rgba(139,169,231,.18); background: linear-gradient(145deg, rgba(22,37,69,.9), rgba(10,18,34,.9)); box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
.signal-panel::after, .insight-panel::after, .workflow-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--pointer-x,50%) var(--pointer-y,50%), rgba(37,217,255,.16), transparent 32%); opacity: 0; transition: opacity .25s ease; }
.signal-panel:hover::after, .insight-panel:hover::after, .workflow-panel:hover::after { opacity: 1; }

.section-heading h2 { letter-spacing: -.045em; }
.surface { background: #f7f9fd; }
.surface-muted { background: #edf2fa; }
.band { background: #080e1d; color: var(--g-text); }
.band .section-heading h2, .band .section-heading p, .band .eyebrow { color: inherit; }
.band .section-heading > div > .eyebrow { color: #91a9d8; }

.feature-grid, .principles-grid, .journey, .architecture-grid, .resource-grid, .solution-list { perspective: 1200px; }
.feature-card, .principle-card, .journey-step, .architecture-grid article, .resource-grid article, .solution-row { position: relative; overflow: hidden; border: 1px solid rgba(111,139,192,.20); transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease; }
.feature-card::before, .principle-card::before, .journey-step::before, .architecture-grid article::before, .resource-grid article::before, .solution-row::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--pointer-x,50%) var(--pointer-y,50%), rgba(57,132,255,.20), transparent 34%); opacity: 0; transition: opacity .25s ease; }
.feature-card:hover, .principle-card:hover, .journey-step:hover, .architecture-grid article:hover, .resource-grid article:hover, .solution-row:hover { transform: translateY(-7px); border-color: rgba(66,144,255,.65); box-shadow: 0 18px 44px rgba(17,42,90,.13), 0 0 0 1px rgba(66,144,255,.08); }
.feature-card:hover::before, .principle-card:hover::before, .journey-step:hover::before, .architecture-grid article:hover::before, .resource-grid article:hover::before, .solution-row:hover::before { opacity: 1; }
.feature-card h3, .principle-card h3, .journey-step h3, .architecture-grid article h3, .resource-grid article h3, .solution-row h3 { position: relative; }
.feature-card p, .principle-card p, .journey-step p, .architecture-grid article p, .resource-grid article p, .solution-row p { position: relative; }
.feature-card.featured { background: linear-gradient(145deg, #122c60, #0b1630); color: #f4f8ff; border-color: rgba(61,151,255,.52); }
.feature-card.featured h3, .feature-card.featured p, .feature-card.featured .card-number { color: #f4f8ff; }
.feature-card:not(.featured) { background: #fff; }
.card-number, .solution-index, .principle-icon { color: #356cff; }

.architecture-grid article { background: linear-gradient(145deg, #101b32, #0b1224); color: #eaf1ff; border-color: rgba(114,153,224,.22); }
.architecture-grid article h3 { color: #f7faff; }
.architecture-grid article p { color: #aabbd8; }
.status-pill { display: inline-flex; color: #b9d7ff; background: rgba(48,104,220,.16); border: 1px solid rgba(94,154,255,.25); }
.architecture-grid article:hover .status-pill { color: #06111e; background: linear-gradient(90deg, #43dfff, #8d9bff); border-color: transparent; }

.enterprise-panel, .contact-card { border: 1px solid rgba(85,125,205,.24); box-shadow: 0 24px 70px rgba(27,49,93,.10); }
.stack-card { transition: transform .3s ease, border-color .3s ease; }
.stack-card:hover { transform: translateX(7px); border-color: rgba(37,217,255,.6); }

.faq-section { background: linear-gradient(180deg, #eef3fb, #f9fbff); }
.faq-content-head { border-bottom: 1px solid rgba(76,107,163,.16); }
.faq-item { background: rgba(255,255,255,.92); border: 1px solid rgba(92,123,177,.18); box-shadow: 0 8px 24px rgba(35,58,105,.05); }
.faq-item:hover { border-color: rgba(48,111,255,.45); box-shadow: 0 12px 34px rgba(35,82,170,.12); }
.faq-item[open] { background: linear-gradient(135deg, #f1f6ff, #ffffff); border-color: rgba(48,111,255,.55); box-shadow: 0 14px 40px rgba(35,82,170,.14); }
.faq-item summary { color: #111d34; }
.faq-item[open] summary { color: #1d55d7; }
.faq-symbol { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: #edf3ff; border: 1px solid #c8d8ff; }
.faq-symbol::before, .faq-symbol::after { background: #2d64f4; }
.faq-item[open] .faq-symbol { background: linear-gradient(135deg, #2d64f4, #6e53ff); border-color: transparent; box-shadow: 0 6px 18px rgba(45,100,244,.25); }
.faq-item p { color: #566783; }

.site-footer { background: #050a14; border-top: 1px solid rgba(132,159,214,.16); }
.footer-nav a:hover { color: var(--g-cyan); }

@media (max-width: 900px) {
  .product-visual { transform: none; }
  .product-visual:hover { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Selection system: one focused card per section, with clear inactive states. */
.selectable-card-group > .is-selectable-card {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.selectable-card-group > .is-selectable-card:focus-visible {
  outline: 3px solid rgba(37, 217, 255, .85);
  outline-offset: 4px;
}

/* Platform feature cards: selected = Gravita accent panel; unselected = calm surface. */
.feature-grid > .feature-card.is-selectable-card:not(.is-selected) {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,255,.98));
  color: var(--ink);
  border-color: rgba(111,139,192,.20);
  box-shadow: var(--shadow-xs);
}

.feature-grid > .feature-card.is-selectable-card:not(.is-selected) h3 { color: var(--ink); }
.feature-grid > .feature-card.is-selectable-card:not(.is-selected) p { color: var(--muted); }
.feature-grid > .feature-card.is-selectable-card:not(.is-selected) .card-number { color: var(--label-dark); }

.feature-grid > .feature-card.is-selected {
  background:
    radial-gradient(circle at 100% 0, rgba(38,214,201,.18), transparent 36%),
    linear-gradient(145deg, #172f63, #0c1732);
  color: #f4f8ff;
  border-color: rgba(61,151,255,.62);
  box-shadow: 0 22px 52px rgba(20,54,126,.22), 0 0 0 1px rgba(37,217,255,.08);
}

.feature-grid > .feature-card.is-selected h3,
.feature-grid > .feature-card.is-selected p,
.feature-grid > .feature-card.is-selected .card-number { color: #f4f8ff; }
.feature-grid > .feature-card.is-selected p { color: #c9d8f2; }
.feature-grid > .feature-card.is-selected .card-number { color: #a9c5ff; }

/* Light card groups: selected cards receive a restrained blue surface and edge. */
.principles-grid > .principle-card.is-selected,
.resource-grid > article.is-selected {
  background: linear-gradient(145deg, #edf4ff, #ffffff);
  border-color: rgba(48,111,255,.48);
  box-shadow: 0 18px 42px rgba(35,82,170,.13), 0 0 0 1px rgba(48,111,255,.06);
}

.principles-grid > .principle-card.is-selected::after,
.resource-grid > article.is-selected::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(48,111,255,.08), transparent 50%, rgba(38,214,201,.07));
}

/* Dark card groups: selected cards carry the active blue/cyan treatment. */
.journey > .journey-step:not(.is-selected),
.architecture-grid > article:not(.is-selected) {
  background: linear-gradient(145deg, #101a2e, #0b1222);
  border-color: rgba(114,153,224,.18);
  box-shadow: none;
}

.journey > .journey-step.is-selected,
.architecture-grid > article.is-selected {
  background:
    radial-gradient(circle at 100% 0, rgba(37,217,255,.14), transparent 42%),
    linear-gradient(145deg, #17376a, #101a36);
  border-color: rgba(76,168,255,.66);
  box-shadow: 0 20px 48px rgba(3,20,58,.26), 0 0 0 1px rgba(37,217,255,.08);
}

.journey > .journey-step.is-selected .journey-state,
.architecture-grid > article.is-selected .status-pill {
  background: linear-gradient(90deg, #43dfff, #8d9bff);
  color: #06111e;
  border-color: transparent;
}

/* Selected-state micro motion; hover remains subtle for inactive cards. */
.selectable-card-group > .is-selectable-card.is-selected::before { opacity: 1; }
.selectable-card-group > .is-selectable-card.is-selected .card-number,
.selectable-card-group > .is-selectable-card.is-selected .principle-icon,
.selectable-card-group > .is-selectable-card.is-selected .solution-index { color: #2d64f4; }

@media (hover: hover) {
  .selectable-card-group > .is-selectable-card:not(.is-selected):hover {
    transform: translateY(-4px);
    border-color: rgba(48,111,255,.34);
  }

  .selectable-card-group > .is-selectable-card.is-selected:hover {
    transform: translateY(-7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .selectable-card-group > .is-selectable-card,
  .selectable-card-group > .is-selectable-card:hover,
  .selectable-card-group > .is-selectable-card.is-selected:hover {
    transform: none;
  }
}

/* Final enterprise resource selection treatment: light active card with dark, guaranteed readable text. */
.resource-grid-dark > article.is-selected {
  background:
    radial-gradient(circle at 100% 0, rgba(38,214,201,.20), transparent 44%),
    linear-gradient(145deg, #ffffff 0%, #edf5ff 100%);
  border: 1px solid rgba(38, 112, 255, .72);
  box-shadow:
    0 24px 58px rgba(20, 61, 135, .20),
    0 0 0 2px rgba(38, 214, 201, .18),
    inset 0 1px 0 rgba(255,255,255,.95);
  transform: translateY(-6px);
}

.resource-grid-dark > article.is-selected::before {
  inset: 0 0 auto 0;
  width: 100%;
  height: 5px;
  opacity: 1;
  background: linear-gradient(90deg, #2563eb, #26d6c9, #8b5cf6);
}

.resource-grid-dark > article.is-selected::after {
  content: "✓";
  right: 24px;
  top: 22px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #26d6c9);
  color: #ffffff;
  font-size: .9rem;
  font-weight: 700;
  box-shadow: 0 5px 16px rgba(37,99,235,.24);
  transform: none;
}

.resource-grid-dark > article.is-selected h3,
.resource-grid-dark > article.is-selected p,
.resource-grid-dark > article.is-selected .badge {
  color: #10213f !important;
}

.resource-grid-dark > article.is-selected p {
  color: #42536d !important;
}

.resource-grid-dark > article.is-selected .badge {
  background: #dceaff;
  border-color: rgba(37,99,235,.24);
  color: #1d4ed8 !important;
}

.resource-grid-dark > article:not(.is-selected) h3 {
  color: #f6f9ff;
}

.resource-grid-dark > article:not(.is-selected) p {
  color: #b9c7dc;
}

.resource-grid-dark > article:not(.is-selected):hover {
  transform: translateY(-4px);
}

/* Final refinement: keep the selected-state check indicator on the right side, vertically centered. */
.resource-grid-dark > article.is-selected::after {
  content: "✓";
  position: absolute;
  right: 22px;
  top: 50%;
  left: auto;
  bottom: auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #26d6c9);
  color: #ffffff;
  font-size: .95rem;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(37,99,235,.26);
  transform: translateY(-50%);
  pointer-events: none;
}

.resource-grid-dark > article.is-selected:hover::after {
  transform: translateY(-50%);
}

/* Enterprise panel refinement: give the composition breathing room and a deliberate premium frame. */
.enterprise-panel {
  position: relative;
  box-sizing: border-box;
  padding: clamp(30px, 4.5vw, 64px);
  border: 1px solid rgba(85, 125, 205, 0.24);
  border-radius: 30px;
  background:
    radial-gradient(circle at 0% 0%, rgba(45, 100, 244, 0.07), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(38, 214, 201, 0.08), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(239, 245, 255, 0.86));
  box-shadow: 0 24px 70px rgba(27, 49, 93, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.enterprise-panel > div:first-child {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.enterprise-panel > div:first-child > h2 {
  max-width: 12ch;
  text-wrap: balance;
}

.enterprise-panel > div:first-child > p:not(.eyebrow) {
  max-width: 58ch;
}

.enterprise-art {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 6px 0;
}

.enterprise-art .stack-card {
  margin-left: 0;
  margin-right: 0;
  padding: 30px;
  border-radius: 20px;
}

@media (max-width: 980px) {
  .enterprise-panel {
    padding: clamp(28px, 6vw, 48px);
  }
}

@media (max-width: 560px) {
  .enterprise-panel {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .enterprise-art .stack-card {
    padding: 24px;
  }
}


/* Animated service focus for the hero workspace. */
.service-map .node {
  transition:
    border-color 320ms var(--ease),
    background 320ms var(--ease),
    box-shadow 320ms var(--ease),
    color 320ms var(--ease),
    transform 320ms var(--ease),
    opacity 320ms var(--ease);
  opacity: .72;
}

.service-map .node.is-service-focus {
  opacity: 1;
  transform: translateY(-2px);
  color: var(--white);
  border-color: rgba(158, 182, 255, .78);
  background: linear-gradient(135deg, rgba(31, 91, 255, .34), rgba(111, 92, 255, .24));
  box-shadow: 0 0 0 1px rgba(158, 182, 255, .12), 0 0 26px rgba(31, 91, 255, .16);
  animation: service-focus-pulse 2.4s ease-in-out infinite;
}

.service-map .node.is-service-focus.node-primary {
  border-color: rgba(38, 214, 201, .78);
  background: linear-gradient(135deg, rgba(38, 214, 201, .2), rgba(31, 91, 255, .2));
  box-shadow: 0 0 0 1px rgba(38, 214, 201, .12), 0 0 26px rgba(38, 214, 201, .14);
}

@keyframes service-focus-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(158, 182, 255, .12), 0 0 18px rgba(31, 91, 255, .1); }
  50% { box-shadow: 0 0 0 1px rgba(158, 182, 255, .2), 0 0 30px rgba(31, 91, 255, .2); }
}

@media (prefers-reduced-motion: reduce) {
  .service-map .node,
  .service-map .node.is-service-focus {
    animation: none;
    transition: none;
    transform: none;
  }
}


/* Animate the telemetry bars with the rotating service focus. */
.timeline-bars span {
  transition: height 720ms cubic-bezier(.22,.8,.25,1), background-color 420ms var(--ease), transform 420ms var(--ease), opacity 420ms var(--ease);
  will-change: height, transform;
}

.timeline-bars span.is-active {
  background: #8eafff;
  transform: translateY(-2px);
  animation: telemetry-bar-pulse 900ms ease-out both;
  animation-delay: var(--bar-delay, 0ms);
}

@keyframes telemetry-bar-pulse {
  0% { opacity: .62; transform: scaleY(.82) translateY(2px); }
  55% { opacity: 1; transform: scaleY(1.04) translateY(-2px); }
  100% { opacity: 1; transform: scaleY(1) translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-bars span { transition: none; animation: none !important; }
}

/* Marketing narrative layer */
.marketing-grid { display:grid; gap:18px; }
.marketing-grid.four-up { grid-template-columns:repeat(4,minmax(0,1fr)); }
.marketing-card { position:relative; min-height:210px; padding:26px; border:1px solid rgba(186,204,232,.14); border-radius:20px; background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018)); box-shadow:inset 0 1px 0 rgba(255,255,255,.04); transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease; }
.marketing-card:hover { transform:translateY(-4px); border-color:rgba(38,214,201,.45); box-shadow:0 18px 40px rgba(0,0,0,.16); }
.marketing-index { display:inline-flex; margin-bottom:28px; font:500 .72rem/1 var(--mono,monospace); letter-spacing:.12em; color:var(--cyan,#26d6c9); }
.marketing-card h3 { max-width:14ch; margin:0 0 12px; }
.marketing-card p { margin:0; max-width:30ch; color:#c5cfdf; }
.marketing-statement { margin-top:22px; padding:20px 24px; border:1px solid rgba(38,214,201,.25); border-radius:16px; background:linear-gradient(90deg,rgba(38,214,201,.09),rgba(31,91,255,.08)); display:flex; gap:10px; align-items:center; color:#dce7f7; }
.marketing-statement strong { color:#fff; }
.story-flow { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; border:1px solid rgba(186,204,232,.16); border-radius:22px; overflow:hidden; background:rgba(4,9,18,.28); }
.story-flow > div { min-height:190px; padding:28px; border-right:1px solid rgba(186,204,232,.12); display:flex; flex-direction:column; justify-content:center; gap:10px; }
.story-flow > div:last-child { border-right:0; }
.story-flow span { color:#63e9dd; font:500 .72rem/1 var(--mono,monospace); }
.story-flow strong { font-size:1.15rem; color:#fff; }
.story-flow small { color:#bdc8d8; line-height:1.55; }
.difference-grid { display:grid; grid-template-columns:1fr 1fr; border:1px solid rgba(186,204,232,.16); border-radius:22px; overflow:hidden; background:rgba(255,255,255,.025); }
.difference-grid > div { min-height:112px; padding:24px; border-bottom:1px solid rgba(186,204,232,.1); }
.difference-grid > div:nth-last-child(-n+2) { border-bottom:0; }
.difference-grid > div:nth-child(odd) { border-right:1px solid rgba(186,204,232,.1); }
.difference-grid .difference-label { min-height:90px; display:flex; flex-direction:column; justify-content:center; gap:7px; background:rgba(255,255,255,.025); }
.difference-grid .difference-label span { text-transform:uppercase; letter-spacing:.1em; font-size:.68rem; color:#8998ad; }
.difference-grid .difference-label strong { color:#dfe8f6; }
.difference-grid .accent { background:linear-gradient(145deg,rgba(38,214,201,.08),rgba(31,91,255,.06)); }
.difference-grid .accent strong { color:#eafffc; }
.difference-grid > div:not(.difference-label) { display:flex; flex-direction:column; gap:9px; }
.difference-grid > div:not(.difference-label) span { color:#aebbcf; line-height:1.55; }
.adoption-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.adoption-grid article { padding:26px; min-height:220px; border-radius:20px; border:1px solid rgba(186,204,232,.14); background:linear-gradient(145deg,rgba(31,91,255,.09),rgba(255,255,255,.025)); }
.adoption-grid span { color:#68e8dd; font:500 .72rem/1 var(--mono,monospace); }
.adoption-grid h3 { margin:24px 0 10px; color:#fff; }
.adoption-grid p { margin:0; color:#bec9da; line-height:1.6; }
.marketing-problem .section-heading p:last-child, .marketing-story .section-heading p:last-child, .marketing-difference .section-heading p:last-child, .marketing-adoption .section-heading p:last-child { max-width:48ch; }
@media (max-width: 900px) {
  .marketing-grid.four-up, .adoption-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .story-flow { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .story-flow > div:nth-child(2) { border-right:0; }
  .story-flow > div:nth-child(-n+2) { border-bottom:1px solid rgba(186,204,232,.12); }
  .difference-grid > div:nth-last-child(-n+2) { border-bottom:1px solid rgba(186,204,232,.1); }
  .difference-grid > div:nth-last-child(-n+2):last-child { border-bottom:0; }
}
@media (max-width: 640px) {
  .marketing-grid.four-up, .adoption-grid, .story-flow, .difference-grid { grid-template-columns:1fr; }
  .story-flow > div, .story-flow > div:nth-child(2) { border-right:0; border-bottom:1px solid rgba(186,204,232,.12); }
  .story-flow > div:last-child { border-bottom:0; }
  .difference-grid > div, .difference-grid > div:nth-child(odd) { border-right:0; border-bottom:1px solid rgba(186,204,232,.1); }
  .difference-grid > div:last-child { border-bottom:0; }
  .marketing-statement { align-items:flex-start; flex-direction:column; }
}

/* Marketing content contrast and visual polish — explicit foregrounds prevent inherited white text on pale surfaces. */
.marketing-problem .marketing-card,
.marketing-story .story-flow,
.marketing-difference .difference-grid,
.marketing-adoption .adoption-grid article {
  color: #172642;
}
.marketing-problem .marketing-card {
  background: linear-gradient(145deg, #ffffff 0%, #f2f7ff 100%);
  border: 1px solid #d8e4f4;
  box-shadow: 0 12px 30px rgba(9, 28, 63, .09), inset 0 1px 0 rgba(255,255,255,.95);
}
.marketing-problem .marketing-card:hover {
  background: linear-gradient(145deg, #f4fbff 0%, #e7f2ff 100%);
  border-color: #6d9dff;
  box-shadow: 0 18px 42px rgba(21, 76, 158, .16);
}
.marketing-problem .marketing-card h3,
.marketing-problem .marketing-card p {
  color: #172642;
}
.marketing-problem .marketing-card p { color: #4a5c77; line-height: 1.68; }
.marketing-problem .marketing-index {
  color: #126dba;
  background: #e4f3ff;
  border: 1px solid #c8e6ff;
  border-radius: 999px;
  padding: 8px 11px;
  margin-bottom: 22px;
}
.marketing-problem .marketing-statement {
  color: #183052;
  background: linear-gradient(100deg, #e9f8ff 0%, #edf0ff 55%, #f4edff 100%);
  border: 1px solid #cbdcf6;
  box-shadow: 0 12px 30px rgba(14, 52, 112, .08);
}
.marketing-problem .marketing-statement strong,
.marketing-problem .marketing-statement span { color: #183052; }

.marketing-story .story-flow {
  background: #f8fbff;
  border: 1px solid #cbd9ed;
  box-shadow: 0 20px 50px rgba(4, 13, 35, .16);
}
.marketing-story .story-flow > div {
  border-color: #dce6f3;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
}
.marketing-story .story-flow span {
  display: inline-flex;
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 999px;
  color: #075fa8;
  background: #e2f3ff;
  border: 1px solid #c7e7fb;
}
.marketing-story .story-flow strong { color: #132747; font-size: 1.2rem; }
.marketing-story .story-flow small { color: #4b5f7b; line-height: 1.65; }

.marketing-difference .difference-grid {
  background: #f7faff;
  border-color: #cbd9ed;
  box-shadow: 0 20px 50px rgba(4, 13, 35, .14);
}
.marketing-difference .difference-grid > div { border-color: #dce5f1; }
.marketing-difference .difference-grid .difference-label { background: #edf3fb; }
.marketing-difference .difference-grid .difference-label span { color: #60728d; }
.marketing-difference .difference-grid .difference-label strong { color: #1b3153; }
.marketing-difference .difference-grid .accent {
  background: linear-gradient(135deg, #e5f9f8 0%, #eaf0ff 100%);
}
.marketing-difference .difference-grid .accent strong { color: #123b66; }
.marketing-difference .difference-grid > div:not(.difference-label) span { color: #4b5d77; }

.marketing-adoption .adoption-grid article {
  background: linear-gradient(145deg, #ffffff 0%, #f0f6ff 100%);
  border: 1px solid #d5e1f1;
  box-shadow: 0 12px 30px rgba(9, 28, 63, .08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.marketing-adoption .adoption-grid article:hover {
  transform: translateY(-4px);
  border-color: #83a8ef;
  box-shadow: 0 20px 42px rgba(21, 76, 158, .14);
}
.marketing-adoption .adoption-grid span {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  color: #075fa8;
  background: #e3f3ff;
  border: 1px solid #c9e7fa;
}
.marketing-adoption .adoption-grid h3 { color: #172642; }
.marketing-adoption .adoption-grid p { color: #4b5d77; line-height: 1.68; }

/* Keep headings and section introductions legible regardless of inherited theme styles. */
.marketing-problem .section-heading h2,
.marketing-story .section-heading h2,
.marketing-difference .section-heading h2,
.marketing-adoption .section-heading h2 { color: #f7faff; }
.marketing-problem .section-heading p,
.marketing-story .section-heading p,
.marketing-difference .section-heading p,
.marketing-adoption .section-heading p { color: #c7d3e5; }

@media (prefers-reduced-motion: reduce) {
  .marketing-problem .marketing-card,
  .marketing-adoption .adoption-grid article { transition: none; }
}

/* Final readability + tighter vertical rhythm + premium comparison treatment */
.section {
  padding-block: clamp(54px, 5.2vw, 82px);
}
.section-heading {
  gap: clamp(24px, 3.2vw, 48px);
  margin-bottom: clamp(26px, 3vw, 38px);
}
.marketing-problem .section-heading h2,
.marketing-difference .section-heading h2 {
  color: #101d35 !important;
  text-shadow: none;
}
.marketing-problem .section-heading > div > .eyebrow,
.marketing-difference .section-heading > div > .eyebrow {
  color: #3766bd !important;
}
.marketing-problem .section-heading p:last-child,
.marketing-difference .section-heading p:last-child {
  color: #4c5e79 !important;
}
.marketing-problem .section-heading,
.marketing-difference .section-heading { align-items: center; }

/* Turn the comparison into a product-story feature, not a spreadsheet. */
.marketing-difference .difference-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 0 14px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  align-items: stretch;
}
.marketing-difference .difference-grid > div {
  position: relative;
  min-height: 0;
  padding: 23px 25px;
  border: 1px solid #dce5f1;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff 0%, #f4f7fc 100%);
  box-shadow: 0 8px 22px rgba(16, 37, 75, .045);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  margin-bottom: 12px;
}
.marketing-difference .difference-grid > div:nth-child(odd) { border-right: 1px solid #dce5f1; }
.marketing-difference .difference-grid > div:nth-child(2n) { border-left: 3px solid #2b79ed; }
.marketing-difference .difference-grid > div:hover {
  transform: translateY(-3px);
  border-color: #9bbcf2;
  box-shadow: 0 15px 34px rgba(28, 77, 155, .11);
}
.marketing-difference .difference-grid .difference-label {
  min-height: 116px;
  padding: 27px 28px;
  border-radius: 20px;
  border: 1px solid #d9e3f2;
  background: linear-gradient(140deg, #eaf0f9, #f7f9fd);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  margin-bottom: 15px;
}
.marketing-difference .difference-grid .difference-label.accent {
  background: radial-gradient(circle at 100% 0%, rgba(37,217,255,.22), transparent 42%), linear-gradient(135deg, #123b78, #174ca1 55%, #146d91);
  border: 1px solid #347de3;
  border-left: 1px solid #347de3;
  box-shadow: 0 18px 42px rgba(23, 75, 157, .22), inset 0 1px 0 rgba(255,255,255,.18);
}
.marketing-difference .difference-grid .difference-label span {
  color: #5e7291;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .12em;
}
.marketing-difference .difference-grid .difference-label strong {
  color: #172b4b;
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.3;
}
.marketing-difference .difference-grid .difference-label.accent span { color: #9beeff; }
.marketing-difference .difference-grid .difference-label.accent strong { color: #fff; }
.marketing-difference .difference-grid > div:not(.difference-label) strong {
  color: #1a2b47;
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -.015em;
}
.marketing-difference .difference-grid > div:not(.difference-label) span {
  color: #536680;
  font-size: .96rem;
  line-height: 1.6;
}
.marketing-difference .difference-grid > div.accent:not(.difference-label) {
  background: radial-gradient(circle at 100% 0%, rgba(37,217,255,.11), transparent 42%), linear-gradient(135deg, #f0fbff, #edf3ff);
  border-color: #c3dafa;
  border-left: 3px solid #2879e8;
}
.marketing-difference .difference-grid > div.accent:not(.difference-label) strong { color: #104b91; }
.marketing-difference .difference-grid > div.accent:not(.difference-label) span { color: #3d5c7d; }

@media (max-width: 760px) {
  .section { padding-block: 52px; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 26px; }
  .marketing-difference .difference-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  .marketing-difference .difference-grid > div { margin-bottom: 10px; padding: 20px; }
  .marketing-difference .difference-grid .difference-label { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .marketing-difference .difference-grid > div { transition: none; }
  .marketing-difference .difference-grid > div:hover { transform: none; }
}

/* Customer-facing comparison: make the contrast intentional and the two journeys visually distinct. */
.marketing-difference .difference-showcase {
  position: relative;
  gap: clamp(22px, 3vw, 48px);
  margin-top: clamp(24px, 3vw, 38px);
}
.marketing-difference .difference-showcase::after {
  content: "→";
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 5px solid #f4f7fc;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #16c7d5);
  color: #fff;
  font-size: 1.65rem;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(26, 85, 180, .25);
  pointer-events: none;
}
.marketing-difference .difference-column {
  gap: 14px;
  padding: clamp(18px, 2.2vw, 30px);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(16, 37, 75, .09), inset 0 1px 0 rgba(255,255,255,.95);
}
.marketing-difference .traditional-column {
  background: linear-gradient(150deg, #f1f4f9 0%, #e7edf6 100%);
  border-color: #d5deeb;
}
.marketing-difference .traditional-column:before {
  height: 4px;
  background: linear-gradient(90deg, #aab7ca, #d8e1ed);
}
.marketing-difference .gravita-column {
  background: radial-gradient(ellipse at 100% 0%, rgba(38,214,201,.16), transparent 43%), linear-gradient(150deg, #09204a 0%, #103d79 58%, #075d7c 100%);
  border: 1px solid rgba(64,164,255,.8);
  box-shadow: 0 24px 64px rgba(13,60,125,.23), inset 0 1px 0 rgba(255,255,255,.14);
}
.marketing-difference .gravita-column:before {
  height: 4px;
  background: linear-gradient(90deg, #26d6c9, #3685ff, #9b75ff);
}
.marketing-difference .difference-label { padding: 20px 16px 25px; }
.marketing-difference .difference-label .difference-kicker { font-size: .7rem; letter-spacing: .16em; }
.marketing-difference .difference-label .difference-tag { padding: 8px 13px; font-size: .72rem; }
.marketing-difference .difference-label h3 { font-size: clamp(1.45rem, 2.15vw, 2rem); }
.marketing-difference .difference-cell {
  min-height: 132px;
  border-radius: 19px;
  padding: 23px 21px;
  box-shadow: 0 5px 16px rgba(26,49,84,.045);
}
.marketing-difference .traditional-column .difference-cell {
  background: rgba(255,255,255,.78);
  border-color: #d6dfeb;
}
.marketing-difference .traditional-column .difference-step {
  border-radius: 13px;
  background: #e8edf5;
  color: #5b6e89;
}
.marketing-difference .gravita-column .difference-cell {
  background: linear-gradient(115deg, #ffffff 0%, #eefaff 100%);
  border: 1px solid rgba(133,211,255,.78);
  border-left: 4px solid #22c8d7;
  box-shadow: 0 9px 24px rgba(0,10,35,.14), inset 0 1px 0 rgba(255,255,255,.98);
}
.marketing-difference .gravita-column .difference-cell:hover {
  transform: translateY(-4px) scale(1.008);
  border-color: #68d9ef;
  box-shadow: 0 16px 32px rgba(0,10,35,.2);
}
.marketing-difference .gravita-column .difference-step {
  border-radius: 13px;
  background: linear-gradient(145deg, #2166f5, #12b9ce);
  box-shadow: 0 7px 16px rgba(34,115,220,.28);
}
.marketing-difference .difference-arrow {
  width: 29px;
  height: 29px;
  background: linear-gradient(135deg, #d9f9fc, #dce9ff);
  color: #0769b5;
}
@media(max-width:850px) {
  .marketing-difference .difference-showcase::after { display:none; }
  .marketing-difference .difference-showcase { gap: 22px; }
}
@media(prefers-reduced-motion:reduce) {
  .marketing-difference .gravita-column .difference-cell:hover { transform:none; }
}

/* Brand color rhythm: varied, intentional card surfaces instead of a sea of identical pale cards. */
:root {
  --card-ice: #eef7ff;
  --card-lilac: #f3efff;
  --card-mint: #e9faf6;
  --card-sand: #fff5e9;
  --card-rose: #fff0f4;
  --card-ink: #101d3b;
}

/* Problem-story cards: each tile gets its own restrained color identity. */
.marketing-grid.four-up > .marketing-card:nth-child(1) {
  background: linear-gradient(145deg,#eaf4ff 0%,#f8fbff 100%);
  border-color: #c7ddff;
}
.marketing-grid.four-up > .marketing-card:nth-child(2) {
  background: linear-gradient(145deg,#f0edff 0%,#fbfaff 100%);
  border-color: #d8ceff;
}
.marketing-grid.four-up > .marketing-card:nth-child(3) {
  background: linear-gradient(145deg,#e8faf5 0%,#f9fffd 100%);
  border-color: #bfece0;
}
.marketing-grid.four-up > .marketing-card:nth-child(4) {
  background: linear-gradient(145deg,#fff2e6 0%,#fffdfa 100%);
  border-color: #f5d8bb;
}
.marketing-grid.four-up > .marketing-card h3 { color:#142342; }
.marketing-grid.four-up > .marketing-card p { color:#526581; }
.marketing-grid.four-up > .marketing-card .marketing-index { box-shadow:0 5px 14px rgba(28,66,130,.09); }

/* Platform capability cards: clear feature hierarchy, with distinct supporting colors. */
.feature-grid > .feature-card:not(.is-selected):nth-child(2) {
  background:linear-gradient(145deg,#eaf5ff,#f8fbff) !important; border-color:#c7defa;
}
.feature-grid > .feature-card:not(.is-selected):nth-child(3) {
  background:linear-gradient(145deg,#f1edff,#fcfaff) !important; border-color:#d8ceff;
}
.feature-grid > .feature-card:not(.is-selected):nth-child(4) {
  background:linear-gradient(145deg,#e9faf5,#fbfffd) !important; border-color:#c1eade;
}
.feature-grid > .feature-card:not(.is-selected) h3 { color:#142342; }
.feature-grid > .feature-card:not(.is-selected) p { color:#526581; }
.feature-grid > .feature-card.is-selected {
  background:radial-gradient(circle at 100% 0,rgba(38,214,201,.22),transparent 40%),linear-gradient(145deg,#123a7a,#101c43 72%,#25185c) !important;
}

/* Journey cards on the dark workflow section: bright, coordinated, differentiated cards. */
.journey > .journey-step:nth-child(1) { background:linear-gradient(150deg,#f0f8ff,#dfefff); border-color:#a9d1ff; }
.journey > .journey-step:nth-child(2) { background:linear-gradient(150deg,#f4f0ff,#e9e2ff); border-color:#cbbcff; }
.journey > .journey-step:nth-child(3) { background:linear-gradient(150deg,#eafff8,#d8f8ef); border-color:#a9e7d7; }
.journey > .journey-step:nth-child(4) { background:linear-gradient(150deg,#fff5e9,#ffe9d2); border-color:#f1c99e; }
.journey > .journey-step h3 { color:#132345; }
.journey > .journey-step p,.journey > .journey-step .journey-foot { color:#526581; }
.journey > .journey-step .journey-top > span:first-child { background:#fff; border:1px solid rgba(64,103,170,.18); color:#2357b9; box-shadow:0 5px 14px rgba(24,54,105,.08); }
.journey > .journey-step:hover { transform:translateY(-6px); box-shadow:0 22px 44px rgba(0,0,0,.2); }

/* Architecture cards: keep the dark technical section, but give each layer a unique accent atmosphere. */
.architecture-grid > article:nth-child(1) { background:radial-gradient(circle at 100% 0,rgba(44,212,224,.22),transparent 48%),linear-gradient(145deg,#102b4a,#0a172d); border-color:rgba(51,213,226,.42); }
.architecture-grid > article:nth-child(2) { background:radial-gradient(circle at 100% 0,rgba(94,124,255,.24),transparent 48%),linear-gradient(145deg,#20265a,#111a3b); border-color:rgba(119,139,255,.42); }
.architecture-grid > article:nth-child(3) { background:radial-gradient(circle at 100% 0,rgba(174,111,255,.22),transparent 48%),linear-gradient(145deg,#352052,#17132f); border-color:rgba(183,129,255,.42); }
.architecture-grid > article:nth-child(4) { background:radial-gradient(circle at 100% 0,rgba(54,220,163,.18),transparent 48%),linear-gradient(145deg,#123b3c,#0c242f); border-color:rgba(65,218,180,.38); }
.architecture-grid > article h3 { color:#f7faff; }
.architecture-grid > article p { color:#c0cce2; }

/* Adoption cards: colorful, polished cards on dark section; text remains high contrast. */
.adoption-grid > article:nth-child(1) { background:linear-gradient(145deg,#f0f7ff,#e0edff); border:1px solid #b8d4ff; }
.adoption-grid > article:nth-child(2) { background:linear-gradient(145deg,#f4f0ff,#e9e2ff); border:1px solid #d1c2ff; }
.adoption-grid > article:nth-child(3) { background:linear-gradient(145deg,#eafff8,#d9f7ef); border:1px solid #b3e8d9; }
.adoption-grid > article:nth-child(4) { background:linear-gradient(145deg,#fff5e9,#ffead7); border:1px solid #f2d0aa; }
.adoption-grid > article h3 { color:#132345; }
.adoption-grid > article p { color:#526581; }
.adoption-grid > article > span { background:#fff; color:#2457bd; border:1px solid rgba(49,104,198,.16); box-shadow:0 5px 14px rgba(20,55,110,.08); }
.adoption-grid > article:hover { transform:translateY(-7px); box-shadow:0 22px 44px rgba(0,0,0,.2); }

/* Audience cards: three distinct brand tints, with the first card no longer the only emphasized tile. */
#audience .resource-grid:not(.resource-grid-dark) > article:nth-child(1) { background:linear-gradient(145deg,#eaf4ff,#f9fbff); border-color:#c6dcff; }
#audience .resource-grid:not(.resource-grid-dark) > article:nth-child(2) { background:linear-gradient(145deg,#f1edff,#fcfaff); border-color:#d6cbff; }
#audience .resource-grid:not(.resource-grid-dark) > article:nth-child(3) { background:linear-gradient(145deg,#e8faf5,#fafffd); border-color:#bfe9dc; }
#audience .resource-grid:not(.resource-grid-dark) > article h3 { color:#142342; }
#audience .resource-grid:not(.resource-grid-dark) > article p { color:#526581; }
#audience .resource-grid:not(.resource-grid-dark) > article .badge { background:rgba(255,255,255,.82); border:1px solid rgba(70,105,170,.16); color:#2857ae; }
#audience .resource-grid:not(.resource-grid-dark) > article.is-selected { box-shadow:0 20px 48px rgba(39,86,166,.17); }

/* Resources: maintain dark section but use distinct, subtle jewel-tone panels. */
.resource-grid-dark > article:nth-child(1) { background:radial-gradient(circle at 100% 0,rgba(38,214,201,.18),transparent 52%),linear-gradient(145deg,#102b4b,#0a172b); border-color:rgba(55,208,219,.36); }
.resource-grid-dark > article:nth-child(2) { background:radial-gradient(circle at 100% 0,rgba(100,123,255,.22),transparent 52%),linear-gradient(145deg,#20265a,#101a38); border-color:rgba(121,139,255,.38); }
.resource-grid-dark > article:nth-child(3) { background:radial-gradient(circle at 100% 0,rgba(178,111,255,.19),transparent 52%),linear-gradient(145deg,#342052,#17132f); border-color:rgba(180,126,255,.36); }
.resource-grid-dark > article h3 { color:#f5f8ff; }
.resource-grid-dark > article p { color:#c0cce2; }
.resource-grid-dark > article .badge { background:rgba(255,255,255,.09); border-color:rgba(172,194,241,.22); color:#bcecff; }

/* Keep interactive selection, keyboard focus and reduced-motion behavior intact. */
.feature-grid > .feature-card.is-selected h3,.feature-grid > .feature-card.is-selected p { color:#f4f8ff; }
.marketing-grid .marketing-card,.journey .journey-step,.adoption-grid article,#audience .resource-grid article,.architecture-grid article,.resource-grid-dark article { background-clip:padding-box; }
@media (prefers-reduced-motion:reduce) {
  .journey > .journey-step:hover,.adoption-grid > article:hover { transform:none; }
}

/* De-clutter card layouts: remove decorative sequence numbers where the content is not a numbered procedure. */
.marketing-card > .marketing-index,
.marketing-problem .marketing-index,
.proof-grid > li > span:first-child,
.story-flow > div > span:first-child,
.workflow-panel > div > span:first-child,
.journey-step .journey-top > span:first-child,
.adoption-grid > article > span:first-child,
.marketing-difference .difference-step {
  display: none !important;
}

/* Rebalance card spacing after removing decorative number badges. */
.marketing-grid .marketing-card { padding-top: 30px; }
.marketing-grid .marketing-card h3 { margin-top: 0; }
.story-flow > div { padding-top: 24px; }
.journey-step .journey-top { justify-content: flex-end; min-height: 22px; }
.adoption-grid > article { padding-top: 30px; }
.marketing-difference .difference-cell { grid-template-columns: minmax(0,1fr) auto; }
.marketing-difference .traditional-column .difference-cell,
.marketing-difference .gravita-column .difference-cell { padding-left: 26px; }
.proof-grid > li { padding-top: 4px; }

@media (max-width: 720px) {
  .marketing-grid .marketing-card,
  .adoption-grid > article { padding-top: 24px; }
}

/* Comparison layout repair: prevent the Gravita copy from collapsing into a narrow grid track. */
.marketing-difference .difference-column,
.marketing-difference .difference-cell {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.marketing-difference .difference-cell {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start;
  column-gap: 0;
}
.marketing-difference .difference-cell > .difference-step {
  display: none !important;
}
.marketing-difference .difference-cell > div {
  display: block;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.marketing-difference .difference-cell .difference-arrow {
  display: none !important;
}
.marketing-difference .difference-cell h4,
.marketing-difference .difference-cell p {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}
@media (max-width: 850px) {
  .marketing-difference .difference-showcase { grid-template-columns: minmax(0, 1fr); }
}

/* Accessibility fix: selected resource cards must retain high-contrast text. */
#resources [data-topic-grid] > article.is-selected,
#resources .resource-grid > article.is-selected {
  color: #142342 !important;
  background: linear-gradient(145deg, #ffffff 0%, #eaf3ff 100%) !important;
  border-color: #5b91ff !important;
}
#resources [data-topic-grid] > article.is-selected h3,
#resources [data-topic-grid] > article.is-selected p,
#resources [data-topic-grid] > article.is-selected .badge,
#resources .resource-grid > article.is-selected h3,
#resources .resource-grid > article.is-selected p,
#resources .resource-grid > article.is-selected .badge {
  color: #142342 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #142342 !important;
}
#resources [data-topic-grid] > article.is-selected p,
#resources .resource-grid > article.is-selected p {
  color: #425574 !important;
  -webkit-text-fill-color: #425574 !important;
}
#resources [data-topic-grid] > article.is-selected .badge,
#resources .resource-grid > article.is-selected .badge {
  background: #dceaff !important;
  border-color: #bfd5ff !important;
  color: #174ea6 !important;
  -webkit-text-fill-color: #174ea6 !important;
}

/* Refined, accessible detail briefs: incremental information, never repeat card summaries. */
.topic-inline-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  margin-top: clamp(1rem, 2.2vw, 1.75rem);
  overflow: hidden;
  border: 1px solid rgba(82, 127, 218, .28);
  border-radius: 24px;
  background: linear-gradient(125deg, #fbfdff 0%, #f1f6ff 58%, #e7efff 100%);
  color: #142544;
  box-shadow: 0 22px 65px rgba(10, 30, 70, .15), inset 0 1px 0 rgba(255,255,255,.96);
  animation: topic-inline-enter .24s ease both;
}
.topic-inline-panel::before {
  height: 4px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--brief-accent, #315dff), var(--brief-accent-2, #26d6c9), #9270ff);
}
.topic-inline-panel .topic-inline-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.35rem, 3vw, 2.25rem) clamp(1.35rem, 3.2vw, 2.75rem) 1.25rem;
  border-bottom: 1px solid rgba(35, 65, 115, .12);
  background: linear-gradient(100deg, rgba(255,255,255,.82), rgba(231,240,255,.6));
}
.topic-inline-panel .topic-detail-heading-copy { min-width: 0; }
.topic-inline-panel .topic-inline-heading .eyebrow {
  margin: 0 0 .7rem;
  color: #315b9b !important;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.topic-inline-panel .topic-inline-heading h3 {
  margin: 0;
  max-width: 42ch;
  color: #10213f !important;
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}
.topic-inline-panel .topic-detail-note {
  margin: .6rem 0 0;
  color: #607493 !important;
  font-size: .9rem;
  line-height: 1.5;
}
.topic-inline-panel .topic-inline-heading::after { display: none !important; }
.topic-inline-panel .topic-inline-close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(48, 84, 145, .2);
  border-radius: 50%;
  background: rgba(255,255,255,.86);
  color: #18365f !important;
  box-shadow: 0 4px 14px rgba(18, 45, 90, .08);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.topic-inline-panel .topic-inline-close:hover {
  transform: rotate(90deg);
  background: #fff;
  box-shadow: 0 8px 22px rgba(18,45,90,.15);
}
.topic-inline-panel .topic-inline-body {
  padding: clamp(1.35rem, 3vw, 2.25rem) clamp(1.35rem, 3.2vw, 2.75rem) clamp(1.5rem, 3vw, 2.5rem);
  color: #304968 !important;
  font-size: 1rem;
  line-height: 1.75;
}
.topic-inline-panel .topic-inline-body p,
.topic-inline-panel .topic-inline-body li,
.topic-inline-panel .topic-inline-body span { color: #405a7b !important; }
.topic-inline-panel .topic-inline-body p { margin: 0 0 1rem; }
.topic-inline-panel .topic-inline-body ul,
.topic-inline-panel .topic-inline-body ol { margin: 0; padding-left: 1.25rem; }
.topic-inline-panel .topic-inline-body li { padding-left: .25rem; margin: .65rem 0; }
.topic-inline-panel .topic-inline-body li::marker { color: var(--brief-accent, #315dff); }
.topic-inline-panel .topic-inline-body strong,
.topic-inline-panel .audience-detail-grid strong { color: #16345e !important; }
.topic-inline-panel .audience-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 1.5rem;
}
.topic-inline-panel .audience-detail-grid > div {
  min-width: 0;
  min-height: 0;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(66, 105, 169, .16);
  border-top: 3px solid var(--brief-accent, #315dff);
  border-radius: 15px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 24px rgba(22, 48, 91, .055);
}
.topic-inline-panel .audience-detail-grid strong {
  display: block;
  margin-bottom: .55rem;
  font-size: .76rem;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}
.topic-inline-panel .audience-detail-grid span { font-size: .91rem; line-height: 1.6; }
@media (max-width: 760px) {
  .topic-inline-panel .topic-inline-heading { gap: 1rem; padding: 1.25rem 1.15rem 1rem; }
  .topic-inline-panel .topic-inline-body { padding: 1.25rem 1.15rem 1.4rem; }
  .topic-inline-panel .topic-inline-close { flex-basis: 38px; width: 38px; height: 38px; }
  .topic-inline-panel .audience-detail-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .topic-inline-panel, .topic-inline-panel .topic-inline-close { animation: none; transition: none; }
}


/* Compact detail briefs: remove generic filler and keep the focus on incremental content. */
.topic-inline-panel {
  margin-top: clamp(.8rem, 1.5vw, 1.2rem);
  border-radius: 20px;
}
.topic-inline-panel .topic-inline-heading {
  padding: clamp(1rem, 2vw, 1.45rem) clamp(1.2rem, 2.4vw, 2rem) .9rem;
  gap: 1rem;
}
.topic-inline-panel .topic-inline-heading .eyebrow { margin-bottom: .45rem; }
.topic-inline-panel .topic-inline-heading h3 {
  font-size: clamp(1.3rem, 2.15vw, 1.8rem);
  line-height: 1.16;
}
.topic-inline-panel .topic-detail-note { display: none !important; }
.topic-inline-panel .topic-inline-close {
  flex-basis: 38px; width: 38px; height: 38px;
}
.topic-inline-panel .topic-inline-body {
  padding: 1.15rem clamp(1.2rem, 2.4vw, 2rem) 1.35rem;
  font-size: .96rem;
  line-height: 1.65;
}
.topic-inline-panel .topic-inline-body p { margin-bottom: .7rem; }
.topic-inline-panel .topic-inline-body li { margin: .4rem 0; }
.topic-inline-panel .audience-detail-grid { gap: 10px; margin-bottom: .9rem; }
.topic-inline-panel .audience-detail-grid > div { padding: .85rem 1rem; }
@media (max-width: 760px) {
  .topic-inline-panel .topic-inline-heading { padding: 1rem 1rem .8rem; }
  .topic-inline-panel .topic-inline-body { padding: 1rem 1rem 1.1rem; }
}

/* Motion polish: story sequence, adoption journey, and architecture stack */
@keyframes gravita-card-arrive {
  from { opacity: 0; transform: translateY(24px) scale(.985); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes gravita-stack-arrive {
  from { opacity: 0; transform: translateX(-22px) scale(.99); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes gravita-accent-pulse {
  0%, 100% { opacity: .55; box-shadow: 0 0 0 rgba(41,214,231,0); }
  50% { opacity: 1; box-shadow: 0 0 16px rgba(41,214,231,.34); }
}

/* Animate each incident stage in sequence when the section enters view. */
.marketing-story .story-flow.is-visible > div {
  animation: gravita-card-arrive .68s cubic-bezier(.2,.75,.25,1) both;
}
.marketing-story .story-flow.is-visible > div:nth-child(1) { animation-delay: .04s; }
.marketing-story .story-flow.is-visible > div:nth-child(2) { animation-delay: .17s; }
.marketing-story .story-flow.is-visible > div:nth-child(3) { animation-delay: .30s; }
.marketing-story .story-flow.is-visible > div:nth-child(4) { animation-delay: .43s; }
.marketing-story .story-flow > div { will-change: transform, opacity; }

/* Give each adoption step its own entrance and a restrained accent shimmer. */
.marketing-adoption .adoption-grid.is-visible > article {
  animation: gravita-card-arrive .72s cubic-bezier(.2,.75,.25,1) both;
}
.marketing-adoption .adoption-grid.is-visible > article:nth-child(1) { animation-delay: .04s; }
.marketing-adoption .adoption-grid.is-visible > article:nth-child(2) { animation-delay: .18s; }
.marketing-adoption .adoption-grid.is-visible > article:nth-child(3) { animation-delay: .32s; }
.marketing-adoption .adoption-grid.is-visible > article:nth-child(4) { animation-delay: .46s; }
.marketing-adoption .adoption-grid > article > span:first-child { transition: transform .35s ease, box-shadow .35s ease; }
.marketing-adoption .adoption-grid > article:hover > span:first-child { transform: translateY(-3px) rotate(-4deg); box-shadow: 0 8px 22px rgba(34,91,190,.18); }

/* Architecture stack: reveal layers from top to bottom and softly light their rails. */
.enterprise-panel.is-visible .enterprise-art .stack-card {
  animation: gravita-stack-arrive .7s cubic-bezier(.2,.75,.25,1) both;
}
.enterprise-panel.is-visible .enterprise-art .stack-card:nth-child(1) { animation-delay: .08s; }
.enterprise-panel.is-visible .enterprise-art .stack-card:nth-child(2) { animation-delay: .25s; }
.enterprise-panel.is-visible .enterprise-art .stack-card:nth-child(3) { animation-delay: .42s; }
.enterprise-art .stack-card::before { transition: filter .35s ease, opacity .35s ease; }
.enterprise-panel.is-visible .enterprise-art .stack-card:nth-child(1)::before { animation: gravita-accent-pulse 2.6s ease-in-out .7s 2; }
.enterprise-panel.is-visible .enterprise-art .stack-card:nth-child(2)::before { animation: gravita-accent-pulse 2.6s ease-in-out 1s 2; }
.enterprise-panel.is-visible .enterprise-art .stack-card:nth-child(3)::before { animation: gravita-accent-pulse 2.6s ease-in-out 1.3s 2; }

@media (prefers-reduced-motion: reduce) {
  .marketing-story .story-flow.is-visible > div,
  .marketing-adoption .adoption-grid.is-visible > article,
  .enterprise-panel.is-visible .enterprise-art .stack-card,
  .enterprise-panel.is-visible .enterprise-art .stack-card::before {
    animation: none !important;
  }
  .marketing-story .story-flow > div,
  .marketing-adoption .adoption-grid > article > span:first-child,
  .enterprise-art .stack-card::before { transition: none !important; }
}


/* Restored pre-existing hero workflow and proof-strip animations. */
/* Hero workflow strip: softly animate the active Detect / Investigate / Respond stage. */
.workflow-panel > div {
  position: relative;
  isolation: isolate;
  border-radius: 12px;
  transition: background-color .35s ease, box-shadow .35s ease, color .35s ease;
}
.workflow-panel > div.is-workflow-active {
  background: linear-gradient(115deg, rgba(34,211,238,.14), rgba(59,130,246,.10));
  box-shadow: inset 0 0 0 1px rgba(83,210,255,.35), 0 0 22px rgba(37,190,255,.10);
}
.workflow-panel > div.is-workflow-active strong {
  color: #f7fcff;
  text-shadow: 0 0 16px rgba(80,220,255,.22);
}
.workflow-panel > div.is-workflow-active small {
  color: #bfeaff;
}
.workflow-panel > div.is-workflow-active::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #4f7cff, #a855f7);
  transform-origin: left center;
  animation: workflow-stage-sweep 1.2s ease-in-out both;
  pointer-events: none;
}
@keyframes workflow-stage-sweep {
  from { transform: scaleX(.08); opacity: .45; }
  to { transform: scaleX(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .workflow-panel > div,
  .workflow-panel > div.is-workflow-active::after { animation: none !important; transition: none !important; }
}

/* Hero proof strip: sequential, restrained emphasis across the four value points. */
.proof-grid > li {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: background-color .45s ease, box-shadow .45s ease;
  animation: proof-item-pulse 6.4s ease-in-out infinite;
}
.proof-grid > li:nth-child(1) { animation-delay: 0s; }
.proof-grid > li:nth-child(2) { animation-delay: 1.6s; }
.proof-grid > li:nth-child(3) { animation-delay: 3.2s; }
.proof-grid > li:nth-child(4) { animation-delay: 4.8s; }
.proof-grid > li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #26d6c9, #4b7cff, #9b6bff);
  opacity: 0;
  animation: proof-accent-sweep 6.4s ease-in-out infinite;
  pointer-events: none;
}
.proof-grid > li:nth-child(1)::before { animation-delay: 0s; }
.proof-grid > li:nth-child(2)::before { animation-delay: 1.6s; }
.proof-grid > li:nth-child(3)::before { animation-delay: 3.2s; }
.proof-grid > li:nth-child(4)::before { animation-delay: 4.8s; }
@keyframes proof-item-pulse {
  0%, 23%, 100% { background-color: transparent; box-shadow: inset 0 0 0 1px transparent; }
  8%, 17% { background-color: rgba(42, 105, 210, .10); box-shadow: inset 0 0 0 1px rgba(69, 151, 255, .12); }
}
@keyframes proof-accent-sweep {
  0%, 4% { transform: scaleX(0); opacity: 0; }
  8% { transform: scaleX(1); opacity: 1; }
  18% { transform: scaleX(1); opacity: .8; }
  23%, 100% { transform: scaleX(1); opacity: 0; }
}
.proof-grid > li:hover,
.proof-grid > li:focus-within { animation-play-state: paused; background-color: rgba(42, 105, 210, .12); }
.proof-grid > li:hover::before,
.proof-grid > li:focus-within::before { animation-play-state: paused; transform: scaleX(1); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .proof-grid > li,
  .proof-grid > li::before { animation: none !important; transition: none !important; }
}

/* Incident flow: add a single, left-to-right light sweep after the existing staggered entrance.
   This is intentionally limited to the four cards in the incident-story section. */
.marketing-story .story-flow > div {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.marketing-story .story-flow > div::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(108deg,
    transparent 0%,
    rgba(40, 211, 224, 0) 25%,
    rgba(40, 211, 224, .13) 48%,
    rgba(76, 116, 255, .10) 57%,
    transparent 82%);
  background-size: 240% 100%;
  background-position: 120% 0;
}
.marketing-story .story-flow.is-visible > div::after {
  animation: incident-card-light-sweep 1.15s cubic-bezier(.2,.65,.25,1) 1.28s both;
}
.marketing-story .story-flow.is-visible > div:nth-child(2)::after { animation-delay: 1.68s; }
.marketing-story .story-flow.is-visible > div:nth-child(3)::after { animation-delay: 2.08s; }
.marketing-story .story-flow.is-visible > div:nth-child(4)::after { animation-delay: 2.48s; }
@keyframes incident-card-light-sweep {
  0% { opacity: 0; background-position: 120% 0; }
  18% { opacity: 1; }
  78% { opacity: .85; background-position: -30% 0; }
  100% { opacity: 0; background-position: -50% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .marketing-story .story-flow.is-visible > div::after { animation: none !important; }
}


/* Header brand lockup inspired by the supplied Gravita wordmark */
.brand {
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 4px 12px rgba(31, 91, 255, .24));
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  line-height: 1;
  white-space: nowrap;
}
.brand .brand-wordmark {
  position: relative;
  display: block;
  color: #f4f7ff;
  font-family: var(--font-display), "Arial", sans-serif;
  font-size: 1.2rem;
  font-weight: 850;
  letter-spacing: .205em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.brand .brand-wordmark::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  right: 8px;
  top: -4px;
  background: #25d9ff;
  box-shadow: 6px 0 0 #2875ff, 12px 0 0 #a66cff;
  border-radius: 1px;
}
.brand .brand-tagline {
  display: block;
  color: #aebbd4;
  font-family: var(--font-body), Arial, sans-serif;
  font-size: .43rem;
  font-weight: 600;
  letter-spacing: .205em;
  line-height: 1.2;
}
@media (max-width: 640px) {
  .brand img { width: 36px; height: 36px; }
  .brand .brand-wordmark { font-size: 1.02rem; letter-spacing: .16em; }
  .brand .brand-tagline { font-size: .36rem; letter-spacing: .12em; }
}

/* Incident-flow polish: make the sweep visible above the card surface, while keeping copy above it. */
.marketing-story .story-flow {
  border: 1px solid rgba(157, 184, 229, .42);
  background: #f4f8ff;
}
.marketing-story .story-flow > div {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-right: 1px solid #cbdaf0 !important;
  border-bottom: 0 !important;
}
.marketing-story .story-flow > div:last-child { border-right: 0 !important; }
.marketing-story .story-flow > div > strong,
.marketing-story .story-flow > div > small {
  position: relative;
  z-index: 2;
}
.marketing-story .story-flow > div::after {
  z-index: 1;
  inset: 0;
  opacity: 0;
  background: linear-gradient(105deg,
    rgba(40, 211, 224, 0) 0%,
    rgba(40, 211, 224, .04) 24%,
    rgba(40, 211, 224, .34) 43%,
    rgba(93, 116, 255, .28) 56%,
    rgba(177, 104, 255, .13) 68%,
    rgba(40, 211, 224, 0) 88%);
  background-size: 260% 100%;
  background-position: 140% 0;
  mix-blend-mode: multiply;
}
.marketing-story .story-flow.is-visible > div::after {
  animation: incident-card-light-sweep 1.35s cubic-bezier(.18,.72,.22,1) 0s both;
}
.marketing-story .story-flow.is-visible > div:nth-child(2)::after { animation-delay: .48s; }
.marketing-story .story-flow.is-visible > div:nth-child(3)::after { animation-delay: .96s; }
.marketing-story .story-flow.is-visible > div:nth-child(4)::after { animation-delay: 1.44s; }
@keyframes incident-card-light-sweep {
  0% { opacity: 0; background-position: 140% 0; }
  14% { opacity: 1; }
  68% { opacity: .95; background-position: 0% 0; }
  100% { opacity: 0; background-position: -45% 0; }
}
/* Restore unmistakable separators at each responsive breakpoint. */
@media (min-width: 1101px) {
  .marketing-story .story-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .marketing-story .story-flow > div:not(:last-child) { border-right: 1px solid #cbdaf0 !important; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .marketing-story .story-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marketing-story .story-flow > div:nth-child(odd) { border-right: 1px solid #cbdaf0 !important; }
  .marketing-story .story-flow > div:nth-child(even) { border-right: 0 !important; }
  .marketing-story .story-flow > div:nth-child(-n+2) { border-bottom: 1px solid #cbdaf0 !important; }
}
@media (max-width: 720px) {
  .marketing-story .story-flow { grid-template-columns: 1fr; }
  .marketing-story .story-flow > div:not(:last-child) { border-right: 0 !important; border-bottom: 1px solid #cbdaf0 !important; }
  .marketing-story .story-flow > div:last-child { border-bottom: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .marketing-story .story-flow.is-visible > div::after { animation: none !important; }
}

/* Final incident-flow separator repair: draw separators independently of card borders.
   This avoids border collapse/override issues and keeps all four columns visibly divided. */
@media (min-width: 1101px) {
  .marketing-story .story-flow > div {
    border-right: 0 !important;
  }
  .marketing-story .story-flow > div:not(:last-child)::before {
    content: "";
    position: absolute;
    z-index: 5;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #b7c9e6 0%, #8da9d6 50%, #b7c9e6 100%);
    box-shadow: 0 0 8px rgba(65, 115, 205, .14);
    pointer-events: none;
  }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .marketing-story .story-flow > div { border: 0 !important; }
  .marketing-story .story-flow > div:nth-child(odd)::before {
    content: ""; position: absolute; z-index: 5; top: 0; right: 0; bottom: 0; width: 2px;
    background: #a9bfdf; pointer-events: none;
  }
  .marketing-story .story-flow > div:nth-child(-n+2)::after {
    /* Preserve the animated light sweep while drawing a fixed row divider on its own layer. */
  }
  .marketing-story .story-flow > div:nth-child(-n+2) {
    box-shadow: inset 0 -1px 0 #a9bfdf;
  }
}
@media (max-width: 720px) {
  .marketing-story .story-flow > div { border: 0 !important; }
  .marketing-story .story-flow > div:not(:last-child) {
    box-shadow: inset 0 -1px 0 #a9bfdf;
  }
}

/* Hero spacing refinement: reduce the dead space directly beneath the sticky header
   without changing the hero grid, reveal effects, or downstream section spacing. */
.hero {
  padding-top: clamp(18px, 2.1vw, 30px) !important;
}

@media (max-width: 720px) {
  .hero {
    padding-top: 22px !important;
  }
}

/* Incident-story cards: softer separators and a more polished cool-toned canvas.
   Scoped only to the four-step story-flow component; keeps the existing sweep animation. */
.marketing-story .story-flow {
  background: linear-gradient(118deg, #f4f8ff 0%, #edf5ff 48%, #f3f2ff 100%) !important;
  border: 1px solid rgba(184, 204, 236, .58) !important;
  box-shadow: 0 18px 48px rgba(10, 35, 75, .12), inset 0 1px 0 rgba(255,255,255,.9) !important;
}
.marketing-story .story-flow > div {
  background: linear-gradient(145deg, rgba(255,255,255,.62), rgba(246,250,255,.35)) !important;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.marketing-story .story-flow > div:hover {
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(232,244,255,.72)) !important;
  box-shadow: inset 0 0 0 1px rgba(113, 164, 235, .14);
}
@media (min-width: 1101px) {
  .marketing-story .story-flow > div:not(:last-child)::before {
    width: 1px !important;
    background: linear-gradient(180deg,
      rgba(155, 190, 238, .12) 0%,
      rgba(132, 177, 235, .58) 28%,
      rgba(113, 166, 230, .5) 72%,
      rgba(155, 190, 238, .12) 100%) !important;
    box-shadow: 0 0 7px rgba(89, 153, 230, .08) !important;
  }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .marketing-story .story-flow > div:nth-child(odd)::before {
    width: 1px !important;
    background: linear-gradient(180deg, rgba(155,190,238,.15), rgba(113,166,230,.55), rgba(155,190,238,.15)) !important;
  }
  .marketing-story .story-flow > div:nth-child(-n+2) {
    box-shadow: inset 0 -1px 0 rgba(132,177,235,.42) !important;
  }
}
@media (max-width: 720px) {
  .marketing-story .story-flow > div:not(:last-child) {
    box-shadow: inset 0 -1px 0 rgba(132,177,235,.42) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .marketing-story .story-flow > div { transition: none !important; }
}

/* Section rhythm audit — tighten only section-level vertical whitespace.
   Card interiors, hero layout, reveal effects, and content sizing remain untouched. */
@media (min-width: 761px) {
  #problem.section { padding-block: 54px; }
  #product-story.section { padding-block: 58px; }
  #platform.section { padding-block: 54px; }
  #solutions.section { padding-block: 50px; }
  #why-gravita.section { padding-block: 50px; }
  #difference.section { padding-block: 54px; }
  #how-it-works.section { padding-block: 50px; }
  #capabilities.section { padding-block: 50px; }
  #technology.section { padding-block: 46px; }
  #adoption.section { padding-block: 50px; }
  #enterprise.section { padding-block: 38px; }
  #audience.section { padding-block: 50px; }
  #resources.section { padding-block: 46px; }
  #faq.section { padding-block: 42px; }
  #contact.section { padding-block: 38px; }

  /* Keep the section title and its first content block visually connected. */
  .section-heading { margin-bottom: clamp(24px, 2.4vw, 32px); }
}

@media (max-width: 760px) {
  /* Compact mobile rhythm while retaining enough breathing room for touch layouts. */
  #problem.section,
  #platform.section,
  #difference.section { padding-block: 38px; }
  #product-story.section { padding-block: 40px; }
  #solutions.section,
  #why-gravita.section,
  #how-it-works.section,
  #capabilities.section,
  #adoption.section,
  #audience.section { padding-block: 36px; }
  #technology.section,
  #resources.section,
  #faq.section { padding-block: 34px; }
  #enterprise.section,
  #contact.section { padding-block: 30px; }

  .section-heading { margin-bottom: 22px; }
}

/* Capability map header contrast: keep column labels clearly readable on the dark header. */
#capabilities .capability-table .capability-row.capability-header {
  background: linear-gradient(115deg, #10264d 0%, #142e59 58%, #123b55 100%);
  color: #f3f7ff;
  border-bottom-color: rgba(143, 183, 255, .34);
}

#capabilities .capability-table .capability-header span {
  color: #edf4ff !important;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.45;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .16);
}

#capabilities .capability-table .capability-header span:first-child {
  color: #72f0e5 !important;
}

@media (max-width: 720px) {
  #capabilities .capability-table .capability-header span {
    font-size: .72rem;
    letter-spacing: .045em;
  }
}
