@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0b1020;
  --panel: #121a2e;
  --panel-2: #172139;
  --text: #f4f7ff;
  --muted: #aab4ca;
  --line: rgba(190, 204, 235, .15);
  --accent: #8b7bff;
  --accent-2: #58d7c5;
  --danger: #ffb5b5;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(104, 91, 230, .18), transparent 44rem),
    var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
.site-header {
  max-width: 1120px; margin: 0 auto; padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 20px Manrope, sans-serif; letter-spacing: -.7px; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  color: #0b1020; background: linear-gradient(135deg, var(--accent-2), #a4f3d8); font-size: 13px;
}
.brand-accent { color: var(--accent-2); }
nav { display: flex; gap: 28px; color: var(--muted); font-size: 14px; }
nav a:hover, .text-button:hover { color: white; }
.hero { max-width: 900px; margin: 54px auto 0; padding: 0 24px; text-align: center; }
.eyebrow, .section-kicker {
  color: var(--accent-2); font-size: 11px; font-weight: 700; letter-spacing: 2px;
}
.eyebrow { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); padding: 9px 13px; border-radius: 99px; background: rgba(18,26,46,.65); }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px rgba(88,215,197,.7); }
h1, h2, h3 { font-family: Manrope, "DM Sans", sans-serif; }
h1 { max-width: 790px; margin: 25px auto 17px; font-size: clamp(36px, 6vw, 64px); line-height: 1.08; letter-spacing: -2.8px; font-weight: 800; }
h1 span { color: var(--accent-2); }
.hero-copy { max-width: 580px; margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.7; }
.url-form {
  max-width: 760px; margin: 35px auto 0; display: flex; align-items: center; gap: 10px;
  padding: 8px; background: #f8faff; border-radius: 17px; box-shadow: 0 18px 70px rgba(0,0,0,.23);
}
.input-icon { color: #6b7390; font-size: 20px; padding-left: 13px; }
.url-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #172039; font: 500 15px "DM Sans", sans-serif; padding: 15px 4px; }
.url-form input::placeholder { color: #8992a8; }
.url-form button {
  border: 0; border-radius: 11px; background: #6557e8; color: white; padding: 15px 20px;
  font: 700 14px "DM Sans", sans-serif; cursor: pointer; white-space: nowrap; transition: transform .18s, background .18s;
}
.url-form button:hover { background: #5144d1; transform: translateY(-1px); }
.url-form button:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.form-hint { color: #8d98b1; font-size: 12px; margin-top: 13px; }
.status-message { min-height: 22px; color: var(--danger); font-size: 14px; margin: 10px 0 0; }
.results { max-width: 1120px; margin: 35px auto 0; padding: 0 28px; }
.hidden { display: none !important; }
.results-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; gap: 16px; }
.section-kicker { margin: 0 0 7px; }
.results h2, .section-intro h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); letter-spacing: -1px; }
.text-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 8px 0; font: 600 13px "DM Sans", sans-serif; }
.thumbnail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.thumb-card { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.thumb-image-wrap { position: relative; background: #080c17; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.thumb-image { width: 100%; height: 100%; object-fit: contain; }
.thumb-image.failed { display: none; }
.image-fallback { display: none; padding: 20px; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.5; }
.image-fallback.visible { display: block; }
.thumb-details { padding: 15px; }
.thumb-details h3 { font-size: 15px; margin: 0 0 5px; }
.thumb-size { color: var(--muted); font-size: 12px; margin: 0 0 13px; }
.thumb-actions { display: flex; gap: 8px; }
.thumb-actions a { flex: 1; text-align: center; padding: 10px 8px; border-radius: 9px; font-size: 12px; font-weight: 700; }
.open-link { border: 1px solid var(--line); color: var(--text); }
.save-link { background: var(--accent-2); color: #09201f; }
.result-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 14px; }
.steps-section, .info-section { max-width: 1050px; margin: 110px auto 0; padding: 0 28px; }
.section-intro { text-align: center; margin: 0 auto 34px; }
.section-intro > p:last-child { color: var(--muted); line-height: 1.7; margin: 12px auto 0; max-width: 520px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { position: relative; background: linear-gradient(145deg, rgba(23,33,57,.9), rgba(18,26,46,.8)); border: 1px solid var(--line); padding: 25px; border-radius: 17px; }
.step-number { position: absolute; top: 20px; right: 21px; color: #65718d; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.step-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; background: rgba(139,123,255,.14); color: var(--accent-2); font-size: 22px; margin-bottom: 22px; }
.step-card h3 { font-size: 17px; margin: 0 0 9px; }
.step-card p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
.info-section { max-width: 780px; margin-top: 100px; }
.info-section details { padding: 19px 2px; border-bottom: 1px solid var(--line); }
.info-section summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.info-section details p { color: var(--muted); line-height: 1.7; font-size: 14px; margin: 13px 0 0; }
.site-footer { margin-top: 100px; border-top: 1px solid var(--line); padding: 30px 24px 35px; text-align: center; }
.footer-brand { justify-content: center; font-size: 17px; }
.footer-brand .brand-mark { width: 29px; height: 29px; border-radius: 9px; }
.site-footer p { color: var(--muted); font-size: 12px; }
.copyright { color: #717d98 !important; margin-top: 20px; }
.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; }
@media (max-width: 700px) {
  .site-header { padding: 18px 18px; }
  nav { gap: 15px; font-size: 12px; }
  .hero { margin-top: 38px; padding: 0 17px; }
  h1 { letter-spacing: -1.7px; }
  .hero-copy { font-size: 15px; }
  .url-form { flex-wrap: wrap; gap: 3px; padding: 7px; border-radius: 14px; }
  .input-icon { padding-left: 9px; }
  .url-form input { flex-basis: calc(100% - 45px); padding: 13px 4px; font-size: 13px; }
  .url-form button { width: 100%; margin-top: 3px; padding: 13px; }
  .results { padding: 0 17px; }
  .thumbnail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .thumb-details { padding: 11px; }
  .thumb-details h3 { font-size: 13px; }
  .thumb-actions { flex-direction: column; }
  .thumb-actions a { padding: 9px 5px; }
  .steps-section, .info-section { margin-top: 75px; padding: 0 17px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { padding: 21px; }
  .step-icon { margin-bottom: 14px; }
}
@media (max-width: 390px) {
  .thumbnail-grid { grid-template-columns: 1fr; }
  .results-heading { align-items: start; }
  .text-button { font-size: 12px; }
}
