/* ============================================================
   RAWEN — лендинг
   ============================================================ */

:root {
  --accent: #ff3d84;
  --accent-2: #ff8fc7;
  --bg: #010101;

  --accent-soft: rgba(255, 61, 132, 0.14);
  --accent-line: rgba(255, 61, 132, 0.28);

  /* ступеньки глубины: фон → панель → карточка → блок внутри карточки */
  --panel: rgba(6, 5, 6, 0.96);
  --card: rgba(32, 12, 22, 0.94);
  --card-inner: rgba(10, 3, 7, 0.9);

  --line: rgba(255, 160, 208, 0.18);
  --line-strong: rgba(255, 160, 208, 0.32);

  --text: #fff3f8;
  --text-dim: #f0d3e2;
  --text-mute: #a07a8e;

  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 13px;

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Unbounded", "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- фон ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(600px 400px at 50% 10%, rgba(255, 61, 132, 0.05), transparent 70%),
    radial-gradient(800px 600px at 50% 95%, rgba(255, 61, 132, 0.04), transparent 75%),
    #010101;
}

/* мягкое дыхание фона */
.bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(500px 500px at 50% 28%, rgba(255, 61, 132, 0.07), transparent 70%);
  animation: breathe 14s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .5; }
  50%      { transform: scale(1.15); opacity: .85; }
}

#particles {
  position: fixed;
  inset: 0;
  /* за панелью, но заметны по краям экрана */
  z-index: 0;
  pointer-events: none;
}

/* зернистость поверх всего фона */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}

/* ---------- каркас ---------- */

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 468px;
  margin: 0 auto;
  padding: 22px 14px 40px;
}

.panel {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 26px 18px 22px;
  background:
    /* верхний отблеск — имитация отражения света */
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0.015) 80px,
      transparent 200px),
    /* боковые отражения — как стеклянная поверхность */
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.025) 0px,
      transparent 50px,
      transparent calc(100% - 50px),
      rgba(255, 255, 255, 0.02) 100%),
    var(--panel);
  border: 1px solid transparent;
  /* тень — глубокая, направленная вниз */
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.95),
    0 10px 30px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  isolation: isolate;
}

/* тонкая светящаяся рамка — через псевдоэлемент, анимированный glow */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 61, 132, 0.0);
  box-shadow:
    inset 0 0 0 1px rgba(255, 180, 220, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(255, 61, 132, 0.0);
  animation: borderGlow 4s ease-in-out infinite;
  z-index: 1;
}

/* нижняя тень-отражение на "поверхности" */
.panel::after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 10%;
  right: 10%;
  height: 22px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 61, 132, 0.14), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  border-radius: 50%;
  animation: reflectPulse 5s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 130, 190, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.10);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 61, 132, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 0 18px rgba(255, 61, 132, 0.08);
  }
}

@keyframes reflectPulse {
  0%, 100% { opacity: 0.4; transform: scaleX(0.88); }
  50%       { opacity: 0.75; transform: scaleX(1.0); }
}

/* ---- тонкая светящаяся рамка поверх панели ---- */
.panel-edges {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  /* рамка с неравномерной яркостью граней: верх ярче, низ темнее */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10) 0px, transparent 2px) top / 100% 2px no-repeat,
    linear-gradient(0deg,   rgba(255,61,132,0.08)  0px, transparent 2px) bottom / 100% 2px no-repeat,
    linear-gradient(90deg,  rgba(255,255,255,0.05) 0px, transparent 2px) left   / 2px 100% no-repeat,
    linear-gradient(270deg, rgba(255,255,255,0.05) 0px, transparent 2px) right  / 2px 100% no-repeat;
  border-radius: inherit;
  overflow: hidden;
}

/* блик — скользит по верхней грани */
.panel-edges::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 220, 240, 0.9), transparent);
  animation: topEdgeSweep 5s ease-in-out infinite;
}

/* блик по нижней грани — зеркально, медленнее */
.panel-edges::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -60%;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 61, 132, 0.5), transparent);
  animation: bottomEdgeSweep 7s ease-in-out 1s infinite;
}

@keyframes topEdgeSweep {
  0%   { left: -60%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}

@keyframes bottomEdgeSweep {
  0%   { right: -60%; opacity: 0; }
  15%  { opacity: 0.7; }
  85%  { opacity: 0.7; }
  100% { right: 110%; opacity: 0; }
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 12vw, 54px);
  letter-spacing: .11em;
  text-align: center;
  margin: 4px 0 2px;
  line-height: 1.1;
  /* градиент: белый сверху → розовый → акцент снизу */
  background: linear-gradient(
    175deg,
    #ffffff  0%,
    #fce8f3 22%,
    #ff9ece 48%,
    var(--accent) 78%,
    #c0185a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* мягкое, ненавязчивое свечение */
  filter:
    drop-shadow(0 0 6px rgba(255, 61, 132, 0.55))
    drop-shadow(0 0 18px rgba(255, 61, 132, 0.28))
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.85));
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 6px rgba(255, 61, 132, 0.5))
      drop-shadow(0 0 18px rgba(255, 61, 132, 0.25))
      drop-shadow(0 2px 3px rgba(0, 0, 0, 0.85));
  }
  50% {
    filter:
      drop-shadow(0 0 8px rgba(255, 61, 132, 0.75))
      drop-shadow(0 0 26px rgba(255, 61, 132, 0.4))
      drop-shadow(0 2px 3px rgba(0, 0, 0, 0.85));
  }
}

.tagline {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(255, 143, 199, 0.5);
  margin: 6px 0 22px;
  /* тонкие черточки по бокам */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.tagline::before,
.tagline::after {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 143, 199, 0.4));
  flex-shrink: 0;
}

.tagline::after {
  background: linear-gradient(90deg, rgba(255, 143, 199, 0.4), transparent);
}

/* ---------- герой ---------- */

.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 0 40px rgba(255, 61, 132, .16);
  background: #150610;
  aspect-ratio: 16 / 9;
}

.hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 61, 132, .06), rgba(10, 3, 8, .35));
  pointer-events: none;
}

.hero-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  text-shadow: 0 0 22px rgba(255, 61, 132, .5);
}

/* ---------- статы ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0 4px;
}

.stat {
  text-align: center;
  padding: 12px 6px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  color: #fff;
}

.stat span {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-mute);
}

/* ---------- блок пруфов ---------- */

.proof {
  margin-top: 16px;
  padding: 17px 15px 15px;
  border-radius: var(--radius);
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

.proof h2 {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 61, 132, 0.25);
}

.proof p {
  margin: 0 0 13px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ---------- кнопки ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn:active { transform: scale(.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ff6bb0 55%, var(--accent-2) 100%);
  box-shadow: 0 10px 30px rgba(255, 61, 132, .35);
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 38px rgba(255, 61, 132, .5);
}

.btn-ghost {
  background: linear-gradient(180deg, rgba(255, 61, 132, .26), rgba(255, 61, 132, .12));
  border: 1px solid rgba(255, 160, 208, .38);
  color: #ffe4f1;
}

.btn-ghost:hover {
  background: linear-gradient(180deg, rgba(255, 61, 132, .4), rgba(255, 61, 132, .18));
  border-color: rgba(255, 160, 208, .6);
  color: #fff;
}

/* ---------- разделитель секции ---------- */

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 2px 16px;
  font-size: 10.5px;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: rgba(255, 160, 208, 0.55);
  text-shadow: 0 0 10px rgba(255, 61, 132, 0.3);
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 143, 199, .4), transparent);
}

.section-note {
  margin: -6px 2px 14px;
  text-align: center;
  font-size: 12px;
  color: var(--text-mute);
}

/* ---------- карточки паков ---------- */

.packs { display: grid; gap: 14px; }

.pack {
  position: relative;
  padding: 16px 14px 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.pack:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
}

.pack.is-top {
  border-color: rgba(255, 61, 132, .75);
  background:
    linear-gradient(180deg, rgba(255, 61, 132, .16), rgba(255, 61, 132, 0) 62%),
    var(--card);
  box-shadow: 0 0 0 1px rgba(255, 61, 132, .3), 0 18px 55px rgba(255, 61, 132, .26);
}

.pack-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #2b0212;
  background: linear-gradient(135deg, #ffd0e5, var(--accent-2));
  box-shadow: 0 6px 18px rgba(255, 61, 132, .3);
}

.pack.is-top .pack-badge {
  background: linear-gradient(135deg, #fff, #ff9ecd);
}

.pack-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.pack-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.pack-price {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--accent-2);
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(255, 61, 132, .6), 0 0 8px rgba(255, 61, 132, .4);
}

.pack-sub {
  margin: 3px 0 0;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--text-mute);
}

.pack-features {
  list-style: none;
  margin: 12px 0 14px;
  padding: 13px;
  border-radius: var(--radius-sm);
  background: var(--card-inner);
  border: 1px solid rgba(255, 160, 208, .14);
  display: grid;
  gap: 9px;
}

.pack-features li {
  position: relative;
  padding-left: 25px;
  font-size: 13px;
  line-height: 1.42;
  color: var(--text-dim);
}

.pack-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 15px;
  height: 15px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(255, 61, 132, .45);
}

.pack-features li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 4px;
  height: 7px;
  border: solid #2b0212;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- доп. ссылки ---------- */

.links { display: grid; gap: 10px; margin-top: 18px; }

/* ---------- бесплатный пак ---------- */

.free {
  position: relative;
  display: block;
  margin-top: 18px;
  padding: 20px 18px 18px;
  border-radius: 22px;
  text-align: center;
  color: #fff;
  /* яркий насыщенный градиент — кнопка должна выделяться */
  background: linear-gradient(145deg, #ff1a6e 0%, #ff5fa0 40%, #ff2f7d 70%, #c4105a 100%);
  border: 1px solid rgba(255, 200, 230, 0.4);
  box-shadow:
    0 12px 40px rgba(255, 61, 132, 0.55),
    0 4px 15px rgba(255, 61, 132, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  animation: freePulse 3s ease-in-out infinite;
}

.free:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow:
    0 18px 55px rgba(255, 61, 132, 0.7),
    0 6px 20px rgba(255, 61, 132, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.free:active { transform: scale(.98); }

/* широкий белый блик — движется по кнопке */
.free::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 80%
  );
  animation: freeShimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}

/* внешнее рассеянное свечение под кнопкой */
.free::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 3px rgba(255, 61, 132, 0.0);
  animation: freeRing 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes freeShimmer {
  0%   { left: -100%; }
  60%  { left: 140%; }
  100% { left: 140%; }
}

@keyframes freePulse {
  0%, 100% {
    box-shadow:
      0 12px 40px rgba(255, 61, 132, 0.5),
      0 4px 15px rgba(255, 61, 132, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
  50% {
    box-shadow:
      0 14px 52px rgba(255, 61, 132, 0.75),
      0 4px 20px rgba(255, 61, 132, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

@keyframes freeRing {
  0%, 100% { box-shadow: 0 0 0 0px rgba(255, 61, 132, 0.0); }
  50%       { box-shadow: 0 0 0 5px rgba(255, 61, 132, 0.12); }
}

.free-icon { font-size: 26px; line-height: 1; }

.free-text {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.02em;
}

.free-sub {
  margin-top: 5px;
  font-size: 12px;
  color: rgba(255, 230, 242, 0.82);
  letter-spacing: 0.03em;
}

/* ---------- ��одвал ---------- */

.foot {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
  color: var(--text-mute);
}

.foot .copy {
  margin-top: 8px;
  letter-spacing: .18em;
  opacity: .55;
}

/* ---------- анимация появления ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .bg::after, .free { animation: none; }
}

@media (min-width: 520px) {
  .wrap { padding-top: 40px; }
}
