/* ══════════════════════════════════════════════════════
   Invisible Selection — Support Website
   Dark theme matching extension popup design tokens.
   Zero external fonts, zero JavaScript, zero tracking.
   ══════════════════════════════════════════════════════ */

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

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --bg:          #0e0e12;
  --surface:     #18181f;
  --surface-alt: #1e1e28;
  --border:      rgba(255, 255, 255, 0.06);
  --border-hover:rgba(255, 255, 255, 0.12);
  --text:        #e4e4ec;
  --text-dim:    #7a7a8c;
  --text-muted:  #55556a;
  --accent:      #6C63FF;
  --accent-light:#a78bfa;
  --accent-glow: rgba(108, 99, 255, 0.25);
  --success:     #34d399;
  --danger:      #f87171;
  --radius:      12px;
  --radius-lg:   18px;
  --font:        'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width:   720px;
}

/* ── Body ───────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navigation ─────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px var(--accent-glow);
  flex-shrink: 0;
}
.nav-logo svg {
  width: 15px;
  height: 15px;
  fill: #fff;
}
.nav-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface);
}

/* ── Main ───────────────────────────────────────────── */
.main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
  width: 100%;
}

/* ── Hero (index only) ──────────────────────────────── */
.hero {
  text-align: center;
  padding: 40px 0 48px;
}
.hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 0 32px var(--accent-glow);
}
.hero-icon svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
.hero h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero .tagline {
  font-size: 17px;
  color: var(--text-dim);
  font-weight: 400;
  margin-bottom: 32px;
}
.hero .badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--success);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  padding: 5px 14px;
  border-radius: 999px;
}

/* ── Cards Grid ─────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 40px 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.card-icon {
  font-size: 24px;
  margin-bottom: 12px;
  display: block;
}
.card h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── Section ────────────────────────────────────────── */
.section {
  margin-bottom: 40px;
}
.section h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section p {
  margin-bottom: 14px;
  color: var(--text-dim);
  line-height: 1.75;
}
.section p strong {
  color: var(--text);
}

/* ── Page Header ────────────────────────────────────── */
.page-header {
  margin-bottom: 40px;
}
.page-header h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.page-header .subtitle {
  font-size: 15px;
  color: var(--text-dim);
}
.page-header .updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── FAQ / Issue Cards ──────────────────────────────── */
.issue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}
.issue-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.issue-item h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.issue-item p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}
.issue-item .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.tag-limitation {
  color: var(--danger);
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.15);
}
.tag-info {
  color: var(--accent-light);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.15);
}

/* ── Contact Box ────────────────────────────────────── */
.contact-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  margin-top: 32px;
}
.contact-box h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.contact-box p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.contact-box a.email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-light);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 10px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  transition: background 0.2s, border-color 0.2s;
}
.contact-box a.email-link:hover {
  background: rgba(108, 99, 255, 0.18);
  border-color: rgba(108, 99, 255, 0.35);
}

/* ── Footer Nav Links ───────────────────────────────── */
.page-links {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.page-links a {
  color: var(--accent-light);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.page-links a:hover {
  border-color: var(--border-hover);
  background: var(--surface-alt);
}

/* ── Site Footer ────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 600px) {
  .nav-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
    gap: 8px;
  }
  .nav-links {
    gap: 2px;
  }
  .hero h1 {
    font-size: 24px;
  }
  .hero .tagline {
    font-size: 15px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .page-header h1 {
    font-size: 22px;
  }
  .main {
    padding: 32px 18px 60px;
  }
}
