/* ============================================================
   css/presentation.css — презентационные (лендинг) страницы
   для выделяющихся продуктов: UnlockMyRoblox и GameNitro.
   Тема задаётся классом на <body>: .pres-umr / .pres-gn.
   ============================================================ */

.pres { color: var(--text); --pres-a: #a466ff; --pres-b: #8e53e1; }
.pres-umr { --pres-a: #34e0a1; --pres-b: #8e53e1; }   /* «разблокировка / open-source» */
.pres-gn  { --pres-a: #ff7a3d; --pres-b: #ff3d6e; }   /* «нитро / скорость» */

.pres-wrap { max-width: 1200px; margin: 0 auto; }

/* ============================================================
   HERO
   ============================================================ */
.pres-hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(36px, 6vw, 76px) clamp(24px, 5vw, 60px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(120% 140% at 80% 0%, rgba(142,83,225,0.18), transparent 60%),
              linear-gradient(160deg, #181027, #100a1a);
}
.pres-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.pres-blob {
  position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0.5;
  background: radial-gradient(circle, var(--pres-a), transparent 70%);
  animation: presFloat 14s ease-in-out infinite;
}
.pres-blob.b1 { width: 340px; height: 340px; top: -80px; right: -40px; }
.pres-blob.b2 { width: 280px; height: 280px; bottom: -100px; left: -30px;
  background: radial-gradient(circle, var(--pres-b), transparent 70%); animation-delay: -5s; }
@keyframes presFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(0,-26px) scale(1.06); }
}
/* Диагональные «скоростные» полосы — только для GameNitro */
.pres-gn .pres-streaks { position: absolute; inset: -20% -10%; z-index: 0; opacity: 0.25;
  background: repeating-linear-gradient(115deg, transparent 0 36px, rgba(255,122,61,0.5) 36px 38px);
  mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent);
  animation: presStreak 8s linear infinite;
}
@keyframes presStreak { to { transform: translateX(-76px); } }

.pres-hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: center;
}

.pres-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 18px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}
.pres-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pres-a); box-shadow: 0 0 12px var(--pres-a); }

.pres-title {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.05; margin: 0 0 16px; letter-spacing: -0.01em;
}
.pres-title .grad {
  background: linear-gradient(110deg, var(--pres-a), var(--pres-b));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.pres-lead { font-size: clamp(1.02rem, 1.6vw, 1.25rem); line-height: 1.6; color: rgba(234, 230, 247, 0.82); max-width: 560px; margin: 0 0 26px; }

.pres-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pres-cta .btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px;
  font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.pres-cta .btn svg { width: 19px; height: 19px; }
.pres-cta .btn.primary {
  background: linear-gradient(110deg, var(--pres-a), var(--pres-b));
  color: #0c0814; box-shadow: 0 14px 36px -8px var(--pres-a);
}
.pres-gn .pres-cta .btn.primary { color: #fff; }
.pres-cta .btn.primary:hover { transform: translateY(-3px); box-shadow: 0 20px 46px -8px var(--pres-a); }
.pres-cta .btn.outline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16); color: #fff;
}
.pres-cta .btn.outline:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

/* Иконка/арт продукта в hero */
.pres-hero-art { display: flex; align-items: center; justify-content: center; }
.pres-hero-art .art-frame {
  position: relative; width: 230px; height: 230px; border-radius: 36px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(0,0,0,0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px -20px var(--pres-a);
}
.pres-hero-art .art-frame::before {
  content: ''; position: absolute; inset: -2px; border-radius: 38px; z-index: -1;
  background: linear-gradient(140deg, var(--pres-a), transparent 50%, var(--pres-b));
  opacity: 0.6; filter: blur(8px);
}
.pres-hero-art img { width: 78%; height: 78%; object-fit: contain; border-radius: 22px; }

/* Полоса статистики */
.pres-stats {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 32px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.pres-stat { flex: 1 1 130px; }
.pres-stat .num {
  font-family: 'Wix Madefor Display', sans-serif; font-size: 1.7rem; font-weight: 700;
  background: linear-gradient(110deg, var(--pres-a), var(--pres-b));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.pres-stat .lbl { font-size: 0.85rem; color: rgba(234, 230, 247, 0.6); margin-top: 2px; }

/* ============================================================
   Секции
   ============================================================ */
.pres-section { margin-top: 56px; }
.pres-section-head { text-align: center; max-width: 680px; margin: 0 auto 30px; }
.pres-section-head h2 {
  font-family: 'Wix Madefor Display', sans-serif; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 10px;
}
.pres-section-head p { color: rgba(234, 230, 247, 0.7); line-height: 1.6; margin: 0; }
.pres-kicker {
  display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--pres-a); margin-bottom: 10px;
}

/* Появление при скролле */
/* Прогрессивное улучшение: прячем секции только если JS активен
   (на <html> добавлен класс .reveal-on). Без JS контент виден сразу. */
[data-reveal] { transition: opacity .6s ease, transform .6s ease; }
.reveal-on [data-reveal] { opacity: 0; transform: translateY(22px); }
.reveal-on [data-reveal].revealed { opacity: 1; transform: none; }

/* Сетка фич */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature-card {
  padding: 24px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--pres-a) 45%, transparent); box-shadow: 0 24px 50px -20px rgba(0,0,0,0.7); }
.feature-card .fc-ico {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, color-mix(in srgb, var(--pres-a) 30%, transparent), color-mix(in srgb, var(--pres-b) 22%, transparent));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}
.feature-card .fc-ico svg { width: 24px; height: 24px; }
.feature-card h3 { font-family: 'Wix Madefor Display', sans-serif; font-size: 1.12rem; margin: 0 0 8px; color: #fff; }
.feature-card p { margin: 0; color: rgba(234, 230, 247, 0.78); line-height: 1.55; font-size: 0.95rem; }

/* Шаги (как пользоваться / как работает) */
.pres-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: ps; }
.pres-step {
  position: relative; padding: 24px 22px 22px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07);
}
.pres-step::before {
  counter-increment: ps; content: counter(ps);
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px; margin-bottom: 14px;
  font-family: 'Wix Madefor Display', sans-serif; font-weight: 700; font-size: 1.1rem; color: #0c0814;
  background: linear-gradient(140deg, var(--pres-a), var(--pres-b));
}
.pres-gn .pres-step::before { color: #fff; }
.pres-step h3 { font-size: 1.05rem; margin: 0 0 6px; color: #fff; }
.pres-step p { margin: 0; color: rgba(234, 230, 247, 0.76); line-height: 1.5; font-size: 0.93rem; }

/* Showcase / скриншоты */
.pres-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pres-shot {
  border-radius: 16px; overflow: hidden; cursor: zoom-in;
  border: 1px solid rgba(255, 255, 255, 0.08); background: #0f0b12;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pres-shot:hover { transform: translateY(-5px); box-shadow: 0 22px 50px -18px rgba(0,0,0,0.7); border-color: color-mix(in srgb, var(--pres-a) 45%, transparent); }
.pres-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-group-title { margin: 26px 0 14px; font-weight: 700; color: rgba(234,230,247,0.85); display: flex; align-items: center; gap: 10px; }
.shot-group-title .ver {
  font-size: 0.78rem; padding: 3px 10px; border-radius: 20px;
  background: color-mix(in srgb, var(--pres-a) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--pres-a) 40%, transparent); color: #fff;
}

/* Чейнджлог в виде «таймлайна» */
.pres-changelog { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; counter-reset: cl; }
.pres-cl-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(234, 230, 247, 0.85); line-height: 1.5;
}
.pres-cl-item::before {
  counter-increment: cl; content: counter(cl);
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 800; color: #fff;
  background: linear-gradient(140deg, color-mix(in srgb, var(--pres-a) 60%, transparent), color-mix(in srgb, var(--pres-b) 50%, transparent));
}

/* Финальная CTA-полоса */
.pres-cta-band {
  margin-top: 60px; text-align: center;
  padding: clamp(36px, 5vw, 60px) 24px; border-radius: 24px; position: relative; overflow: hidden;
  background: radial-gradient(100% 160% at 50% 0%, color-mix(in srgb, var(--pres-a) 22%, transparent), transparent 60%),
              linear-gradient(160deg, #1a1029, #110b1b);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pres-cta-band h2 { font-family: 'Wix Madefor Display', sans-serif; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0 0 12px; }
.pres-cta-band p { color: rgba(234, 230, 247, 0.75); max-width: 560px; margin: 0 auto 24px; line-height: 1.6; }
.pres-cta-band .pres-cta { justify-content: center; }

/* Инфо-уведомление (легальность и т.п.) */
.pres-note {
  display: flex; gap: 12px; align-items: flex-start; max-width: 820px; margin: 22px auto 0;
  padding: 16px 18px; border-radius: 16px;
  background: color-mix(in srgb, var(--pres-a) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--pres-a) 30%, transparent);
}
.pres-note svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--pres-a); margin-top: 1px; }
.pres-note p { margin: 0; color: rgba(234, 230, 247, 0.88); line-height: 1.55; }

/* Хлебные крошки на тёмном hero-фоне */
.pres .breadcrumbs { margin-bottom: 20px; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 900px) {
  .pres-hero-inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .pres-lead { margin-left: auto; margin-right: auto; }
  .pres-cta { justify-content: center; }
  .pres-hero-art { order: -1; }
  .pres-hero-art .art-frame { width: 180px; height: 180px; }
}
@media (max-width: 480px) {
  .pres-cta .btn { flex: 1 1 100%; justify-content: center; }
  .pres-stats { gap: 10px; }
  .pres-stat { flex: 1 1 45%; }
}
