/* ============================================
   CapCut Pro - Clean Modern Design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #00c8ff;
  --primary-dark: #0099cc;
  --accent: #ff3d71;
  --bg: #0a0e17;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #1e293b;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.3);
  --max-w: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; color: #fff; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 2rem 0 1rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin: 1.5rem 0 .75rem; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1.5rem 1.5rem; }
li { margin-bottom: .4rem; }
strong { color: #fff; }

/* --- Container --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* --- Header / Nav --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,23,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
}
.logo {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.25rem; font-weight: 700; color: #fff;
}
.logo img { height: 36px; width: auto; }
.logo span { color: var(--primary); }

.main-nav { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.main-nav a {
  color: var(--text-muted); font-size: .9rem; font-weight: 500; transition: color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }

.nav-toggle {
  display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer;
}

/* --- Hero --- */
.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(0,200,255,.08) 0%, transparent 100%);
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 span { color: var(--primary); }
.hero p { color: var(--text-muted); max-width: 640px; margin: 0 auto 1.5rem; font-size: 1.05rem; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; padding: .4rem 1rem; font-size: .85rem; color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: 8px; font-weight: 600; font-size: .95rem;
  border: none; cursor: pointer; transition: all .25s; text-decoration: none;
}
.btn-primary {
  background: var(--primary); color: #0a0e17;
}
.btn-primary:hover { background: #33d4ff; color: #0a0e17; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,200,255,.3); }
.btn-outline {
  background: transparent; color: var(--primary); border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #0a0e17; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* --- Info Bar --- */
.info-bar {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  padding: 1.5rem 0;
}
.info-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.5rem; text-align: center; min-width: 140px; flex: 1; max-width: 200px;
}
.info-item .label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .25rem; }
.info-item .value { font-size: 1rem; font-weight: 600; color: #fff; }

/* --- Section --- */
.section { padding: 3rem 0; }
.section-title { text-align: center; margin-bottom: 2rem; }
.section-title p { color: var(--text-muted); max-width: 600px; margin: .5rem auto 0; }

/* --- Cards Grid --- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; transition: all .3s;
}
.card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-icon { font-size: 2rem; margin-bottom: .75rem; }
.card h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.card p { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* --- Feature List --- */
.feature-list { list-style: none; margin-left: 0; }
.feature-list li {
  padding: .6rem 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: .6rem;
}
.feature-list li::before { content: '✓'; color: var(--primary); font-weight: 700; }

/* --- Table --- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .85rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg-card); color: #fff; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }
td { font-size: .95rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(0,200,255,.03); }

/* --- Steps --- */
.steps { counter-reset: step; margin: 1.5rem 0; }
.step {
  counter-increment: step; display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.step::before {
  content: counter(step); flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #0a0e17;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
}
.step-content h3 { margin: 0 0 .25rem; font-size: 1rem; }
.step-content p { margin: 0; color: var(--text-muted); font-size: .9rem; }

/* --- TOC --- */
.toc {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 2rem; margin: 1.5rem 0;
}
.toc h2 { margin: 0 0 1rem; font-size: 1.1rem; }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li { margin-bottom: .35rem; }
.toc a { color: var(--text-muted); font-size: .9rem; }
.toc a:hover { color: var(--primary); }

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; color: #fff; font-size: 1rem;
  font-weight: 600; text-align: left; padding: 1.25rem 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: inherit;
}
.faq-q::after { content: '+'; font-size: 1.5rem; color: var(--primary); transition: transform .3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a p { padding: 0 0 1.25rem; color: var(--text-muted); font-size: .95rem; }

/* --- Download Box --- */
.download-box {
  background: linear-gradient(135deg, rgba(0,200,255,.1), rgba(255,61,113,.08));
  border: 1px solid rgba(0,200,255,.2); border-radius: var(--radius);
  padding: 2rem; text-align: center; margin: 2rem 0;
}
.download-box h2 { margin-top: 0; }
.download-box p { color: var(--text-muted); }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
  text-align: center;
}
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-links a { color: var(--text-muted); font-size: .85rem; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { color: var(--text-muted); font-size: .8rem; }

/* --- Back to Top --- */
.back-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #0a0e17;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer; border: none;
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 50;
}
.back-top.visible { opacity: 1; pointer-events: auto; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; width: 100%; gap: .5rem; padding-top: .5rem; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 2rem 0 1.5rem; }
  .info-bar { gap: .75rem; }
  .info-item { min-width: 100px; padding: .75rem 1rem; }
  .cards { grid-template-columns: 1fr; }
  .step { flex-direction: column; gap: .5rem; }
}

@media (max-width: 480px) {
  .btn-group { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}
