/* ========== ПЕРЕМЕННЫЕ ДЛЯ ЛЁГКОГО ДВИЖЕНИЯ И МАСШТАБА ========== */
:root {
  /* HERO (1 страница) */
  --hero-title-x: 6%;
  --hero-title-y: 16%;
  --hero-title-scale: 1;

  --hero-buy-x: 22%;
  --hero-buy-y: 60%;
  --hero-buy-scale: 1;

  --hero-hippo-x: 74%;
  --hero-hippo-y: 67%;
  --hero-hippo-scale: 1.9;

  --hero-scroll-hint-y: 94%;

  /* ABOUT (2 страница) */
  --about-hippo-x: 74%;
  --about-hippo-y: 4%;
  --about-hippo-scale: 1.7;

  /* SOCIALS (3 страница) */
  --socials-title-y: 12%;
  --socials-text-y: 22%;
  --cta-row-y: 45%;
  --qa-row-y: 68%;
}

@media (max-width: 900px) {
  :root {
    --hero-title-x: 50%;
    --hero-title-y: 10%;
    --hero-title-scale: 0.85;

    --hero-buy-x: 50%;
    --hero-buy-y: 55%;
    --hero-buy-scale: 0.9;

    --hero-hippo-x: 50%;
    --hero-hippo-y: 78%;
    --hero-hippo-scale: 0.85;

    --about-hippo-x: 50%;
    --about-hippo-y: 26%;
    --about-hippo-scale: 0.9;

    --socials-title-y: 9%;
    --socials-text-y: 17%;
    --cta-row-y: 42%;
    --qa-row-y: 70%;
  }
}

/* ========== БАЗА ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #ffffff;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.page-wrapper {
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
}

section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  z-index: 0;
}

/* ========== КНОПКИ (единый стиль) ========== */
.btn {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 10px 22px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  color: #fdfdfd;
  background: radial-gradient(circle at 20% 0%, #ffffff22 0%, #000000aa 45%, #000000ee 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,0.6);
  transform: translateZ(0);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    filter 0.18s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.03) rotate(-1deg);
  box-shadow: 0 16px 34px rgba(0,0,0,0.75);
  background: radial-gradient(circle at 20% 0%, #ffffff44 0%, #000000dd 60%, #000000ff 100%);
  filter: brightness(1.03);
}

.btn:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 7px 16px rgba(0,0,0,0.8);
}

/* навигация */
.top-nav {
  position: fixed;
  top: 20px;
  left: 40px;
  z-index: 20;
  display: flex;
  gap: 14px;
  align-items: center;
  pointer-events: none;
}

.btn-nav {
  pointer-events: auto;
  font-size: 15px;
  padding: 8px 20px;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 0%, #ffffff33 0%, #000000bb 60%, #000000 100%);
}

@media (max-width: 600px) {
  .top-nav {
    left: 12px;
    right: 12px;
  }
  .btn-nav {
    font-size: 13px;
    padding: 6px 14px;
  }
}

/* основные CTA / BUY */
.btn-main {
  background: linear-gradient(135deg, #32bfff, #278dff);
  color: #041322;
  border-color: #0f5aa1;
  box-shadow: 0 12px 0 #0f5aa1, 0 18px 40px rgba(0,0,0,0.6);
}

.btn-main:hover {
  background: linear-gradient(135deg, #5fd5ff, #37a6ff);
  border-color: #0c4b87;
  box-shadow: 0 16px 0 #0c4b87, 0 24px 50px rgba(0,0,0,0.7);
}

.btn-main:active {
  box-shadow: 0 6px 0 #0c4b87, 0 12px 22px rgba(0,0,0,0.7);
}

/* ========== 1 СТРАНИЦА (HERO) ========== */
.hero-section {
  background: url("bg_hero.jpg") center center / cover no-repeat;
}

.hero-title {
  position: absolute;
  left: var(--hero-title-x);
  top: var(--hero-title-y);
  transform: translate(0, 0) scale(var(--hero-title-scale));
  max-width: 40%;
  z-index: 1;
}

.hero-title img {
  width: 100%;
  height: auto;
  display: block;
}

.buy-btn {
  position: absolute;
  left: var(--hero-buy-x);
  top: var(--hero-buy-y);
  transform: translate(-50%, -50%) scale(var(--hero-buy-scale)) rotate(-7deg);
  padding: 18px 80px;
  font-size: 30px;
  z-index: 1;
}

.buy-btn:hover {
  transform: translate(-50%, -52%) scale(1.04) rotate(-5deg);
}

.buy-btn:active {
  transform: translate(-50%, -46%) scale(0.97) rotate(-6deg);
}

.hero-hippo {
  position: absolute;
  left: var(--hero-hippo-x);
  top: var(--hero-hippo-y);
  transform: translate(-50%, -50%) scale(var(--hero-hippo-scale));
  width: 460px;
  max-width: 40vw;
  animation: breathe 4s ease-in-out infinite;
  z-index: 1;
}

.hero-hippo img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes breathe {
  0%   { transform: translate(-50%, -50%) scale(var(--hero-hippo-scale)); }
  50%  { transform: translate(-50%, -51%) scale(calc(var(--hero-hippo-scale) * 1.02)); }
  100% { transform: translate(-50%, -50%) scale(var(--hero-hippo-scale)); }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  top: var(--hero-scroll-hint-y);
  transform: translateX(-50%);
  font-size: 18px;
  color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  z-index: 1;
}

.scroll-hint span {
  font-size: 22px;
}

@media (max-width: 900px) {
  .hero-title {
    left: 50%;
    transform: translate(-50%, 0) scale(var(--hero-title-scale));
    text-align: center;
  }

  .hero-title img {
    max-width: 80vw;
  }

  .buy-btn {
    font-size: 22px;
    padding: 14px 64px;
  }

  .hero-hippo {
    width: 320px;
  }

  .scroll-hint {
    font-size: 14px;
  }
}

/* слой для летающих таблеток (самый нижний) */
.floating-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.floating-pill {
  position: absolute;
  width: 40px;
  opacity: 0.55;
  animation-name: pillFloat;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.35));
}

@keyframes pillFloat {
  0% {
    transform: translate3d(0,0,0) rotate(0deg);
  }
  100% {
    transform: translate3d(var(--dx, 60px), var(--dy, -80px), 0) rotate(var(--rot, 25deg));
  }
}

/* ========== 2 СТРАНИЦА (WHAT IT IS) ========== */
.about-section {
  background: radial-gradient(circle at top left, #c6b0a0 0%, #b89f8e 40%, #a88d7b 100%);
  color: #ffffff;
  padding: 80px 80px 40px;
}

.about-inner {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.about-text-block {
  max-width: 640px;
  line-height: 1.4;
  margin-top: 40px;
}

.about-title {
  font-size: 40px;
  font-weight: 600; /* Semibold */
  margin-bottom: 18px;
}

.about-text {
  font-size: 18px;
  font-weight: 500; /* Medium */
  color: rgba(255,255,255,0.9);
}

.about-hippo {
  position: absolute;
  left: var(--about-hippo-x);
  top: var(--about-hippo-y);
  transform: translate(-50%, 0) scale(var(--about-hippo-scale));
  width: 430px;
  max-width: 36vw;
  animation: breatheAbout 4s ease-in-out infinite;
  z-index: 1;
}

.about-hippo img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes breatheAbout {
  0%   { transform: translate(-50%, 0) scale(var(--about-hippo-scale)); }
  50%  { transform: translate(-50%, -2%) scale(calc(var(--about-hippo-scale) * 1.02)); }
  100% { transform: translate(-50%, 0) scale(var(--about-hippo-scale)); }
}

.about-pills-near {
  position: absolute;
  left: calc(var(--about-hippo-x) - 5%);
  top: calc(var(--about-hippo-y) + 26%);
  transform: translate(-50%, -50%);
  width: 220px;
  max-width: 24vw;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 1;
}

.about-pills-near img {
  width: 46%;
  animation: nearPillFloat 2.8s ease-in-out infinite alternate;
}

.about-pills-near img:nth-child(2) {
  animation-duration: 3.4s;
  animation-delay: -1s;
}

@keyframes nearPillFloat {
  0% { transform: translateY(0) rotate(-6deg); }
  100% { transform: translateY(-10px) rotate(6deg); }
}

.chart-block {
  margin-top: 80px;
  max-width: 100%;
}

.chart-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.chart-frame {
  width: 100%;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(0,0,0,0.4);
  box-shadow: 0 14px 40px rgba(0,0,0,0.55);
  background: #000;
}

.chart-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.chart-caption {
  margin-top: 14px;
  font-size: 18px;
  color: #ffffff;
}

@media (max-width: 900px) {
  .about-section {
    padding: 90px 20px 40px;
  }

  .about-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-text-block {
    margin-top: 10px;
    text-align: center;
  }

  .about-title {
    font-size: 30px;
  }

  .about-text {
    font-size: 15px;
  }

  .about-hippo {
    position: relative;
    left: 50%;
    top: auto;
    margin-top: 30px;
  }

  .about-pills-near {
    position: relative;
    left: 50%;
    top: auto;
    margin-top: 14px;
  }

  .chart-block {
    margin-top: 50px;
  }

  .chart-title {
    font-size: 24px;
    text-align: center;
  }

  .chart-caption {
    font-size: 14px;
    text-align: center;
  }
}

/* ========== 3 СТРАНИЦА (SOCIALS / CTA) ========== */
.socials-section {
  background: radial-gradient(circle at top, #c5b0a1 0%, #b59887 40%, #a0806f 100%);
  color: #ffffff;
  padding: 80px 80px 40px;
}

.socials-inner {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.socials-title {
  position: absolute;
  top: var(--socials-title-y);
  left: 50%;
  transform: translate(-50%, 0);
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
}

.socials-text {
  position: absolute;
  top: var(--socials-text-y);
  left: 50%;
  transform: translate(-50%, 0);
  max-width: 720px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

.cta-row {
  position: absolute;
  top: var(--cta-row-y);
  left: 50%;
  transform: translate(-50%, 0);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.btn-cta {
  min-width: 210px;
  padding: 15px 26px;
  font-size: 18px;
  transform: rotate(-2deg);
}

.btn-cta:nth-child(2) { transform: rotate(2deg); }
.btn-cta:nth-child(3) { transform: rotate(-1deg); }

/* Q&A */
.qa-row {
  position: absolute;
  top: var(--qa-row-y);
  left: 50%;
  transform: translate(-50%, 0);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1100px;
}

.qa-card {
  width: 260px;
  min-height: 120px;
  padding: 16px 18px;
  border-radius: 20px;
  background: radial-gradient(circle at 0 0, #383067 0%, #0a0618 55%, #05030b 100%);
  border: 1px dashed rgba(187, 170, 255, 0.8);
  box-shadow: 0 10px 26px rgba(0,0,0,0.8);
  transform: rotate(-2deg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
  cursor: default;
}

.qa-card:nth-child(2) { transform: rotate(2.5deg); }
.qa-card:nth-child(3) { transform: rotate(-1.3deg); }
.qa-card:nth-child(4) { transform: rotate(1.8deg); }

.qa-question {
  font-size: 15px;
  font-weight: 600;
}

.qa-answer {
  font-size: 14px;
  color: rgba(244,244,255,0.9);
}

.qa-card:hover {
  transform: translateY(-4px) rotate(0deg) scale(1.02);
  box-shadow: 0 18px 40px rgba(0,0,0,0.9);
  background: radial-gradient(circle at 0 0, #4a3f8f 0%, #0e0a24 60%, #070311 100%);
  border-color: rgba(210,195,255,0.95);
}

@media (max-width: 900px) {
  .socials-section {
    padding: 90px 16px 50px;
  }

  .socials-title {
    font-size: 26px;
  }

  .socials-text {
    font-size: 15px;
    max-width: 90vw;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn-cta {
    width: 90vw;
    max-width: 360px;
    font-size: 16px;
  }

  .qa-row {
    position: relative;
    top: auto;
    margin-top: 260px;
    transform: translateX(-50%);
  }

  .qa-card {
    width: 90vw;
    max-width: 360px;
  }

  section.socials-section {
    height: auto;
    min-height: 100vh;
  }
}

/* ========== СЛЕД ОТ КУРСОРА ========== */
.trail-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: trailFade 0.8s ease-out forwards;
  z-index: 9999;
}

@keyframes trailFade {
  0% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
}

@media (max-width: 900px) {
  .trail-dot {
    width: 4px;
    height: 4px;
  }
}
