/* =========================================================
   INDEX / AME VISION MATCHED BACKGROUND
   Matches the AME Vision page background exactly.
   ========================================================= */

html,
body {
  background: #02040a !important;
}

body {
  overflow-x: hidden;
}

.aurora {
  display: none !important;
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block !important;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.045) 1px, transparent 1px);
  background-size: 86px 86px;
  opacity: 0.55;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* =========================================================
   AME INDEX PAGE — DARK GLASS WELCOME CARD
   Header, footer, shared AME background, VALERIAN AI, and
   star connection script remain preserved.
   ========================================================= */


.home-main {
  position: relative;
  z-index: 1;
  padding-top: clamp(122px, 14vh, 156px);
}

.home-welcome-section {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 0 clamp(44px, 7vh, 82px);
  isolation: isolate;
}

.welcome-container {
  width: min(calc(100% - 48px), var(--max));
}


.welcome-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr);
  gap: clamp(24px, 4vw, 62px);
  align-items: center;
  min-height: clamp(420px, 54vh, 610px);
  padding: clamp(30px, 5vw, 70px);
  overflow: hidden;
  isolation: isolate;
  border: 2px solid rgba(255, 255, 255, .055);
  border-radius: clamp(24px, 2.2vw, 35px);
  background:
    rgba(8, 14, 28, .70);
}

.welcome-card::before,
.welcome-card::after,
.welcome-card-glow {
  content: "";
  position: absolute;
  pointer-events: none;
}

.welcome-kicker {
  margin: 0 0 clamp(18px, 2vw, 26px);
  color: rgba(142,230,255,.86);
  font-size: clamp(.72rem, .82vw, .92rem);
  font-weight: 800;
  letter-spacing: .35em;
  text-shadow: 0 0 18px rgba(0,220,255,.28);
}

.welcome-title {
  margin: 0;
  max-width: 880px;
  color: #f7fdff;
  font-size: clamp(2rem, 6.0vw, 7.6rem);
  line-height: .90;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-wrap: balance;
  text-shadow:
    0 0 20px rgba(0,240,255,.100),
    0 0 52px rgba(0,140,255,.100);
}

.welcome-title::after {
  content: "";
  display: block;
  width: min(600px, 80%);
  height: 3px;
  margin: clamp(24px, 3vw, 34px) 0 0;
  background: linear-gradient(90deg, rgba(0,240,255,.74), rgba(255,255,255,.26), transparent);
  box-shadow: 0 0 18px rgba(0,240,255,.18);
}

.welcome-copy {
  max-width: 760px;
  margin: clamp(22px, 3vw, 32px) 0 0;
  color: rgba(216, 232, 244, .78);
  font-size: clamp(.9rem, 1.06vw, 1.08rem);
  line-height: 1.82;
  font-weight: 600;
  letter-spacing: .085em;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 38px);
}

.welcome-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  transition:
    transform .24s ease,
    border-color .24s ease,
    background .24s ease,
    box-shadow .24s ease;
}

.welcome-cta-primary {
  border: 1px solid rgba(0, 240, 255, .32);
  background: linear-gradient(135deg, rgba(0,240,255,.16), rgba(58,141,255,.10));
  color: #f4fdff;
  box-shadow: 0 0 24px rgba(0,240,255,.10), inset 0 1px 0 rgba(255,255,255,.08);
}

.welcome-cta-secondary {
  border: 1px solid rgba(255,255,255,.075);
  background: rgba(255,255,255,.026);
  color: rgba(230, 244, 252, .84);
}

.welcome-cta-primary::after,
.welcome-cta-secondary::after {
  content: ">";
  margin-left: 10px;
}

.welcome-cta:hover,
.welcome-cta:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.welcome-cta-primary:hover,
.welcome-cta-primary:focus-visible {
  border-color: rgba(0,240,255,.62);
  box-shadow: 0 0 34px rgba(0,240,255,.18), 0 18px 46px rgba(0,0,0,.24);
}

.welcome-cta-secondary:hover,
.welcome-cta-secondary:focus-visible {
  border-color: rgba(0,240,255,.20);
  background: rgba(0,240,255,.040);
  color: #f5fdff;
}

.welcome-system {
  display: grid;
  align-content: center;
  min-height: 320px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255,255,255,.055);
  border-radius: clamp(20px, 2vw, 35px);
  background: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.050),
    inset 0 0 44px rgba(0,180,255,.026);
}

.system-label {
  margin-bottom: 18px;
  color: rgba(142,230,255,.74);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: .26em;
}

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

.ame-module {
  position: relative;
  display: flex;
  min-height: 104px;
  padding: 18px 18px 8px;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  border: 2px solid rgba(0,240,255,.12);
  border-radius: 20px;
  background:
    rgba(7, 17, 31, .46);
  color: rgba(234, 250, 255, .90);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.060),
    inset 0 0 24px rgba(0,240,255,.020);
  transition:
    transform .25s ease,
    border-color .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

.ame-module h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #f5fcff;
  font-size: .78rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .18em;
  text-shadow: 0 0 14px rgba(0,240,255,.14);
}

.ame-module p {
  position: relative;
  z-index: 1;
  margin: 8px 0 10px;
  color: rgba(185,210,230,.72);
  font-size: .56rem;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: .11em;
}


/* =========================================================
   AME PROGRESSION ANALYTICS SECTION
   Purposeful diagrams showing how AME turns effort into growth.
   ========================================================= */
.ame-analytics-section {
  position: relative;
  padding: clamp(20px, 4vh, 54px) 0 clamp(92px, 10vh, 130px);
  isolation: isolate;
}

.ame-analytics-container {
  width: min(calc(100% - 48px), var(--max));
}

.ame-analytics-card {
  position: relative;
  min-width: 0;
  display: grid;
  gap: clamp(26px, 3.5vw, 48px);
  padding: clamp(30px, 4.2vw, 62px);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.052);
  border-radius: clamp(24px, 2.2vw, 35px);
  background: rgba(8, 14, 28, 0.66);
}


.analytics-kicker {
  margin: 0 0 clamp(18px, 2vw, 26px);
  color: rgba(142,230,255,.86);
  font-size: clamp(.72rem, .82vw, .92rem);
  font-weight: 800;
  letter-spacing: .35em;
  text-shadow: 0 0 18px rgba(0,220,255,.28);
}

.analytics-title {
  margin: 0;
  color: #f7fdff;
  font-size: clamp(1rem, 3vw, 4.4rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0.025em;
  text-wrap: balance;
  text-shadow:
    0 0 18px rgba(0, 240, 255, 0.1),
    0 0 42px rgba(58, 141, 255, 0.08);
}

.analytics-title::after {
  content: "";
  display: block;
  width: min(2000px, 99%);
  height: 3px;
  margin: clamp(22px, 2.6vw, 32px) 0 0;
  background: linear-gradient(
    90deg,
    rgba(0, 240, 255, 0.72),
    rgba(49, 255, 138, 0.32),
    transparent 100%
  );
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.16);
}

.analytics-copy {
  max-width: 9000px;
  margin: clamp(13px, 2vw, 24px) 0 0;
  color: rgba(216, 232, 244, 0.76);
  font-size: clamp(0.84rem, 0.96vw, 1rem);
  line-height: 1.78;
  font-weight: 650;
  letter-spacing: 0.074em;
}


.analytics-dashboard {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(20px, 2.5vw, 28px);
  align-items: stretch;
}

.analytics-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 30px);
  border: 2px solid rgba(0, 240, 255, 0.11);
  border-radius: clamp(20px, 2vw, 35px);
  background:
    rgba(7, 17, 31, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 42px rgba(0, 180, 255, 0.026);
}

.analytics-growth-panel,
.analytics-flow-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.analytics-panel-head strong {
  color: rgba(245, 252, 255, 0.96);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.19em;
  text-align: right;
}


.growth-chart {
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  border-radius: 18px;
  background: transparent;
}

.growth-chart svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}


.growth-area {
  fill: url("#growthArea");
}

.growth-line {
  fill: none;
  stroke: url("#growthLine");
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.28));
}

.growth-points circle {
  fill: #06101e;
  stroke: #00f0ff;
  stroke-width: 2;
  filter: drop-shadow(0 0 9px rgba(0, 240, 255, 0.46));
}

.chart-labels text {
  fill: rgba(185, 210, 230, 0.76);
  font-size: 12px;
  font-weight: 900;
  text-anchor: middle;
  letter-spacing: 0.11em;
}

.growth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.growth-stats div {
  min-height: 138px;
  padding: 16px;
  border: 2px solid rgba(255, 255, 255, 0.055);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.growth-stats strong {
  display: block;
  color: #31ff8a;
  font-size: clamp(0.68rem, 0.78vw, 0.86rem);
  line-height: 1.42;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.growth-stats p {
  margin: 10px 0 0;
  color: rgba(185, 210, 230, 0.68);
  font-size: 0.56rem;
  line-height: 1.62;
  font-weight: 650;
  letter-spacing: 0.075em;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: 44px repeat(5, 1fr);
  gap: 9px;
  margin-top: 24px;
}

.heat-day {
  display: flex;
  align-items: center;
  color: rgba(185, 210, 230, 0.7);
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.heat-cell {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: rgba(255, 255, 255, 0.025);
}

.level-1 {
  background: rgba(0, 240, 255, 0.055);
}

.level-2 {
  background: rgba(0, 240, 255, 0.105);
}

.level-3 {
  background: rgba(0, 240, 255, 0.18);
}

.level-4 {
  background: rgba(0, 240, 255, 0.31);
}

.level-5 {
  background: rgba(49, 255, 138, 0.46);
  box-shadow: 0 0 18px rgba(49, 255, 138, 0.16);
}

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.heatmap-legend span {
  color: rgba(185, 210, 230, 0.72);
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.heatmap-legend i {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.balance-bars {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.balance-row {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
}

.balance-row span,
.balance-row strong {
  color: rgba(237, 251, 255, 0.86);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.balance-row strong {
  color: #8eeeff;
  text-align: right;
}

.bar-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.bar-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--level);
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(58, 141, 255, 0.78),
    rgba(0, 240, 255, 0.82),
    rgba(49, 255, 138, 0.7)
  );
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.16);
}

.pathway-diagram {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.path-step {
  position: relative;
  min-height: 172px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.path-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -15px;
  width: 16px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(0, 240, 255, 0.66),
    rgba(49, 255, 138, 0.25)
  );
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.path-step span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 999px;
  color: rgba(127, 246, 255, 0.88);
  background: rgba(0, 240, 255, 0.035);
  font-size: 0.56rem;
  font-weight: 900;
}

.path-step strong {
  display: block;
  margin-top: 18px;
  color: #f5fcff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.path-step p {
  margin: 10px 0 0;
  color: rgba(185, 210, 230, 0.72);
  font-size: 0.56rem;
  line-height: 1.58;
  font-weight: 750;
  letter-spacing: 0.1em;
}

@media (max-width: 1180px) {
  .ame-analytics-head {
    max-width: 100%;
    text-align: center;
    justify-self: center;
  }

  .analytics-title::after {
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(0, 240, 255, 0.72),
      rgba(49, 255, 138, 0.32),
      transparent
    );
  }

  .analytics-copy {
    margin-left: auto;
    margin-right: auto;
  }

  .analytics-dashboard {
    grid-template-columns: 1fr;
  }

  .analytics-panel {
    width: min(920px, 100%);
    justify-self: center;
  }

  .pathway-diagram {
    grid-template-columns: repeat(2, 1fr);
  }

  .path-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 860px) {
  .ame-analytics-section {
    padding-bottom: clamp(46px, 8vh, 82px);
  }

  .ame-analytics-container {
    width: min(calc(100% - 28px), var(--max));
  }

  .ame-analytics-card {
    padding: 34px 18px;
    border-radius: 24px;
  }

  .growth-stats {
    grid-template-columns: 1fr;
  }

  .heatmap-grid {
    grid-template-columns: 38px repeat(5, 1fr);
    gap: 7px;
  }

  .heat-cell {
    min-height: 28px;
    border-radius: 8px;
  }

  .balance-row {
    grid-template-columns: 82px minmax(0, 1fr) 38px;
    gap: 9px;
  }
}

@media (max-width: 520px) {
  .ame-analytics-container {
    width: min(calc(100% - 22px), var(--max));
  }

  .ame-analytics-card {
    padding: 30px 12px;
    border-radius: 20px;
  }

  .analytics-kicker {
    letter-spacing: 0.22em;
  }

  .analytics-title {
    font-size: clamp(1.75rem, 10vw, 3.2rem);
  }

  .analytics-copy {
    font-size: 0.82rem;
    letter-spacing: 0.055em;
  }

  .analytics-panel {
    padding: 18px 12px;
    border-radius: 20px;
  }

  .analytics-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .analytics-panel-head strong {
    text-align: left;
  }

  .heatmap-grid {
    grid-template-columns: 34px repeat(5, 1fr);
    gap: 6px;
  }

  .heat-day {
    font-size: 0.46rem;
  }

  .heat-cell {
    min-height: 24px;
    border-radius: 7px;
  }

  .balance-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 7px;
  }

  .balance-row strong {
    text-align: left;
  }

  .pathway-diagram {
    grid-template-columns: 1fr;
  }

  .path-step {
    min-height: auto;
  }
}

.home-main footer {
  margin-top: 0;
}

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

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

@supports selector(html:has(body)) {
  html:not(.no-motion) .reveal {
    transition: opacity .72s ease, transform .72s ease;
  }
}

@media (max-width: 1180px) {
  .welcome-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .welcome-copy-block {
    text-align: center;
    justify-self: center;
  }

  .welcome-title::after {
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(90deg, transparent, rgba(0,240,255,.74), rgba(255,255,255,.26), transparent);
  }

  .welcome-actions {
    justify-content: center;
  }

  .welcome-system {
    width: min(760px, 100%);
    min-height: auto;
    justify-self: center;
  }

  .valerian-intro-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .valerian-intro-copy {
    text-align: center;
    justify-self: center;
  }

  .section-title::after {
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(90deg, transparent, rgba(0,240,255,.70), rgba(255,255,255,.22), transparent);
  }

  .valerian-process {
    justify-content: center;
  }

  .valerian-status-panel {
    width: min(760px, 100%);
    justify-self: center;
  }
}

@media (max-width: 860px) {
  .home-main {
    padding-top: clamp(132px, 16vh, 178px);
  }

  .home-welcome-section {
    padding: 0 0 clamp(44px, 7vh, 82px);
  }

  .welcome-container {
    width: min(calc(100% - 28px), var(--max));
  }

  .welcome-card {
    padding: 34px 18px;
    border-radius: 24px;
  }

  .welcome-title {
    font-size: clamp(2.65rem, 13vw, 5.8rem);
    line-height: .92;
  }

  .welcome-copy {
    font-size: .86rem;
    letter-spacing: .06em;
  }

  .system-grid {
    grid-template-columns: 1fr;
  }

  .valerian-intro-card {
    padding: 34px 18px;
    border-radius: 24px;
  }

  .section-title {
    font-size: clamp(2.1rem, 9vw, 4.6rem);
  }

  .section-copy {
    font-size: .84rem;
    letter-spacing: .055em;
  }
}

@media (max-width: 520px) {
  .home-main {
    padding-top: clamp(122px, 15vh, 154px);
  }

  .home-welcome-section {
    padding: 0 0 clamp(36px, 7vh, 62px);
  }

  .welcome-container {
    width: min(calc(100% - 22px), var(--max));
  }

  .welcome-card {
    padding: 30px 12px;
    border-radius: 20px;
  }

  .welcome-kicker {
    letter-spacing: .24em;
  }

  .welcome-title {
    font-size: clamp(2.32rem, 14vw, 4rem);
    letter-spacing: -.06em;
  }

  .welcome-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .welcome-cta {
    width: 100%;
  }

  .welcome-system {
    padding: 18px;
  }

  .valerian-intro-section {
    padding-bottom: clamp(44px, 8vh, 72px);
  }

  .valerian-intro-card {
    padding: 30px 12px;
    border-radius: 20px;
  }

  .section-kicker {
    letter-spacing: .24em;
  }

  .section-title {
    font-size: clamp(1.88rem, 10vw, 3.5rem);
  }

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

  .valerian-process span {
    justify-content: center;
    min-height: 40px;
  }

  .status-panel-header,
  .status-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

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


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


/* =========================================================
   VALERIAN INTELLIGENCE FLOW
   Replaces the heatmap with a visual explanation of how
   user activity becomes analysis, insight, and optimisation.
   ========================================================= */
.analytics-flow-panel {
  align-content: start;
}

.valerian-flow {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

.flow-step {
  position: relative;
  display: block;
  min-height: auto;
  padding: 16px 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.055);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 10px 34px rgba(0, 0, 0, 0.12);
}

.flow-step::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.07), transparent 72%);
  opacity: 0.45;
}



.flow-step strong {
  position: relative;
  z-index: 1;
  display: block;
  color: #31ff8a;
  font-size: clamp(0.62rem, 0.74vw, 0.82rem);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.flow-step p {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  color: rgba(185, 210, 230, 0.70);
  font-size: 0.52rem;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: 0.065em;
}

.flow-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 24px;
  margin: 0 auto;
  animation: flowPulse 1.9s ease-in-out infinite;
}

.flow-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(49, 255, 138, 0.86);
  border-bottom: 2px solid rgba(49, 255, 138, 0.86);
  transform: translate(-50%, -50%) rotate(45deg);
  filter: drop-shadow(0 0 8px rgba(49, 255, 138, 0.35));
}

@keyframes flowPulse {
  0%, 100% {
    opacity: 0.48;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(3px);
  }
}

@media (max-width: 1180px) {
  .analytics-flow-panel {
    min-height: auto;
  }

  .valerian-flow {
    width: min(620px, 100%);
    justify-self: center;
  }
}

@media (max-width: 520px) {
  .flow-step {
    padding: 14px 12px;
    border-radius: 16px;
  }


  .flow-step strong {
    font-size: 0.6rem;
    letter-spacing: 0.11em;
  }

  .flow-step p {
    font-size: 0.5rem;
    letter-spacing: 0.052em;
  }
}

/* =========================================================
   PAGE SPACING LOCK — MATCH AME VISION
   This must stay at the bottom to override older duplicate rules.
   ========================================================= */

.home-main {
  padding-top: clamp(122px, 14vh, 156px) !important;
}

.home-welcome-section {
  padding-top: 0 !important;
}

@media (max-width: 860px) {
  .home-main {
    padding-top: clamp(132px, 16vh, 178px) !important;
  }

  .home-welcome-section {
    padding-top: 0 !important;
  }
}

@media (max-width: 520px) {
  .home-main {
    padding-top: clamp(122px, 15vh, 154px) !important;
  }

  .home-welcome-section {
    padding-top: 0 !important;
  }
}
