:root {
  color-scheme: light;
  --bg: #fffafd;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-soft: #fff5fa;
  --line: rgba(92, 45, 73, 0.12);
  --text: #261820;
  --muted: #786d74;
  --pink: #e1306c;
  --hot-pink: #fd1d1d;
  --orange: #f77737;
  --violet: #833ab4;
  --green: #069668;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -18%, rgba(225, 48, 108, 0.12), transparent 34%),
    linear-gradient(180deg, #fffafd 0%, #ffffff 52%, #fff8fb 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(86, 40, 67, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 40, 67, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.shell { width: min(1040px, calc(100% - 40px)); margin-inline: auto; }
.ambient { position: fixed; width: 430px; height: 430px; border-radius: 50%; filter: blur(125px); opacity: .12; pointer-events: none; }
.ambient-one { top: 15%; left: -270px; background: var(--pink); }
.ambient-two { right: -260px; bottom: 8%; background: var(--orange); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-weight: 780; font-size: 20px; letter-spacing: -.5px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, var(--violet), var(--pink) 52%, var(--orange)); box-shadow: 0 10px 25px rgba(225, 48, 108, .22); }
.brand-mark svg { width: 20px; fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-pill { display: flex; align-items: center; gap: 8px; padding: 8px 12px; color: #655c62; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .8); box-shadow: 0 8px 25px rgba(66, 24, 47, .06); }
.nav-pill i, .ready-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(6, 150, 104, .42); }

.hero { display: flex; flex-direction: column; align-items: center; padding: 96px 0 62px; text-align: center; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #796c74; font-size: 11px; font-weight: 750; letter-spacing: 2.2px; }
.eyebrow span { color: var(--pink); }
h1 { margin: 24px 0 18px; font-size: clamp(48px, 8vw, 86px); line-height: .98; letter-spacing: -5px; font-weight: 830; }
h1 span { color: transparent; background: linear-gradient(90deg, var(--violet), var(--pink) 55%, var(--orange)); -webkit-background-clip: text; background-clip: text; }
.hero-copy { max-width: 610px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }

.download-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; width: min(760px, 100%); margin-top: 42px; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .92); box-shadow: 0 24px 70px rgba(105, 38, 75, .13); backdrop-filter: blur(18px); }
.input-wrap { display: flex; align-items: center; min-width: 0; }
.input-wrap > svg { flex: 0 0 auto; width: 22px; margin-left: 12px; fill: none; stroke: #9a8e95; stroke-width: 1.7; stroke-linecap: round; }
input { width: 100%; min-width: 0; height: 50px; padding: 0 12px; border: 0; outline: 0; color: var(--text); background: transparent; font: inherit; }
input::placeholder { color: #a79ca3; }
.paste-button { border: 0; padding: 9px 12px; border-radius: 9px; color: #6b6067; background: #f8edf3; cursor: pointer; }
.paste-button:hover { background: #f4e0ea; }
.fetch-button, .download-button { display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 12px; color: white; font-weight: 760; font-size: 14px; text-decoration: none; background: linear-gradient(110deg, var(--violet), var(--pink) 56%, var(--orange)); box-shadow: 0 12px 30px rgba(225, 48, 108, .22); cursor: pointer; transition: transform .18s ease, filter .18s ease, box-shadow .18s ease; }
.fetch-button { min-width: 150px; padding: 0 21px; }
.fetch-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fetch-button:hover, .download-button:hover { transform: translateY(-1px); filter: saturate(1.08); box-shadow: 0 15px 35px rgba(225, 48, 108, .28); }
.fetch-button:disabled { opacity: .65; cursor: wait; transform: none; }

.status { min-height: 24px; margin-top: 16px; color: #c9285f; font-size: 14px; }
.status.loading { color: #776b72; }
.status.loading::before { display: inline-block; width: 13px; height: 13px; margin-right: 8px; vertical-align: -2px; content: ""; border: 2px solid rgba(86, 40, 67, .18); border-top-color: var(--pink); border-radius: 50%; animation: spin .75s linear infinite; }

.preview-card { display: grid; grid-template-columns: 310px 1fr; width: min(790px, 100%); margin: 0 auto 70px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: 0 30px 75px rgba(86, 35, 64, .14); backdrop-filter: blur(18px); animation: reveal .35s ease-out; }
.preview-card.hidden { display: none; }
.preview-media { position: relative; min-height: 390px; background: #181216; }
.preview-media img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.preview-media::after { position: absolute; inset: auto 0 0; height: 35%; content: ""; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); }
.duration { position: absolute; right: 12px; bottom: 12px; z-index: 1; padding: 6px 8px; border-radius: 7px; color: white; background: rgba(0, 0, 0, .72); font-size: 11px; font-weight: 700; }
.preview-body { display: flex; flex-direction: column; align-items: flex-start; padding: 38px; text-align: left; }
.ready-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 11px; font-weight: 750; letter-spacing: .6px; text-transform: uppercase; }
.preview-body h2 { display: -webkit-box; overflow: hidden; margin: 19px 0 8px; color: var(--text); font-size: 25px; line-height: 1.25; letter-spacing: -.7px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.preview-body > p { margin: 0; color: var(--muted); font-size: 14px; }
.quality-row { display: flex; align-items: center; gap: 13px; width: 100%; margin: 31px 0 24px; padding: 16px; border: 1px solid rgba(225, 48, 108, .12); border-radius: 14px; background: var(--panel-soft); }
.quality-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--violet); font-size: 11px; font-weight: 850; background: rgba(131, 58, 180, .1); }
.quality-row strong, .quality-row small { display: block; }
.quality-row strong { margin-bottom: 3px; color: var(--text); font-size: 13px; }
.quality-row small { color: var(--muted); font-size: 11px; }
.download-button { width: 100%; min-height: 51px; }
.download-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 auto 82px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-row > div { display: grid; grid-template-columns: auto 1fr; column-gap: 13px; padding: 26px 30px; }
.trust-row > div + div { border-left: 1px solid var(--line); }
.trust-row span { grid-row: 1 / 3; color: #ba9eae; font: 700 11px ui-monospace, monospace; }
.trust-row strong { color: var(--text); font-size: 13px; }
.trust-row small { margin-top: 4px; color: var(--muted); font-size: 11px; }

footer { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 36px; color: #978a92; font-size: 11px; }
.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 spin { to { transform: rotate(360deg); } }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 720px) {
  .shell { width: min(100% - 24px, 620px); }
  .nav { height: 72px; }
  .hero { padding: 74px 0 46px; }
  h1 { font-size: clamp(42px, 14vw, 64px); letter-spacing: -3px; }
  .download-form { grid-template-columns: 1fr; }
  .fetch-button { min-height: 50px; }
  .preview-card { grid-template-columns: 1fr; }
  .preview-media { min-height: 410px; }
  .preview-body { padding: 28px 24px; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-row > div + div { border-top: 1px solid var(--line); border-left: 0; }
  footer { flex-direction: column; text-align: center; }
}
