/* ============================================================
   NeuroPrivet — AI video greetings landing page
   Look and feel: "evening gala" — deep ink + gold + coral
   ============================================================ */

:root {
  --bg:        #0b0714;
  --bg-2:      #140a24;
  --panel:     #1a1030;
  --panel-2:   #211540;
  --text:      #f6f0ff;
  --muted:     #ab9fc7;
  --gold:      #ffc94d;
  --coral:     #ff4d7d;
  --cyan:      #37e6d2;
  --line:      rgba(255,255,255,0.09);
  --grad:      linear-gradient(100deg, var(--gold), var(--coral) 70%);
  --grad-soft: linear-gradient(135deg, rgba(255,201,77,.16), rgba(255,77,125,.16));
  --shadow:    0 30px 70px -30px rgba(0,0,0,.75);
  --radius:    22px;
  --maxw:      1160px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

h1, h2, h3, .brand__name {
  font-family: "Unbounded", "Onest", sans-serif;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

/* ---------- Decorative backgrounds ---------- */
.bg-glow {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(60% 45% at 15% 0%,  rgba(255,77,125,.30), transparent 60%),
    radial-gradient(55% 45% at 90% 8%,  rgba(255,201,77,.22), transparent 60%),
    radial-gradient(70% 60% at 50% 100%, rgba(55,230,210,.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 40%, var(--bg));
}
.bg-grain {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#confetti { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.confetti-piece {
  position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px;
  opacity: .8; animation: fall linear infinite;
}
@keyframes fall {
  0%   { transform: translateY(-10vh) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(720deg); }
}

/* ---------- Layout helpers ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 24px;
}
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.kicker {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
  padding: 6px 14px; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: 100px;
  background: var(--grad-soft);
}
.section__head h2 { font-size: clamp(2rem, 5vw, 3.1rem); }
.section__lead { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --pad: 15px 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad);
  font-family: "Onest", sans-serif; font-weight: 600; font-size: 1rem;
  border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
}
.btn--lg { --pad: 18px 34px; font-size: 1.08rem; }
.btn--sm { --pad: 10px 18px; font-size: .92rem; }
.btn, .btn--lg, .btn--sm {
  color: #1a0d06;
  background: var(--grad);
  box-shadow: 0 12px 30px -8px rgba(255,77,125,.55);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -8px rgba(255,77,125,.7); }
.btn--ghost, .btn--outline {
  color: var(--text); background: transparent; box-shadow: none;
  border-color: var(--line);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover, .btn--outline:hover {
  border-color: rgba(255,201,77,.6); transform: translateY(-3px); box-shadow: none;
}
.tg-icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- Header ----------
   The blurred bar must span the whole viewport, so .site-header stays
   full-width and an inner wrapper carries the max-width. Putting the
   max-width on the header itself made the backdrop stop at 1160px and
   leave bare page on both sides above ~1208px wide. */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11,7,20,.6); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  mask: linear-gradient(#000, #000);
}
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.brand__mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad); color: #1a0d06; font-size: 1rem;
  box-shadow: 0 6px 18px -6px rgba(255,201,77,.7);
}
.brand__name { font-size: 1.15rem; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: .96rem; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.site-header .btn--sm { margin-left: 0; }
.nav + .btn--sm { margin-left: 4px; }
.header-avito { margin-left: 4px; }

/* ---------- Hero ---------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 70px 24px 40px; text-align: center; }
.hero__inner { max-width: 820px; margin: 0 auto; }
.eyebrow {
  display: inline-block; color: var(--muted); font-weight: 500;
  padding: 8px 18px; border: 1px solid var(--line); border-radius: 100px;
  background: rgba(255,255,255,.03); margin-bottom: 28px; font-size: .95rem;
}
/* The floor has to stay small enough that "Поздравление," fits a 320px
   phone — at the old 2.6rem it was wider than the column and got clipped. */
.hero__title { font-size: clamp(1.6rem, 8vw, 5.3rem); margin-bottom: 26px; }
.hero__sub { color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.28rem); max-width: 620px; margin: 0 auto 38px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.stats {
  list-style: none; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  margin-top: 56px;
}
.stats li {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 30px; min-width: 150px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: var(--radius);
}
.stats b { font-family: "Unbounded", sans-serif; font-size: 1.9rem; color: var(--gold); }
.stats span { color: var(--muted); font-size: .9rem; margin-top: 2px; }

/* ---------- Marquee ---------- */
.marquee {
  margin-top: 64px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 26px; white-space: nowrap;
  animation: scroll 32s linear infinite; will-change: transform;
}
.marquee__track span {
  font-family: "Unbounded", sans-serif; font-weight: 500; font-size: 1.5rem; color: rgba(255,255,255,.42);
}
.marquee__track span:nth-child(even) { color: var(--coral); font-size: 1rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Video gallery ----------
   Thumbnails are square so vertical clips and widescreen video can sit in the
   same row without ragged edges. Each card opens the VK player in a modal. */
.ex-row { margin-bottom: 54px; }
.ex-row:last-child { margin-bottom: 0; }
.ex-row__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 18px;
}
.ex-row__title {
  font-family: "Onest", sans-serif; font-weight: 700; font-size: 1.25rem; letter-spacing: 0;
}
.ex-row__nav { display: flex; gap: 8px; flex: none; }
/* An author `display` declaration beats the UA rule behind the hidden
   attribute, so [hidden] has to be restated here or JS toggling it does
   nothing at all. */
.ex-row__nav[hidden] { display: none; }
.ex-arrow {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text);
  font-size: 1.3rem; line-height: 1; display: grid; place-items: center;
  transition: border-color .2s, background .2s, opacity .2s;
}
.ex-arrow:hover:not(:disabled) { border-color: rgba(255,201,77,.6); background: rgba(255,255,255,.09); }
.ex-arrow:disabled { opacity: .28; cursor: default; }

/* Featured examples get bigger cards and no scrolling — they are the pitch. */
.ex-featured { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* The right-edge fade hints that there is more to scroll, so JS clears it
   (--fade: 0) once the track is at its end or does not overflow at all —
   otherwise the last card would sit there permanently faded. */
.ex-track {
  --fade: 40px;
  display: flex; gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 10px;
  scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, #000 0, #000 calc(100% - var(--fade)), transparent);
          mask: linear-gradient(90deg, #000 0, #000 calc(100% - var(--fade)), transparent);
}
.ex-track::-webkit-scrollbar { display: none; }
/* A two-card row left-aligned in a 1112px track reads as truncated, so rows
   that fit get centred. Only ever applied when there is nothing to scroll —
   centring an overflowing scroller makes its start unreachable. */
.ex-track--fits { justify-content: center; }
.ex-track:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 8px; }
.ex-track .ex-card { flex: 0 0 236px; scroll-snap-align: start; }

.ex-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 0; border: 0; background: none; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
}
.ex-card__media {
  position: relative; display: block; aspect-ratio: 1 / 1;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform .3s ease, border-color .3s ease;
}
.ex-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ex-card__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(11,7,20,0) 45%, rgba(11,7,20,.55));
  transition: background .3s ease;
}
.ex-card__play svg {
  width: 54px; height: 54px; fill: #1a0d06; flex: none;
  background: var(--grad); border-radius: 50%; padding: 15px;
  box-shadow: 0 10px 26px -8px rgba(255,77,125,.75);
  transform: scale(.92); transition: transform .3s ease;
}
.ex-card:hover .ex-card__media, .ex-card:focus-visible .ex-card__media {
  transform: translateY(-6px); border-color: rgba(255,201,77,.45);
}
.ex-card:hover .ex-card__play svg { transform: scale(1); }
.ex-card:focus-visible { outline: none; }
.ex-card:focus-visible .ex-card__media { outline: 2px solid var(--gold); outline-offset: 3px; }
.ex-card__title { color: var(--muted); font-size: .95rem; line-height: 1.35; }
.ex-card--big .ex-card__title { color: var(--text); font-size: 1.05rem; font-weight: 600; }

/* ---------- Video modal ---------- */
.ex-lock { overflow: hidden; }
.ex-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.ex-modal[hidden] { display: none; }
.ex-modal__backdrop { position: absolute; inset: 0; background: rgba(6,3,12,.82); backdrop-filter: blur(6px); }
/* The whole box — heading row included — is sized to the video, so the title
   and close button stay flush with the player. Sizing only the frame left them
   stretched across 940px while a 9:16 clip sat 368px wide in the middle. */
.ex-modal__box {
  --r: 16 / 9;
  --ar: 1.7778;
  position: relative;
  width: min(94vw, 940px, calc(76vh * var(--ar)));
  display: flex; flex-direction: column; gap: 12px;
}
.ex-modal__head { display: flex; align-items: center; gap: 14px; }
.ex-modal__title {
  font-family: "Onest", sans-serif; font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0; color: var(--text); flex: 1; min-width: 0;
}
.ex-modal__close {
  flex: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--text);
  font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
  transition: border-color .2s, background .2s;
}
.ex-modal__close:hover { border-color: rgba(255,201,77,.6); background: rgba(255,255,255,.14); }
.ex-modal__close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* JS sets --r (e.g. 9/16) and --ar (the same as a decimal) on the box per
   video; the frame just fills it at that ratio. */
.ex-modal__frame {
  position: relative; width: 100%;
  aspect-ratio: var(--r);
  border-radius: var(--radius); overflow: hidden;
  background: #000; border: 1px solid var(--line);
}
.ex-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- How it works ---------- */
.section--how { position: relative; }
.steps {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  counter-reset: step;
}
.step {
  padding: 30px 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.step::after {
  content: ""; position: absolute; top: -40px; right: -40px; width: 120px; height: 120px;
  background: var(--grad-soft); filter: blur(20px); border-radius: 50%;
}
.step__num {
  font-family: "Unbounded", sans-serif; font-weight: 900; font-size: 2.4rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 14px;
}
.step h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; font-family: "Onest", sans-serif; letter-spacing: 0; }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- Pricing ---------- */
/* Cards stretch to the tallest one (grid default) so their edges line up
   regardless of how many feature bullets each plan has. */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan {
  position: relative; padding: 38px 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.plan--featured {
  border-color: transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 30px 70px -34px rgba(255,77,125,.6);
  transform: translateY(-8px);
}
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #1a0d06; font-weight: 700; font-size: .78rem;
  padding: 6px 16px; border-radius: 100px; white-space: nowrap;
}
.plan__name { font-family: "Onest", sans-serif; font-weight: 700; font-size: 1.3rem; letter-spacing: 0; margin-bottom: 10px; }
.plan__price { font-family: "Unbounded", sans-serif; font-weight: 900; font-size: 2.8rem; margin-bottom: 22px; }
.plan__price span { font-size: 1.4rem; color: var(--muted); margin-right: 4px; vertical-align: super; }
.plan__feats { list-style: none; margin-bottom: 28px; display: grid; gap: 12px; }
.plan__feats li { position: relative; padding-left: 28px; color: var(--muted); }
.plan__feats li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 700;
}
/* margin-top:auto pins the CTA to the bottom of every card */
.plan .btn { width: 100%; margin-top: auto; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  padding: 30px 28px; border-radius: var(--radius);
  background: rgba(255,255,255,.035); border: 1px solid var(--line);
}
.review__stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; }
.review p { font-size: 1.05rem; margin-bottom: 18px; }
.review footer { color: var(--muted); font-size: .94rem; }

/* ---------- Final CTA ---------- */
.final-cta { max-width: var(--maxw); margin: 40px auto 96px; padding: 0 24px; }
.final-cta__inner {
  text-align: center; padding: 72px 32px; border-radius: 34px;
  background: var(--grad-soft); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.final-cta__inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 120% at 50% 0%, rgba(255,201,77,.22), transparent 70%);
}
.final-cta h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.final-cta p { color: var(--muted); margin-bottom: 32px; font-size: 1.1rem; max-width: 560px; margin-inline: auto; }
.final-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 60px;
  border-top: 1px solid var(--line); text-align: center;
}
.site-footer__row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-bottom: 26px;
}
.footer-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
/* Vertical padding brings the touch target to 44px without moving the text. */
.footer-tg {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 10px;
  color: var(--muted); transition: color .2s;
}
.footer-tg:hover { color: var(--gold); }
.disclaimer { color: var(--muted); font-size: .82rem; max-width: 620px; margin: 0 auto 12px; opacity: .8; }
.copyright { color: var(--muted); font-size: .85rem; }

/* ---------- Entrance animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.in[data-delay="1"] { transition-delay: .08s; }
.reveal.in[data-delay="2"] { transition-delay: .16s; }
.reveal.in[data-delay="3"] { transition-delay: .24s; }
.reveal.in[data-delay="4"] { transition-delay: .32s; }
.reveal.in[data-delay="5"] { transition-delay: .40s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .header-avito { margin-left: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .plan--featured { transform: none; }
  .reviews { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 68px 20px; }
  .steps { grid-template-columns: 1fr; }
  .stats { gap: 12px; }
  .stats li { min-width: 0; flex: 1; padding: 16px; }
  .site-header__inner { gap: 12px; }
  /* No room for both header buttons on phones; Avito stays reachable
     from the final CTA and the footer. */
  .header-avito { display: none; }
  .ex-featured { grid-template-columns: 1fr; }
  /* Leave a sliver of the next card visible so the row reads as scrollable. */
  .ex-track .ex-card { flex-basis: 62vw; }
  .ex-row__title { font-size: 1.1rem; }
  .final-cta__inner { padding: 52px 22px; }
  .final-cta__actions .btn { width: 100%; }
}

/* Under ~380px the brand plus a labelled Telegram button no longer fit the
   header, so the button goes icon-only rather than overflow the viewport.
   Its aria-label keeps it announced as "Telegram". */
@media (max-width: 380px) {
  .header-tg { --pad: 11px; }
  .header-tg__label { display: none; }
}

/* Touch devices swipe the rows; the arrows would just be dead tab stops. */
@media (hover: none) {
  .ex-row__nav { display: none; }
}

/* ---------- Accessibility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
