:root {
  --bg: #0b1020;
  --bg-soft: #11182d;
  --surface: rgba(22, 30, 52, 0.72);
  --surface-solid: #151d33;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f6ff;
  --muted: #a2acc6;
  --violet: #8b6bff;
  --teal: #2fd8c3;
  --rose: #ff7aa8;
  --amber: #ffc46b;
  --danger: #ff8d97;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.aurora {
  position: fixed;
  inset: -30% -10% auto -10%;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(45% 45% at 25% 30%, rgba(139, 107, 255, 0.28), transparent 70%),
    radial-gradient(40% 40% at 75% 20%, rgba(47, 216, 195, 0.18), transparent 70%),
    radial-gradient(35% 35% at 55% 65%, rgba(255, 122, 168, 0.10), transparent 70%);
  filter: blur(20px);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -0.02em; font-size: 1.15rem; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet), #5e8cff);
  box-shadow: 0 8px 22px rgba(139, 107, 255, 0.35);
}
.brand-mark svg { width: 20px; height: 20px; color: #fff; }
.brand-name span { color: var(--violet); }

.header-nav { display: flex; gap: 28px; font-size: 0.9rem; color: var(--muted); }
.header-nav a { transition: color 0.2s ease; }
.header-nav a:hover { color: var(--text); }

.hero { padding: 70px 24px 84px; }
.hero-inner { max-width: 900px; margin: 0 auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(47, 216, 195, 0.15); }

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.035em; line-height: 1.15; }
h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); margin: 24px 0 18px; font-weight: 800; }
.gradient-text {
  background: linear-gradient(100deg, #a88bff 10%, #63dfd0 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-subtitle { max-width: 610px; margin: 0 auto 38px; color: var(--muted); font-size: 1.02rem; }

.search-box {
  max-width: 760px; margin: 0 auto;
  padding: 20px; text-align: left;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.search-box > label { display: block; font-size: 0.82rem; font-weight: 650; color: var(--muted); margin-bottom: 10px; }
.input-row { display: flex; gap: 10px; }

.input-wrap {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  padding: 0 10px 0 14px; height: 54px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: rgba(8, 12, 24, 0.72);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-wrap:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 107, 255, 0.16); }
.input-icon { width: 20px; height: 20px; color: var(--muted); flex: 0 0 auto; }
.input-wrap input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: 0; background: transparent; color: var(--text);
  font-size: 0.95rem;
}
.input-wrap input::placeholder { color: #6f7a96; }

.icon-btn {
  flex: 0 0 auto; width: 32px; height: 32px; border: 0; border-radius: 8px;
  display: grid; place-items: center;
  background: transparent; color: var(--muted); transition: 0.18s ease;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.primary-btn {
  flex: 0 0 auto; min-width: 150px; height: 54px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 13px;
  background: linear-gradient(120deg, var(--violet), #6f7dff);
  color: #fff; font-weight: 700; font-size: 0.94rem;
  box-shadow: 0 12px 30px rgba(111, 125, 255, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(111, 125, 255, 0.4); }
.primary-btn:active { transform: translateY(0); }
.primary-btn.is-loading .btn-label { visibility: hidden; }
.spinner { display: none; width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
.primary-btn.is-loading .spinner { display: block; position: absolute; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 24px; margin-top: 12px; }
.platform-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 650;
  background: rgba(139, 107, 255, 0.14); color: #c3b5ff; border: 1px solid rgba(139, 107, 255, 0.3);
}
.form-error { color: var(--danger); font-size: 0.85rem; }

.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; margin-top: 26px; color: var(--muted); font-size: 0.84rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 16px; height: 16px; color: var(--teal); }

.result-section { max-width: 900px; margin: 0 auto; padding: 0 24px 76px; }
.result-card {
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); backdrop-filter: blur(18px);
  box-shadow: var(--shadow); padding: 24px;
  animation: rise 0.35s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.result-head { display: flex; align-items: center; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.result-thumb { width: 148px; height: 88px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); background: #0d1428; flex: 0 0 auto; }
.result-info { flex: 1; min-width: 0; }
.badge { display: inline-block; font-size: 0.7rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.result-info h2 { font-size: 1.12rem; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result-info p { margin: 6px 0 0; color: var(--muted); font-size: 0.83rem; }
.ghost-btn {
  flex: 0 0 auto; padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: transparent; color: var(--muted);
  font-size: 0.82rem; font-weight: 600; transition: 0.18s ease;
}
.ghost-btn:hover { color: var(--text); border-color: var(--violet); }

.formats-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 14px; }
.formats-head h3 { font-size: 1rem; }
.formats-head span { font-size: 0.76rem; color: var(--muted); }
.formats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 10px; }

.format-btn {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 14px; border-radius: 13px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.025);
  color: var(--text); transition: 0.18s ease;
}
.format-btn:hover:not(:disabled) { border-color: var(--violet); background: rgba(139, 107, 255, 0.09); transform: translateY(-1px); }
.format-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.format-icon { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; background: rgba(139, 107, 255, 0.14); color: #bda9ff; display: grid; place-items: center; }
.format-btn[data-kind="audio"] .format-icon { background: rgba(47, 216, 195, 0.14); color: var(--teal); }
.format-icon svg { width: 18px; height: 18px; }
.format-name { display: block; font-size: 0.9rem; font-weight: 700; }
.format-detail { display: block; font-size: 0.73rem; color: var(--muted); margin-top: 2px; }

.download-panel { margin-top: 20px; padding: 16px; border-radius: 13px; background: rgba(8, 12, 24, 0.6); border: 1px solid var(--border); }
.download-panel-top { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; font-weight: 600; }
#download-percent { color: var(--teal); }
.progress-track { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 12px; }
.progress-bar { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--violet), var(--teal)); transition: width 0.2s ease; }
.progress-bar.is-indeterminate { width: 35%; animation: slide 1.1s ease-in-out infinite; }
.progress-bar.is-error { background: var(--danger); animation: none; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
#download-detail { margin: 9px 0 0; font-size: 0.75rem; color: var(--muted); }

.section { max-width: 1120px; margin: 0 auto; padding: 76px 24px; }
.section-alt { max-width: none; background: rgba(255, 255, 255, 0.022); border-block: 1px solid var(--border); }
.section-alt > * { max-width: 1120px; margin-inline: auto; }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-kicker { display: block; color: var(--violet); font-size: 0.76rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.section-head h2, .section-head h3 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 780; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature-card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.feature-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; }
.feature-icon svg { width: 21px; height: 21px; }
.feature-icon.violet { background: rgba(139, 107, 255, 0.15); color: #bca9ff; }
.feature-icon.teal { background: rgba(47, 216, 195, 0.14); color: var(--teal); }
.feature-icon.amber { background: rgba(255, 196, 107, 0.14); color: var(--amber); }
.feature-icon.rose { background: rgba(255, 122, 168, 0.14); color: var(--rose); }
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-number { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--violet), #5e8cff); box-shadow: 0 10px 24px rgba(139, 107, 255, 0.25); }
.step h4 { font-size: 0.98rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 0.87rem; }

.faq-list { max-width: 780px; display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--border); border-radius: 13px; background: rgba(255, 255, 255, 0.025); overflow: hidden; }
.faq-list summary { padding: 16px 18px; font-size: 0.92rem; font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--violet); font-size: 1.1rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: 0.87rem; }

.site-footer { border-top: 1px solid var(--border); background: rgba(5, 8, 18, 0.6); }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 34px 24px; display: grid; gap: 8px; }
.footer-brand { font-weight: 750; }
.footer-brand span { color: var(--violet); }
.footer-inner p, .footer-note { margin: 0; color: var(--muted); font-size: 0.8rem; }
.footer-note { color: #6f7a96; }

.ad-slot {
  min-height: 90px;
  margin: 22px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.02);
}
.ad-slot ins { display: block; min-height: 90px; }
.ad-leaderboard { max-width: 760px; margin-inline: auto; }
.ad-result { margin: 20px 0 0; }
.ad-footer { max-width: 1120px; margin-inline: auto; }

.breadcrumb { color: var(--muted); font-size: 0.85rem; margin-bottom: 24px; }
.breadcrumb a { color: var(--violet); }
.lead { margin: 0 0 22px; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.steps-ol { max-width: 780px; display: grid; gap: 14px; padding-left: 22px; color: var(--muted); line-height: 1.7; }
.steps-ol li::marker { color: var(--violet); font-weight: 800; }
.seo-page section { margin-top: 48px; }
.seo-page h2 { font-size: 1.4rem; margin-bottom: 18px; }
.seo-page ul { max-width: 780px; color: var(--muted); line-height: 1.8; padding-left: 22px; }
a.feature-card { display: block; color: inherit; text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
a.feature-card:hover { border-color: var(--violet); transform: translateY(-2px); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0; }
.footer-links a { color: var(--muted); font-size: 0.78rem; text-decoration: none; }
.footer-links a:hover { color: var(--violet); }

@media (max-width: 760px) {
  .header-nav { display: none; }
  .hero { padding: 44px 18px 60px; }
  .input-row { flex-direction: column; }
  .primary-btn { width: 100%; }
  .result-section { padding: 0 18px 60px; }
  .result-card { padding: 18px; }
  .result-head { flex-wrap: wrap; }
  .result-thumb { width: 120px; height: 72px; }
  .ghost-btn { margin-left: auto; }
  .formats-head { flex-direction: column; gap: 4px; }
  .section { padding: 56px 18px; }
}

@media (max-width: 420px) {
  .result-thumb { width: 100%; height: 150px; }
  .trust-row { gap: 12px; font-size: 0.78rem; }
}

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