:root {
    --bg-dark: #050510;
    --bg-card: #0F0F1A;
    --primary: #7C4DFF;
    --primary-glow: rgba(124, 77, 255, 0.4);
    --text-main: #FFFFFF;
    --text-muted: #A0A0B1;
    --accent: #00E676;
    --danger: #FF5252;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Live Status Animation */
.live-status-bar {
    background: #00E676;
    height: 4px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    box-shadow: 0 0 15px #00E676;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.ambient-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(150px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.1;
    animation: floatingGlow 15s infinite alternate ease-in-out;
}

@keyframes floatingGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100vw, 100vh); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    height: 80px;
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #1F1F2F;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    gap: 15px;
}

.live-badge {
    background: rgba(0, 230, 118, 0.1);
    color: #00E676;
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 900;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #00E676;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

.pulse-icon {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: var(--primary-glow);
    filter: blur(150px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-content-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.text-center {
    text-align: center;
    max-width: 800px;
}

/* Glitch Effect for 404 */
.glitch {
    font-size: 8rem;
    font-weight: 800;
    position: relative;
    color: white;
    margin-bottom: 10px;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #FF5252;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #7C4DFF;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(62px, 9999px, 42px, 0); }
    40% { clip: rect(16px, 9999px, 78px, 0); }
    60% { clip: rect(81px, 9999px, 13px, 0); }
    80% { clip: rect(54px, 9999px, 33px, 0); }
    100% { clip: rect(98px, 9999px, 66px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(67px, 9999px, 24px, 0); }
    20% { clip: rect(12px, 9999px, 89px, 0); }
    40% { clip: rect(94px, 9999px, 56px, 0); }
    60% { clip: rect(34px, 9999px, 77px, 0); }
    80% { clip: rect(21px, 9999px, 45px, 0); }
    100% { clip: rect(55px, 9999px, 12px, 0); }
}

.badge {
    background: rgba(124, 77, 255, 0.1);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 25px;
}

.text-gradient {
    background: linear-gradient(135deg, #7C4DFF 0%, #00E676 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(124, 77, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(124, 77, 255, 0.4);
}

.btn-outline {
    border: 1px solid #1F1F2F;
    color: var(--text-main);
}

.btn-outline:hover {
    background: #1F1F2F;
}

.btn-lg {
    padding: 16px 35px;
    font-size: 1.1rem;
}

/* Hero Image & Mockup */
.mockup-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #1F1F2F;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.mockup-container img {
    width: 100%;
    display: block;
}

.glass-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(5px);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 800;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* Feature Section */
.features {
    padding: 100px 0;
    background: #070715;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #1F1F2F;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-card i {
    color: var(--primary);
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.check-list i {
    color: var(--accent);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat-card {
    background: #0A0A10;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #1F1F2F;
}

.stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta {
    padding: 100px 0;
}

.cta-card {
    background: linear-gradient(135deg, #7C4DFF 0%, #512DA8 100%);
    padding: 80px;
    border-radius: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-card p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
}

.watermark {
    display: block;
    margin-top: 50px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 5px;
    opacity: 0.3;
}

/* Footer */
footer {
    padding: 50px 0;
    border-top: 1px solid #1F1F2F;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--primary);
}

/* Subpage Styles */
.subpage {
    background: #050510;
}

.page-header {
    padding: 150px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    margin: 10px 0;
}

.content-section {
    padding: 60px 0 120px;
}

.small-container {
    max-width: 800px;
}

/* Card General */
.card {
    background: var(--bg-card);
    border: 1px solid #1F1F2F;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

/* FAQ Accordion */
.faq-item {
    background: #0A0A15;
    border: 1px solid #1F1F2F;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #0F0F20;
}

.faq-answer {
    max-height: 0;
    padding: 0 25px;
    overflow: hidden;
    transition: all 0.3s ease-out;
    color: var(--text-muted);
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 25px 25px;
}

.faq-item.open i {
    transform: rotate(180deg);
}

/* Manual & Docs Grid */
.manual-grid, .docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 50px;
}

.sticky-nav, .docs-sidebar {
    position: sticky;
    top: 120px;
}

.sticky-nav h4, .docs-sidebar h3 {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sticky-nav a, .docs-sidebar a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.sticky-nav a:hover, .docs-sidebar a:hover {
    color: var(--primary);
}

.manual-step, .doc-section {
    margin-bottom: 80px;
}

.manual-step h2, .doc-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.code-block {
    background: #000;
    color: #00FF41;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Consolas', monospace;
    margin: 20px 0;
    border: 1px solid #1F1F2F;
}

/* Download Page */
.download-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.main-download {
    background: linear-gradient(135deg, #0F0F1A 0%, #1A1A2E 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dl-info {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    text-align: left;
}

.dl-info i {
    width: 60px;
    height: 60px;
    color: var(--primary);
}

.dl-meta {
    margin-top: 30px;
    display: flex;
    gap: 30px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.team-card {
    text-align: center;
    padding: 30px;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.active {
    color: var(--primary) !important;
}

@media (max-width: 968px) {
    .manual-grid, .docs-layout, .download-container {
        grid-template-columns: 1fr;
    }
    
    .sticky-nav {
        display: none;
    }
}
