/* Google Fonts loaded via HTML <link> for better mobile compatibility */

:root {
    --bg-color: #0A0E0A;
    --accent-color: #4ADE80;
    --text-primary: #C8E6C9;
    --text-secondary: #6B8E6B;
    --border-color: rgba(74, 222, 128, 0.2);
    --glass-bg: rgba(10, 14, 10, 0.7);
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font-mono);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    color: var(--accent-color);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 5%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.nav-brand img {
    height: 24px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    font-size: 0.9rem;
}

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

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.lang-toggle {
    cursor: pointer;
    font-weight: 700;
    user-select: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    color: var(--accent-color);
    border: 1px solid var(--border-color);
    background: rgba(74, 222, 128, 0.05);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn:hover {
    background: rgba(74, 222, 128, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
    text-shadow: 0 0 5px rgba(74, 222, 128, 0.5);
}

.btn-primary {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--accent-color);
}

/* Sections */
section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 8rem;
}

.ascii-art {
    font-size: clamp(0.3rem, 1vw, 1rem);
    line-height: 1.2;
    color: var(--accent-color);
    white-space: pre;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
    overflow-x: auto;
    max-width: 100%;
}

.hero h1 {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;

}

/* Mockup Carousel */
.mockup-showcase {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 4rem auto;
    aspect-ratio: 9/19;
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    overflow: hidden;
    background: rgba(10, 14, 10, 0.8);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.1);

}

.mockup-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: flex;
    flex-direction: column;
}

.mockup-slide.active {
    opacity: 1;
}

.mockup-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mockup-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem;
    background: linear-gradient(transparent, var(--bg-color));
    text-align: center;
    font-size: 0.85rem;
    color: var(--accent-color);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    background: rgba(74, 222, 128, 0.02);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(74, 222, 128, 0.05);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(74, 222, 128, 0.05);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* How It Works */
.how-it-works {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 2rem;

}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--border-color);
    min-width: 60px;
    text-align: right;
}

.step-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;

}

.faq-question {
    padding: 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--accent-color);
    font-weight: 700;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--text-primary);
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    color: var(--text-secondary);
}

.faq-answer-content {
    padding-bottom: 1.5rem;
}

/* Security Layout */
.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.sec-col {

}

.sec-col h3 {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.sec-col ul {
    list-style: none;
}

.sec-col li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.sec-col li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.sec-col.cannot li::before {
    content: '!';
    color: #ef4444;
}

/* Download Page Specifics */
.download-page {
    padding-top: 10rem;
    min-height: calc(100vh - 100px);
    text-align: center;
}

.dl-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    border: 1px solid var(--accent-color);
    background: rgba(74, 222, 128, 0.05);
}

.dl-version {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.warning-box {
    margin-top: 3rem;
    padding: 1.5rem;
    border: 1px solid #ef4444;
    background: rgba(239, 68, 68, 0.05);
    text-align: left;
}

.warning-box h4 {
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Privacy Page Specifics */
.privacy-page {
    padding-top: 8rem;
}

.markdown-body {
    max-width: 800px;
    margin: 0 auto;
}

.markdown-body h1 {
    color: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.markdown-body h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.markdown-body p, .markdown-body ul {
    margin-bottom: 1.5rem;
}

.markdown-body ul {
    padding-left: 2rem;
}

.markdown-body li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
    margin-left: 1rem;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--glass-bg);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.4s ease;
        z-index: 99;
        display: flex; /* Override previous flex styling to enable sliding */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .security-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .step-number {
        text-align: left;
    }
}
