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

:root {
  --purple: #7B3FE4;
  --purple-light: #F3EEFF;
  --orange: #FF6B35;
  --text: #1a1a2e;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #fafafa;
  --card: #ffffff;
  --radius: 12px;
}

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

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

/* ── Header ── */
header {
  background: linear-gradient(135deg, var(--purple) 0%, #4F8EF7 100%);
  color: #fff;
  padding: 48px 24px 40px;
  text-align: center;
}
header .app-icon {
  font-size: 56px;
  display: block;
  margin-bottom: 12px;
}
header h1 {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.5px;
}
header .subtitle {
  margin-top: 6px;
  opacity: 0.85;
  font-size: 15px;
}
header .updated {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.70;
  font-style: italic;
}

/* ── Nav strip ── */
nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
}
nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
nav a:hover, nav a.active { color: var(--purple); text-decoration: none; }

/* ── Main content ── */
main {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
}

section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

section p { margin-bottom: 12px; }
section p:last-child { margin-bottom: 0; }

section ul, section ol {
  padding-left: 20px;
  margin-bottom: 12px;
}
section li { margin-bottom: 6px; }

.highlight-box {
  background: var(--purple-light);
  border-left: 4px solid var(--purple);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 15px;
}

.no-collect {
  background: #ECFDF5;
  border-left: 4px solid #10b981;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 15px;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}
footer a { color: var(--purple); }

/* ── Index page cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.card .icon { font-size: 40px; margin-bottom: 12px; display: block; }
.card h2 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.btn {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.btn:hover { opacity: 0.88; text-decoration: none; }

@media (max-width: 600px) {
  section { padding: 20px 18px; }
  header { padding: 36px 16px 28px; }
}
