/*
 * 1020 Inc. — MarTech & AI page mobile layout
 * Load this file AFTER section10.css in martech-ai.html.
 * All rules are mobile-only so the existing desktop composition remains intact.
 */

@media (max-width: 820px) {
  /* Page-width safety and consistent mobile gutters */
  html:has(.hero-section),
  body:has(.hero-section) {
    max-width: 100%;
    overflow-x: hidden;
  }

  body:has(.hero-section) .container {
    width: calc(100% - 36px) !important;
    max-width: 720px !important;
  }

  /* 01 — Hero: move the content and architecture visual into a vertical flow */
  .hero-section {
    display: block;
    min-height: 0;
    padding: 42px 0 38px;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    width: calc(100% - 36px) !important;
    max-width: 720px;
    margin: 0 auto;
  }

  .hero-content,
  .hero-visual,
  .hologram-viewport-wrapper {
    min-width: 0;
    max-width: 100%;
  }

  .eyebrow-text {
    display: block;
    max-width: 100%;
    white-space: normal;
    font-size: 0.67rem;
    line-height: 1.6;
    letter-spacing: 0.14em;
  }

  .hero-heading {
    font-size: clamp(2.15rem, 8.5vw, 3.65rem);
    line-height: 1.07;
    letter-spacing: -0.045em;
    overflow-wrap: normal;
  }

  /* Clear visual separation between the two hero headline statements on mobile. */
  .hero-heading div[style*="height: 40px"] {
    display: block !important;
    height: 56px !important;
    min-height: 56px !important;
    margin: 0 !important;
  }

  .hero-subheading {
    max-width: 100%;
    margin: 0 0 1.2rem;
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .hero-cta-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: min(100%, 360px);
  }

  .hero-cta-group .btn {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    font-size: 0.76rem;
    white-space: normal;
  }

  .stats-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    margin-top: 24px;
    padding: 16px 13px;
    border-radius: 14px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .stat-item {
    min-width: 0;
    align-items: center;
    gap: 9px;
  }

  .stat-item svg {
    width: 24px !important;
    height: 24px !important;
  }

  .stat-text {
    min-width: 0;
    font-size: 0.68rem;
  }

  .stat-text strong {
    font-size: 1rem;
  }

  .stat-text span {
    white-space: normal;
    line-height: 1.4;
  }

  .hero-visual {
    height: auto;
    margin-top: 2px;
  }

  .hero-visual .hologram-viewport-wrapper {
    height: auto;
    padding: 10px;
  }

  .hologram-connectors,
  .capability-boundary,
  .scroll-indicator {
    display: none !important;
  }

  .grid-layout-container {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    height: auto;
  }

  .architecture-node,
  .flow-n1,
  .flow-n2,
  .flow-n3-left,
  .flow-n3-center,
  .flow-n3-right,
  .flow-n4,
  .flow-n5,
  .flow-n6 {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100%;
    height: auto;
    min-height: 62px;
    padding: 10px 8px;
    font-size: 0.68rem;
  }

  .node-content-group {
    justify-content: flex-start;
    gap: 8px;
  }

  .architecture-node svg {
    width: 21px;
    height: 21px;
  }

  .node-content-group span {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .flow-n6 {
    grid-column: 1 / -1;
  }

  .perspective-grid-floor {
    left: -28%;
    width: 156%;
    height: 280px;
    opacity: 0.42;
  }

  /* 02 — Enterprise equation: replace the desktop nowrap strip with a readable vertical sequence */
  .framework-section {
    padding: 48px 0 54px;
  }

  .framework-section > .container {
    width: calc(100% - 36px) !important;
    max-width: 720px !important;
  }

  .enterprise-equation-wrapper {
    align-items: stretch;
    text-align: left;
  }

  .equation-heading {
    font-size: clamp(1.6rem, 6.4vw, 2.2rem);
    line-height: 1.2;
  }

  .equation-heading .gradient-cyan-purple-pink {
    display: inline;
    white-space: normal;
  }

  .equation-sub {
    max-width: 100%;
    margin-top: 12px;
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .equation-flex-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-top: 25px;
    padding: 20px 14px;
    border-radius: 18px;
  }

  .intelligence-mesh {
    opacity: 0.28;
  }

  .eq-node {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    width: 100%;
    text-align: left;
  }

  .eq-circle {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
  }

  .eq-circle .card-icon {
    width: 30px;
    height: 30px;
  }

  .telemetry-overlay {
    display: none;
  }

  .eq-node-title {
    font-size: 0.7rem;
    line-height: 1.4;
    letter-spacing: 0.13em;
  }

  .eq-operator {
    width: 64px;
    height: 12px;
    align-self: center;
    text-align: center;
    font-size: 1rem;
    line-height: 12px;
  }

  .capability-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 22px;
  }

  .capability-header-left,
  .capability-header-center,
  .capability-header-right {
    width: 100%;
    min-width: 0;
  }

  .capability-header-left .equation-heading {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  .capability-header-center p {
    font-size: 0.84rem;
    line-height: 1.7 !important;
  }

  .capability-header-right {
    justify-content: flex-start;
  }

  .capability-header-right .btn {
    max-width: 100%;
    white-space: normal !important;
    text-align: center;
    padding: 0.8rem 1.2rem !important;
    font-size: 0.75rem;
  }

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

  .capability-card {
    min-width: 0;
    padding: 18px 15px;
    border-radius: 14px;
  }

  .capability-card .card-icon {
    width: 31px;
    height: 31px;
  }

  .capability-card h3 {
    font-size: 0.94rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .capability-card p {
    margin-bottom: 1.2rem;
    font-size: 0.75rem;
    line-height: 1.6;
  }

  .capability-card:hover {
    transform: none;
  }

  /* Existing editorial sections: improve readable type and prevent grid children forcing overflow */
  .evolution-framework,
  .intelligence-architecture,
  .s6-ecosystem,
  .s7,
  .s8,
  .s09,
  .s10 {
    max-width: 100%;
    min-width: 0;
  }

  .evolution-framework {
    padding-left: 16px;
    padding-right: 16px;
  }

  .evolution-stage,
  .evolution-proof,
  .ia-manifesto,
  .ia-principle,
  .s6-domain,
  .s7-card,
  .s8-story,
  .s8-layers,
  .s09-panel,
  .s10-metric-card,
  .s10-step,
  .s10-action-grid {
    min-width: 0;
  }

  .ia-inner {
    width: calc(100% - 36px);
  }

  .ia-lead,
  .ia-manifesto-block p,
  .ia-principle p {
    font-size: 0.78rem;
    line-height: 1.7;
  }

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

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

  .s10-bridge-arrow {
    display: none;
  }

  .s10-bridge-item {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .hero-inner,
  .framework-section > .container,
  body:has(.hero-section) .container {
    width: calc(100% - 30px) !important;
  }

  .hero-section {
    padding-top: 34px;
    padding-bottom: 30px;
  }

  .hero-heading {
    font-size: clamp(2rem, 9.5vw, 2.8rem);
    line-height: 1.08;
  }

  .hero-subheading {
    font-size: 0.83rem;
  }

  .stats-bar {
    gap: 14px 8px;
    padding: 14px 10px;
  }

  .stat-item {
    gap: 7px;
  }

  .stat-item svg {
    width: 21px !important;
    height: 21px !important;
  }

  .stat-text {
    font-size: 0.63rem;
  }

  .stat-text strong {
    font-size: 0.92rem;
  }

  .architecture-node,
  .flow-n1,
  .flow-n2,
  .flow-n3-left,
  .flow-n3-center,
  .flow-n3-right,
  .flow-n4,
  .flow-n5,
  .flow-n6 {
    min-height: 58px;
    padding: 9px 7px;
  }

  .node-content-group {
    gap: 6px;
  }

  .node-content-group span {
    font-size: 0.62rem;
  }

  .framework-section {
    padding-top: 40px;
    padding-bottom: 44px;
  }

  .equation-flex-row {
    padding: 18px 12px;
  }

  .capability-grid {
    gap: 10px;
  }

  .capability-card {
    padding: 16px 13px;
  }

  .capability-card h3 {
    font-size: 0.86rem;
  }

  .capability-card p {
    font-size: 0.7rem;
  }

  .s10-scenarios-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .s10-bridge-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 380px) {
  .hero-inner,
  .framework-section > .container,
  body:has(.hero-section) .container {
    width: calc(100% - 24px) !important;
  }

  .stats-bar {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (prefers-reduced-motion: reduce) {
  .hero-section *,
  .framework-section *,
  .evolution-framework *,
  .intelligence-architecture *,
  .s6-ecosystem *,
  .s7 *,
  .s8 *,
  .s09 *,
  .s10 * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Additional fixed-diagram and five-item strip corrections in Section 10 */
@media (max-width: 820px) {
  .s10-hero-visual {
    height: 350px;
    min-width: 0;
    overflow: hidden;
  }

  .s10-orbit-system {
    flex: 0 0 480px;
    transform: scale(0.72);
    transform-origin: center center;
  }

  .s10-impact-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px 12px;
    height: auto;
  }

  .s10-impact-divider {
    display: none;
  }

  .s10-impact-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    text-align: left;
  }

  .s10-impact-item:last-child {
    grid-column: 1 / -1;
  }

  .s10-impact-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }

  .s10-impact-item > span {
    min-width: 0;
    font-size: 0.72rem;
    line-height: 1.4;
  }
}

@media (max-width: 560px) {
  .s10-hero-visual {
    height: 310px;
  }

  .s10-orbit-system {
    transform: scale(0.64);
  }

  .s10-impact-items {
    gap: 14px 9px;
  }

  .s10-impact-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .s10-impact-icon svg {
    width: 18px;
    height: 18px;
  }
}


/* HERO ARCHITECTURE — preserve desktop flowchart geometry; scroll horizontally on mobile. */
@media (max-width: 820px) {
  /* The viewport scrolls; the diagram itself keeps its desktop canvas and coordinates. */
  .hero-visual {
    display: block;
    width: 100%;
    height: 700px;
    max-width: 100%;
    margin-top: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(30, 136, 229, .8) rgba(148, 163, 184, .12);
    padding: 0 0 12px;
  }

  .hero-visual .hologram-viewport-wrapper {
    position: relative;
    display: block;
    flex: 0 0 760px;
    width: 760px;
    min-width: 760px;
    max-width: none;
    height: 680px;
    min-height: 680px;
    padding: 0;
    overflow: visible;
  }

  .hero-visual .hologram-connectors {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero-visual .capability-boundary {
    display: block !important;
    position: absolute;
    top: 41%;
    left: 50%;
    width: 550px;
    height: 100px;
    transform: translate(-50%, -50%);
  }

  .hero-visual .grid-layout-container {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }

  .hero-visual .architecture-node,
  .hero-visual .flow-n1,
  .hero-visual .flow-n2,
  .hero-visual .flow-n3-left,
  .hero-visual .flow-n3-center,
  .hero-visual .flow-n3-right,
  .hero-visual .flow-n4,
  .hero-visual .flow-n5,
  .hero-visual .flow-n6 {
    position: absolute !important;
    width: 155px;
    min-width: 155px;
    max-width: 155px;
    height: 54px;
    min-height: 54px;
    padding: .5rem .8rem;
    transform: translate(-50%, -50%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    inset: auto !important;
  }

  .hero-visual .flow-n1 { top: 10% !important; left: 50% !important; }
  .hero-visual .flow-n2 { top: 25% !important; left: 50% !important; }
  .hero-visual .flow-n3-center { top: 41% !important; left: 50% !important; }
  .hero-visual .flow-n3-left { top: 41% !important; left: calc(50% - 170px) !important; }
  .hero-visual .flow-n3-right { top: 41% !important; left: calc(50% + 170px) !important; }
  .hero-visual .flow-n4 { top: 57% !important; left: 50% !important; }
  .hero-visual .flow-n5 { top: 73% !important; left: 50% !important; }
  .hero-visual .flow-n6 { top: 89% !important; left: 50% !important; }

  .hero-visual .node-content-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: auto;
  }

  .hero-visual .architecture-node svg {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }

  .hero-visual .node-content-group span {
    font-size: .78rem;
    line-height: 1.2;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .hero-visual {
    height: 660px;
  }
  .hero-visual .hologram-viewport-wrapper {
    height: 640px;
    min-height: 640px;
  }
}

@media (max-width: 380px) {
  .hero-visual {
    height: 620px;
  }
  .hero-visual .hologram-viewport-wrapper {
    height: 600px;
    min-height: 600px;
  }
}


/* Mobile flowchart affordance — visible cue for horizontal swipe. */
@media (max-width: 820px) {
  .hero-visual { position: relative; }
  .hero-flow-scroll-hint {
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: max-content;
    max-width: calc(100% - 28px);
    padding: 9px 15px;
    border: 1px solid rgba(56, 189, 248, .42);
    border-radius: 999px;
    background: rgba(5, 15, 32, .88);
    box-shadow: 0 0 18px rgba(0, 180, 255, .16), inset 0 0 12px rgba(30, 136, 229, .08);
    color: #dceeff;
    font: 700 10px/1.2 "Montserrat", Arial, sans-serif;
    letter-spacing: .12em;
    white-space: nowrap;
    pointer-events: none;
    backdrop-filter: blur(8px);
  }
  .hero-flow-scroll-hint .flow-hint-arrow {
    display: inline-block;
    color: #38bdf8;
    font: 400 24px/.7 Arial, sans-serif;
    text-shadow: 0 0 10px rgba(56, 189, 248, .65);
  }
  .hero-flow-scroll-hint .flow-hint-left { animation: flowHintNudgeLeft 1.5s ease-in-out infinite; }
  .hero-flow-scroll-hint .flow-hint-right { animation: flowHintNudgeRight 1.5s ease-in-out infinite; }
}
@keyframes flowHintNudgeLeft {
  0%, 100% { transform: translateX(0); opacity: .7; }
  50% { transform: translateX(-4px); opacity: 1; }
}
@keyframes flowHintNudgeRight {
  0%, 100% { transform: translateX(0); opacity: .7; }
  50% { transform: translateX(4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-flow-scroll-hint .flow-hint-arrow { animation: none !important; }
}


/* Mobile refinement: center the architecture viewport and its swipe cue. */
@media (max-width: 820px) {
  .hero-visual .hologram-viewport-wrapper {
    position: relative;
    width: 100%;
    margin-inline: auto;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hero-visual .hologram-viewport-wrapper::-webkit-scrollbar {
    display: none;
  }
  .hero-flow-scroll-hint {
    left: 0;
    right: 0;
    bottom: 8px;
    width: fit-content;
    max-width: calc(100% - 24px);
    margin-inline: auto;
    transform: none;
    text-align: center;
  }

  /* Enterprise equation: balanced 2 × 2 + 1 composition. */
  .equation-flex-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    align-items: center;
    column-gap: 18px;
    row-gap: 26px;
    padding: 24px 18px;
  }
  .equation-flex-row > .eq-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-self: stretch;
    gap: 12px;
    width: 100%;
    text-align: center;
  }
  .equation-flex-row > .eq-node .eq-circle {
    margin-inline: auto;
  }
  .equation-flex-row > .eq-node .eq-node-title {
    text-align: center;
  }
  .equation-flex-row > .eq-operator {
    display: none;
  }
  .equation-flex-row > .eq-node:last-of-type {
    grid-column: 1 / -1;
    width: 100%;
  }
  .equation-flex-row > .eq-node:last-of-type .eq-circle {
    margin-inline: auto;
  }
}


/* Mobile equation refinement: restore multiplication and equals operators. */
@media (max-width: 820px) {
  .equation-flex-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
    grid-template-rows: auto auto 24px auto;
    align-items: center;
    justify-items: center;
    column-gap: 4px;
    row-gap: 20px;
    padding: 26px 12px 24px;
  }
  .equation-flex-row > .intelligence-mesh {
    position: absolute;
    inset: -20px -5% auto;
    width: 110%;
    height: calc(100% + 40px);
    pointer-events: none;
  }
  .equation-flex-row > .eq-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    justify-self: stretch;
    gap: 10px;
    width: 100%;
    min-width: 0;
    text-align: center;
    position: relative;
    z-index: 1;
  }
  .equation-flex-row > .eq-node:nth-child(2) { grid-area: 1 / 1; }
  .equation-flex-row > .eq-operator:nth-child(3) { grid-area: 1 / 2; }
  .equation-flex-row > .eq-node:nth-child(4) { grid-area: 1 / 3; }
  .equation-flex-row > .eq-node:nth-child(6) { grid-area: 2 / 1; }
  .equation-flex-row > .eq-operator:nth-child(5) { display: none; }
  .equation-flex-row > .eq-operator:nth-child(7) { grid-area: 2 / 2; }
  .equation-flex-row > .eq-node:nth-child(8) { grid-area: 2 / 3; }
  .equation-flex-row > .eq-operator:nth-child(9) {
    display: flex;
    grid-area: 3 / 2;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    font-size: 1.35rem;
    line-height: 1;
    color: #d8e8ff;
    text-shadow: 0 0 12px rgba(56, 189, 248, .5);
  }
  .equation-flex-row > .eq-node:nth-child(10) {
    grid-area: 4 / 2;
    width: max-content;
    max-width: 100%;
    justify-self: center;
  }
  .equation-flex-row > .eq-operator:nth-child(3),
  .equation-flex-row > .eq-operator:nth-child(7) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 1.25rem;
    line-height: 1;
    color: #d8e8ff;
    text-shadow: 0 0 12px rgba(56, 189, 248, .45);
  }
  .equation-flex-row > .eq-node .eq-circle {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    margin: 0 auto;
  }
  .equation-flex-row > .eq-node .eq-circle .card-icon {
    width: 34px;
    height: 34px;
  }
  .equation-flex-row > .eq-node .eq-node-title {
    display: block;
    width: 100%;
    font-size: 0.7rem;
    line-height: 1.35;
    letter-spacing: 0.11em;
    text-align: center;
  }
}
@media (max-width: 380px) {
  .equation-flex-row {
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
    column-gap: 2px;
    padding-inline: 8px;
  }
  .equation-flex-row > .eq-node .eq-circle {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }
  .equation-flex-row > .eq-node .eq-circle .card-icon {
    width: 31px;
    height: 31px;
  }
  .equation-flex-row > .eq-operator:nth-child(3),
  .equation-flex-row > .eq-operator:nth-child(7) {
    width: 22px;
  }
}


/* Mobile equation circles: retain the exact desktop glow treatment, scale only the dimensions. */
@media (max-width: 820px) {
  .equation-flex-row > .eq-node .eq-circle {
    box-sizing: border-box;
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    border-radius: 50%;
    background: radial-gradient(130% 130% at 50% 0%, rgba(35, 42, 65, 0.85) 0%, rgba(2, 3, 6, 1) 100%);
  }

  /* Keep the desktop colour-specific borders, inset illumination and outer glow. */
  .equation-flex-row > .eq-node .eq-circle.glow-purple {
    border: 2px solid rgba(179, 136, 255, 0.95);
    box-shadow: inset 0 0 20px rgba(179, 136, 255, 0.5), inset 0 2px 6px rgba(255,255,255,0.3), 0 0 25px rgba(179, 136, 255, 0.35);
  }
  .equation-flex-row > .eq-node .eq-circle.glow-blue {
    border: 2px solid rgba(30, 136, 229, 0.95);
    box-shadow: inset 0 0 20px rgba(30, 136, 229, 0.5), inset 0 2px 6px rgba(255,255,255,0.3), 0 0 25px rgba(30, 136, 229, 0.35);
  }
  .equation-flex-row > .eq-node .eq-circle.glow-cyan {
    border: 2px solid rgba(0, 149, 255, 0.95);
    box-shadow: inset 0 0 20px rgba(0, 149, 255, 0.5), inset 0 2px 6px rgba(255,255,255,0.3), 0 0 25px rgba(0, 149, 255, 0.35);
  }
  .equation-flex-row > .eq-node .eq-circle.glow-impact {
    border: 2px solid rgba(224, 64, 251, 0.95);
    box-shadow: inset 0 0 22px rgba(224, 64, 251, 0.55), inset 0 2px 6px rgba(255,255,255,0.3), 0 0 30px rgba(224, 64, 251, 0.4);
  }

  .equation-flex-row > .eq-node .eq-circle .card-icon {
    width: 42px;
    height: 42px;
    stroke-width: 1.5;
  }

  .equation-flex-row > .eq-node .eq-circle.glow-purple .card-icon {
    stroke: #d4c2ff;
    filter: drop-shadow(0 0 8px rgba(179, 136, 255, 0.9));
  }
  .equation-flex-row > .eq-node .eq-circle.glow-blue .card-icon {
    stroke: #82c4f8;
    filter: drop-shadow(0 0 8px rgba(30, 136, 229, 0.9));
  }
  .equation-flex-row > .eq-node .eq-circle.glow-cyan .card-icon {
    stroke: #84ffff;
    filter: drop-shadow(0 0 8px rgba(0, 149, 255, 0.9));
  }
  .equation-flex-row > .eq-node .eq-circle.glow-impact .card-icon {
    stroke: #ea80fc;
    filter: drop-shadow(0 0 8px rgba(224, 64, 251, 0.9));
  }

  .equation-flex-row > .eq-node .telemetry-overlay {
    display: block;
    position: absolute;
    top: -19px;
    left: -19px;
    width: 150px;
    height: 150px;
  }
}
@media (max-width: 380px) {
  .equation-flex-row > .eq-node .eq-circle {
    width: 100px;
    height: 100px;
    flex-basis: 100px;
  }
  .equation-flex-row > .eq-node .eq-circle .card-icon {
    width: 38px;
    height: 38px;
  }
  .equation-flex-row > .eq-node .telemetry-overlay {
    top: -17px;
    left: -17px;
    width: 134px;
    height: 134px;
  }
}


/* Mobile equation spacing: centre Business Impact on one line. */
@media (max-width: 820px) {
  .equation-flex-row {
    row-gap: 34px;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  /* More breathing room between the two input rows and the result. */
  .equation-flex-row > .eq-node:nth-child(6),
  .equation-flex-row > .eq-node:nth-child(8) {
    margin-top: 10px;
  }
  .equation-flex-row > .eq-operator:nth-child(9) {
    margin-top: 8px;
  }
  .equation-flex-row > .eq-node:nth-child(10) {
    grid-column: 1 / -1;
    grid-area: 4 / 1 / 5 / 4;
    width: 100%;
    max-width: 100%;
    justify-self: center;
    align-items: center;
    margin-top: 8px;
  }
  .equation-flex-row > .eq-node:nth-child(10) .eq-node-title {
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
    text-align: center;
    font-size: clamp(11px, 3.1vw, 13px);
    letter-spacing: .09em;
  }
}
@media (max-width: 380px) {
  .equation-flex-row {
    row-gap: 28px;
  }
  .equation-flex-row > .eq-node:nth-child(10) .eq-node-title {
    font-size: 11px;
    letter-spacing: .07em;
  }
}


/* Final mobile equation balance: clearer row separation and true centred result. */
@media (max-width: 820px) {
  .equation-flex-row {
    row-gap: 52px;
  }

  /* Keep each caption visually attached to its own circle. */
  .equation-flex-row > .eq-node {
    gap: 13px;
  }

  /* Separate row two from row one without moving the operators off-centre. */
  .equation-flex-row > .eq-node:nth-child(6),
  .equation-flex-row > .eq-node:nth-child(8) {
    margin-top: 14px;
  }

  /* Place the result across the full grid width, then centre its contents. */
  .equation-flex-row > .eq-node:nth-child(10) {
    grid-row: 4 !important;
    grid-column: 1 / 4 !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: flex-start;
    gap: 13px;
    margin: 12px 0 0 !important;
    text-align: center;
  }
  .equation-flex-row > .eq-node:nth-child(10) .eq-circle {
    margin-inline: auto !important;
  }
  .equation-flex-row > .eq-node:nth-child(10) .eq-node-title {
    display: block;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    margin-inline: auto;
    text-align: center !important;
    font-size: 12px;
    letter-spacing: .08em;
    line-height: 1.3;
  }
}
@media (max-width: 380px) {
  .equation-flex-row {
    row-gap: 44px;
  }
  .equation-flex-row > .eq-node {
    gap: 12px;
  }
  .equation-flex-row > .eq-node:nth-child(10) .eq-node-title {
    font-size: 11.5px;
    letter-spacing: .06em;
  }
}


/* Mobile telemetry rings: keep clear space between orbit lines and node labels. */
@media (max-width: 820px) {
  .equation-flex-row > .eq-node .telemetry-overlay {
    top: -10px;
    left: -10px;
    width: 132px;
    height: 132px;
  }
  .equation-flex-row > .eq-node {
    gap: 17px;
  }
}
@media (max-width: 380px) {
  .equation-flex-row > .eq-node .telemetry-overlay {
    top: -8px;
    left: -8px;
    width: 124px;
    height: 124px;
  }
  .equation-flex-row > .eq-node {
    gap: 15px;
  }
}


/* Equalise vertical rhythm across the three equation rows on mobile. */
@media (max-width: 820px) {
  .equation-flex-row {
    row-gap: 32px !important;
    grid-template-rows: auto auto 14px auto !important;
  }
  .equation-flex-row > .eq-node:nth-child(6),
  .equation-flex-row > .eq-node:nth-child(8) {
    margin-top: 0 !important;
  }
  .equation-flex-row > .eq-operator:nth-child(9) {
    margin-top: 0 !important;
  }
  .equation-flex-row > .eq-node:nth-child(10) {
    margin-top: 0 !important;
    gap: 13px;
  }
}
@media (max-width: 380px) {
  .equation-flex-row {
    row-gap: 28px !important;
  }
}


/* Restore desktop-proportional telemetry orbit on scaled mobile circles. */
@media (max-width: 820px) {
  .equation-flex-row > .eq-node .eq-circle {
    position: relative;
  }
  .equation-flex-row > .eq-node .eq-circle .telemetry-overlay {
    top: -19px !important;
    left: -19px !important;
    width: 150px !important;
    height: 150px !important;
  }
  .equation-flex-row > .eq-node {
    gap: 26px !important;
  }
}
@media (max-width: 380px) {
  .equation-flex-row > .eq-node .eq-circle .telemetry-overlay {
    top: -17px !important;
    left: -17px !important;
    width: 134px !important;
    height: 134px !important;
  }
  .equation-flex-row > .eq-node {
    gap: 23px !important;
  }
}


/* Precisely centre each telemetry SVG over its main circle. */
@media (max-width: 820px) {
  .equation-flex-row > .eq-node .eq-circle {
    position: relative;
  }
  .equation-flex-row > .eq-node .eq-circle .telemetry-overlay {
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    transform-origin: center center !important;
  }
}


/* Mobile Section 6: remove decorative diagonal technology mesh. */
@media (max-width: 820px) {
  .s6-ecosystem::after {
    display: none !important;
    content: none !important;
    background: none !important;
    opacity: 0 !important;
  }
}


/* Preserve the original perspective floor mesh in the hero.
   Suppress only the decorative mesh layers in later sections. */
.intelligence-mesh,
.s7-intelligence-mesh,
.s7-mesh-waves {
  display: none !important;
}

.s6-ecosystem::before,
.s6-ecosystem::after,
.intelligence-architecture::before {
  display: none !important;
  content: none !important;
  background: none !important;
}


/* =========================================================
   SECTION 10 — MOBILE DIAGNOSTIC ORBIT: RESTORE FULL NODE LABELS
   Give the orbit more horizontal and vertical room so nodes 04/05
   and their supporting text remain visible below the ring.
   ========================================================= */
@media (max-width: 560px) {
  .s10-hero-visual {
    height: 390px !important;
    min-height: 390px !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .s10-orbit-system {
    flex: 0 0 480px !important;
    width: 480px !important;
    height: 480px !important;
    transform: scale(0.78) !important;
    transform-origin: center center !important;
  }

  .s10-orbit-system .s10-node {
    width: 140px !important;
    max-width: 140px !important;
  }
}


/* =========================================================
   SECTION 10 — MOBILE DIAGNOSTIC CARDS: CONSISTENT WIDER RAIL
   All four scenario cards share one centred 352px rail at a
   400px viewport (24px gutters). Desktop remains unchanged.
   ========================================================= */
@media (max-width: 760px) {
  .s10 .s10-step-01 > .s10-scenarios-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: calc(100vw - 48px) !important;
    max-width: 720px !important;
    min-width: 0 !important;
    margin-inline: auto !important;
    position: relative !important;
    left: auto !important;
    transform: none !important;
    justify-items: stretch !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
  }

  .s10 .s10-step-01 > .s10-scenarios-grid > .s10-scenario-card {
    display: flex !important;
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }
}


/* Desktop-only cleanup: the swipe instruction is exclusively a mobile affordance. */
@media (min-width: 821px) {
  .hero-section .hero-flow-scroll-hint {
    display: none !important;
  }
}


/* =========================================================
   MARTECH HEADER ALIGNMENT EXPERIMENT
   Match the shared header's outer container to the MarTech
   hero's .container / .hero-inner gutters. Scoped to this
   page only; the shared header and other pages are untouched.
   ========================================================= */
@media (min-width: 821px) {
  body:has(.hero-section) > .wrap {
    width: 95% !important;
    max-width: 1860px !important;
  }
}

@media (max-width: 820px) {
  body:has(.hero-section) > .wrap {
    width: calc(100% - 36px) !important;
    max-width: 720px !important;
  }
}

@media (max-width: 560px) {
  body:has(.hero-section) > .wrap {
    width: calc(100% - 30px) !important;
    max-width: none !important;
  }
}

@media (max-width: 380px) {
  body:has(.hero-section) > .wrap {
    width: calc(100% - 24px) !important;
  }
}
