:root {
    --primary: #2f6bff;
    --primary-hover: #1a4fd6;
    --bg-dark: #0a0e17;
    --bg-card: #151b2b;
    --bg-card-hover: #1e263c;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --border-color: #2d3748;
    --primary-rgb: 47, 107, 255;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg-dark); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Navbar */
.navbar { position: fixed; top: 0; width: 100%; height: 70px; background: rgba(10, 14, 23, 0.85); backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; padding: 0 5%; }
.nav-brand { font-size: 24px; font-weight: bold; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: 15px; align-items: center; }
.btn { display: inline-block; padding: 10px 24px; border-radius: 8px; font-weight: 600; text-align: center; transition: all 0.3s; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: #000; box-shadow: 0 0 15px rgba(47, 107, 255, 0.4); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 0 25px rgba(47, 107, 255, 0.6); }
.btn-secondary { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-secondary:hover { background: rgba(47, 107, 255, 0.1); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--text-muted); color: var(--text-main); padding: 8px 16px; background: transparent; }
.btn-outline:hover { border-color: var(--text-main); }
.menu-toggle { display: none; font-size: 28px; cursor: pointer; color: var(--text-main); background: none; border: none; }
.nav-menu-wrapper { display: flex; align-items: center; gap: 30px; }

/* Sections */
section { padding: 100px 5%; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: 36px; margin-bottom: 20px; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 60px; font-size: 18px; }

.hero {
    display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; text-align: center; padding-top: 120px;
    position: relative;
    background: 
        radial-gradient(circle at 50% 50%, rgba(47, 107, 255, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at bottom, #0a0e17 0%, #05070a 100%);
    overflow: hidden;
    z-index: 1;
}

/* Nebula / Galaxy Clouds */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -2;
    pointer-events: none;
    background: 
        radial-gradient(ellipse 70% 50% at 5% 10%, rgba(47, 107, 255, 0.45) 0%, rgba(90, 140, 255, 0.2) 40%, transparent 75%),
        radial-gradient(ellipse 60% 60% at 95% 90%, rgba(90, 140, 255, 0.45) 0%, rgba(47, 107, 255, 0.2) 40%, transparent 75%),
        radial-gradient(circle 45vw at 90% 10%, rgba(47, 107, 255, 0.35) 0%, transparent 65%),
        radial-gradient(circle 50vw at 10% 90%, rgba(90, 140, 255, 0.35) 0%, transparent 65%),
        radial-gradient(ellipse 100% 40% at 50% 50%, rgba(47, 107, 255, 0.1) 0%, transparent 70%);
    background-blend-mode: screen;
    animation: galaxy-drift 15s ease-in-out infinite alternate;
}
@keyframes galaxy-drift {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.15); opacity: 1; }
}
/* Meteor Shower */
.meteor-shower {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}
.meteor {
    position: absolute;
    width: 250px;
    height: 2px;
    background: linear-gradient(90deg, rgba(47, 107, 255, 0) 0%, rgba(47, 107, 255, 0.8) 80%, #fff 100%);
    box-shadow: 0 0 20px rgba(47, 107, 255, 0.8);
    border-radius: 50%;
    transform-origin: left center;
    animation: shooting-star 6s linear infinite;
    opacity: 0;
}
.meteor:nth-child(1) { bottom: 10%; left: -10%; animation-delay: 0s; }
.meteor:nth-child(2) { bottom: 25%; left: -5%; animation-delay: 1s; }
.meteor:nth-child(3) { bottom: 0%; left: -15%; animation-delay: 2s; }
.meteor:nth-child(4) { bottom: 40%; left: -20%; animation-delay: 3s; }
.meteor:nth-child(5) { bottom: 15%; left: -5%; animation-delay: 4s; }
.meteor:nth-child(6) { bottom: 30%; left: -10%; animation-delay: 5s; }

@keyframes shooting-star {
    0% { transform: rotate(-45deg) translateX(-300px); opacity: 0; }
    3% { opacity: 1; }
    15% { transform: rotate(-45deg) translateX(150vw); opacity: 0; }
    100% { transform: rotate(-45deg) translateX(150vw); opacity: 0; }
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 17% 32%, rgba(255,255,255,0.9) 0, transparent 3.5px),
        radial-gradient(circle at 63% 18%, rgba(255,255,255,0.7) 0, transparent 1.5px),
        radial-gradient(circle at 88% 74%, rgba(47,107,255,0.8) 0, transparent 4px),
        radial-gradient(circle at 31% 81%, rgba(255,255,255,1) 0, transparent 4.5px),
        radial-gradient(circle at 11% 54%, rgba(255,255,255,0.6) 0, transparent 3px),
        radial-gradient(circle at 42% 14%, rgba(47,107,255,0.5) 0, transparent 1px),
        radial-gradient(circle at 76% 41%, rgba(255,255,255,0.9) 0, transparent 2px),
        radial-gradient(circle at 53% 92%, rgba(255,255,255,0.8) 0, transparent 1.5px),
        radial-gradient(circle at 94% 23%, rgba(47,107,255,0.6) 0, transparent 3.5px);
    background-size: 173px 211px, 281px 313px, 439px 387px, 197px 223px, 347px 359px, 131px 157px, 263px 293px, 503px 479px, 311px 277px;
    background-position: 0 0, 42px 19px, 105px 76px, -23px 44px, 12px -56px, -89px 11px, 67px -33px, -45px -87px, 99px 123px;
    animation: starlight 6s ease-in-out infinite alternate;
}
@keyframes starlight {
    0% { opacity: 0.2; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1.08); }
}
.promo-tag { background: rgba(47, 107, 255, 0.1); color: var(--primary); padding: 6px 20px; border-radius: 20px; font-size: 14px; font-weight: bold; margin-bottom: 30px; border: 1px solid var(--primary); display: inline-block; }
.hero h1 { font-size: 56px; margin-bottom: 24px; line-height: 1.2; letter-spacing: -1px; }
.hero p { font-size: 20px; color: var(--text-muted); max-width: 800px; margin-bottom: 40px; }
.hero-btns { display: flex; gap: 20px; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { background: var(--bg-card); padding: 40px 30px; border-radius: 16px; border: 1px solid var(--border-color); transition: transform 0.3s, border-color 0.3s; text-align: left; }
.card:hover { transform: translateY(-10px); background: var(--bg-card-hover); border-color: var(--primary); }
.card-icon { font-size: 40px; margin-bottom: 20px; display: inline-block; }
.card h3 { font-size: 24px; margin-bottom: 15px; }
.card p { color: var(--text-muted); }

/* Pricing */
.pricing-card { display: flex; flex-direction: column; text-align: center; position: relative; }
.pricing-card.highlight { transform: scale(1.05); border-color: var(--primary); box-shadow: 0 0 30px rgba(47, 107, 255, 0.1); }
.pricing-card.highlight:hover { transform: scale(1.05) translateY(-10px); }
.highlight-tag { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #000; padding: 4px 16px; border-radius: 12px; font-weight: bold; font-size: 14px; white-space: nowrap; }
.price { font-size: 48px; font-weight: bold; margin: 20px 0; color: var(--primary); }
.price span { font-size: 18px; color: var(--text-muted); font-weight: normal; }
.pricing-features { margin: 30px 0; text-align: left; flex-grow: 1; }
.pricing-features li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.pricing-features li::before { content: '✓'; color: var(--primary); font-weight: bold; }
.pricing-card .btn { width: 100%; margin-top: 20px; }

/* Deep Features */
.feature-row { display: flex; align-items: center; gap: 60px; margin-bottom: 100px; }
.feature-row:nth-child(even) { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-text h2 { font-size: 32px; margin-bottom: 20px; }
.feature-text p { color: var(--text-muted); font-size: 18px; margin-bottom: 30px; }
.feature-visual { flex: 1; background: var(--bg-card); border-radius: 16px; border: 1px solid var(--border-color); padding: 30px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); width: 100%; }

/* Terminal */
.terminal-header { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f56; } .dot-y { background: #ffbd2e; } .dot-g { background: #27c93f; }
.terminal-title { margin-left: 10px; font-size: 12px; color: var(--text-muted); font-family: monospace; }
.terminal-body { font-family: monospace; color: #a0aec0; font-size: 14px; white-space: pre-wrap; line-height: 1.5; }
.terminal-body .cmd { color: var(--primary); }
.terminal-body .success { color: #27c93f; }

/* Data Panel */
.data-panel { display: flex; flex-direction: column; gap: 20px; }
.data-bar-row { display: flex; align-items: center; gap: 15px; }
.data-label { width: 80px; font-weight: bold; font-size: 14px; color: var(--text-muted); }
.data-bar-bg { flex: 1; height: 8px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; }
.data-bar-fill { height: 100%; background: var(--primary); border-radius: 4px; animation: loadBar 2s ease-out forwards; }
@keyframes loadBar { from { width: 0; } }
.data-stat { font-family: monospace; color: var(--primary); font-weight: bold; width: 50px; text-align: right; }

/* Marquee */
.marquee-wrapper { width: 100%; overflow: hidden; background: var(--bg-card); padding: 60px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.marquee-content { display: flex; width: max-content; animation: marquee 25s linear infinite; gap: 30px; padding: 0 15px; }
.marquee-content:hover { animation-play-state: paused; }
.testimonial { width: 350px; background: var(--bg-dark); padding: 30px; border-radius: 16px; border: 1px solid var(--border-color); white-space: normal; flex-shrink: 0; }
.stars { color: #f59e0b; margin-bottom: 15px; font-size: 18px; letter-spacing: 2px; }
.testimonial p { color: var(--text-muted); margin-bottom: 20px; font-style: italic; line-height: 1.6; }
.testimonial h4 { font-weight: bold; font-size: 16px; }

@keyframes marquee { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(calc(-50% - 15px)); } 
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
details { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; transition: all 0.3s; }
details[open] { border-color: var(--primary); }
summary { padding: 20px; font-size: 18px; font-weight: bold; cursor: pointer; outline: none; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 24px; color: var(--primary); transition: transform 0.3s; line-height: 1; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 20px 20px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* Bottom CTA */
.bottom-cta { text-align: center; padding: 120px 5%; background: radial-gradient(circle at bottom, #151b2b 0%, var(--bg-dark) 100%); border-top: 1px solid var(--border-color); }
.bottom-cta h2 { font-size: 48px; margin-bottom: 24px; }
.bottom-cta p { color: var(--text-muted); margin-bottom: 40px; font-size: 20px; max-width: 600px; margin-inline: auto; }
.bottom-cta .btn { font-size: 20px; padding: 16px 48px; border-radius: 30px; }

/* Footer */
footer { border-top: 1px solid var(--border-color); padding: 60px 5% 40px; background: var(--bg-card); text-align: center; }
.footer-logo { font-size: 24px; font-weight: bold; color: var(--primary); margin-bottom: 30px; }
.footer-links { display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); transition: color 0.3s; font-size: 16px; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { color: #4a5568; font-size: 14px; }

/* Subpage */
.subpage-header { padding: 160px 5% 60px; text-align: center; background: radial-gradient(circle at top, #151b2b 0%, var(--bg-dark) 100%); border-bottom: 1px solid var(--border-color); }
.subpage-content { padding: 80px 5%; max-width: 800px; margin: 0 auto; color: var(--text-muted); font-size: 16px; }
.subpage-content h2 { color: var(--text-main); margin: 40px 0 20px; font-size: 24px; }
.subpage-content p { margin-bottom: 20px; }
.subpage-content ul { padding-left: 20px; margin-bottom: 20px; list-style: disc; }
.subpage-content li { margin-bottom: 10px; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu-wrapper { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: var(--bg-dark); padding: 30px 20px; border-bottom: 1px solid var(--border-color); gap: 20px; }
    .nav-menu-wrapper.active { display: flex; }
    .menu-toggle { display: block; }
    .nav-links { flex-direction: column; gap: 20px; text-align: center; width: 100%; }
    .nav-actions { flex-direction: column; width: 100%; gap: 15px; }
    .nav-actions .btn { width: 100%; }
    
    .hero { padding-top: 140px; }
    .hero h1 { font-size: 40px; }
    .hero p { font-size: 16px; padding: 0 10px; }
    .hero-btns { flex-direction: column; width: 100%; max-width: 300px; }
    .hero-btns .btn { width: 100%; }
    
    .grid-3 { grid-template-columns: 1fr; gap: 20px; }
    .pricing-card.highlight { transform: scale(1); }
    .pricing-card.highlight:hover { transform: translateY(-5px); }
    
    .feature-row, .feature-row:nth-child(even) { flex-direction: column; gap: 40px; }
    .feature-text { text-align: center; }
    
    .bottom-cta h2 { font-size: 36px; }
    .bottom-cta p { font-size: 16px; }
    
    .footer-links { gap: 20px; flex-direction: column; }
    section { padding: 60px 5%; }
    .hero-stats { gap: 15px; flex-direction: column; align-items: center; }
}

/* Accessibility & Hero Extensions */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0 40px;
    flex-wrap: wrap;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
}
.hero-stats span {
    background: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}
