/* ===== Variables ===== */
:root {
  --bg: #0a0a0f;
  --primary: #ff2d55;
  --accent: #ff2d55;
  --glow: rgba(255, 45, 85, 0.35);
  --glow-strong: rgba(255, 45, 85, 0.55);
  --text: #ffffff;
  --muted: #8a8a9a;
  --card: #111119;
  --border: #1a1a28;
  --radius: 16px;
  --radius-sm: 10px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}

.nav--scrolled {
  background: rgba(10, 10, 15, 0.92);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 20px;
}

.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex: 1;
}

.nav__link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  transition: color 0.2s;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.nav__link:hover {
  color: #fff;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-toggle {
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: rgba(255,255,255,.6);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: border-color 0.2s, color 0.2s;
}

.lang-toggle:hover {
  border-color: rgba(255,255,255,.3);
  color: #fff;
}

.nav__cta {
  display: none;
  padding: 6px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.3px;
  animation: nav-cta-pulse 2s ease-in-out infinite;
}

@keyframes nav-cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(255, 45, 85, 0); }
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 28px;
  height: 28px;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Video wrapper — takes top portion */
.hero__video-wrap {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fade from video into background */
.hero__video-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* Content block overlaps the fade zone */
.hero__content {
  position: relative;
  z-index: 2;
  margin-top: -20vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 32px 80px;
  gap: 24px;
}

.hero__logo {
  max-width: 300px;
  height: auto;
  animation: fadeInUp 0.8s ease both;
  filter: drop-shadow(0 0 30px rgba(255, 45, 85, 0.2));
}

.hero__title {
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 800;
  font-style: italic;
  line-height: 1.05;
  margin: 0;
  animation: fadeInUp 0.8s ease 0.15s both;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  max-width: 800px;
}

.hero__sub {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,.6);
  max-width: 550px;
  margin: 0;
  animation: fadeInUp 0.8s ease 0.3s both;
  line-height: 1.5;
}

/* ===== CTA Button ===== */
.btn--cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 16px 40px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s, background 0.2s;
  animation: fadeInUp 0.8s ease 0.45s both;
}

.btn--cta:hover {
  box-shadow: 0 4px 30px var(--glow-strong), 0 0 60px var(--glow);
  transform: translateY(-2px);
  background: #ff3d62;
}

/* ===== Ticker ===== */
.ticker {
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  margin-top: 32px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.ticker__track {
  display: flex;
  gap: 48px;
  animation: tickerScroll 20s linear infinite;
  width: max-content;
}

.ticker__item {
  color: rgba(255,255,255,.25);
  font-size: 12px;
  white-space: nowrap;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Sections ===== */
.section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
  align-items: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Text */
.section__text h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  margin: 0 0 24px;
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.section__text li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 14px;
  color: rgba(255,255,255,.55);
  font-size: 15px;
  line-height: 1.6;
}

.section__text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--glow);
}

/* Demo containers — floating, no border */
.section__demo {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  position: relative;
  box-shadow:
    0 4px 24px rgba(0,0,0,.4),
    0 0 0 1px rgba(255,255,255,.04),
    0 20px 60px -10px var(--glow);
}

/* ===== Pricing ===== */
.pricing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 32px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.pricing.visible {
  opacity: 1;
  transform: translateY(0);
}

.pricing__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.pricing__sub {
  color: rgba(255,255,255,.5);
  font-size: 17px;
  margin: 0 0 48px;
}

@media (max-width: 768px) {
  .pricing {
    padding: 60px 20px;
  }
}

/* ===== Showcase (video demos) ===== */
.showcase {
  padding: 60px 32px;
  text-align: center;
}

.showcase__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.showcase__sub {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 48px;
}

.showcase__grid {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 32px 20px;
  max-width: 100%;
  justify-content: center;
  flex-wrap: nowrap;
}

.showcase__grid::-webkit-scrollbar {
  display: none;
}

.showcase__card {
  scroll-snap-align: center;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.showcase__label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

/* iPhone 14 Pro frame (CSS only) */
.iphone-frame {
  position: relative;
  width: 220px;
  height: 476px;
  background: #1c1c1e;
  border: 4px solid #3a3a3c;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #000, 0 20px 60px rgba(0, 0, 0, 0.5);
}

.iphone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 16px;
  background: #1c1c1e;
  border-radius: 20px;
  z-index: 5;
}

.iphone-screen {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  border-radius: 36px;
  display: block;
}

.iphone-home {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  z-index: 5;
}

.iphone-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.iphone-play.hidden {
  opacity: 0;
  pointer-events: none;
}

.iphone-play:hover {
  background: rgba(255, 45, 85, 0.7);
  border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Active (playing) phone glow */
.iphone-frame.playing {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px #000, 0 0 30px rgba(255, 45, 85, 0.3), 0 0 60px rgba(255, 45, 85, 0.15);
}

@media (max-width: 1100px) {
  .showcase__grid {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .showcase__grid {
    gap: 20px;
    padding: 0 16px 20px;
  }
  .iphone-frame {
    width: 180px;
    height: 390px;
    border-radius: 32px;
  }
  .iphone-screen {
    border-radius: 28px;
  }
}

/* ===== Benefits ===== */
.benefits {
  padding: 40px 32px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.benefits__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 48px;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefits__item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.3s, background 0.3s;
}

.benefits__item:hover {
  border-color: rgba(255, 45, 85, 0.3);
  background: rgba(255, 45, 85, 0.03);
}

.benefits__item--accent {
  grid-column: 1 / -1;
  border-color: var(--accent);
  background: rgba(255, 45, 85, 0.05);
  box-shadow: 0 0 30px rgba(255, 45, 85, 0.1);
}

.benefits__icon {
  font-size: 28px;
  margin-bottom: 14px;
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
}

.benefits__item h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.benefits__item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .benefits__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .benefits__item {
    padding: 20px;
  }
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 80px 32px 60px;
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, #0d0d14 100%);
}

.footer__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.footer__sub {
  color: rgba(255,255,255,.5);
  font-size: 17px;
  margin: 0 0 36px;
}

.footer .btn--cta {
  animation: none;
}

.footer__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
  margin: 0 auto;
}

.btn--outline {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  background: transparent;
  transition: border-color 0.2s, background 0.2s;
}

.btn--outline:hover {
  border-color: var(--accent);
  background: rgba(255, 45, 85, 0.08);
}

.footer__contacts {
  margin-top: 28px;
}

.footer__email {
  color: rgba(255,255,255,.4);
  font-size: 14px;
  transition: color 0.2s;
}

.footer__email:hover {
  color: var(--accent);
}

.footer__bottom {
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,.2);
  font-size: 12px;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Shimmer (переливание на кнопках) --- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.btn--cta {
  background: linear-gradient(
    110deg,
    var(--primary) 0%,
    var(--primary) 35%,
    #ff6b8a 50%,
    var(--primary) 65%,
    var(--primary) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite, fadeInUp 0.8s ease 0.45s both;
}

.footer .btn--cta {
  animation: shimmer 3s ease-in-out infinite;
}

/* --- Stagger (каскадное появление списков) --- */
.section__text li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.visible .section__text li {
  opacity: 1;
  transform: translateY(0);
}

.section.visible .section__text li:nth-child(1) { transition-delay: 0.1s; }
.section.visible .section__text li:nth-child(2) { transition-delay: 0.2s; }
.section.visible .section__text li:nth-child(3) { transition-delay: 0.3s; }
.section.visible .section__text li:nth-child(4) { transition-delay: 0.4s; }
.section.visible .section__text li:nth-child(5) { transition-delay: 0.5s; }

/* --- Fade-up для всех блоков (showcase, benefits, pricing, footer) --- */
.showcase,
.benefits,
.footer {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.showcase.visible,
.benefits.visible,
.footer.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Stagger для карточек benefits --- */
.benefits__item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, background 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.benefits.visible .benefits__item {
  opacity: 1;
  transform: translateY(0);
}

.benefits.visible .benefits__item:nth-child(1) { transition-delay: 0.05s; }
.benefits.visible .benefits__item:nth-child(2) { transition-delay: 0.1s; }
.benefits.visible .benefits__item:nth-child(3) { transition-delay: 0.15s; }
.benefits.visible .benefits__item:nth-child(4) { transition-delay: 0.2s; }
.benefits.visible .benefits__item:nth-child(5) { transition-delay: 0.25s; }
.benefits.visible .benefits__item:nth-child(6) { transition-delay: 0.3s; }
.benefits.visible .benefits__item:nth-child(7) { transition-delay: 0.35s; }

/* --- Hover glow на карточках benefits --- */
.benefits__item:hover {
  border-color: rgba(255, 45, 85, 0.4);
  background: rgba(255, 45, 85, 0.05);
  box-shadow: 0 0 30px rgba(255, 45, 85, 0.1), 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* --- Pulse на иконках benefits --- */
@keyframes iconPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.benefits__icon {
  animation: iconPulse 3s ease-in-out infinite;
}

/* --- Stagger для showcase карточек --- */
.showcase__card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.showcase.visible .showcase__card {
  opacity: 1;
  transform: translateY(0);
}

.showcase.visible .showcase__card:nth-child(1) { transition-delay: 0.05s; }
.showcase.visible .showcase__card:nth-child(2) { transition-delay: 0.1s; }
.showcase.visible .showcase__card:nth-child(3) { transition-delay: 0.15s; }
.showcase.visible .showcase__card:nth-child(4) { transition-delay: 0.2s; }
.showcase.visible .showcase__card:nth-child(5) { transition-delay: 0.25s; }

/* --- Hover glow на iPhone фреймах --- */
.iphone-frame {
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.iphone-frame:hover {
  border-color: rgba(255, 45, 85, 0.4);
  box-shadow: 0 0 0 1px #000, 0 0 30px rgba(255, 45, 85, 0.2), 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

/* --- Shimmer на заголовках секций --- */
@keyframes titleShimmer {
  0% { background-position: -100% center; }
  100% { background-position: 200% center; }
}

.showcase__title,
.benefits__title,
.pricing__title,
.footer__title {
  background: linear-gradient(
    110deg,
    #fff 0%,
    #fff 40%,
    rgba(255, 45, 85, 0.8) 50%,
    #fff 60%,
    #fff 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShimmer 4s ease-in-out infinite;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.97);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__right {
    margin-left: auto;
  }

  .burger {
    display: flex;
  }

  .nav__cta {
    display: inline-block;
  }

  .section {
    grid-template-columns: 1fr;
    padding: 60px 20px;
    gap: 28px;
  }

  .section__text {
    order: 1;
  }

  .section__demo {
    order: 2;
    height: 400px;
  }

  .section__text h2 {
    font-size: clamp(22px, 6vw, 30px);
    margin-bottom: 16px;
  }

  .section__text li {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .hero__video-wrap {
    height: 50vh;
  }

  .hero__content {
    margin-top: -15vh;
    padding: 0 20px 60px;
  }

  .hero__logo {
    max-width: 200px;
  }

  .hero__title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .footer {
    padding: 80px 20px 60px;
  }
}
