:root {
  --bg: #0a0a14;
  --bg-2: #0e0f1f;
  --text: #f3f4fb;
  --muted: #9aa0bf;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-2: rgba(255, 255, 255, 0.08);
  --accent: #7c5cff;
  --accent-2: #18d8c4;
  --pink: #ff5ca8;
  --radius: 18px;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text);
  background: var(--bg);
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Aurora background ===== */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1000px 700px at 80% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at 10% 10%, rgba(24, 216, 196, 0.12), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}
.b1 { width: 460px; height: 460px; background: #6d4bff; top: -120px; right: -80px; }
.b2 { width: 420px; height: 420px; background: #18d8c4; bottom: -160px; left: -120px; animation-delay: -6s; }
.b3 { width: 360px; height: 360px; background: #ff5ca8; top: 40%; left: 55%; animation-delay: -12s; opacity: 0.35; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.12); }
}

/* ===== Topbar ===== */
.topbar { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  box-shadow: 0 8px 20px rgba(124, 92, 255, 0.45);
}
.gh {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 14px;
  border-radius: 10px;
  transition: 0.2s;
}
.gh:hover { color: var(--text); background: var(--glass); }

.topnav { display: flex; gap: 4px; flex-wrap: wrap; }
.topnav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  transition: 0.2s;
}
.topnav a:hover { color: var(--text); background: var(--glass); }
.topnav a.nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--pink));
}
.topnav a.nav-cta:hover { filter: brightness(1.08); color: #fff; }
@media (max-width: 560px) { .topnav a:not(.nav-cta) { display: none; } }

/* ===== Hero ===== */
.hero { text-align: center; padding: 64px 0 8px; }
.pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #d7d2ff;
  background: var(--glass);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto 34px;
}

/* ===== Search bar ===== */
.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 660px;
  margin: 0 auto;
  padding: 9px 9px 9px 14px;
  background: var(--glass-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.searchbar:focus-within {
  border-color: rgba(124, 92, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.15), var(--shadow);
}
.search-ic { display: flex; color: var(--muted); }
.searchbar input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  padding: 10px 4px;
}
.searchbar input::placeholder { color: #6c7193; }
.searchbar button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: 11px;
  transition: 0.2s;
}
.searchbar .ghost {
  background: transparent;
  color: var(--muted);
  padding: 11px 14px;
}
.searchbar .ghost:hover { color: var(--text); background: var(--glass); }
.searchbar #go {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  padding: 12px 24px;
  box-shadow: 0 10px 24px rgba(124, 92, 255, 0.4);
}
.searchbar #go:hover { transform: translateY(-1px); filter: brightness(1.07); }
.searchbar #go:active { transform: translateY(0); }

/* spinner inside button */
.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
form.loading #go .go-label { display: none; }
form.loading #go .spinner { display: inline-block; }
form.loading #go { pointer-events: none; }

/* ===== Service chips ===== */
.services {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: 0.2s;
}
a.chip:hover { background: var(--glass-2); transform: translateY(-1px); }
.chip .ic { width: 17px; height: 17px; }

/* ===== Status ===== */
.status {
  max-width: 660px;
  margin: 22px auto 0;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid var(--line);
  animation: pop 0.25s ease;
}
.status.error {
  background: rgba(255, 92, 108, 0.1);
  border-color: rgba(255, 92, 108, 0.35);
  color: #ffb3bb;
}
.status.loading {
  background: rgba(124, 92, 255, 0.1);
  border-color: rgba(124, 92, 255, 0.3);
  color: #cfc6ff;
}

/* ===== Result card ===== */
.result { margin: 30px 0 10px; }
.card {
  display: flex;
  gap: 20px;
  background: var(--glass-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  animation: pop 0.3s ease;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.thumb { position: relative; flex: 0 0 260px; max-width: 260px; }
.thumb img {
  width: 100%;
  display: block;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #05060d;
}
.duration {
  position: absolute;
  right: 9px;
  bottom: 9px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 7px;
}
.meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-2);
  background: rgba(24, 216, 196, 0.12);
  border: 1px solid rgba(24, 216, 196, 0.3);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.meta h2 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}
.uploader { color: var(--muted); margin: 0; font-size: 14px; }
.actions { margin-top: auto; padding-top: 18px; }
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #06251f;
  font-weight: 800;
  font-size: 15.5px;
  padding: 13px 22px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent-2), #5ef0d6);
  box-shadow: 0 12px 26px rgba(24, 216, 196, 0.32);
  transition: 0.2s;
}
.dl-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.dl-btn.busy { opacity: 0.65; pointer-events: none; }
.hint { color: var(--muted); font-size: 13px; margin: 12px 0 0; }

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 56px 0 28px;
}
.feat {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  transition: 0.25s;
}
.feat:hover { transform: translateY(-3px); background: var(--glass-2); }
.feat-ic { font-size: 26px; margin-bottom: 10px; }
.feat h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.disclaimer {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  max-width: 680px;
  margin: 0 auto;
}

/* ===== Status link (paywall) ===== */
.status-link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

/* ===== Pricing / Subscription ===== */
.pricing { max-width: 460px; margin: 8px auto 0; }
.price-card {
  background: var(--glass-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  text-align: center;
}
.price-head { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.price-card .badge {
  align-self: center;
  font-size: 12px;
  font-weight: 700;
  color: #d7d2ff;
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
}
.price { font-size: 20px; color: var(--muted); }
.price b {
  font-size: 46px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.price span { font-size: 16px; }
.price-feats {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-feats li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: 15px;
}
.price-feats li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-2);
  font-weight: 800;
}
.pay-btn {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  color: #fff;
  box-shadow: 0 12px 26px rgba(124, 92, 255, 0.4);
}
.pay-btn:disabled { opacity: 0.6; cursor: default; box-shadow: none; }
.sub-status {
  margin-bottom: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}
.sub-status.ok { background: rgba(24,216,196,0.12); border: 1px solid rgba(24,216,196,0.35); color: #8ff0df; }
.sub-status.err { background: rgba(255,92,108,0.1); border: 1px solid rgba(255,92,108,0.35); color: #ffb3bb; }
.email-box { margin-bottom: 10px; }
.email-box input {
  width: 100%;
  background: var(--bg-soft, rgba(255,255,255,0.04));
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}
.email-box input:focus { border-color: rgba(124,92,255,0.6); }

.code-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.code-box label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.code-row { display: flex; gap: 8px; }
.code-row input {
  flex: 1;
  min-width: 0;
  background: var(--bg-soft, rgba(255,255,255,0.04));
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
}
.code-row input:focus { border-color: rgba(124,92,255,0.6); }
.ghost-btn {
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 16px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.ghost-btn:hover { background: var(--glass-2); }

.acc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  font-size: 15px;
}
.acc-row[hidden] { display: none; }
.acc-row span { color: var(--muted); }
.acc-row b { font-weight: 700; }
.ok-text { color: var(--accent-2); }
.muted-text { color: var(--muted); }

.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 18px;
  line-height: 1.6;
}
.requisites {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.requisites p { margin: 2px 0; }

/* ===== Legal (оферта/политика) ===== */
.legal { max-width: 800px; margin: 32px auto 0; }
.legal h2 { font-size: 18px; font-weight: 700; margin: 26px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.legal ul, .legal ol { padding-left: 22px; margin: 8px 0; }
.legal .legal-meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.legal .legal-fill {
  background: rgba(255,92,108,0.12);
  border: 1px dashed rgba(255,92,108,0.5);
  border-radius: 4px;
  padding: 0 6px;
  color: #ffb3bb;
}

/* ===== SEO / FAQ ===== */
.seo { margin: 44px auto 0; max-width: 760px; }
.seo-intro { color: var(--muted); font-size: 16px; line-height: 1.65; }
.seo-h2 { font-size: 22px; font-weight: 800; margin: 32px 0 14px; letter-spacing: -0.02em; }
.seo-steps { color: var(--muted); line-height: 1.9; padding-left: 22px; margin: 0; }
.seo-examples { color: var(--muted); font-size: 14px; margin-top: 16px; }
.seo-examples code {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 13px;
  white-space: nowrap;
}
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 26px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: -2px;
  font-size: 22px;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 10px 0 0; }

.footer {
  margin-top: 48px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.footlinks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 14px;
}
.footlinks a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}
.footlinks a:hover { color: var(--text); }
.footnote { opacity: 0.8; }

/* ===== Responsive ===== */
@media (max-width: 620px) {
  .card { flex-direction: column; }
  .thumb { flex-basis: auto; max-width: none; }
  .features { grid-template-columns: 1fr; }
  .searchbar { flex-wrap: wrap; padding: 10px; }
  .search-ic { display: none; }
  .searchbar input { flex-basis: 100%; padding: 8px 10px; }
  .searchbar .ghost, .searchbar #go { flex: 1; text-align: center; }
  .hero { padding-top: 40px; }
}
