/* ==========================================================================
   CapCut Free — mobile-first landing (лента + переключатель + до/после)
   Базовые стили под телефон; @media (min-width) расширяют вёрстку.
   ========================================================================== */

:root {
  --bg: #0a0a0d;
  --bg-alt: #101015;
  --surface: #16161d;
  --surface-2: #21212a;
  --border: #292933;
  --text: #f4f4f7;
  --muted: #9a9aa8;
  --accent: #00d7ff;
  --accent-2: #7a5cff;
  --accent-3: #ff4fd8;
  --accent-soft: rgba(122, 92, 255, .16);
  --gradient: linear-gradient(96deg, #00d7ff, #7a5cff 52%, #ff4fd8);
  --shadow: 0 2px 8px rgba(0, 0, 0, .4), 0 18px 44px rgba(0, 0, 0, .38);
  --radius: 18px;
  --topbar-h: 56px;
  --gutter: 20px;
}

html[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f5f5f9;
  --surface: #ffffff;
  --surface-2: #f0f0f5;
  --border: #e4e4ec;
  --text: #0a0a0d;
  --muted: #5f5f6d;
  --accent-soft: rgba(122, 92, 255, .1);
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 30px rgba(20, 10, 60, .08);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

img, svg { max-width: 100%; }
svg { display: block; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.03em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 12px; top: 12px; z-index: 100;
  background: var(--surface); border: 1px solid var(--border);
  padding: 10px 14px; border-radius: 10px;
}
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
.is-hidden { display: none !important; }

/* ---------- Шапка ---------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.topbar.is-scrolled { border-bottom-color: var(--border); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__mark { width: 28px; height: 28px; border-radius: 8px; }
.brand__name { font-weight: 800; letter-spacing: -.025em; font-size: 17px; }
.brand__tag {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.topbar__actions { display: flex; align-items: center; gap: 8px; }
.iconbtn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--text); cursor: pointer; padding: 0;
}
.iconbtn svg { width: 19px; height: 19px; }
.iconbtn .i-sun { display: none; }
html[data-theme="light"] .iconbtn .i-sun { display: block; }
html[data-theme="light"] .iconbtn .i-moon { display: none; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px;
  border-radius: 999px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, filter .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn--primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 6px 20px rgba(122, 92, 255, .32);
}
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost { border-color: var(--border); background: var(--surface); }
.topbar__cta { min-height: 40px; padding: 8px 16px; font-size: 15px; }

.btn--big { width: 100%; min-height: 58px; padding: 10px 22px; font-size: 17px; }
.btn__icon { width: 22px; height: 22px; flex: none; }
.btn__icon svg { width: 22px; height: 22px; }
.btn__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.btn__label { font-weight: 700; }
.btn__meta { font-size: 12.5px; opacity: .8; font-weight: 500; }

/* ---------- 1 · Hero ---------- */

.hero { padding-top: 30px; position: relative; overflow-x: clip; }
.hero::before {
  content: "";
  position: absolute; inset: -180px -25% auto -25%; height: 470px;
  background:
    radial-gradient(42% 52% at 20% 40%, rgba(0, 215, 255, .20), transparent 70%),
    radial-gradient(46% 54% at 80% 32%, rgba(255, 79, 216, .18), transparent 70%),
    radial-gradient(52% 60% at 50% 58%, rgba(122, 92, 255, .22), transparent 72%);
  pointer-events: none; z-index: -1;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: 6px 12px; margin-bottom: 18px;
}
.stars {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: .04em; font-size: 12px;
}

.hero__title { font-size: clamp(34px, 9.6vw, 50px); font-weight: 900; letter-spacing: -.045em; }
.grad {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin-top: 14px; font-size: 16.5px; color: var(--muted); max-width: 44ch; }

.cta { margin-top: 26px; display: flex; flex-direction: column; gap: 6px; }
.hint { margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--muted); max-width: 42ch; }

/* скриншот приложения под шапкой */
.shot {
  margin: 32px auto 0;
  padding-inline: var(--gutter);
  max-width: 420px;
  display: flex;
  justify-content: center;
}
.shot img {
  width: 100%;
  /* обрезаем только полоску системной навигации внизу кадра */
  aspect-ratio: 853 / 1780;
  height: auto;
  object-fit: cover;
  object-position: top center;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #08080a;
}

/* ---------- 2 · Полоса цифр ---------- */

.band {
  margin-top: 34px;
  padding: 22px 0;
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
}
.band__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 12px;
  text-align: center;
}
.band__grid b {
  display: block;
  font-size: 26px; font-weight: 900; letter-spacing: -.04em;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.band__grid span { font-size: 12.5px; color: var(--muted); }

/* ---------- Секции ---------- */

.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.h2 { font-size: clamp(26px, 7vw, 36px); font-weight: 900; letter-spacing: -.035em; }
.lead { margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 52ch; }

/* ---------- Текстовые блоки ---------- */

/* «Что внутри» и «Требования» — определения */
.list { margin-top: 26px; display: grid; gap: 2px; }
.list > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.list dt {
  font-size: 17px; font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 7px;
}
.list dd { margin: 0; color: var(--muted); font-size: 15px; }

.specs {
  margin-top: 26px;
  display: grid; gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.specs > div { background: var(--surface); padding: 16px 18px; }
.specs dt { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.specs dd { margin: 5px 0 0; font-size: 15.5px; font-weight: 600; }

.callout {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--gradient) border-box;
  color: var(--muted);
  font-size: 14.5px;
}

/* шаги установки */
.steps {
  margin-top: 26px;
  counter-reset: s;
  display: grid; gap: 12px;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding: 20px 20px 20px 62px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 20px; top: 20px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff; font-size: 14px; font-weight: 800;
}
.steps b { display: block; font-weight: 800; font-size: 16.5px; letter-spacing: -.02em; }
.steps span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
.steps code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  background: var(--surface-2);
  border-radius: 6px;
  padding: 1px 6px;
}

/* советы по экспорту */
.tips { margin-top: 26px; display: grid; gap: 12px; }
.tips li {
  position: relative;
  padding: 18px 20px 18px 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 15px;
}
.tips li::before {
  content: "";
  position: absolute; left: 20px; top: 25px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gradient);
}
.tips b { color: var(--text); font-weight: 700; }

/* что нового */
.changes { margin-top: 24px; display: grid; gap: 10px; }
.changes li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 15px;
}
.changes li::before {
  content: "";
  position: absolute; left: 4px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
}

/* ---------- 6 · Загрузка ---------- */

.get { padding: 56px 0 64px; }
.get__card {
  position: relative;
  border-radius: 26px;
  padding: 30px 20px 26px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.get__card::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 70% at 15% 10%, rgba(0, 215, 255, .22), transparent 62%),
    radial-gradient(60% 70% at 85% 20%, rgba(255, 79, 216, .2), transparent 65%),
    radial-gradient(80% 80% at 50% 100%, rgba(122, 92, 255, .24), transparent 70%);
  pointer-events: none;
}
.get__card > * { position: relative; z-index: 1; }
.get__title { font-size: clamp(24px, 6.6vw, 32px); font-weight: 900; letter-spacing: -.035em; }
.get__sub { margin-top: 10px; color: var(--muted); font-size: 15px; }

.apk {
  margin: 22px auto 0;
  max-width: 420px;
  display: flex; align-items: center; gap: 14px;
  min-height: 82px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  text-align: left;
  transition: transform .12s ease, box-shadow .2s ease;
}
.apk:active { transform: scale(.99); }
.apk.is-recommended { box-shadow: 0 0 0 2px var(--accent-2), 0 10px 28px rgba(122, 92, 255, .28); }
.apk__ico {
  width: 46px; height: 46px; flex: none;
  border-radius: 13px; display: grid; place-items: center;
  background: var(--gradient); color: #fff;
}
.apk__ico svg { width: 25px; height: 25px; }
.apk__txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.apk__txt b { font-size: 16px; font-weight: 800; }
.apk__txt small { color: var(--muted); font-size: 13px; }
.apk__arrow { color: var(--muted); font-size: 18px; }

.pills {
  margin-top: 16px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 7px;
}
.pills li {
  font-size: 12.5px; color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 12px;
  background: var(--bg-alt);
}
.get__note { margin-top: 16px; font-size: 13px; color: var(--muted); max-width: 44ch; margin-inline: auto; }

/* ---------- Подвал ---------- */

.footer { padding: 36px 0 44px; border-top: 1px solid var(--border); }
.brand--footer { margin-bottom: 18px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 15px; color: var(--muted); }
.footer__nav a { padding: 6px 0; }
.copy { margin-top: 18px; font-size: 12.5px; color: var(--muted); }

/* ---------- Липкая кнопка ---------- */

.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  transform: translateY(120%);
  transition: transform .26s ease;
}
.stickybar.is-visible { transform: translateY(0); }
.stickybar .btn { width: 100%; }

/* ---------- Планшет ---------- */

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero { text-align: center; }
  .eyebrow { display: inline-flex; }
  .hero__sub { margin-inline: auto; }
  .cta { align-items: center; }
  .hint { text-align: center; }
  .btn--big { width: auto; min-width: 300px; }
  .band__grid { grid-template-columns: repeat(4, 1fr); }
  .list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .tips { grid-template-columns: repeat(2, 1fr); }
  .h2, .lead { text-align: center; }
  .lead { margin-inline: auto; }
  .section { padding: 72px 0; }
}

/* ---------- Десктоп ---------- */

@media (min-width: 1024px) {
  :root { --topbar-h: 64px; }
  body { padding-bottom: 0; }
  .stickybar { display: none; }
  .hero { padding-top: 72px; }
  .hero__title { font-size: 66px; }
  .hero__sub { font-size: 19px; }
  .shot { max-width: 360px; margin-top: 44px; }
  .list { grid-template-columns: repeat(3, 1fr); }
  .specs { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 96px 0; }
  .get__card { padding: 46px 40px 40px; }
}

/* ---------- Доступность ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
