/* Miaora connected-commerce hero: a light, living map of the Ozon operating loop. */
:root {
  --commerce-ink: #f4f7ff;
  --commerce-muted: #a8b5d0;
  --commerce-blue: #72a7ff;
  --commerce-violet: #9a8cff;
  --commerce-mint: #64dfc1;
}

body.connected-hero-visible .site-header {
  color: var(--commerce-ink);
}

body.connected-hero-visible .site-header::before {
  inset: 8px max(18px, calc(4vw - 16px)) -2px;
  border: 1px solid rgba(175, 198, 255, .14);
  border-radius: 19px;
  background: rgba(7, 13, 34, .62);
  box-shadow: 0 18px 56px rgba(0, 3, 16, .25), inset 0 1px rgba(255, 255, 255, .1);
  backdrop-filter: blur(22px) saturate(130%);
}

body.connected-hero-visible .brand-copy strong,
body.connected-hero-visible .site-header nav a,
body.connected-hero-visible .site-header .preview-state,
body.connected-hero-visible .site-header .header-cta {
  text-shadow: none;
}

body.connected-hero-visible .brand-copy strong,
body.connected-hero-visible .site-header nav a { color: #b9c4dc; }
body.connected-hero-visible .site-header nav a:hover,
body.connected-hero-visible .site-header nav a.active { color: #ffffff; }
body.connected-hero-visible .brand-copy small,
body.connected-hero-visible .site-header .preview-state small { color: #8391ae; }
body.connected-hero-visible .site-header .preview-state {
  color: #d9e1f2;
  border-color: rgba(172, 195, 255, .14);
  background: rgba(8, 15, 38, .58);
}
body.connected-hero-visible .site-header .preview-state > span:not(.state-dot) { color: #d9e1f2; }

.hero.hero-ai-stage.hero-connected-stage {
  min-height: 1080px;
  padding: 146px 30px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  overflow: hidden;
  color: var(--commerce-ink);
  border-bottom: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(72, 87, 157, .2), transparent 50%),
    linear-gradient(150deg, #040712 0%, #081126 46%, #071a2e 72%, #071226 100%);
}

.hero-connected-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
  opacity: .21;
  background-image: radial-gradient(circle, rgba(151, 181, 244, .32) .65px, transparent .8px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 74%, transparent);
}

.hero.hero-connected-stage::after { display: none; }

.hero-connected-stage .hero-atmosphere {
  position: absolute;
  inset: -8% -5%;
  z-index: 0;
  display: block;
  overflow: hidden;
  opacity: 1;
  contain: layout paint;
  pointer-events: none;
}

.hero-connected-stage .hero-ai-backdrop,
.hero-connected-stage .raycast-ribbon-field { display: none; }

.soft-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
  filter: saturate(1.06) contrast(1.04) brightness(.94);
  transform: none;
  transform-origin: center;
  pointer-events: none;
}

.soft-aurora.is-fallback { display: none; }

.commerce-grain { position: absolute; inset: 0; opacity: .15; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }

.hero-connected-stage .hero-copy {
  position: relative;
  z-index: 4;
  width: min(980px, 100%);
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.hero-connected-stage .eyebrow {
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  margin: 0 auto;
  padding: 0 16px;
  justify-content: center;
  border: 1px solid rgba(173, 197, 255, .15);
  border-radius: 999px;
  color: #b8c5df;
  background: rgba(10, 20, 48, .56);
  box-shadow: 0 14px 40px rgba(0, 5, 22, .22), inset 0 1px rgba(255, 255, 255, .1);
  backdrop-filter: blur(15px);
  text-shadow: none;
  letter-spacing: .06em;
}

.hero-connected-stage .eyebrow span {
  width: 7px;
  height: 7px;
  background: var(--commerce-mint);
  box-shadow: 0 0 0 5px rgba(66, 202, 161, .12), 0 0 16px rgba(66, 202, 161, .34);
}

.hero-connected-stage h1 {
  max-width: none;
  margin: 29px 0 0;
  color: var(--commerce-ink);
  font-size: clamp(60px, 5.3vw, 84px);
  font-weight: 520;
  line-height: 1.06;
  letter-spacing: -.068em;
  text-shadow: 0 14px 42px rgba(0, 2, 16, .28);
}

.hero-connected-stage h1 span,
.hero-connected-stage h1 span:last-child { display: block; margin-top: 0; font-size: 1em; }
.hero-connected-stage h1 b { display: inline-block; min-width: 2.2em; font: inherit; font-weight: 650; letter-spacing: -.055em; }
.hero-connected-stage .brand-gradient {
  color: transparent;
  background: linear-gradient(100deg, #69b9ff 5%, #7cc9e8 42%, #aa91ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: none;
  will-change: transform, opacity;
}

.hero-connected-stage .hero-readable-copy {
  position: relative;
  width: min(790px, calc(100% - 32px));
  margin: 21px auto 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}
.hero-connected-stage .hero-readable-copy::before { display: none; }
.hero-connected-stage .hero-readable-copy .hero-lead {
  margin: 0 auto 8px;
  color: #d7dff1;
  font-size: 18px;
  line-height: 1.55;
  text-shadow: none;
}
.hero-connected-stage .hero-readable-copy .hero-lead strong { color: #79b7ff; }
.hero-connected-stage .hero-readable-copy .hero-description {
  max-width: 760px;
  margin: 0 auto;
  color: var(--commerce-muted);
  font-size: 14px;
  line-height: 1.75;
  text-shadow: none;
}

.hero-connected-stage .hero-actions { justify-content: center; margin-top: 25px; }
.hero-connected-stage .primary-action {
  color: #fff;
  border: 1px solid rgba(146, 181, 255, .25);
  background: linear-gradient(135deg, #367ee8, #5e57c8);
  box-shadow: 0 18px 44px rgba(18, 60, 150, .34), inset 0 1px rgba(255, 255, 255, .2);
}
.hero-connected-stage .demo-action {
  color: #e7ecf8;
  border-color: rgba(166, 192, 249, .16);
  background: rgba(10, 18, 44, .64);
  box-shadow: 0 14px 36px rgba(0, 4, 20, .22), inset 0 1px rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px);
}
.hero-connected-stage .play-dot { color: #83baff; background: rgba(66, 105, 190, .2); box-shadow: 0 0 0 5px rgba(78, 128, 219, .08); }
.hero-connected-stage .trust-row { justify-content: center; margin-top: 18px; color: #96a5c2; }
.hero-connected-stage .trust-row i { background: var(--commerce-mint); box-shadow: 0 0 0 4px rgba(66, 202, 161, .09); }

.hero-connected-stage .commerce-network {
  position: relative;
  z-index: 3;
  width: min(1160px, 95vw);
  min-height: 430px;
  margin: 30px auto 0;
  transform-origin: center top;
  pointer-events: auto;
}

.commerce-caption {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 4px;
  width: min(420px, 80%);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  text-align: center;
}
.commerce-caption span { color: #91a8ff; font-size: 9px; font-weight: 900; letter-spacing: .19em; }
.commerce-caption strong { margin-top: 6px; color: #f0f4ff; font-size: 16px; }
.commerce-caption small { margin-top: 4px; color: #94a2bd; font-size: 10px; }

.commerce-routes { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.commerce-routes path {
  fill: none;
  stroke: rgba(128, 166, 255, .31);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-dasharray: 5 8;
  vector-effect: non-scaling-stroke;
  will-change: stroke-dashoffset;
}

.commerce-node {
  position: absolute;
  z-index: 4;
  width: 184px;
  min-height: 62px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(160, 188, 255, .14);
  border-radius: 16px;
  color: #e7ecf8;
  text-align: left;
  background: rgba(9, 18, 43, .64);
  box-shadow: 0 16px 42px rgba(0, 4, 22, .25), inset 0 1px rgba(255, 255, 255, .09);
  backdrop-filter: blur(18px) saturate(125%);
  cursor: pointer;
  will-change: transform;
}
.commerce-node::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; box-shadow: 0 0 0 1px rgba(101, 137, 224, .22), 0 18px 40px rgba(72, 93, 151, .13); transition: opacity .25s ease; }
.commerce-node:hover::after,
.commerce-node:focus-visible::after { opacity: 1; }
.commerce-node:focus-visible { outline: 3px solid rgba(83, 130, 226, .2); outline-offset: 3px; }
.commerce-node > i {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #63a6f7, #6f78e9);
  box-shadow: 0 8px 18px rgba(76, 111, 218, .2), inset 0 1px rgba(255, 255, 255, .36);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}
.commerce-node:nth-of-type(3n + 1) > i { background: linear-gradient(145deg, #61cdb5, #3c94df); }
.commerce-node:nth-of-type(3n + 2) > i { background: linear-gradient(145deg, #9c82ee, #657be9); }
.commerce-node span { min-width: 0; display: grid; }
.commerce-node b { color: #edf2ff; font-size: 13px; line-height: 1.25; }
.commerce-node small { margin-top: 3px; overflow: hidden; color: #91a0bc; font-size: 9px; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }

.node-market { left: 2%; top: 82px; }
.node-source { left: 12%; top: 187px; }
.node-profit { left: 3%; top: 316px; }
.node-keyword { left: 27%; top: 82px; }
.node-category { left: 25%; top: 334px; }
.node-listing { right: 27%; top: 82px; }
.node-image { right: 12%; top: 187px; }
.node-shop { right: 2%; top: 82px; }
.node-orders { right: 3%; top: 316px; }
.node-agent { right: 25%; top: 334px; }

.commerce-core {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 56%;
  width: 116px;
  height: 116px;
  padding: 14px 10px 11px;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(145deg, #4e92f4, #6f6fe8 64%, #8d70e9);
  box-shadow: 0 27px 68px rgba(74, 90, 200, .3), inset 0 1px rgba(255, 255, 255, .45);
  cursor: pointer;
  will-change: transform;
}
.commerce-core img { position: relative; z-index: 2; width: 48px; height: 48px; filter: brightness(0) invert(1) drop-shadow(0 5px 12px rgba(19, 42, 112, .18)); }
.commerce-core b { position: relative; z-index: 2; margin-top: 4px; font-size: 13px; }
.commerce-core small { position: absolute; top: 126px; color: #b3bfd7; font-size: 10px; font-weight: 780; white-space: nowrap; }
.commerce-core-pulse { position: absolute; inset: -1px; border: 1px solid rgba(94, 119, 225, .4); border-radius: inherit; will-change: transform, opacity; }

.commerce-insight {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 0;
  min-width: 248px;
  min-height: 54px;
  padding: 8px 12px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(161, 188, 255, .14);
  border-radius: 15px;
  color: #e8edf9;
  background: rgba(9, 18, 44, .69);
  box-shadow: 0 16px 38px rgba(0, 4, 22, .24), inset 0 1px rgba(255, 255, 255, .09);
  backdrop-filter: blur(16px);
  will-change: transform;
}
.commerce-insight > i { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border-radius: 11px; color: #8ab6ff; background: rgba(74, 105, 190, .22); font-size: 18px; font-style: normal; }
.commerce-insight span { display: grid; }
.commerce-insight b { font-size: 11px; }
.commerce-insight small { margin-top: 3px; color: #91a0bb; font-size: 9px; }
.hero-connected-stage .scroll-cue { display: none; }

@media (max-width: 1100px) {
  .hero.hero-ai-stage.hero-connected-stage { min-height: 1170px; padding: 138px 22px 70px; }
  .hero-connected-stage .commerce-network { width: min(940px, 96vw); min-height: 540px; }
  .commerce-routes { display: none; }
  .commerce-node { width: 170px; }
  .node-market,.node-keyword { left: 2%; }.node-shop,.node-listing { right: 2%; }
  .node-market,.node-shop { top: 88px; }.node-keyword,.node-listing { top: 174px; }
  .node-source { left: 2%; top: 260px; }.node-image { right: 2%; top: 260px; }
  .node-profit { left: 2%; top: 346px; }.node-orders { right: 2%; top: 346px; }
  .node-category { left: 2%; top: 432px; }.node-agent { right: 2%; top: 432px; }
  .commerce-core { top: 67%; }
  .commerce-insight { bottom: 18px; }
}

@media (max-width: 760px) {
  body.connected-hero-visible .site-header::before { inset: 5px 8px -1px; }
  body.connected-hero-visible .site-header .header-cta { color: #fff; }
  .hero.hero-ai-stage.hero-connected-stage { min-height: 1260px; padding: 108px 16px 64px; align-items: center; background: linear-gradient(150deg, #040713, #091229 48%, #071b2d); }
  .hero-connected-stage .hero-atmosphere { inset: 0 -50%; opacity: .72; }
  .soft-aurora { opacity: 1; transform: none; }
  .hero-connected-stage .eyebrow { min-height: 31px; padding-inline: 12px; font-size: 8px; letter-spacing: .02em; }
  .hero-connected-stage h1 { margin-top: 23px; font-size: clamp(38px, 10.6vw, 44px); line-height: 1.08; }
  .hero-connected-stage h1 span:last-child { white-space: nowrap; }
  .hero-connected-stage h1 b { min-width: 2em; }
  .hero-connected-stage .hero-readable-copy { width: 100%; margin-top: 17px; }
  .hero-connected-stage .hero-readable-copy .hero-lead { font-size: 15px; }
  .hero-connected-stage .hero-readable-copy .hero-description { font-size: 11px; line-height: 1.65; }
  .hero-connected-stage .hero-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .hero-connected-stage .primary-action,
  .hero-connected-stage .demo-action { width: 100%; }
  .hero-connected-stage .trust-row { gap: 10px 14px; flex-wrap: wrap; font-size: 8px; }
  .hero-connected-stage .commerce-network { width: 100%; min-height: 660px; margin-top: 34px; }
  .commerce-caption { top: 0; width: 100%; }
  .commerce-caption strong { font-size: 14px; }.commerce-caption small { font-size: 9px; }
  .commerce-node { width: calc(50% - 8px); min-height: 57px; padding: 7px 8px; gap: 8px; border-radius: 14px; }
  .commerce-node > i { width: 35px; height: 35px; flex-basis: 35px; border-radius: 10px; font-size: 11px; }
  .commerce-node b { font-size: 11px; }.commerce-node small { font-size: 7px; }
  .node-market,.node-source,.node-profit,.node-keyword,.node-category { left: 0; right: auto; }
  .node-shop,.node-image,.node-orders,.node-listing,.node-agent { right: 0; left: auto; }
  .node-market,.node-shop { top: 82px; }
  .node-source,.node-image { top: 153px; }
  .node-profit,.node-orders { top: 224px; }
  .node-keyword,.node-listing { top: 295px; }
  .node-category,.node-agent { top: 366px; }
  .commerce-core { top: auto; bottom: 78px; width: 104px; height: 104px; border-radius: 30px; }
  .commerce-core img { width: 42px; height: 42px; }.commerce-core small { top: 113px; }
  .commerce-insight { bottom: 0; min-width: min(248px, 90%); }
}

@media (prefers-reduced-motion: reduce) {
  .soft-aurora,
  .commerce-node,
  .commerce-core,
  .commerce-core-pulse,
  .commerce-insight,
  .commerce-routes path,
  .hero-connected-stage .brand-gradient { will-change: auto; }
}
