/* Base Variables matching PixelPad Scheme */
:root {
    --bg-dark: #212020;
    --card-dark: #232323;
    --accent: #896CFE;
    --accent-hover: #B7A2FF;
    --accent-yellow: #F1F27A;
    --wordmark: #B49CFF;
    --text-primary: #ffffff;
    --text-secondary: #C6B7FF;
    --border-color: rgba(183, 162, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: transparent;
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-color: var(--bg-dark);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(33, 32, 32, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo {
    font-family: 'Geometos', 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--wordmark);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

/* Language Selector */
.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn svg {
    width: 16px;
    height: 16px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--card-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    min-width: 140px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.lang-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s;
}

.lang-dropdown a:hover {
    background: rgba(137, 108, 254, 0.15);
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 24px 60px;
}

.hero-content {
    width: 100%;
    max-width: 800px;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 100%;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(137, 108, 254, 0.15);
    border: 1px solid rgba(137, 108, 254, 0.3);
    color: var(--wordmark);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-metrics {
    display: flex;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.metric {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.metric svg {
    width: 20px;
    height: 20px;
    color: var(--accent-yellow);
}

.btn {
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn.primary {
    background-color: var(--accent-yellow);
    color: #101010;
}

.btn.primary:hover {
    background-color: #ffffa0;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(241, 242, 122, 0.3);
}

.btn.secondary {
    background-color: var(--card-dark);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}



/* Features Section */
.features {
    padding: 100px 24px;
    background-color: var(--card-dark);
    text-align: center;
}

.features h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 18px;
}

.feature-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 40px 24px;
    border-radius: 20px;
    text-align: left;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
}

.glass-icon {
    font-size: 32px;
    width: 64px;
    height: 64px;
    background: rgba(241, 242, 122, 0.1);
    border: 1px solid rgba(241, 242, 122, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-yellow);
}

.glass-icon svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Common Section Layouts */
.specs, .download, .gallery, .faq, .store {
    padding: 100px 24px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

/* Specs Section */
.spec-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    padding: 40px;
    text-align: left;
    margin-top: 40px;
}
.spec-item i {
    width: 32px;
    height: 32px;
    color: var(--accent);
    margin-bottom: 16px;
}
.spec-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.spec-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Download Section */
.download-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.dl-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    min-height: 260px;
}
.dl-card i {
    width: 48px;
    height: 48px;
    color: var(--text-primary);
    margin-bottom: 24px;
}
.dl-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
}
.dl-meta {
    min-height: 44px;
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
}
.download-note {
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.gallery-item {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.placeholder i {
    color: rgba(255,255,255,0.3);
    width: 32px;
    height: 32px;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    padding: 20px 24px;
    text-align: left;
    cursor: pointer;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question h3 {
    font-size: 16px;
    margin: 0;
}
.faq-question i {
    transition: transform 0.3s;
    color: var(--accent);
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 16px;
}

/* Store Section */
.store-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 48px;
    text-align: left;
    flex-wrap: wrap;
    gap: 24px;
}
.store-text h2 {
    font-size: 32px;
    margin-bottom: 8px;
}
.store-price {
    display: flex;
    align-items: center;
    gap: 24px;
}
.store-price .price {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent-yellow);
}

/* App Identity Section */
.about {
    padding: 100px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-container {
    background: linear-gradient(120deg, rgba(35, 35, 35, 0.8) 0%, rgba(33, 32, 32, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.about-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--accent-yellow);
    filter: blur(100px);
    opacity: 0.15;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(241, 242, 122, 0.15);
    color: var(--accent-yellow);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.about-text p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    max-width: 700px;
}

/* Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.7); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--card-dark);
    margin: auto;
    padding: 40px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: white;
}

.legal-text h3 {
    margin: 20px 0 10px;
    color: var(--accent);
}

.legal-text p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Footer */
.footer {
    background-color: #080808;
    padding: 60px 24px 30px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-info h3 {
    color: var(--accent);
    margin-bottom: 20px;
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-legal {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dotted rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 13px;
}

.icp-link {
    color: var(--text-secondary);
    text-decoration: underline;
    text-decoration-color: rgba(191, 191, 191, 0.3);
}

.icp-link:hover {
    color: var(--accent);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        align-items: center;
        text-align: center;
        padding-top: 140px;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .hero-metrics {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .about-container {
        padding: 40px 20px;
    }
}
