* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: #0a0a1a; color: #d4d4f4; line-height: 1.7; font-size: 15px; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
a { color: #b794f4; text-decoration: none; }
a:hover { color: #f0abfc; }

/* Nav */
.navbar { background: rgba(10,10,26,0.95); border-bottom: 1px solid #2d2b55; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px); }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; height: 60px; }
.logo { font-size: 1.15rem; font-weight: 800; color: #b794f4 !important; text-decoration: none; letter-spacing: 0.02em; }
.logo span { color: #f0abfc; }
.nav-links { display: flex; list-style: none; gap: 0.25rem; }
.nav-links a { color: #9899c7; text-decoration: none; padding: 0.4rem 0.8rem; border-radius: 8px; font-size: 0.88rem; transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #d4d4f4; background: #1e1c35; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #9899c7; }

/* Hero */
.hero { padding: 6rem 0 4rem; text-align: center; background: radial-gradient(ellipse at 50% 0%, #1a1040 0%, #0a0a1a 60%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(183,148,244,0.08) 0%, transparent 70%); pointer-events: none; }
.hero h1 { font-size: 2.8rem; font-weight: 800; color: #f0f0ff; margin-bottom: 1rem; letter-spacing: -0.02em; text-shadow: 0 0 40px rgba(183,148,244,0.3); }
.hero h1 span { background: linear-gradient(135deg, #b794f4, #f0abfc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.1rem; color: #9899c7; max-width: 560px; margin: 0 auto 1.5rem; }
.hero .tagline { color: #c4b5fd; font-size: 1.05rem; margin-bottom: 2rem; }
.stats-bar { display: flex; justify-content: center; gap: 3rem; padding: 2rem 0; }
.stat { text-align: center; }
.stat .num { font-size: 2rem; font-weight: 700; color: #b794f4; }
.stat .label { font-size: 0.8rem; color: #6b6b8f; text-transform: uppercase; letter-spacing: 0.05em; }

/* Buttons */
.btn { display: inline-block; padding: 0.65rem 1.4rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; text-decoration: none; border: none; transition: all 0.2s; font-family: inherit; }
.btn-primary { background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; box-shadow: 0 4px 15px rgba(124,58,237,0.3); }
.btn-primary:hover { background: linear-gradient(135deg, #6d28d9, #9333ea); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,0.4); }
.btn-secondary { background: #1e1c35; color: #c4b5fd; border: 1px solid #3d3a5c; }
.btn-secondary:hover { background: #2d2b55; color: #f0abfc; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; padding: 2rem 0; }

/* Cards */
.card { background: linear-gradient(135deg, #13122a, #1a1635); border: 1px solid #2d2b55; border-radius: 12px; padding: 1.5rem; transition: all 0.25s; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 30%, rgba(183,148,244,0.03) 0%, transparent 50%); pointer-events: none; }
.card:hover { border-color: #7c3aed; transform: translateY(-3px); box-shadow: 0 8px 30px rgba(124,58,237,0.15); }
.card h3 { font-size: 1rem; color: #e0dff4; margin-bottom: 0.5rem; font-weight: 600; }
.card p { color: #7b7aa0; font-size: 0.88rem; margin-bottom: 1rem; }
.card .tag { display: inline-block; background: rgba(124,58,237,0.15); color: #b794f4; padding: 0.15rem 0.6rem; border-radius: 20px; font-size: 0.72rem; margin-bottom: 0.75rem; border: 1px solid rgba(124,58,237,0.2); }
.card-btn { display: inline-block; color: #b794f4; font-size: 0.85rem; text-decoration: none; font-weight: 600; }
.card-btn:hover { color: #f0abfc; }

/* Tool page */
.tool-container { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem; }
.tool-header { padding: 2rem 0; border-bottom: 1px solid #2d2b55; margin-bottom: 2rem; }
.tool-header h1 { font-size: 1.8rem; color: #f0f0ff; margin-bottom: 0.5rem; }
.tool-header p { color: #7b7aa0; font-size: 1rem; }

/* Forms */
.tool-form { background: linear-gradient(135deg, #13122a, #1a1635); border: 1px solid #2d2b55; border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; color: #c4b5fd; margin-bottom: 0.4rem; font-size: 0.88rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.65rem 0.9rem; background: #0a0a1a; border: 1px solid #3d3a5c; border-radius: 8px; color: #d4d4f4; font-family: inherit; font-size: 0.9rem; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.output-area { background: #0a0a1a; border: 1px solid #2d2b55; border-radius: 12px; padding: 1.25rem; display: none; }
.output-area pre { color: #c4b5fd; white-space: pre-wrap; word-break: break-all; font-size: 0.88rem; line-height: 1.6; }
.output-actions { display: flex; gap: 0.75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #2d2b55; }

/* Article */
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { color: #f0f0ff; font-size: 1.5rem; margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #2d2b55; }
.article-body h3 { color: #c4b5fd; font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.article-body p { margin-bottom: 1.25rem; color: #c4c4e4; font-size: 0.95rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.25rem 1.5rem; color: #c4c4e4; }
.article-body li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.article-body a { color: #b794f4; }
.article-body a:hover { color: #f0abfc; }
.article-body img { width: 100%; border-radius: 12px; margin: 1.5rem 0; border: 1px solid #2d2b55; }
.article-body code { background: #1a1635; padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.85em; color: #f0abfc; border: 1px solid #2d2b55; }
.article-body pre { background: #1a1635; border: 1px solid #2d2b55; border-radius: 10px; padding: 1.25rem; overflow-x: auto; margin: 1.5rem 0; }
.article-body pre code { background: none; border: none; padding: 0; color: #c4b5fd; font-size: 0.85rem; }
.article-meta { color: #7b7aa0; font-size: 0.85rem; margin-bottom: 1.5rem; }
.breadcrumb { max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem; font-size: 0.82rem; color: #6b6b8f; }
.breadcrumb a { color: #b794f4; }

/* Section */
.section-title { font-size: 1.8rem; color: #f0f0ff; margin-bottom: 0.5rem; font-weight: 700; }
.section-desc { color: #7b7aa0; margin-bottom: 2rem; }
.related { background: linear-gradient(135deg, #13122a, #1a1635); border: 1px solid #2d2b55; border-radius: 12px; padding: 1.5rem; margin-top: 2.5rem; }
.related h3 { color: #c4b5fd; margin-bottom: 1rem; font-size: 1rem; }
.related ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.related li a { background: rgba(124,58,237,0.12); color: #b794f4; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.82rem; text-decoration: none; border: 1px solid rgba(124,58,237,0.2); }
.related li a:hover { background: rgba(124,58,237,0.25); color: #f0abfc; }

/* Footer */
.footer { background: linear-gradient(to bottom, #0a0a1a, #06060f); border-top: 1px solid #2d2b55; padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2rem; }
.footer h4 { color: #c4b5fd; margin-bottom: 0.75rem; font-size: 0.95rem; }
.footer p { color: #5b5b7a; font-size: 0.85rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.4rem; }
.footer a { color: #7b7aa0; text-decoration: none; font-size: 0.88rem; }
.footer a:hover { color: #b794f4; }
.footer-bottom { text-align: center; padding: 1.5rem 1.5rem 0; color: #3d3a5c; font-size: 0.82rem; max-width: 1200px; margin: 2rem auto 0; border-top: 1px solid #1e1c35; }

/* Page content */
.page-content { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem; }
.page-content h1 { font-size: 2rem; color: #f0f0ff; margin-bottom: 1.5rem; font-weight: 700; }
.page-content h2 { color: #f0f0ff; font-size: 1.4rem; margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #2d2b55; }
.page-content h3 { color: #c4b5fd; font-size: 1.1rem; margin: 1.5rem 0 0.75rem; }
.page-content p { margin-bottom: 1.1rem; color: #c4c4e4; font-size: 0.95rem; }
.page-content ul, .page-content ol { margin: 1rem 0 1.25rem 1.5rem; color: #c4c4e4; }
.page-content li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.page-content a { color: #b794f4; }
.page-content a:hover { color: #f0abfc; }
.page-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.page-content th, .page-content td { padding: 0.75rem; border: 1px solid #2d2b55; text-align: left; font-size: 0.88rem; }
.page-content th { background: #1a1635; color: #c4b5fd; }
.page-content td { color: #c4c4e4; }

/* CTA */
.cta-section { background: linear-gradient(135deg, #13122a, #1a1040); border: 1px solid #7c3aed; border-radius: 16px; padding: 3rem; text-align: center; margin: 3rem 0; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 400px; height: 400px; background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%); pointer-events: none; }
.cta-section h2 { color: #f0f0ff; font-size: 1.6rem; margin-bottom: 1rem; }
.cta-section p { color: #9899c7; margin-bottom: 1.5rem; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #0a0a1a; border-bottom: 1px solid #2d2b55; padding: 1rem; }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
  .grid { grid-template-columns: 1fr; }
  .stats-bar { gap: 1.5rem; }
  .section-title { font-size: 1.4rem; }
}
