:root {
  --ink: #16181f;
  --muted: #5d6472;
  --line: #e6e8f0;
  --paper: #f5f6fb;
  --card: #ffffff;
  --blue: #2f6bff;
  --blue-dark: #1d4ed8;
  --shadow: 0 18px 50px rgba(28, 16, 72, 0.16);
  --hero: linear-gradient(115deg, #00a7ea 0%, #7a35f0 46%, #f4346a 100%);
  --radius: 16px;
  --max: 1200px;
  color-scheme: light;
}

html[data-theme="dark"] .bar,
html[data-theme="dark"] .top { background: #12141c; }
html[data-theme="dark"] .bar-actions a,
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .lang { color: #f3f5f8; }
html[data-theme="dark"] {
  --ink: #f3f5f8;
  --muted: #b4bccb;
  --line: #2c3240;
  --paper: #0f1218;
  --card: #181c25;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
label.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.top {
  background: #fff;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  background: #fff;
  color: #16181f;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 22px;
}
.brand img { width: auto; height: 36px; max-width: 190px; display: block; }
.bar-actions { display: flex; align-items: center; gap: 4px; }
.bar-actions a, .icon-btn, .lang {
  color: #16181f;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.lang { cursor: default; display: inline-flex; align-items: center; gap: 4px; }
.lang svg { width: 14px; height: 14px; }
.bar-actions a:hover, .icon-btn:hover { background: rgba(22, 24, 31, 0.06); }
html[data-theme="dark"] .bar-actions a:hover,
html[data-theme="dark"] .icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
#site-header { min-height: 60px; }
.menu { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; }
.menu-btn {
  display: none;
  background: transparent;
  border: 0;
  color: #16181f;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.menu-panel { display: flex; align-items: center; gap: 2px; }
.menu-panel a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #1c1e27;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.menu-panel a svg { width: 16px; height: 16px; }
.menu-panel a[aria-current="page"],
.menu-panel a:hover { background: rgba(126, 23, 255, 0.12); }
html[data-theme="dark"] .menu-btn,
html[data-theme="dark"] .menu-panel a { color: #f3f5f8; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; }
.icon-btn svg { width: 20px; height: 20px; }
html[data-theme="dark"] .icon-sun { display: none; }
html:not([data-theme="dark"]) .icon-moon { display: none; }

.hero {
  max-width: none;
  margin: 0;
  padding: 56px 20px 48px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: var(--hero);
  color: #fff;
}
.hero > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.hero-logo {
  display: block;
  width: auto;
  height: 78px;
  max-width: min(320px, 70vw);
  margin: 42px auto 6px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  filter: brightness(0) invert(1);
}
.hero.has-results { padding: 14px 16px 16px; }
.hero.has-results h1 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.hero.has-results .hero-logo { display: none; }
.tools {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}
.tools::-webkit-scrollbar { display: none; }
.tools a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 650;
}
.tools a svg { width: 16px; height: 16px; }
.tools a[aria-current="page"], .tools a:hover {
  background: rgba(255, 255, 255, 0.28);
}
.hero h1 {
  margin: 0 auto 18px;
  max-width: 820px;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.1;
  text-align: center;
}
.lede {
  margin: 0 auto 16px;
  max-width: 640px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.chips span {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 650;
}

.lookup {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  padding: 8px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.lookup input {
  border: 0;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: #16181f;
  background: #fff;
  outline: none;
}
.lookup input::placeholder { color: #8b93a3; }
.ghost, .primary, .secondary {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ghost { background: #eceff5; color: #1d2433; }
.ghost:hover { background: #e1e6f0; }
.primary { background: var(--blue); color: #fff; }
.primary:hover { background: var(--blue-dark); }
.primary:disabled, .ghost:disabled { opacity: 0.65; cursor: progress; }
.secondary { background: #eef2ff; color: #1e3a8a; }
html[data-theme="dark"] .secondary { background: #243049; color: #dbe7ff; }

#results { max-width: 820px; margin: 28px auto 0; display: grid; gap: 12px; text-align: center; }
#results:empty { display: none; margin: 0; }
.hero.has-results #results { max-width: 920px; margin-top: 12px; }
.download-box {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-areas: "title title" "preview actions";
  gap: 8px 14px;
  align-items: center;
  background: #fff;
  color: #16181f;
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}
.download-box .preview { grid-area: preview; background: #111318; border-radius: 12px; overflow: hidden; }
.download-box video,
.download-box img {
  width: 100%;
  height: 168px;
  object-fit: contain;
  background: #111318;
}
.download-box h2 {
  grid-area: title;
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
  text-align: center;
}
.download-box .meta { grid-area: actions; }
.download-box p { margin: 0; color: #5d6472; text-align: center; }
.formats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; justify-content: center; }
.formats .primary { min-height: 42px; min-width: 108px; }
.result-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  color: #16181f;
  border-radius: 12px;
  padding: 8px;
}
.result-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: #111; }
.result-row h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.result-row p { margin: 2px 0 0; color: #5d6472; font-size: 13px; }
.result-row .primary { min-height: 44px; }
.status, .notice {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 650;
}
.media-card, .profile-card {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}
.media-card { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 14px; align-items: center; }
.preview {
  background: #0d0f14;
  border-radius: 12px;
  overflow: hidden;
}
.preview video, .preview img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #0d0f14; }
.meta h2, .profile-card h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -0.03em; }
.meta p, .profile-card p { margin: 0 0 10px; color: var(--muted); }
.badge {
  display: inline-flex;
  margin-bottom: 8px;
  background: #efe7ff;
  color: #5b21b6;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
html[data-theme="dark"] .badge { background: #2a2144; color: #ddd6fe; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; text-align: left; }
.profile-card h2, .profile-card p { overflow-wrap: anywhere; }
.profile-card .handle, .profile-card .stats { margin: 0 0 6px; font-weight: 700; color: var(--ink); }
.profile-card .handle { color: var(--muted); font-weight: 650; }
.story-list { margin-top: 12px; }
.story-strip { display: flex; gap: 10px; overflow-x: auto; max-width: 100%; margin-top: 12px; }
.story-tile {
  width: 92px; flex: 0 0 auto; border: 0; padding: 0; background: transparent; cursor: pointer; color: #fff; font-weight: 800;
}
.story-tile video, .story-tile img {
  display: block; width: 92px; height: 140px; object-fit: cover; border-radius: 12px; background: #111318;
}
.story-tile.active video, .story-tile.active img { outline: 3px solid #fff; outline-offset: 2px; }
.story-tile span { display: block; margin-top: 4px; font-size: 12px; text-align: center; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #eceff5;
}
.avatar-fallback {
  display: grid; place-items: center; font-size: 32px; font-weight: 800; color: #5b21b6; background: #efe7ff;
}
.toolbar { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.toolbar p { margin: 0; font-weight: 700; }

.page { max-width: var(--max); margin: 0 auto; padding: 28px 20px 64px; }
.page a { color: var(--blue); font-weight: 700; }
.page h2 { letter-spacing: -0.04em; font-size: clamp(26px, 3vw, 34px); margin: 8px 0 10px; text-align: center; }
.page h3 { margin: 0 0 6px; letter-spacing: -0.03em; }
.intro { color: var(--muted); margin: 0 auto 8px; max-width: 72ch; text-align: center; }
.lead {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(28, 16, 72, 0.08);
  overflow: hidden;
  margin: 4px 0 36px;
  text-align: left;
}
.lead-art {
  position: relative;
  min-height: 230px;
  display: grid;
  place-items: center;
}
.lead-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead-tile {
  position: relative;
  z-index: 1;
  width: 148px;
  background: #fff;
  border-radius: 22px;
  padding: 16px 14px;
  box-shadow: 0 12px 28px rgba(20, 10, 50, 0.16);
}
.lead-tile img { width: 100%; height: auto; }
.lead-cam, .lead-clap {
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18));
}
.lead-cam { top: 28px; left: 22px; }
.lead-clap { right: 26px; bottom: 36px; }
.lead-copy { padding: 28px 32px 28px 18px; }
.lead h2 {
  text-align: left;
  color: #2450e6;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  margin: 0 0 12px;
}
.lead p { margin: 0; color: #3a4150; font-size: 17px; text-align: left; }
.band { margin: 8px 0 36px; }
.band .panel { text-align: center; }
.band .panel h3, .band .panel p { text-align: center; }
.band .panel img { margin: 0 auto 12px; }
.reasons .panel { text-align: center; }
.reason-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #efe7ff;
  color: #7e17ff;
}
.reason-icon svg { width: 28px; height: 28px; }
.reasons h3, .reasons p { text-align: center; }
html[data-theme="dark"] .lead { background: var(--card); }
html[data-theme="dark"] .lead p { color: var(--muted); }
html[data-theme="dark"] .reason-icon { background: #2a2144; color: #ddd6fe; }
.tool-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 18px 0 40px;
}
.tool-row a {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 8px 12px;
}
.tool-row a:hover { border-color: #7e17ff; }
.tool-row span { font-weight: 800; font-size: 15px; }
.tool-row img { width: 100%; height: auto; border-radius: 12px; }
.steps, .grid, .split { display: grid; gap: 14px; margin: 18px 0 36px; }
.steps { grid-template-columns: repeat(3, 1fr); }
.grid { grid-template-columns: repeat(2, 1fr); }
.split { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.split .intro, .split .list { text-align: left; margin-left: 0; }
.split .list { padding-left: 18px; }
.feature-list { display: grid; gap: 12px; margin: 18px 0 36px; }
.feature { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }
.steps .panel img, .split img { width: 100%; height: auto; border-radius: 12px; }
.feature img { width: 120px; height: 120px; max-width: 120px; border-radius: 16px; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.num {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: #efe7ff; color: #5b21b6; font-weight: 800; margin-bottom: 10px;
}
html[data-theme="dark"] .num { background: #2a2144; color: #ddd6fe; }
.page > .list, .page > .shortcut { margin-left: auto; margin-right: auto; }
.shortcut {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 14px;
  overflow: auto;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 14px;
}
.faq { display: grid; gap: 10px; margin-top: 16px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.faq summary { cursor: pointer; font-weight: 750; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.list { margin: 8px 0 0; padding-left: 18px; }
.list li { margin: 6px 0; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 18px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 18px;
}
.site-footer h2 { font-size: 14px; margin: 0 0 8px; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer a { display: block; color: var(--muted); text-decoration: none; margin: 6px 0; }
.site-footer a:hover { color: var(--ink); }
.legal {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 22px;
  color: var(--muted);
  font-size: 14px;
}
.form {
  display: grid;
  gap: 10px;
  max-width: 640px;
}
.form input, .form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 10px;
  padding: 12px 14px;
}
.form textarea { min-height: 140px; resize: vertical; }
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.form-note { color: var(--muted); font-size: 14px; }

@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .menu-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    min-width: 210px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: var(--shadow);
  }
  .menu-panel.open { display: flex; }
  html[data-theme="dark"] .menu-panel { background: #181c25; }
}
@media (max-width: 800px) {
  .brand img { height: 32px; width: auto; }
  .bar { padding: 10px 12px; }
  .menu-btn { display: inline-flex; }
  .menu-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    min-width: 210px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: var(--shadow);
  }
  .menu-panel.open { display: flex; }
  html[data-theme="dark"] .menu-panel { background: #181c25; }
  #results, .hero.has-results #results, .download-box, .profile-card, .story-list { max-width: 100%; min-width: 0; }
  .download-box {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "preview" "actions";
    gap: 8px;
    padding: 10px;
  }
  .download-box video, .download-box img { height: 220px; max-height: 42vh; }
  .download-box h2 { font-size: 16px; }
  .formats { display: flex; margin-top: 8px; }
  .formats .primary { flex: 1 1 0; min-height: 40px; min-width: 0; padding: 8px 6px; font-size: 13px; }
  .profile-card .actions .primary { max-width: 100%; }
  .story-tile { width: 72px; }
  .story-tile video, .story-tile img { width: 72px; height: 112px; }
  .tool-row { gap: 8px; }
  .lead { grid-template-columns: 1fr; }
  .lead-copy { padding: 8px 18px 22px; }
  .lead h2, .lead p { text-align: center; }
  .hero { padding: 36px 16px 32px; }
  .hero-logo { height: 58px; width: auto; margin-top: 28px; }
  .tool-row span { font-size: 12px; }
  .tool-row a { padding: 10px 4px 8px; }
  .tools { justify-content: flex-start; }
  .lookup { grid-template-columns: minmax(0, 1fr) auto; }
  .lookup input { grid-column: auto; }
  .lookup .primary { grid-column: 1 / -1; width: 100%; }
  .result-row { grid-template-columns: 64px minmax(0, 1fr); }
  .result-row .primary { grid-column: 1 / -1; }
  .steps, .grid, .split, .footer-inner, .media-card, .feature { grid-template-columns: 1fr; }
  .profile-card { grid-template-columns: 72px minmax(0, 1fr); }
  .avatar { width: 72px; height: 72px; }
  .feature img { width: 72px; height: 72px; max-width: 72px; }
  .hero.has-results { padding: 8px 12px 10px; }
  .hero.has-results h1 { font-size: 22px; margin-bottom: 8px; }
  .hero.has-results .lookup { padding: 6px; }
}
