/* SynapFuse Landing — Math-as-Art Section */

/* Ensure page scroll works with sticky hero */
html {
  background: var(--sf-bg);
}

/* -----------------------------------------------------------------------
   Section container
   ----------------------------------------------------------------------- */

.ma-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sf-space-2xl) var(--sf-space-lg);
  background: var(--sf-bg);
  z-index: 2;
  /* Z-axis entry: JS drives progress from translateZ(-50px) → 0 */
  will-change: transform, opacity;
}

/* -----------------------------------------------------------------------
   Floating background nodes
   ----------------------------------------------------------------------- */

.ma-bg-nodes {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.ma-bg-node {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ma-bg-node--belief {
  width: 8px;
  height: 8px;
  top: 12%;
  left: 8%;
  background: var(--sf-node-belief);
  box-shadow: 0 0 18px var(--sf-node-belief);
  opacity: 0.25;
}

.ma-bg-node--pattern {
  width: 6px;
  height: 6px;
  top: 28%;
  right: 12%;
  background: var(--sf-node-pattern);
  box-shadow: 0 0 14px var(--sf-node-pattern);
  opacity: 0.2;
}

.ma-bg-node--decision {
  width: 10px;
  height: 10px;
  bottom: 18%;
  left: 15%;
  background: var(--sf-node-decision);
  box-shadow: 0 0 20px var(--sf-node-decision);
  opacity: 0.2;
}

.ma-bg-node--trajectory {
  width: 7px;
  height: 7px;
  bottom: 25%;
  right: 10%;
  background: var(--sf-node-trajectory);
  box-shadow: 0 0 16px var(--sf-node-trajectory);
  opacity: 0.22;
}

/* -----------------------------------------------------------------------
   Glass panel
   ----------------------------------------------------------------------- */

.ma-glass {
  position: relative;
  z-index: 1;
  max-width: 880px;
  width: 100%;
  padding: var(--sf-space-xl) var(--sf-space-xl);
}

/* -----------------------------------------------------------------------
   Typography
   ----------------------------------------------------------------------- */

.ma-headline {
  font-family: var(--sf-font-primary);
  font-weight: 300;
  font-size: var(--sf-text-2xl);
  letter-spacing: -0.01em;
  color: var(--sf-text);
  text-align: center;
  margin: 0 0 var(--sf-space-md);
}

.ma-subtext {
  font-family: var(--sf-font-primary);
  font-weight: 400;
  font-size: var(--sf-text-md);
  line-height: 1.6;
  color: var(--sf-text-muted);
  text-align: center;
  margin: 0 0 var(--sf-space-xl);
}

/* -----------------------------------------------------------------------
   Equation
   ----------------------------------------------------------------------- */

.ma-equation-block {
  text-align: center;
  margin-bottom: var(--sf-space-xl);
}

.ma-equation {
  font-family: var(--sf-font-mono);
  font-size: 36px;
  font-weight: 400;
  color: var(--sf-alignment);
  letter-spacing: 0.03em;
  text-shadow: 0 0 24px var(--sf-alignment-soft), 0 0 48px rgba(79, 227, 193, 0.08);
  padding: var(--sf-space-md) 0;
}

.ma-equation sub {
  font-size: 0.6em;
  vertical-align: baseline;
  position: relative;
  top: 0.3em;
}

.ma-legend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: var(--sf-space-sm);
}

.ma-legend-item {
  font-family: var(--sf-font-mono);
  font-size: var(--sf-text-xs);
  color: var(--sf-text-dim);
  letter-spacing: 0.02em;
}

.ma-legend-item sub {
  font-size: 0.8em;
}

/* -----------------------------------------------------------------------
   Side-by-side comparison
   ----------------------------------------------------------------------- */

.ma-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sf-space-md);
  margin-top: var(--sf-space-lg);
}

.ma-panel {
  border-radius: var(--sf-radius-md);
  padding: var(--sf-space-lg);
  min-height: 220px;
}

.ma-panel--generic {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.ma-panel--sf {
  background: rgba(79, 227, 193, 0.02);
  border: 1px solid rgba(79, 227, 193, 0.1);
  box-shadow: 0 0 30px rgba(79, 227, 193, 0.04);
}

.ma-panel-title {
  font-family: var(--sf-font-mono);
  font-size: var(--sf-text-xs);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sf-space-md);
}

.ma-panel--generic .ma-panel-title {
  color: var(--sf-text-dim);
}

.ma-panel--sf .ma-panel-title {
  color: var(--sf-alignment);
}

/* Generic AI chat mock */
.ma-chat-line {
  font-family: var(--sf-font-primary);
  font-size: var(--sf-text-sm);
  line-height: 1.6;
  color: var(--sf-text-muted);
  margin-bottom: var(--sf-space-sm);
}

.ma-chat-role {
  font-family: var(--sf-font-mono);
  font-size: var(--sf-text-xs);
  color: var(--sf-text-dim);
  display: block;
  margin-bottom: 2px;
}

/* SynapFuse structured reasoning */
.ma-trace-block {
  display: flex;
  flex-direction: column;
  gap: var(--sf-space-sm);
  margin-bottom: var(--sf-space-md);
}

.ma-trace-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ma-trace-label {
  font-family: var(--sf-font-mono);
  font-size: var(--sf-text-xs);
  color: var(--sf-text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ma-trace-value {
  font-family: var(--sf-font-primary);
  font-size: var(--sf-text-sm);
  color: var(--sf-text);
  line-height: 1.5;
}

/* Why-Trace tags */
.ma-why-trace {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: var(--sf-space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ma-why-label {
  font-family: var(--sf-font-mono);
  font-size: var(--sf-text-xs);
  color: var(--sf-text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 4px;
}

.ma-trace-tag {
  display: inline-block;
  font-family: var(--sf-font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
}

.ma-trace-tag--belief {
  background: rgba(0, 194, 255, 0.1);
  color: var(--sf-node-belief);
  border: 1px solid rgba(0, 194, 255, 0.18);
}

.ma-trace-tag--pattern {
  background: rgba(155, 92, 255, 0.1);
  color: var(--sf-node-pattern);
  border: 1px solid rgba(155, 92, 255, 0.18);
}

.ma-trace-tag--decision {
  background: rgba(245, 165, 36, 0.1);
  color: var(--sf-node-decision);
  border: 1px solid rgba(245, 165, 36, 0.18);
}

/* -----------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------- */

@media (max-width: 720px) {
  .ma-comparison {
    grid-template-columns: 1fr;
  }
  .ma-equation {
    font-size: 26px;
  }
  .ma-glass {
    padding: var(--sf-space-lg);
  }
}
