/* TikDrop — shared styles */
:root {
  --bg: #0a0a0a;
  --panel: #141414;
  --panel-2: #1a1a1a;
  --border: #2a2a2a;
  --accent: #fe2c55;
  --accent-2: #ff6b35;
  --cyan: #25f4ee;
  --text: #f2f2f2;
  --soft: #a8a8a8;
  --muted: #6b6b6b;
  --radius: 14px;
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(ellipse 70% 40% at 15% -10%, rgba(254, 44, 85, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 35% at 90% 0%, rgba(255, 107, 53, 0.07), transparent 60%);
  background-repeat: no-repeat;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Icons ── */
.i {
  width: 1em; height: 1em;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0; vertical-align: -0.125em;
}
.i-fill { fill: currentColor; stroke: none; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 18px; letter-spacing: -0.4px;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #fff;
}
.brand-mark .i { width: 15px; height: 15px; margin-left: 2px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 8px;
  color: var(--soft); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color .15s, background .15s, border-color .15s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current="page"] { color: var(--text); }
.nav .btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 6px; color: var(--text); font-weight: 600;
  background: var(--panel); border: 1px solid var(--border);
}
.nav .btn-outline:hover { border-color: var(--accent); background: var(--panel); }
.nav .btn-outline .i { color: var(--accent); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; font-size: 20px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}

@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .site-header .container { height: 62px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 18px 18px;
    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.6);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 15px; }
  .nav .btn-outline { margin: 6px 0 0; justify-content: center; }
}

/* ── Layout ── */
main { flex: 1; }

/* ── Hero / downloader ── */
.hero { text-align: center; padding: 76px 0 56px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin-bottom: 28px;
  background: rgba(254, 44, 85, 0.09);
  border: 1px solid rgba(254, 44, 85, 0.25);
  border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: .3px; color: var(--accent);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

h1 {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 700; letter-spacing: -2px; line-height: 1.06;
  max-width: 760px; margin: 0 auto 18px;
}
h1 .hl {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero-sub { font-size: 17px; color: var(--soft); max-width: 500px; margin: 0 auto 28px; line-height: 1.65; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; margin-bottom: 32px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 100px;
  font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none;
  transition: border-color .15s;
}
.pill:hover { border-color: var(--accent); }
.pill .i { color: var(--accent); font-size: 15px; }

.search {
  display: flex; height: 56px;
  max-width: 720px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 10px 34px rgba(254, 44, 85, 0.18); }

.search input {
  flex: 1; min-width: 0; padding: 0 22px;
  background: transparent; border: none; outline: none;
  color: var(--text); font: inherit; font-size: 15px; font-weight: 500;
}
.search input::placeholder { color: var(--muted); font-weight: 400; }

.search button {
  flex-shrink: 0; padding: 0 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none; cursor: pointer; color: #fff;
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .3px;
  transition: opacity .15s;
}
.search button:hover:not(:disabled) { opacity: .9; }
.search button:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 520px) {
  .hero { padding: 48px 0 40px; }
  .search { height: auto; flex-direction: column; }
  .search input { flex: none; height: 54px; }
  .search button { flex: none; height: 50px; }
}

/* Progress */
.progress { max-width: 720px; margin: 22px auto 0; text-align: left; }
.progress-head { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 13px; }
.progress-pct { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.progress-bar { height: 5px; background: var(--border); border-radius: 100px; overflow: hidden; }
.progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 100px; transition: width .3s ease;
}

/* Error */
.error {
  max-width: 720px; margin: 16px auto 0; padding: 12px 16px; text-align: left;
  background: rgba(254, 44, 85, 0.08); border: 1px solid rgba(254, 44, 85, 0.28);
  border-radius: 10px; font-size: 14px; color: #ff8fa6;
}

/* Result */
.result { max-width: 720px; margin: 28px auto 0; text-align: left; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.vcard { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.vcard-top { display: flex; gap: 18px; padding: 22px; border-bottom: 1px solid var(--border); }

.cover {
  width: 104px; height: 104px; flex-shrink: 0; border-radius: 10px; overflow: hidden;
  background: var(--panel-2); display: grid; place-items: center; color: var(--accent); font-size: 36px;
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.vinfo { flex: 1; min-width: 0; }
.vtitle {
  font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word;
}
.vauthor { font-size: 13px; color: var(--cyan); font-weight: 500; margin-bottom: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vstats { display: flex; flex-wrap: wrap; gap: 8px; }
.vstat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; font-size: 12px; color: var(--soft);
  background: rgba(254, 44, 85, 0.07); border: 1px solid rgba(254, 44, 85, 0.14); border-radius: 6px;
}
.vstat .i { color: var(--accent); }

.dl-list { display: grid; gap: 10px; padding: 20px; }
.dl {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; text-decoration: none; color: var(--text);
  background: rgba(254, 44, 85, 0.07); border: 1.5px solid rgba(254, 44, 85, 0.2); border-radius: 12px;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.dl:hover { background: rgba(254, 44, 85, 0.13); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(254, 44, 85, 0.12); }
.dl-ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; color: var(--accent); background: rgba(254, 44, 85, 0.12); flex-shrink: 0; }
.dl.audio { background: rgba(37, 244, 238, 0.06); border-color: rgba(37, 244, 238, 0.2); }
.dl.audio:hover { background: rgba(37, 244, 238, 0.11); border-color: var(--cyan); box-shadow: 0 8px 20px rgba(37, 244, 238, 0.1); }
.dl.audio .dl-ico { color: var(--cyan); background: rgba(37, 244, 238, 0.12); }
.dl-txt { flex: 1; min-width: 0; }
.dl-name { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-desc { font-size: 12px; color: var(--soft); margin-top: 2px; }
.dl-arrow { color: var(--soft); font-size: 18px; transition: transform .2s, color .2s; }
.dl:hover .dl-arrow { transform: translateX(3px); color: var(--text); }
.dl-empty { text-align: center; color: var(--soft); font-size: 14px; padding: 6px; }

@media (max-width: 520px) {
  .vcard-top { padding: 16px; gap: 14px; }
  .cover { width: 80px; height: 80px; }
  .dl-list { padding: 14px; }
}

/* Features */
.features { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; margin-top: 52px; }
.feature { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 96px; font-size: 13px; font-weight: 500; color: var(--soft); }
.feature .i { font-size: 26px; color: var(--accent); }

/* ── Inner pages ── */
.page-head { padding: 64px 0 36px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.page-head h1 { margin: 0 0 16px; max-width: none; font-size: clamp(30px, 4.5vw, 46px); letter-spacing: -1.5px; }
.lead { font-size: 17px; color: var(--soft); max-width: 620px; line-height: 1.65; }
.narrow { max-width: 820px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; padding-bottom: 20px; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: border-color .2s, transform .2s; }
.step:hover { border-color: var(--accent); transform: translateY(-2px); }
.step-num {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 17px; font-weight: 700; color: var(--accent);
  background: rgba(254, 44, 85, 0.1); border: 1px solid rgba(254, 44, 85, 0.22);
}
.step h2 { font-size: 18px; margin-bottom: 8px; letter-spacing: -.3px; }
.step p { font-size: 14px; color: var(--soft); line-height: 1.65; }

/* FAQ */
.faq { display: grid; gap: 10px; padding-bottom: 20px; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(254, 44, 85, 0.35); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-size: 15px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .i { color: var(--soft); transition: transform .25s, color .2s; }
.faq details[open] summary .i { transform: rotate(180deg); color: var(--accent); }
.faq .answer { padding: 0 20px 18px; font-size: 14px; color: var(--soft); line-height: 1.75; }
.faq .answer a { color: var(--accent); text-decoration: none; }
.faq .answer a:hover { text-decoration: underline; }

/* Policy text */
.prose { padding-bottom: 20px; }
.prose section { margin-bottom: 30px; }
.prose h2 { font-size: 19px; letter-spacing: -.3px; margin-bottom: 10px; }
.prose p { font-size: 15px; color: var(--soft); line-height: 1.8; margin-bottom: 12px; }
.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.meta { font-size: 13px; color: var(--soft); margin: 14px 0 0; }

/* CTA band */
.cta { text-align: center; padding: 56px 20px 72px; }
.cta h2 { font-size: clamp(24px, 3.5vw, 36px); letter-spacing: -1px; margin-bottom: 8px; }
.cta p { color: var(--soft); margin-bottom: 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none;
  transition: opacity .15s, transform .15s;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn-ghost { background: var(--panel); border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* 404 */
.notfound { text-align: center; padding: 110px 0 90px; }
.notfound .code { font-size: clamp(72px, 14vw, 130px); font-weight: 700; letter-spacing: -4px; line-height: 1; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; margin-bottom: 14px; }
.notfound p { color: var(--soft); margin-bottom: 26px; }

/* ── Footer ── */
.site-footer { margin-top: auto; border-top: 1px solid var(--border); padding: 36px 0 30px; font-size: 13px; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--soft); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--soft); }
.footer-copy a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-copy a:hover { color: var(--accent); }
.disclaimer { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; line-height: 1.6; }

@media (max-width: 760px) {
  .footer-grid { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .disclaimer { text-align: center; }
}

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