*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --grad:     linear-gradient(135deg, #833AB4 0%, #E1306C 50%, #FCAF45 100%);
  --icon-bg:  var(--icon-bg);
  --purple:   #833AB4;
  --pink:     #E1306C;
  --yellow:   #FCAF45;
  --text:     #1a1a2e;
  --muted:    #555670;
  --bg:       #fafafa;
  --card:     #ffffff;
  --border:   #e8e8f0;
  --radius:   14px;
  --shadow:   0 4px 24px rgba(131,58,180,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

/* header */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
nav {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 16px; flex-wrap: wrap;
}
.nav-logo {
  font-size: 22px; font-weight: 700;
  background: var(--grad);
}
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: 8px;
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active {
  background: #f0ecff; color: var(--purple);
}

/* hero */
.hero {
  background: linear-gradient(145deg, #fdf4ff 0%, #fff0f7 50%, #fffaf0 100%);
  padding: 72px 24px 56px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; line-height: 1.15;
  background: var(--grad);
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 18px; color: var(--muted);
  max-width: 580px; margin: 0 auto 36px;
}

/* downloader input */
.input-wrap {
  max-width: 680px; margin: 0 auto;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.input-wrap input {
  flex: 1; min-width: 0;
  padding: 15px 20px; border-radius: var(--radius);
  border: 2px solid var(--border); background: #fff;
  font-size: 15px; font-family: inherit; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.input-wrap input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(131,58,180,.12);
}
.btn-primary {
  padding: 15px 32px; border-radius: var(--radius);
  background: var(--grad); color: #fff;
  font-size: 15px; font-weight: 700; font-family: inherit;
  border: none; cursor: pointer; white-space: nowrap;
  transition: opacity .2s, transform .1s;
  box-shadow: 0 4px 14px rgba(225,48,108,.35);
}
.btn-primary:hover  { opacity: .9; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.feedback {
  text-align: center; margin-top: 12px;
  font-size: 14px; color: var(--muted); min-height: 20px;
}
.feedback.error { color: #C0392B; }

/* results */
.results-wrap { margin-top: 28px; }
.results-wrap.hidden { display: none; }
.result-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px 24px;
  max-width: 780px; margin: 0 auto;
  box-shadow: var(--shadow);
}
.result-card h3 { font-size: 16px; margin-bottom: 16px; }
.media-list {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}
.media-card {
  display: flex; flex-direction: column; gap: 10px;
  width: 200px;
}
.media-card img {
  width: 100%; border-radius: 10px;
  object-fit: cover; aspect-ratio: 1;
  background: #f0ecff;
}
.media-card video {
  width: 100%; border-radius: 10px;
  background: #000;
  max-height: 400px;
}
.media-card.is-video {
  width: 340px;
}
.btn-dl {
  display: block; padding: 10px 16px; text-align: center;
  background: var(--grad); color: #fff;
  border-radius: 100px; font-weight: 700; font-size: 13px;
  transition: opacity .2s;
}
.btn-dl:hover { opacity: .85; }

/* trust strip */
.trust {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px; text-align: center;
}
.trust-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 32px; align-items: center;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--muted);
}

/* sections */
.section { padding: 64px 24px; }
.section.alt { background: #fff; }
.container { max-width: 1100px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  background: var(--icon-bg);
  color: var(--purple); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700; margin-bottom: 12px;
}
.section-lead {
  color: var(--muted); font-size: 17px;
  max-width: 640px; margin-bottom: 40px;
}

.container > .section-tag { display: block; text-align: center; }
.container > h2 { text-align: center; }
.container > p.section-lead { text-align: center; margin-left: auto; margin-right: auto; }

/* grid cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.type-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
  display: block; color: inherit;
}
.type-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.type-card .icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  background: var(--icon-bg);
}
.type-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.type-card p  { font-size: 14px; color: var(--muted); }

/* steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  list-style: none; padding: 0; margin: 0;
}
.step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
}
.step-num {
  font-size: 56px; font-weight: 900; line-height: 1;
  background: var(--grad);
  margin-bottom: 12px; display: block;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p  { font-size: 15px; color: var(--muted); }

.nav-logo,
.hero h1,
.step-num {
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 22px;
  display: flex; gap: 16px; align-items: flex-start;
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--icon-bg);
}
.feature-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.feature-item p  { font-size: 14px; color: var(--muted); }

/* faq */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-list details {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
}
.faq-list details[open] { box-shadow: var(--shadow); }
.faq-list summary {
  padding: 18px 22px; font-weight: 600; font-size: 15px;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 20px; font-weight: 300;
  color: var(--purple); transition: transform .25s; flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-body {
  padding: 14px 22px 18px; font-size: 15px;
  color: var(--muted); background: var(--card);
  border-top: 1px solid var(--border);
}

/* blog */
.category-filter {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.cat-btn {
  padding: 6px 16px; border-radius: 20px;
  border: 1.5px solid var(--border); background: #fff;
  font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: all .18s; font-family: inherit;
}
.cat-btn:hover { border-color: var(--purple); color: var(--purple); }
.cat-btn.active { background: var(--purple); border-color: var(--purple); color: #fff; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.blog-card:hover { box-shadow: 0 8px 32px rgba(131,58,180,.14); transform: translateY(-4px); }
.blog-card-accent {
  height: 4px; background: var(--accent, var(--purple));
}
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.blog-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.blog-cat {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: 3px 9px; border-radius: 20px;
  display: inline-block;
}
.blog-read-time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.blog-card h3 {
  font-size: 15px; font-weight: 700; line-height: 1.45;
  color: var(--text);
}
.blog-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; }
.blog-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 4px;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.blog-author { font-size: 12px; font-weight: 600; color: var(--text); }
.blog-date   { font-size: 12px; color: var(--muted); }

/* article */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.article-header { margin-bottom: 36px; }
.article-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700;
  line-height: 1.25; margin: 12px 0 16px;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted);
}
.article-content { font-size: 17px; line-height: 1.85; color: var(--text); }
.article-content h2 {
  font-size: 1.45rem; font-weight: 700; margin: 40px 0 14px;
  padding-top: 8px; border-top: 1px solid var(--border);
}
.article-content h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 10px; }
.article-content p  { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 0 0 18px 26px; }
.article-content li { margin-bottom: 7px; }
.article-content img { max-width: 100%; border-radius: var(--radius); margin: 20px 0; }
.article-content blockquote {
  border-left: 3px solid var(--purple); margin: 24px 0;
  padding: 12px 20px; background: #fdf4ff; border-radius: 0 8px 8px 0;
  color: var(--muted); font-style: italic;
}
.article-content a { color: var(--purple); text-decoration: underline; }

/* footer */
footer {
  background: var(--text); color: #aaa;
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 40px;
  justify-content: space-between;
}
.footer-brand p { font-size: 14px; max-width: 280px; margin-top: 8px; }
.footer-col h4  { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col a   { display: block; color: #aaa; font-size: 14px; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1100px; margin: 32px auto 0;
  border-top: 1px solid #333; padding-top: 20px;
  font-size: 13px; text-align: center;
}

/* breadcrumb */
.breadcrumb {
  background: #f0f0f8;
  padding: 8px 24px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a { color: var(--purple); }
.breadcrumb span { margin: 0 6px; }

/* hero badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 16px; font-size: 13px;
  color: var(--muted); margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(131,58,180,.08);
}
.hero-badge svg { width: 16px; height: 16px; flex-shrink: 0; }

/* illustration */
.illus-wrap {
  display: flex; align-items: center; gap: 56px; flex-wrap: wrap;
}
.illus-wrap .text-col { flex: 1; min-width: 260px; }
.illus-wrap .img-col  { flex: 1; min-width: 260px; text-align: center; }
.illus-wrap .img-col svg { max-width: 100%; border-radius: 24px; }

/* detail columns */
.detail-heading {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--purple);
}
.detail-text {
  font-size: 15px;
  color: var(--muted);
}
.about-text {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 20px;
}

/* misc */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}
.text-muted { color: var(--muted); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-close {
  display: none;
}

@media (max-width: 700px) {
  .nav-burger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding-top: 64px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s;
    z-index: 200;
  }

  nav.open .nav-links {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px; right: 16px;
    width: 40px; height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    color: var(--text);
    border-radius: 8px;
  }
  .nav-close:hover { background: #f5f3ff; }

  .nav-links a {
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    width: 100%;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.active { color: var(--purple); }
  .nav-links a:hover { background: #fafafa; color: var(--purple); }
}

.hero--compact { padding: 48px 24px 40px; }
.hero--compact h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.back-link { display: inline-block; margin: 24px 24px 0; color: var(--purple); font-weight: 600; font-size: 14px; }
.back-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .input-wrap { flex-direction: column; }
  .btn-primary { width: 100%; }
  nav { padding: 12px 16px; }
  .illus-wrap { flex-direction: column; }
}