:root {
  --bg: #08080d;
  --surface: rgba(19, 18, 27, 0.82);
  --surface-strong: #15141e;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f7f5fb;
  --muted: #aaa6b5;
  --muted-dark: #7d798a;
  --accent: #f33b78;
  --accent-dark: #c91e59;
  --violet: #8b5cf6;
  --green: #57d69b;
  --danger: #ff6d87;
  --radius: 24px;
  --font: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -15%, rgba(157, 61, 126, 0.23), transparent 34rem),
    linear-gradient(180deg, #0c0b12 0%, var(--bg) 48%, #09090e 100%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ambient { position: fixed; width: 26rem; height: 26rem; border-radius: 50%; filter: blur(120px); opacity: .11; pointer-events: none; }
.ambient-one { background: var(--accent); top: 15rem; left: -16rem; }
.ambient-two { background: var(--violet); top: 34rem; right: -18rem; }

.page-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; position: relative; }

.topbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-size: 1.12rem; font-weight: 800; letter-spacing: -.03em; }
.brand > span:last-child > span { color: var(--accent); }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(243,59,120,.4); border-radius: 12px; background: linear-gradient(145deg, rgba(243,59,120,.18), rgba(139,92,246,.1)); color: #ff6d9d; box-shadow: inset 0 1px rgba(255,255,255,.08); }
.brand-mark svg { width: 22px; height: 22px; }
.brand-mark .solid { fill: currentColor; stroke: none; }
.privacy-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); color: var(--muted); font-size: .76rem; font-weight: 600; }
.privacy-pill svg { width: 15px; height: 15px; color: var(--green); }

.hero { min-height: 660px; padding: 92px 0 76px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #cf9aaf; font-size: .73rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span { width: 23px; height: 1px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero h1 { margin-top: 21px; font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.04; letter-spacing: -.062em; font-weight: 800; }
.hero h1 span { color: transparent; background: linear-gradient(100deg, #ff4f88 10%, #e458b4 50%, #a278ff 90%); -webkit-background-clip: text; background-clip: text; }
.hero-copy { width: min(620px, 100%); margin: 23px auto 0; color: var(--muted); font-size: clamp(.98rem, 2vw, 1.14rem); }

.downloader-card { width: min(900px, 100%); margin: 47px auto 0; padding: 10px; border: 1px solid var(--line-strong); border-radius: 28px; background: linear-gradient(155deg, rgba(255,255,255,.075), rgba(255,255,255,.025)); box-shadow: 0 34px 90px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.06); backdrop-filter: blur(20px); }
.download-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.url-field { min-height: 62px; display: flex; align-items: center; gap: 13px; padding: 0 19px; border: 1px solid transparent; border-radius: 19px; background: rgba(4,4,8,.52); transition: border-color .2s ease, box-shadow .2s ease; }
.url-field:focus-within { border-color: rgba(243,59,120,.55); box-shadow: 0 0 0 4px rgba(243,59,120,.11); }
.url-field svg { flex: 0 0 auto; width: 21px; height: 21px; color: #716c7d; }
.url-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 .94rem var(--font); }
.url-field input::placeholder { color: #6f6b78; }
.btn-download { min-width: 205px; display: inline-flex; justify-content: center; align-items: center; gap: 12px; padding: 0 22px; border: 0; border-radius: 19px; background: linear-gradient(135deg, #f74880, #d92b68); box-shadow: 0 12px 30px rgba(221,42,103,.24), inset 0 1px rgba(255,255,255,.24); color: white; cursor: pointer; font: 700 .88rem var(--font); transition: transform .2s ease, filter .2s ease, box-shadow .2s ease; }
.btn-download svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn-download:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 16px 38px rgba(221,42,103,.3); }
.btn-download:hover svg { transform: translateX(3px); }
.btn-download:active { transform: translateY(0); }
.form-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 25px; padding: 15px 12px 6px; color: var(--muted-dark); font-size: .7rem; font-weight: 600; }
.form-meta span { display: inline-flex; align-items: center; gap: 6px; }
.form-meta svg { width: 14px; height: 14px; color: #9993a5; }

.message { margin: 10px 3px 2px; padding: 13px 16px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 15px; font-size: .84rem; }
.message svg { width: 19px; height: 19px; flex: 0 0 auto; }
.message-error { border: 1px solid rgba(255,109,135,.25); background: rgba(255,109,135,.09); color: #ffc0cc; }

.result-box { margin: 12px 2px 2px; padding: 22px; display: grid; grid-template-columns: minmax(190px, 260px) 1fr; gap: 30px; align-items: center; border-top: 1px solid var(--line); text-align: left; animation: reveal .45s ease both; }
.preview-wrap { position: relative; min-height: 225px; overflow: hidden; border-radius: 18px; background: #0c0b11; }
.video-preview { width: 100%; height: 270px; display: block; object-fit: cover; }
.preview-badge { position: absolute; left: 12px; bottom: 12px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(5,5,8,.72); backdrop-filter: blur(8px); color: white; font-size: .65rem; font-weight: 700; letter-spacing: .08em; }
.result-copy { padding-right: 15px; }
.success-label { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.success-label svg { width: 17px; height: 17px; }
.result-copy h3 { margin-top: 9px; font-size: 1.55rem; letter-spacing: -.04em; }
.result-copy > p { margin-top: 5px; color: var(--muted); font-size: .84rem; }
.download-link { margin-top: 20px; width: 100%; min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 14px; background: var(--text); color: #111016; text-decoration: none; font-size: .83rem; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.download-link:hover { transform: translateY(-2px); background: white; }
.download-link svg { width: 18px; height: 18px; }
.result-copy .help-text { margin-top: 9px; text-align: center; color: var(--muted-dark); font-size: .67rem; }

.how-it-works { padding: 92px 0; border-top: 1px solid var(--line); }
.section-heading { text-align: center; }
.section-heading > span { color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.section-heading h2 { margin-top: 10px; font-size: clamp(2rem, 4vw, 2.85rem); letter-spacing: -.052em; }
.section-heading p { margin-top: 7px; color: var(--muted); font-size: .93rem; }
.steps { margin-top: 42px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.step-card { position: relative; min-height: 230px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 21px; background: linear-gradient(145deg, rgba(255,255,255,.042), rgba(255,255,255,.015)); transition: transform .25s ease, border-color .25s ease; }
.step-card:hover { transform: translateY(-5px); border-color: rgba(243,59,120,.25); }
.step-number { position: absolute; top: 19px; right: 22px; color: rgba(255,255,255,.1); font-size: 2.25rem; font-weight: 800; letter-spacing: -.08em; }
.step-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(243,59,120,.2); border-radius: 14px; background: rgba(243,59,120,.08); color: #f35b8e; }
.step-icon svg { width: 23px; height: 23px; }
.step-card h3 { margin-top: 25px; font-size: 1rem; letter-spacing: -.02em; }
.step-card p { margin-top: 7px; color: var(--muted-dark); font-size: .8rem; line-height: 1.65; }

.legal-note { width: min(720px, 100%); margin: 0 auto 78px; display: flex; gap: 12px; align-items: flex-start; justify-content: center; color: var(--muted-dark); font-size: .75rem; text-align: center; }
.legal-note svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }

footer { min-height: 105px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted-dark); font-size: .71rem; }
.brand-small { font-size: .93rem; }
.brand-small .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
.brand-small .brand-mark svg { width: 18px; height: 18px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 24px, 620px); }
  .topbar { min-height: 74px; }
  .privacy-pill { font-size: 0; padding: 9px; }
  .privacy-pill svg { width: 17px; height: 17px; }
  .hero { padding: 65px 0 62px; min-height: auto; }
  .hero h1 { letter-spacing: -.052em; }
  .hero h1 br { display: none; }
  .downloader-card { margin-top: 35px; border-radius: 23px; }
  .download-form { grid-template-columns: 1fr; }
  .btn-download { min-height: 56px; }
  .form-meta { gap: 12px 18px; }
  .result-box { grid-template-columns: 1fr; padding: 16px; gap: 22px; }
  .preview-wrap { min-height: 260px; }
  .video-preview { height: 330px; }
  .result-copy { padding: 0 2px 5px; text-align: center; }
  .success-label { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .step-card { min-height: 190px; }
  footer { flex-direction: column; justify-content: center; gap: 14px; text-align: center; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 2.45rem; }
  .hero-copy { font-size: .9rem; }
  .url-field { padding: 0 15px; }
  .form-meta span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
