:root{
  --bg: #0b0c10;
  --bg-grad1: #0b0c10;
  --bg-grad2: #11131a;
  --text: #e7e9ee;
  --muted: #9aa0ae;
  --accent: #b6f09c;
  --radius: 16px;

  /* Єдина ширина контенту */
  --content-w: clamp(320px, 70vw, 720px);
}

*{box-sizing:border-box}
html,body{height:100%; min-height:100svh}
body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(800px 400px at 70% -20%, rgba(182,240,156,.12), transparent 60%),
    radial-gradient(800px 400px at 20% 120%, rgba(110,231,255,.07), transparent 60%),
    linear-gradient(180deg, var(--bg-grad1), var(--bg-grad2));
  background-repeat:no-repeat;
  background-attachment: fixed;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  line-height:1.5;
}

.wrap{
  min-height:100svh;
  max-width:880px;
  margin-inline:auto;
  padding:64px 24px 32px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:28px;
}

.hero{ text-align:center; }

/* трохи ширше за контент-блоки */
.hero-title{
  width: min(calc(var(--content-w) + 80px), 92vw);
  margin-inline: auto;
}

h1{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin:0 0 8px;
  font-size: clamp(30px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: .2px;
}

h1 .accent{ color: var(--accent); }

.tagline{
  margin:0;
  letter-spacing: .24em;
  font-weight: 700;
  font-size: clamp(11px, 1.6vw, 14px);
  color: var(--muted);
}

.cta{ display:flex; flex-direction:column; align-items:center; gap:14px; }

/* ===== Preview video ===== */
.video-wrap{
  width: var(--content-w);
  margin-inline:auto;
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(0,0,0,.45);           /* темніше, без «білого» ефекту */
  border: 1px solid rgba(255,255,255,.06);
  aspect-ratio: 16/9;
}
.preview-video{
  width:100%; height:100%;
  object-fit:cover; display:block;
  background:#000;
}
.play-btn{
  position:absolute; top:50%; left:50%;
  transform: translate(-50%, -50%);
  display:inline-grid; place-items:center;
  width:50px; height:50px;
  border-radius:999px;
  border:0;
  background: rgba(0,0,0,.5);
  color: white;
  cursor:pointer;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.play-btn:hover{ transform: translate(-50%, -50%) scale(1.05); background: rgba(0,0,0,.6); }

/* ===== Download button: масштабується ВСЯ кнопка ===== */
.download-btn{
  width: var(--content-w);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding: clamp(18px, 3vw, 24px) clamp(26px, 4vw, 36px);
  border-radius: calc(var(--radius) + 8px);
  text-decoration:none;
  color:#0a0b0f;
  background: linear-gradient(135deg, var(--accent), #e6ffe0 40%, #dffffa 80%);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 800;
  text-transform: uppercase;
  transform: translateZ(0);
  transition: transform .25s ease;
  border: 0;
}
.download-btn:hover{ transform: scale(1.02); }
.download-btn .icon{ display:inline-flex; } /* без рухів іконки */

/* ===== Meta вирівняна по лівому краю кнопки ===== */
.meta{
  width: var(--content-w);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.meta .left, .meta .right{ display:flex; align-items:center; gap:10px; }
.ae-img{ display:inline-block; vertical-align:middle; }

.version{ color:var(--muted); font-weight:400; letter-spacing:.06em; }
.muted{ color:var(--muted); }

/* ===== Контентні блоки (темні, без білого) ===== */
.features, .how, .tutorial{
  width: var(--content-w);
  margin-inline:auto;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 20px 18px;
}

.features h2, .how h2, .tutorial h2{
  margin:0 0 8px;
  font-size: clamp(18px, 2.4vw, 22px);
  letter-spacing:.2px;
  display:flex; align-items:center; gap:10px;
}
.yt-ico{ display:inline-grid; place-items:center; }

.features ul, .how ol, .tutorial ol{
  margin:0; padding-left: 18px;
  display:grid; gap:6px;
}

.yt-link{
  display:inline-block;
  color:var(--text);
  text-decoration:none;
  font-weight:700;
  padding:8px 12px;
  border-radius:10px;
  background: rgba(255,255,255,.06);
  transition: transform .15s ease, background .15s ease;
}
.yt-link:hover{ transform: translateY(-1px); background: rgba(255,255,255,.1); }

.zxp-link{
  display:inline-block;
  color:var(--text);
  font-weight:700;
}

/* ===== Анімації появи ===== */
.reveal{
  opacity:0; transform: translateY(14px) scale(.98);
  animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--d, 0s);
}
.card-reveal{
  opacity:0; transform: translateY(16px) scale(.985);
  animation: cardIn .8s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes fadeUp{ to{ opacity:1; transform: translateY(0) scale(1); } }
@keyframes cardIn{ 0%{ opacity:0; transform: translateY(16px) scale(.985); } 100%{ opacity:1; transform: translateY(0) scale(1); } }

@media (prefers-reduced-motion: reduce){
  .download-btn, .reveal, .card-reveal, .links a{
    transition: none !important;
    animation: none !important;
  }
  .reveal, .card-reveal{ opacity:1; transform:none; }
}

/* ===== Footer ===== */
.footer{
  width: var(--content-w);
  margin-inline: auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 14px;
  margin-top: 6px;
}

.links{ display:flex; gap:14px; flex-wrap:wrap; }
.links a{
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
  font-size: 12px;               /* менший шрифт */
  padding:4px 8px;
  border-radius:10px;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
.links a:hover{ color:var(--text); background-color: rgba(255,255,255,.06); transform: translateY(-1px); }

@media (max-width: 800px){
  :root{ --content-w: calc(100vw - 44px); }
  .wrap{ padding-left: 12px; padding-right: 12px; }
  .footer{
    width: calc(100vw - 24px);
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    margin-top: 8px;
  }
  .links{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .footer > :last-child{ margin-top: 4px; color: var(--muted); }
}

