/* CSS Custom Properties - Menu Mindmap Colors */
:root {
    --color-deep: #17181a;
    --color-middle: #4a4235;
    --color-light: #8a7050;
    --color-accent-gold: #9a6739;
    --color-accent-light-gold: #b67a3e;
    --color-accent-lighter-gold: #d4a574;
    --color-accent-bronze: #7d5530;

    /* Additional colors for glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: rgba(23, 24, 26, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--color-deep);
}

/* Background Gradient */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg,
        var(--color-deep) 0%,
        var(--color-middle) 50%,
        var(--color-light) 100%);
    opacity: 0.98;
    z-index: -2;
}

.background-gradient::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30vw;
    height: 30vw;
    background: url('../images/app-icon.png') center center no-repeat;
    background-size: contain;
    background-blend-mode: soft-light;
    border-radius: 20%;
    opacity: 0.4;
    z-index: -1;
}

.background-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, #8a5e32 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, #725028 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, #a67039 0%, transparent 50%);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

/* Glass Morphism Effects */
.glass-card, .glass-header, .glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--glass-shadow);
}

/* Container */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.glass-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1160px;
    z-index: 1000;
    padding: 0;
    margin: 0;
}

.glass-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent-lighter-gold);
}

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

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

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

/* Main Content */
main {
    margin-top: 120px;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(45deg, var(--text-primary), var(--color-accent-light-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-screenshots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.screenshot-item {
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem;
}

.screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--glass-shadow);
}

.screenshot-preview {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-accent-gold), var(--color-accent-light-gold));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(154, 103, 57, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(154, 103, 57, 0.6);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--text-primary), var(--color-accent-light-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.feature-card {
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-4px);
}

.benefit-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.benefit-item p {
    color: var(--text-secondary);
}

/* Download Section */
.download-section {
    padding: 6rem 0;
}

.download-card {
    padding: 4rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.download-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.download-card > p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.download-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

.download-main {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 18px;
}

.download-button-large {
    height: 120px;
    width: auto;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 18px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
    outline: none;
    border: none;
    display: block;
    margin: 0;
    padding: 0;
}

.download-button-large:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.download-qr {
    text-align: center;
}

.qr-code-large {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    background: white;
    padding: 8px;
    margin-bottom: 0.75rem;
}

.download-qr p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.system-requirements {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.system-requirements h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.system-requirements ul {
    list-style: none;
    color: var(--text-secondary);
}

.system-requirements li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.system-requirements li::before {
    content: '✓';
    color: var(--color-accent-gold);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Footer */
.glass-footer {
    max-width: 1160px;
    margin: 4rem auto 2rem auto;
    padding: 3rem 2rem 1rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent-lighter-gold);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--color-accent-lighter-gold);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: 2% auto;
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 85%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.close-modal:hover {
    color: var(--color-accent-gold);
    background: rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .glass-header {
        width: calc(100% - 20px);
        top: 10px;
    }

    .glass-header nav {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .download-options {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-screenshots {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .download-card {
        padding: 2rem 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .background-gradient::after {
        animation: none;
    }
}

/* Focus styles for accessibility */
a:focus, button:focus, .cta-button:focus, .download-button-large:focus {
    outline: 2px solid var(--color-accent-gold);
    outline-offset: 2px;
}
