:root {
  --primary: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.4);
  --bg-dark: #090e17; /* Ark deep space theme */
  --bg-card: #111827;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--bg-dark); color: var(--text-main); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; transition: 0.3s; }
a:hover { filter: brightness(1.2); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar { padding: 20px 0; background: rgba(9, 14, 23, 0.85); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: bold; background: linear-gradient(to right, #60a5fa, #a78bfa); -webkit-background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-main); font-weight: 500; }
.nav-links a:hover { color: #60a5fa; }

/* Hero */
.hero { padding: 60px 0; overflow: hidden; position: relative; }
.hero::before {
    content: ''; position: absolute; top: -10%; left: -10%; width: 50%; height: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%); filter: blur(80px); z-index: -1;
}
.hero-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text { flex: 1.2; z-index: 2; }
.hero-text h1 { font-size: 3.5rem; margin-bottom: 20px; background: linear-gradient(to right, #60a5fa, #a78bfa); -webkit-background-clip: text; color: transparent; line-height: 1.2; }
.hero-text p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; max-width: 500px; }
.hero-visual { flex: 0.8; position: relative; height: 350px; display: flex; justify-content: center; align-items: center; }

/* Dynamic Animation */
.ark-animation { position: relative; width: 100%; height: 100%; }
.glow-orb { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 200px; height: 200px; border-radius: 50%; background: linear-gradient(45deg, #2563eb, #8b5cf6); filter: blur(60px); animation: pulse 4s infinite alternate; }
.floating-card { position: absolute; background: rgba(17, 24, 39, 0.7); backdrop-filter: blur(15px); padding: 20px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: float 6s infinite ease-in-out; }
.floating-card:nth-child(2) { top: 15%; left: 0; animation-delay: 0s; }
.floating-card:nth-child(3) { bottom: 15%; right: 0; animation-delay: -3s; }
.floating-card h4 { color: #60a5fa; margin-bottom: 5px; font-size: 1.1rem; }
.floating-card p { font-size: 0.9rem; color: var(--text-main); margin-bottom: 2px;}

@keyframes pulse { 0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; } 100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* Buttons */
.btn-group { display: flex; gap: 15px; flex-wrap: wrap; }
.btn { display: inline-flex; justify-content: center; align-items: center; background: var(--primary); color: #fff; padding: 15px 35px; border-radius: 30px; font-weight: bold; font-size: 1.1rem; box-shadow: 0 4px 15px var(--primary-glow); transition: transform 0.3s, box-shadow 0.3s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--primary-glow); }
.btn-outline { background: transparent; border: 2px solid var(--primary); box-shadow: none; color: #60a5fa; }
.btn-outline:hover { background: rgba(37,99,235,0.1); color: #fff; }

section { padding: 60px 0; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 40px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--bg-card); padding: 30px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.05); transition: transform 0.3s; }
.card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.1); }
.card h3 { font-size: 1.5rem; margin-bottom: 15px; color: #fff; }
.card p { color: var(--text-muted); }

/* Pricing */
.pricing-card { text-align: center; padding: 40px 30px; display: flex; flex-direction: column; }
.pricing-card.popular { border: 2px solid var(--primary); position: relative; background: linear-gradient(180deg, #111827 0%, #172554 100%); }
.popular-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--primary); padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: bold; }
.price { font-size: 3.5rem; font-weight: bold; margin: 20px 0; color: #fff; }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: normal; }
.features { list-style: none; margin-bottom: 30px; text-align: left; flex-grow: 1; }
.features li { margin-bottom: 12px; color: var(--text-muted); padding-left: 24px; position: relative; }
.features li::before { content: "✓"; color: #10b981; position: absolute; left: 0; top: 0; font-weight: bold; }
.pricing-card .btn-group { flex-direction: column; width: 100%; gap: 12px; margin-top: 20px; }
.pricing-card .btn { width: 100%; padding: 14px; font-size: 1.05rem; }

/* FAQ */
.faq-item { background: var(--bg-card); padding: 25px; border-radius: 10px; margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.05); }
.faq-item h4 { font-size: 1.2rem; margin-bottom: 10px; color: #fff; }
.faq-item p { color: var(--text-muted); }

/* Footer */
footer { background: #06090f; padding: 50px 0 30px; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 60px; }
.footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 30px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 1.1rem; }
.footer-links a:hover { color: var(--primary); }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; z-index: 9999; }
.modal-content { background: var(--bg-card); padding: 40px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); max-width: 500px; width: 90%; position: relative; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8); animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close { position: absolute; top: 15px; right: 20px; background: none; border: none; color: #94a3b8; font-size: 2.2rem; cursor: pointer; line-height: 1; transition: color 0.2s; padding: 5px; }
.modal-close:hover { color: #ef4444; }

/* Articles Section */
.article-card { background: var(--bg-card); padding: 30px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.05); transition: transform 0.3s; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.1); }
.article-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: #fff; line-height: 1.4; }
.article-card p { color: var(--text-muted); flex-grow: 1; margin-bottom: 20px; font-size: 0.95rem; }
.article-card .read-more { color: #60a5fa; font-weight: bold; }

/* Article Page Layout */
.article-container { max-width: 900px; margin: 40px auto; padding: 40px; background: var(--bg-card); border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.article-header { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; margin-bottom: 30px; }
.article-header h1 { font-size: 2.5rem; margin-bottom: 15px; background: linear-gradient(to right, #60a5fa, #a78bfa); -webkit-background-clip: text; color: transparent; line-height: 1.3; }
.article-meta { color: var(--text-muted); font-size: 0.9rem; }
.toc { background: rgba(0,0,0,0.2); padding: 25px; border-radius: 15px; margin: 30px 0; border: 1px solid rgba(255,255,255,0.05); }
.toc h3 { margin-bottom: 15px; color: #60a5fa; font-size: 1.3rem; }
.toc ul { list-style: none; padding-left: 0; }
.toc li { margin-bottom: 12px; }
.toc li a { color: #e2e8f0; font-size: 1.05rem; }
.toc li a:hover { color: #60a5fa; padding-left: 5px; }
.article-content { font-size: 1.15rem; line-height: 1.8; color: #cbd5e1; }
.article-content h2 { font-size: 1.8rem; margin: 45px 0 20px; color: #fff; padding-bottom: 10px; border-bottom: 1px dashed rgba(255,255,255,0.1); }
.article-content h3 { font-size: 1.4rem; margin: 30px 0 15px; color: #f8fafc; }
.article-content p { margin-bottom: 25px; }
.article-content ul { margin-bottom: 25px; padding-left: 25px; }
.article-content li { margin-bottom: 10px; }
.article-faq { margin-top: 60px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); }
.article-faq h2 { font-size: 2rem; color: #fff; margin-bottom: 30px; text-align: center; }

@media (max-width: 900px) {
  .hero-wrapper { flex-direction: column; text-align: center; }
  .hero-text p { margin: 0 auto 30px; }
  .hero-visual { height: 300px; width: 100%; }
  .btn-group { justify-content: center; }
  .nav-links { display: none; }
  header h1 { font-size: 2.5rem; }
  .price { font-size: 3rem; }
}
