/* CosmoMatch — промо 18 «Голографическая фольга» */

:root {
  --ground: #07070B;
  --ink: #F3F1FF;
  --accent: #FF7AE0;
  --secondary: #7F8DFF;
  --glow: #4EE6C4;
  --foil: linear-gradient(100deg, #FF7AE0, #FFD166, #4EE6C4, #7F8DFF, #FF7AE0, #4EE6C4, #7F8DFF, #FF7AE0);
}

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

html { overflow-x: hidden; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 44px;
  overflow: hidden;
}

/* ---------- soft color blooms ---------- */

.bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.bloom--a { width: 520px; height: 520px; top: -160px; left: -140px; background: rgba(127, 141, 255, 0.22); animation: breathe 9s ease-in-out infinite; }
.bloom--b { width: 460px; height: 460px; top: 30%; right: -180px; background: rgba(255, 122, 224, 0.16); animation: breathe 11s ease-in-out infinite reverse; }
.bloom--c { width: 420px; height: 420px; bottom: -140px; left: 22%; background: rgba(78, 230, 196, 0.12); animation: breathe 13s ease-in-out infinite; }

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.18); opacity: 1; }
}

/* ---------- header ---------- */

.top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 8px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.logo__mark {
  width: 46px;
  height: 46px;
  flex: none;
  overflow: visible;
}

.logo__orbit {
  transform-origin: 60px 60px;
  animation: orbit-spin 26s linear infinite;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.wordmark {
  font-family: 'Unbounded', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.02em;
}

.top__drop {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(243, 241, 255, 0.55);
  border: 1px solid rgba(243, 241, 255, 0.18);
  border-radius: 999px;
  padding: 7px 16px;
}

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

.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(36px, 7vh, 84px) 0 clamp(46px, 8vh, 90px);
}

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 34px;
}

.sticker-zone {
  position: relative;
  display: inline-block;
  margin-bottom: 26px;
}

.sticker {
  width: min(300px, 64vw);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 34px rgba(127, 141, 255, 0.35)) drop-shadow(0 0 70px rgba(255, 122, 224, 0.2));
}

.sticker__orbit {
  transform-origin: 130px 130px;
  animation: orbit-spin-big 40s linear infinite;
}

@keyframes orbit-spin-big {
  to { transform: rotate(360deg); }
}

.headline {
  font-family: 'Unbounded', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-top: 30px;
}

.foil-text {
  background: var(--foil);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: foil-slide 7s linear infinite;
}

@keyframes foil-slide {
  to { background-position: 250% 0; }
}

.sub {
  max-width: 56ch;
  margin: 26px auto 34px;
  font-size: clamp(16px, 1.7vw, 19px);
  color: rgba(243, 241, 255, 0.82);
}

.cta {
  display: inline-block;
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--ground);
  background: var(--foil);
  background-size: 250% 100%;
  animation: foil-slide 7s linear infinite;
  padding: 17px 40px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 rgba(255, 122, 224, 0);
}

.cta:hover, .cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(255, 122, 224, 0.35);
}

/* ---------- radial plates ---------- */

.plates {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding-bottom: 80px;
}

.plate {
  position: relative;
  background: rgba(243, 241, 255, 0.045);
  border: 1px solid rgba(243, 241, 255, 0.14);
  border-radius: 22px;
  padding: 34px 30px 38px;
  backdrop-filter: blur(6px);
  transform: rotate(var(--pitch, 0deg));
  transition: border-color 0.25s ease, transform 0.25s ease;
  will-change: transform;
}

.plate:nth-child(1) { --pitch: -2deg; margin-top: 22px; }
.plate:nth-child(2) { --pitch: 0deg; }
.plate:nth-child(3) { --pitch: 2deg; margin-top: 22px; }

.plate:hover { border-color: rgba(255, 122, 224, 0.65); }

.plate__t {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 14px;
  background: var(--foil);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.plate__d {
  font-size: 16px;
  color: rgba(243, 241, 255, 0.78);
}

/* ---------- quote ---------- */

.quote-block {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto 70px;
  border: 1px solid rgba(243, 241, 255, 0.16);
  border-radius: 28px;
  padding: clamp(34px, 5vw, 60px);
  text-align: center;
  background:
    radial-gradient(120% 140% at 50% -30%, rgba(127, 141, 255, 0.18), transparent 60%),
    rgba(243, 241, 255, 0.03);
}

.quote p {
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: clamp(19px, 2.6vw, 30px);
  line-height: 1.4;
  max-width: 30ch;
  margin: 0 auto;
}

/* ---------- note ---------- */

.note {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-bottom: 46px;
}

.note__line {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glow);
  border-bottom: 1px solid rgba(78, 230, 196, 0.4);
  padding-bottom: 6px;
}

/* ---------- rainbow bar ---------- */

.rainbow-bar {
  position: relative;
  z-index: 1;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 34px;
  background: rgba(243, 241, 255, 0.08);
}

.rainbow-bar__scroll {
  height: 100%;
  width: 300%;
  background: var(--foil);
  animation: bar-slide 6s linear infinite;
}

@keyframes bar-slide {
  to { transform: translateX(-33.333%); }
}

/* ---------- footer ---------- */

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.foot__brand {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(243, 241, 255, 0.55);
}

.promo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.promo-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(243, 241, 255, 0.22);
  border-radius: 999px;
  padding: 9px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.promo-nav a:hover, .promo-nav a:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(255, 122, 224, 0.3);
}

/* ---------- reveal ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
}

html.js [data-reveal].in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1);
}

html.js .plate[data-reveal].in { transform: rotate(var(--pitch, 0deg)); }

/* ---------- adaptive ---------- */

@media (max-width: 880px) {
  .plates { grid-template-columns: 1fr; }
  .plate { margin-top: 0 !important; transform: none; }
  .plate:nth-child(1), .plate:nth-child(3) { transform: none; }
  html.js .plate[data-reveal].in { transform: none; }
  .sticker { filter: drop-shadow(0 0 26px rgba(127, 141, 255, 0.3)); }
}

@media (max-width: 480px) {
  .stage { padding: 0 18px 36px; }
  .top { flex-wrap: wrap; }
  .headline { font-size: clamp(28px, 9vw, 40px); }
  .plate__t { font-size: 19px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .bloom, .logo__orbit, .sticker__orbit, .foil-text, .cta, .rainbow-bar__scroll {
    animation: none;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  html.js [data-reveal].in { transition: none; animation: none; }
  .plate, .cta, .promo-nav a { transition: none; }
}
