/* CosmoMatch · промо 08 — Y2K хром: голо-бабблы, starburst, кислотный космос */

:root {
  --ground: #0A0F2C;
  --ink: #EAF6FF;
  --accent: #B4D8FF;
  --secondary: #FF7AD9;
  --glow: #7F8DFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { background: var(--ground); }

body {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

.net {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px 56px;
  position: relative;
}

/* ---------- голо-бабблы фона ---------- */

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}

.blob--1 {
  width: 46vw; height: 46vw;
  left: -12vw; top: -10vh;
  background: radial-gradient(circle at 35% 35%, rgba(127, 141, 255, 0.55), rgba(10, 15, 44, 0) 70%);
  animation: drift 17s ease-in-out infinite alternate;
}

.blob--2 {
  width: 38vw; height: 38vw;
  right: -10vw; top: 28vh;
  background: radial-gradient(circle at 60% 40%, rgba(255, 122, 217, 0.34), rgba(10, 15, 44, 0) 70%);
  animation: drift 23s ease-in-out infinite alternate-reverse;
}

.blob--3 {
  width: 42vw; height: 42vw;
  left: 22vw; bottom: -22vh;
  background: radial-gradient(circle at 50% 50%, rgba(180, 216, 255, 0.28), rgba(10, 15, 44, 0) 70%);
  animation: drift 29s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-24px, -14px, 0) scale(1); }
  to { transform: translate3d(30px, 22px, 0) scale(1.12); }
}

/* ---------- шапка ---------- */

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 18px;
  border-bottom: 1px solid rgba(180, 216, 255, 0.25);
}

.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }

.logo__mark { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 0 10px rgba(127, 141, 255, 0.55)); }

.logo__star { fill: url(#y2k-chrome); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.logo__orbit { fill: none; stroke: url(#y2k-soap); stroke-width: 2.5; opacity: 0.9; }

.wordmark {
  font-family: 'Russo One', 'Montserrat', sans-serif;
  font-size: 19px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    0 -1px 1px rgba(95, 121, 200, 0.9),
    0 3px 10px rgba(127, 141, 255, 0.5);
  white-space: nowrap;
}

.head__num {
  font-family: 'Russo One', 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--accent);
  border: 1px solid rgba(180, 216, 255, 0.4);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

/* ---------- hero ---------- */

.hero { padding: 42px 0 30px; text-align: center; }

.kicker {
  font-family: 'Russo One', 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--secondary);
  margin-bottom: 20px;
}

.headline {
  font-family: 'Russo One', 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 7.4vw, 92px);
  line-height: 1.04;
  letter-spacing: 0.02em;
  margin-bottom: 30px;
  background: linear-gradient(100deg,
    #B4D8FF 0%, #EAF6FF 18%, #FFFFFF 30%,
    #7F8DFF 46%, #B4D8FF 62%, #FF7AD9 78%, #EAF6FF 92%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: chrome-sweep 5.2s linear infinite;
  filter: drop-shadow(0 4px 18px rgba(127, 141, 255, 0.35));
}

@keyframes chrome-sweep {
  from { background-position: 0% 50%; }
  to { background-position: 260% 50%; }
}

/* сцена: знак в центре, бабблы вокруг */

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 400px) minmax(0, 1fr);
  grid-template-areas:
    "a star b"
    ". star ."
    "c c c";
  column-gap: 26px;
  row-gap: 20px;
  align-items: center;
  margin: 0 auto 34px;
}

.stage__core {
  grid-area: star;
  position: relative;
  width: min(320px, 62vw);
  margin: 0 auto;
  transition: transform 0.2s ease-out;
  transform-style: preserve-3d;
}

.star-mark { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 34px rgba(127, 141, 255, 0.45)); }

.star-mark__body { fill: url(#y2k-chrome); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.star-mark__orbit { fill: none; stroke: url(#y2k-soap); stroke-width: 2.5; opacity: 0.85; animation: orbit-shimmer 6s ease-in-out infinite; }

@keyframes orbit-shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* блик пробегает по хрому */

.glint {
  fill: rgba(255, 255, 255, 0.8);
  animation: glint-run 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes glint-run {
  0% { transform: translateX(0) skewX(-18deg); }
  55%, 100% { transform: translateX(168px) skewX(-18deg); }
}

.burst {
  position: absolute;
  top: -18px;
  right: -14px;
  width: 44px;
  height: 44px;
  color: var(--secondary);
  animation: burst-spin 14s linear infinite;
}

.burst svg { display: block; width: 100%; height: 100%; }
.burst path { fill: currentColor; }

@keyframes burst-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* баббл-карточки */

.bubble {
  border-radius: 30px;
  padding: 22px 22px 24px;
  text-align: left;
  position: relative;
  border: 1px solid rgba(234, 246, 255, 0.35);
  background:
    linear-gradient(160deg, rgba(180, 216, 255, 0.16) 0%, rgba(10, 15, 44, 0.35) 46%, rgba(127, 141, 255, 0.12) 100%);
  box-shadow: 0 14px 34px rgba(4, 7, 24, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: bob 7s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bubble::before {
  content: "";
  position: absolute;
  inset: 3px 3px auto 3px;
  height: 42%;
  border-radius: 26px 26px 60% 60%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.bubble:hover::before, .bubble:focus-within::before { opacity: 1; }

.bubble:hover, .bubble:focus-within {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 22px 44px rgba(4, 7, 24, 0.7), 0 0 26px rgba(255, 122, 217, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.bubble--a { grid-area: a; align-self: start; animation-delay: 0s; }
.bubble--b { grid-area: b; align-self: start; animation-delay: -2.4s; }
.bubble--c { grid-area: c; justify-self: center; width: min(420px, 100%); animation-delay: -4.6s; }

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.bubble__t {
  font-family: 'Russo One', 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}

.bubble__d { font-size: 14px; color: var(--ink); }

.sub { max-width: 58ch; margin: 0 auto 26px; font-size: 16px; }

.cta {
  display: inline-block;
  font-family: 'Russo One', 'Montserrat', sans-serif;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: #0A0F2C;
  background: linear-gradient(120deg, #EAF6FF, #B4D8FF 35%, #FFFFFF 55%, #7F8DFF 80%, #EAF6FF);
  background-size: 220% 100%;
  padding: 17px 46px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(127, 141, 255, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.6s ease;
}

.cta:hover, .cta:focus-visible {
  transform: translateY(-3px) scale(1.03);
  background-position: 120% 50%;
  box-shadow: 0 16px 44px rgba(255, 122, 217, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

/* ---------- неоновая полоса-скроллер ---------- */

.strip {
  overflow: hidden;
  border-top: 1px solid rgba(255, 122, 217, 0.45);
  border-bottom: 1px solid rgba(255, 122, 217, 0.45);
  padding: 12px 0;
  margin: 26px 0 44px;
  background: rgba(127, 141, 255, 0.08);
}

.strip__track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: marquee 24s linear infinite;
  white-space: nowrap;
}

.strip__track span {
  font-family: 'Russo One', 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--secondary);
  text-shadow: 0 0 12px rgba(255, 122, 217, 0.6);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- цитата ---------- */

.quote-zone { margin-bottom: 40px; }

.quote {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 36px;
  border-radius: 34px;
  border: 1px solid rgba(180, 216, 255, 0.35);
  background: linear-gradient(150deg, rgba(180, 216, 255, 0.12), rgba(10, 15, 44, 0.45));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 18px 44px rgba(4, 7, 24, 0.55);
  text-align: center;
}

.quote p {
  font-family: 'Russo One', 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: clamp(17px, 2.4vw, 24px);
  line-height: 1.4;
  color: var(--ink);
}

/* ---------- финал ---------- */

.final { text-align: center; margin-bottom: 34px; }

.note {
  display: inline-block;
  font-size: 15px;
  color: var(--accent);
  border: 1px dashed rgba(180, 216, 255, 0.45);
  border-radius: 999px;
  padding: 12px 26px;
}

/* ---------- футер ---------- */

.foot { text-align: center; border-top: 1px solid rgba(180, 216, 255, 0.25); padding-top: 26px; }

.foot__text {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.promo-nav { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }

.promo-nav a {
  font-family: 'Russo One', 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.promo-nav a:hover, .promo-nav a:focus-visible { color: var(--secondary); border-bottom-color: var(--secondary); }

/* ---------- появление по скроллу ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */

@media (max-width: 860px) {
  .stage {
    grid-template-columns: 1fr;
    grid-template-areas: "star" "a" "b" "c";
    justify-items: stretch;
  }
  .bubble--a, .bubble--b, .bubble--c { width: 100%; align-self: auto; }
}

@media (max-width: 640px) {
  .net { padding: 0 16px 44px; }
  .wordmark { font-size: 15px; }
  .logo__mark { width: 34px; height: 34px; }
  .headline { margin-bottom: 22px; }
  .bubble { border-radius: 22px; }
}

/* ---------- reduce-motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .blob, .headline, .glint, .burst, .star-mark__orbit, .bubble, .strip__track {
    animation: none;
  }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .bubble:hover { transform: none; }
  .cta:hover { transform: none; }
  .stage__core { transition: none; }
}
