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

:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --surface-hover: #1a1a24;
  --border: rgba(255,255,255,.1);
  --text: #fff;
  --text-secondary: rgba(255,255,255,.6);
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --gradient-1: linear-gradient(135deg,#667eea 0%,#764ba2 100%);
  --gradient-2: linear-gradient(135deg,#f093fb 0%,#f5576c 100%);
  --gradient-3: linear-gradient(135deg,#4facfe 0%,#00f2fe 100%);
  --glow: rgba(99,102,241,.5);
  --success: #10b981;
  --warning: #f59e0b;
}
body.light {
  --bg: #fff;
  --surface: #f8f9fa;
  --surface-hover: #e9ecef;
  --border: rgba(0,0,0,.1);
  --text: #000;
  --text-secondary: rgba(0,0,0,.6);
  --glow: rgba(99,102,241,.3);
}

body {
  font-family: 'Cabinet Grotesk', -apple-system, sans-serif;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  transition: background .3s, color .3s;
  line-height: 1.6;
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
.nav-container {
  max-width: 1400px; margin: 0 auto;
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.logo {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.5rem; font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-decoration: none;
}
.logo svg { flex-shrink: 0; }

.nav-links {
  display: flex; gap: .5rem; align-items: center;
}
.nav-link {
  padding: .5rem 1rem; border: none; background: transparent;
  color: var(--text-secondary); font-size: .875rem; font-weight: 500;
  cursor: pointer; border-radius: .5rem; transition: all .2s;
  text-decoration: none; display: inline-block;
}
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link.active { background: var(--surface); color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.theme-toggle {
  padding: .5rem; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); border-radius: .5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.theme-toggle:hover { background: var(--surface-hover); transform: scale(1.05); }

/* Mobile Menu */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.active { display: flex; }
  .mobile-menu-btn {
    display: block;
    padding: .5rem;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 1.25rem;
  }
}
.mobile-menu-btn { display: none; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all .3s;
}
.card:hover { border-color: var(--accent); box-shadow: 0 8px 32px rgba(99,102,241,.1); }
.card-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem;
}
.card-title {
  font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: .5rem;
}

/* Buttons */
.btn {
  padding: .875rem 1rem; border: none; border-radius: .75rem;
  font-weight: 600; cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; gap: .5rem; transition: all .2s; font-size: .9rem;
  font-family: inherit;
}
.btn-primary {
  background: var(--gradient-1); color: #fff;
  box-shadow: 0 4px 12px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--glow); }
.btn-secondary { background: var(--bg); border: 2px solid var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* Content Pages */
.content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.content-page h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.content-page h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.content-page h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: .75rem;
  color: var(--text);
}
.content-page p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}
.content-page ul, .content-page ol {
  margin-bottom: 1rem;
  margin-left: 1.5rem;
  color: var(--text-secondary);
}
.content-page li { margin-bottom: .5rem; }
.content-page a { color: var(--accent); text-decoration: none; }
.content-page a:hover { text-decoration: underline; }

/* FAQ Styles */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.faq-question {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: .75rem;
  color: var(--text);
}
.faq-answer {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}
.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 768px) {
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}
.footer-section p {
  color: var(--text-secondary);
  font-size: .875rem;
  line-height: 1.6;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .875rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1400px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: .875rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn .3s ease; }
