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

:root {
  --tiktok-red: #fe2c55;
  --tiktok-blue: #25f4ee;
  --bg: #0f0f0f;
  --bg2: #1a1a1a;
  --bg3: #242424;
  --border: #2a2a2a;
  --text: #e0e0e0;
  --muted: #888;
  --radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--tiktok-red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Nav ─────────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo span { color: var(--tiktok-red); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: #fff; text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--tiktok-red);
  color: #fff;
  border: none;
}
.btn-primary:hover { background: #e0193e; text-decoration: none; }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: #fff; text-decoration: none; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 100px 24px 80px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(254, 44, 85, 0.12);
  color: var(--tiktok-red);
  border: 1px solid rgba(254, 44, 85, 0.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: .5px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 span { color: var(--tiktok-red); }

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 40px;
}

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Features ────────────────────────────────────────────── */
.section { padding: 80px 48px; }
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.feature-card p { font-size: 14px; color: var(--muted); }

/* ─── How it works ────────────────────────────────────────── */
.steps-section { background: var(--bg2); }

.steps {
  display: flex;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(33.3% - 1px);
  right: calc(33.3% - 1px);
  height: 2px;
  background: var(--border);
}

.step { flex: 1; text-align: center; padding: 0 24px; }

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--tiktok-red);
  color: var(--tiktok-red);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--muted); }

/* ─── CTA section ─────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 80px 24px;
}

.cta-section h2 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.cta-section p { font-size: 16px; color: var(--muted); margin-bottom: 32px; }

/* ─── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; color: var(--muted); }

/* ─── Content pages (privacy, terms) ─────────────────────── */
.content-page {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 24px;
}

.content-page h1 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.content-page .last-updated { font-size: 13px; color: var(--muted); margin-bottom: 48px; }

.content-page h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 36px 0 12px;
}

.content-page p { font-size: 15px; color: var(--muted); margin-bottom: 16px; }

.content-page ul {
  margin: 0 0 16px 24px;
  color: var(--muted);
  font-size: 15px;
}

.content-page ul li { margin-bottom: 6px; }
.content-page ol { margin: 0 0 16px 24px; color: var(--muted); font-size: 15px; }
.content-page ol li { margin-bottom: 6px; }
.content-page h3 { font-size: 15px; font-weight: 700; color: #ccc; margin: 24px 0 8px; }
.content-page .meta { font-size: 13px; color: var(--muted); margin-bottom: 48px; }
.content-page code { background: #1a1a1a; border-radius: 4px; padding: 2px 6px; font-size: 13px; color: #fe2c55; }

/* Scope table */
.scope-table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 13px; }
.scope-table th { background: #1a1a1a; color: #888; font-weight: 600; text-align: left; padding: 10px 12px; border-bottom: 1px solid #2a2a2a; }
.scope-table td { padding: 10px 12px; border-bottom: 1px solid #1e1e1e; color: #aaa; vertical-align: top; }
.scope-table tr:last-child td { border-bottom: none; }
.scope-table code { font-size: 12px; }

/* Bouton danger */
.btn-danger {
  background: rgba(254,44,85,0.12);
  color: #fe2c55;
  border: 1px solid rgba(254,44,85,0.3);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-danger:hover { background: rgba(254,44,85,0.22); }

/* Alert box (data-deletion) */
.alert-box { padding: 14px 18px; border-radius: 10px; margin-top: 24px; font-size: 14px; font-weight: 500; }
.alert-box.success { background: rgba(0,200,100,0.12); color: #00c864; border: 1px solid rgba(0,200,100,0.25); }
.alert-box.error   { background: rgba(254,44,85,0.12);  color: #fe2c55;  border: 1px solid rgba(254,44,85,0.25); }

@media (max-width: 600px) {
  nav { padding: 16px 20px; }
  .nav-links { gap: 16px; }
  .section { padding: 60px 20px; }
  footer { padding: 24px 20px; }
  .steps { flex-direction: column; gap: 32px; }
  .steps::before { display: none; }
}
