:root {
  --va: #667eea;
  --vb: #764ba2;
  --grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --pink: #c2185b;
  --pink-dark: #880e4f;
  --pink-grad: linear-gradient(135deg, #c2185b 0%, #880e4f 100%);
  --pink-glow: 0 6px 24px rgba(194, 24, 91, .38);
  --pink-glow-lg: 0 12px 32px rgba(194, 24, 91, .48);
  --white: #fff;
  --off: #f5f7fa;
  --border: #e4e6ef;
  --text: #1a1a2e;
  --muted: #6c757d;
  --rmd: 12px;
  --rlg: 18px;
  --rxl: 22px;
  --sh: 0 6px 28px rgba(102, 126, 234, .12);
  --tr: .22s cubic-bezier(.4, 0, .2, 1);
  --fh: 'Nunito', sans-serif;
  --fb: 'Nunito Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fb);
  background: linear-gradient(160deg, #eef0fb 0%, #f5f7fa 60%, #ede9f6 100%);
  min-height: 100vh;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
nav {
  background: var(--grad);
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 20px rgba(102, 126, 234, .38);
}
.nav-in {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand {
  font-family: var(--fh);
  font-weight: 900;
  font-size: clamp(.78rem, 3.2vw, 1rem);
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
}
.brand-ico {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, .2);
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.burger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  flex-shrink: 0;
  margin-left: 12px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--tr);
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.drawer {
  position: fixed;
  top: 56px;
  right: 0;
  width: 200px;
  background: white;
  border-radius: 0 0 0 var(--rlg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .15);
  padding: 8px 0;
  display: none;
  z-index: 99;
  animation: dIn .2s ease;
}
.drawer.open { display: block; }
@keyframes dIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.drawer a {
  display: block;
  padding: 11px 20px;
  font-family: var(--fh);
  font-weight: 700;
  font-size: .88rem;
  color: var(--text);
  text-decoration: none;
  transition: background var(--tr), color var(--tr);
}
.drawer a:hover { background: var(--off); color: var(--va); }

/* PAGE */
.page { max-width: 940px; margin: 0 auto; padding: 20px 14px 70px; }

/* TILE */
.tile {
  background: var(--white);
  border-radius: var(--rxl);
  box-shadow: var(--sh);
  padding: 28px 22px;
  margin-bottom: 20px;
  animation: tIn .4s ease both;
}
@keyframes tIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tile:nth-child(1) { animation-delay: .05s; }
.tile:nth-child(2) { animation-delay: .11s; }
.tile:nth-child(3) { animation-delay: .17s; }
.tile:nth-child(4) { animation-delay: .23s; }

/* HERO TILE */
.hero {
  background: var(--grad);
  color: white;
  text-align: center;
  padding: 28px 18px 24px;
  border-radius: var(--rxl);
}
.hero h1 {
  font-family: var(--fh);
  font-weight: 900;
  font-size: clamp(1.25rem, 5vw, 2.4rem);
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero p {
  font-size: clamp(.8rem, 2.5vw, .98rem);
  opacity: .88;
  max-width: 480px;
  margin: 0 auto;
  font-weight: 300;
}

/* DOWNLOADER */
.dl-head { font-family: var(--fh); font-weight: 800; font-size: clamp(1rem, 3.5vw, 1.3rem); letter-spacing: -.02em; margin-bottom: 4px; }
.dl-sub  { color: var(--muted); font-size: .85rem; margin-bottom: 18px; }

.input-shell {
  background: var(--off);
  border: 2px solid var(--border);
  border-radius: var(--rlg);
  display: flex;
  align-items: center;
  padding: 4px 4px 4px 14px;
  gap: 6px;
  transition: border-color var(--tr), box-shadow var(--tr);
  margin-bottom: 10px;
}
.input-shell:focus-within {
  border-color: var(--va);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, .12);
  background: white;
}
#urlInput {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font-family: var(--fb);
  font-size: clamp(.82rem, 3vw, .95rem);
  color: var(--text);
  padding: 8px 0;
}
#urlInput::placeholder { color: #b0b7c3; }
#pasteBtn {
  flex-shrink: 0;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  font-family: var(--fh);
  font-weight: 700;
  font-size: clamp(.68rem, 2.5vw, .76rem);
  padding: 6px 10px;
  cursor: pointer;
  transition: all var(--tr);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
#pasteBtn:hover { border-color: var(--va); color: var(--va); }

#goBtn {
  width: 100%;
  padding: 14px;
  background: var(--grad);
  color: white;
  border: none;
  border-radius: var(--rlg);
  font-family: var(--fh);
  font-weight: 900;
  font-size: clamp(.9rem, 3.5vw, 1.05rem);
  letter-spacing: .02em;
  cursor: pointer;
  transition: all var(--tr);
  box-shadow: 0 5px 20px rgba(102, 126, 234, .3);
}
#goBtn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(102, 126, 234, .42); }
#goBtn:active:not(:disabled) { transform: translateY(0); }
#goBtn:disabled { opacity: .6; cursor: not-allowed; }

#status { margin-top: 10px; min-height: 18px; text-align: center; font-size: .85rem; }
#status.error   { color: #e74c3c; }
#status.loading { color: var(--muted); }
.spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid rgba(102, 126, 234, .2);
  border-top-color: var(--va);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 5px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* AD SLOT */
.ad-slot {
  margin: 14px 0;
  text-align: center;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot ins { display: block; }
.ad-divider {
  margin: 0 0 20px;
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* RESULT */
#result { display: none; margin-top: 18px; animation: sUp .3s ease both; }
@keyframes sUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.res-inner {
  background: var(--off);
  border: 1.5px solid var(--border);
  border-radius: var(--rlg);
  overflow: hidden;
}
.res-preview { display: flex; gap: 14px; padding: 16px; }

.thumb-wrap {
  position: relative;
  flex-shrink: 0;
  width: 80px; height: 108px;
  border-radius: 10px;
  overflow: hidden;
  background: #dde0ee;
  cursor: pointer;
}
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .26);
  transition: background var(--tr);
}
.thumb-wrap:hover .thumb-play { background: rgba(0, 0, 0, .42); }
.thumb-play svg { width: 28px; height: 28px; fill: white; }
.dur {
  position: absolute;
  bottom: 4px; right: 4px;
  background: rgba(0, 0, 0, .72);
  color: white;
  font-size: .64rem; font-weight: 700;
  padding: 2px 5px; border-radius: 4px;
  pointer-events: none;
}

.vmeta { flex: 1; min-width: 0; }
.vtitle {
  font-family: var(--fh);
  font-weight: 700; font-size: clamp(.82rem, 3vw, .92rem);
  line-height: 1.4; margin-bottom: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.auth-row { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.auth-av  { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: #dde0ee; flex-shrink: 0; }
.auth-nm  { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-row { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { font-size: .74rem; color: var(--muted); }

.dl-area { border-top: 1.5px solid var(--border); padding: 14px; }

/* PRIMARY DOWNLOAD - pink accent */
.dl-prim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--pink-grad);
  color: white;
  border: none;
  border-radius: var(--rmd);
  padding: 13px 16px;
  font-family: var(--fh);
  font-weight: 900;
  font-size: clamp(.82rem, 3.5vw, .95rem);
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 10px;
  transition: all var(--tr);
  box-shadow: var(--pink-glow);
  gap: 8px;
}
.dl-prim:hover { transform: translateY(-1px); box-shadow: var(--pink-glow-lg); }
.dl-prim:active { transform: translateY(0); }
.dl-lft {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.dl-lft svg { width: 18px; height: 18px; flex-shrink: 0; }
.dl-lft span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-rgt { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.dl-badge {
  font-size: .62rem; font-weight: 700;
  background: rgba(255, 255, 255, .22);
  padding: 2px 8px; border-radius: 20px;
  letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.dl-sz { font-size: .72rem; opacity: .82; font-weight: 400; font-family: var(--fb); white-space: nowrap; }

.more-tog {
  width: 100%;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--rmd);
  color: var(--muted);
  font-family: var(--fh);
  font-weight: 700; font-size: clamp(.75rem, 2.8vw, .82rem);
  padding: 9px 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  transition: all var(--tr);
}
.more-tog:hover { border-color: var(--va); color: var(--va); }
.more-tog svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform var(--tr); }
.more-tog.open svg { transform: rotate(180deg); }

.more-opts { margin-top: 8px; display: grid; gap: 7px; grid-template-columns: 1fr 1fr; }
.more-opts.hidden { display: none; }

.dl-opt {
  display: flex; align-items: center; gap: 8px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--rmd);
  padding: 10px 12px;
  text-decoration: none; color: var(--text);
  font-size: clamp(.74rem, 2.8vw, .82rem);
  cursor: pointer;
  transition: all var(--tr);
  min-width: 0;
}
.dl-opt:hover { border-color: var(--va); background: #f0f2fd; }
.dl-opt svg { width: 16px; height: 16px; flex-shrink: 0; stroke: var(--va); fill: none; stroke-width: 2; }
.dl-opt-info { min-width: 0; }
.dl-opt-l { font-weight: 700; font-size: clamp(.72rem, 2.6vw, .79rem); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-opt-s { color: var(--muted); font-size: clamp(.64rem, 2.2vw, .7rem); display: block; }

/* SECTION TILES */
.sec-title { font-family: var(--fh); font-weight: 800; font-size: clamp(1.1rem, 4vw, 1.45rem); letter-spacing: -.02em; margin-bottom: 4px; }
.sec-sub { color: var(--muted); font-size: .86rem; margin-bottom: 20px; }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step {
  background: var(--off);
  border: 1.5px solid var(--border);
  border-radius: var(--rlg);
  padding: 20px 14px;
  text-align: center;
}
.step-n {
  font-family: var(--fh);
  font-weight: 900; font-size: 2rem;
  line-height: 1; margin-bottom: 10px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.step h3 { font-family: var(--fh); font-weight: 800; font-size: .86rem; margin-bottom: 5px; }
.step p  { color: var(--muted); font-size: .76rem; line-height: 1.5; }

/* FEATURES */
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.feat {
  background: var(--off);
  border: 1.5px solid var(--border);
  border-radius: var(--rlg);
  padding: 14px;
  display: flex; gap: 10px; align-items: flex-start;
}
.feat-ico {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, rgba(102,126,234,.11), rgba(118,75,162,.11));
  border-radius: 8px;
  display: grid; place-items: center; flex-shrink: 0;
}
.feat-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--va); stroke-width: 2; }
.feat h4 { font-family: var(--fh); font-weight: 800; font-size: .83rem; margin-bottom: 2px; }
.feat p  { color: var(--muted); font-size: .74rem; line-height: 1.5; }

/* FAQ */
.faq { border-bottom: 1.5px solid var(--border); padding: 15px 0; }
.faq:first-of-type { border-top: 1.5px solid var(--border); }
.faq-q {
  font-family: var(--fh);
  font-weight: 800; font-size: clamp(.86rem, 3vw, .94rem);
  cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  user-select: none; line-height: 1.4;
}
.faq-q svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; transition: transform var(--tr); stroke: var(--va); fill: none; stroke-width: 2; }
.faq-q.open svg { transform: rotate(180deg); }
.faq-a { color: var(--muted); font-size: .86rem; line-height: 1.65; display: none; padding-top: 8px; }
.faq-a.open { display: block; }

/* FOOTER */
footer {
  background: var(--grad);
  color: rgba(255, 255, 255, .88);
  text-align: center;
  padding: 28px 16px;
  font-size: .8rem;
  line-height: 1.9;
}
footer strong { color: white; font-weight: 800; }
footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
footer a:hover { color: white; }

/* VIDEO MODAL */
.video-modal {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, .88);
  align-items: center; justify-content: center;
  padding: 16px;
}
.video-modal.open { display: flex; }
.modal-box {
  position: relative;
  width: min(92vw, 540px);
  background: #000;
  border-radius: var(--rlg);
  overflow: hidden;
}
.modal-box video { width: 100%; display: block; max-height: 82vh; }
.modal-close {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0, 0, 0, .6);
  border: none; border-radius: 50%;
  width: 34px; height: 34px;
  color: white; font-size: 1rem;
  cursor: pointer; display: grid; place-items: center;
  transition: background var(--tr);
  line-height: 1;
}
.modal-close:hover { background: rgba(0, 0, 0, .88); }

/* BASIC PAGES (about, contact, privacy, terms) */
.page-content { max-width: 720px; margin: 0 auto; padding: 32px 18px 70px; }
.page-content h1 { font-family: var(--fh); font-weight: 900; font-size: clamp(1.4rem, 5vw, 2rem); letter-spacing: -.03em; margin-bottom: 6px; color: var(--text); }
.page-content .page-intro { color: var(--muted); font-size: .9rem; margin-bottom: 28px; border-bottom: 1.5px solid var(--border); padding-bottom: 20px; }
.page-content h2 { font-family: var(--fh); font-weight: 800; font-size: 1.05rem; margin: 24px 0 8px; color: var(--text); }
.page-content p  { color: #444; font-size: .9rem; line-height: 1.75; margin-bottom: 14px; }
.page-content a  { color: var(--va); }
.page-content ul { margin: 0 0 14px 20px; }
.page-content ul li { color: #444; font-size: .9rem; line-height: 1.75; }
.contact-form { background: white; border-radius: var(--rxl); box-shadow: var(--sh); padding: 28px 24px; margin-top: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-family: var(--fh); font-weight: 700; font-size: .86rem; margin-bottom: 6px; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--rmd);
  font-family: var(--fb);
  font-size: .9rem;
  color: var(--text);
  background: var(--off);
  outline: none;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--va); box-shadow: 0 0 0 3px rgba(102,126,234,.1); background: white; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
  background: var(--pink-grad);
  color: white;
  border: none;
  border-radius: var(--rmd);
  font-family: var(--fh);
  font-weight: 900;
  font-size: .95rem;
  padding: 13px 28px;
  cursor: pointer;
  transition: all var(--tr);
  box-shadow: var(--pink-glow);
}
.form-submit:hover { transform: translateY(-1px); box-shadow: var(--pink-glow-lg); }

/* RESPONSIVE */
@media (max-width: 480px) {
  .tile { padding: 20px 14px; }
  .hero { padding: 20px 14px 18px; }
  .steps { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; }
  .more-opts { grid-template-columns: 1fr; }
  .res-preview { flex-direction: column; }
  .thumb-wrap { width: 100%; height: 180px; }
  .dl-prim { padding: 11px 13px; }
}