/* ============================================================
   B9NEW.PK — Home page styles
   Hero, device mockup, marquee, steps, screenshots slider,
   OG banner showcase, bonus cards.
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero__copy { position: relative; z-index: 2; max-width: 620px; }
.hero__title {
  font-size: var(--fs-hero);
  line-height: 1.02;
  margin: 1.2rem 0 1.3rem;
}
.hero__title span { display: block; }
.hero__lead { font-size: var(--fs-lead); color: var(--text-2); max-width: 52ch; }
.hero__cta { margin-top: 2rem; }
.hero__trust {
  margin-top: 2.4rem;
  display: flex; flex-wrap: wrap; gap: 1.4rem 2rem;
  align-items: center;
}
.hero__trust-item { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--text-muted); }
.hero__trust-item svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.hero__keywords { margin-top: 1.6rem; font-size: .8rem; color: var(--text-faint); }
.hero__keywords span { color: var(--accent-3); }

/* ---------- DEVICE MOCKUP ---------- */
.hero__stage {
  position: relative;
  display: grid; place-items: center;
  min-height: 540px;
  z-index: 1;
}
.device {
  position: relative;
  width: clamp(240px, 27vw, 320px);
  aspect-ratio: 497 / 947;
  border-radius: 42px;
  padding: 12px;
  background:
    linear-gradient(160deg, #1a3b28, #05130b);
  border: 1px solid rgba(0,230,118,.25);
  box-shadow:
    0 40px 90px rgba(0,0,0,.6),
    0 0 60px rgba(0,230,118,.18),
    inset 0 1px 0 rgba(255,255,255,.12);
  z-index: 3;
  animation: float-device 6s var(--ease) infinite alternate;
}
.device--static { animation: none; }
@keyframes float-device {
  from { transform: translateY(-10px) rotate(-1deg); }
  to   { transform: translateY(10px) rotate(1deg); }
}
.device__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #0b0b0f;
  border: 1px solid rgba(0,0,0,.6);
}
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device__notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 38%; height: 20px; border-radius: 0 0 14px 14px;
  background: #05130b; z-index: 4;
}
.device__glare {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.14) 0%, transparent 30%, transparent 70%, rgba(255,255,255,.05) 100%);
  mix-blend-mode: screen;
}

/* floating accent chips around the device */
.hero__float {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1rem; border-radius: var(--r-md);
  background: rgba(8,24,15,.72);
  border: 1px solid var(--glass-border-strong);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md), var(--glow-soft);
  font-family: var(--font-display); font-weight: 600; font-size: .82rem; color: var(--text);
  white-space: nowrap;
}
.hero__float svg, .hero__float .dot { width: 26px; height: 26px; flex-shrink: 0; }
.hero__float .dot {
  border-radius: 8px; display: grid; place-items: center;
  background: var(--grad-accent-soft); color: var(--accent);
}
.hero__float small { display: block; font-size: .68rem; color: var(--text-muted); font-weight: 500; font-family: var(--font-body); }
.hero__float--1 { top: 12%; left: -4%; animation: floaty 5s var(--ease) infinite alternate; }
.hero__float--2 { bottom: 20%; right: -6%; animation: floaty 6.5s var(--ease) infinite alternate-reverse; }
.hero__float--3 { bottom: 6%; left: 6%; animation: floaty 5.8s var(--ease) infinite alternate; }
@keyframes floaty { from { transform: translateY(-8px); } to { transform: translateY(8px); } }

.hero__ring {
  position: absolute; z-index: 0;
  width: 118%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(0,230,118,.22);
  animation: spin 40s linear infinite;
}
.hero__ring--2 { width: 92%; border-style: dotted; animation-duration: 30s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__halo {
  position: absolute; z-index: 0;
  width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,230,118,.28), transparent 62%);
  filter: blur(30px);
}

@media (prefers-reduced-motion: reduce) {
  .device, .hero__float, .hero__ring { animation: none; }
}

/* ---------- MARQUEE / provider strip ---------- */
.marquee {
  border-block: 1px solid var(--hairline);
  padding-block: 1.6rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex; gap: 3rem; width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--text-muted); white-space: nowrap;
}
.marquee__item svg { width: 20px; height: 20px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); counter-reset: step; }
.step {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.3rem, 2.5vw, 1.7rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-border);
  background: var(--grad-panel);
  overflow: hidden;
}
.step__num {
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem;
  line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px var(--glass-border-strong);
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step p { font-size: var(--fs-sm); }
.step::after {
  content: ""; position: absolute; top: 2.1rem; right: -14px;
  width: 28px; height: 28px; color: var(--accent);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .4;
}
.step:last-child::after { display: none; }

/* ---------- FEATURES grid ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.2vw, 1.5rem); }
.feature h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.feature p { font-size: var(--fs-sm); }

/* ---------- SCREENSHOTS SLIDER ---------- */
.shots {
  position: relative;
}
.shots__stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 560px;
  outline: none;
}
.slider__viewport {
  position: relative;
  width: clamp(250px, 30vw, 320px);
  aspect-ratio: 497 / 947;
  perspective: 1400px;
  overflow: hidden;
  border-radius: 40px;
  /* frame glow lives here (not on the slides) so clipping the
     off-stage coverflow slides never cuts off the visible glow */
  box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 60px rgba(0,230,118,.2);
}
.slider__track { position: absolute; inset: 0; transform-style: preserve-3d; }
.slider__slide {
  position: absolute; inset: 0;
  border-radius: 40px; padding: 11px;
  background: linear-gradient(160deg, #1a3b28, #05130b);
  border: 1px solid rgba(0,230,118,.22);
  opacity: 0;
  transform: translateX(60%) scale(.8) rotateY(-18deg);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease), filter var(--dur-slow) var(--ease);
  filter: brightness(.5);
  pointer-events: none;
}
.slider__slide.is-active {
  opacity: 1; transform: none; filter: none;
  pointer-events: auto;
}
.slider__slide img { width: 100%; height: 100%; border-radius: 30px; object-fit: cover; object-position: top; }

.slider__controls { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-top: 2rem; }
.slider__btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--glass-border); background: var(--glass);
  color: var(--text); backdrop-filter: blur(10px);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}
.slider__btn:hover { color: var(--accent); border-color: var(--glass-border-strong); box-shadow: var(--glow-soft); transform: scale(1.06); }
.slider__btn svg { width: 22px; height: 22px; }
.slider__dots { display: flex; gap: .5rem; }
.slider__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--glass-border-strong); border: none;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), width var(--dur) var(--ease);
}
.slider__dot.is-active { background: var(--accent); width: 26px; border-radius: var(--r-pill); box-shadow: var(--glow-soft); }

.shots__aside { max-width: 380px; }
.shots__list { margin-top: 1.6rem; }

@media (max-width: 980px) {
  .shots__stage { flex-direction: column; }
  .shots__aside { max-width: 640px; text-align: center; margin-inline: auto; }
  .shots__aside .check-list { display: inline-flex; text-align: left; }
}

/* ---------- OG BANNER SHOWCASE ---------- */
.ogshow {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--shadow-lg), var(--glow-soft);
}
.ogshow img { width: 100%; height: auto; display: block; }
.ogshow__frame { position: relative; }
.ogshow__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0,230,118,.18), inset 0 -80px 90px -40px rgba(6,17,9,.85);
}
.ogshow__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.2rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(6,17,9,.2), rgba(6,17,9,.75));
  border-top: 1px solid var(--hairline);
}
.ogshow__cta h3 { font-size: clamp(1.2rem, 2.4vw, 1.7rem); }
.ogshow__cta p { font-size: var(--fs-sm); margin-top: .3rem; }

/* ---------- BONUS cards ---------- */
.bonus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.2vw, 1.5rem); }
.bonus {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid var(--glass-border);
  background: var(--grad-panel);
}
.bonus--featured { border-color: var(--glass-border-strong); box-shadow: var(--glow-soft); }
.bonus__tag { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-3); }
.bonus__amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3rem); color: var(--text); line-height: 1; margin: .6rem 0 .2rem; }
.bonus__amount span { font-size: 1.1rem; color: var(--gold); }
.bonus p { font-size: var(--fs-sm); margin-top: .8rem; }

/* ---------- Telegram band ---------- */
.tg-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid rgba(41,182,246,.3);
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(41,182,246,.22), transparent 55%),
    var(--grad-panel);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.tg-band__icon {
  width: 64px; height: 64px; border-radius: 20px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #29B6F6, #1976D2);
  box-shadow: 0 12px 30px rgba(25,118,210,.4);
}
.tg-band__icon svg { width: 34px; height: 34px; color: #fff; }
.tg-band__text { flex: 1 1 320px; }
.tg-band__text h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
.tg-band__text p { margin-top: .6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { max-width: 640px; margin-inline: auto; text-align: center; }
  .hero__cta .btn-row, .hero__trust { justify-content: center; }
  .hero__stage { min-height: 480px; margin-top: 1rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .bonus-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__float { display: none; }
}
