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

:root {
    /* Material 3 Dark Theme - Blue Seed Color */
    --primary-color: #90CAF9;
    --primary-dark: #64B5F6;
    --primary-light: #BBDEFB;
    --secondary-color: #80CBC4;
    --accent-color: #80CBC4;
    --text-dark: #E3E3E3;
    --text-light: #B0B0B0;
    --bg-dark: #121212;
    --bg-surface: #1E1E1E;
    --bg-surface-variant: #2A2A2A;
    --border-color: #3A3A3A;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --gradient-start: #1976D2;
    --gradient-end: #0D47A1;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-dark);
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.section-description {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background-color: #1976D2;
    color: white;
}

.btn-primary:hover {
    background-color: #1565C0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: #1976D2;
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-logo {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    display: block;
    animation: fadeInUp 0.8s ease, logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.appstore-badge-container {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.appstore-badge-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.appstore-badge-link:hover {
    transform: translateY(-3px);
}

.appstore-badge {
    height: 60px;
    width: auto;
}

.playstore-badge {
    height: 88px;
    width: auto;
    margin: -14px -12px;
}

.appstore-note {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 0.5rem;
    color: #FFD700;
    font-size: 0.875rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--bg-surface);
}

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

.feature-card {
    padding: 2rem;
    background-color: var(--bg-surface-variant);
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    background-color: #2E2E2E;
}

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

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

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

/* Screenshots Section */
.screenshots {
    padding: 5rem 0;
    background-color: var(--bg-dark);
}

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

.screenshot-card {
    text-align: center;
}

.screenshot-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    margin: 0 auto 1rem;
    display: block;
}

.screenshot-card:hover .screenshot-image {
    transform: scale(1.05);
}

.screenshot-placeholder {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-radius: 1rem;
    aspect-ratio: 9/16;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.screenshot-card:hover .screenshot-placeholder {
    transform: scale(1.05);
}

.screenshot-caption {
    color: var(--text-light);
    font-size: 0.95rem;
}

.screenshots-note {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
    background-color: #2A2A0A;
    border: 1px solid #B8860B;
    border-radius: 0.5rem;
    color: #FFD700;
    font-size: 0.875rem;
}

/* Documentation Section */
.documentation {
    padding: 5rem 0;
    background-color: var(--bg-surface);
    text-align: center;
}

.docs-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #2A2A0A;
    border: 1px solid #B8860B;
    border-radius: 0.5rem;
    color: #FFD700;
    font-size: 0.875rem;
    display: inline-block;
}

/* Community Section */
.community {
    padding: 5rem 0;
    background-color: var(--bg-dark);
    text-align: center;
}

.discord-reveal {
    margin-top: 2rem;
}

#reveal-discord {
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
}

.discord-link-hidden {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
}

.discord-link-visible {
    max-height: 200px;
    opacity: 1;
    margin-top: 2rem;
}

.discord-link {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #4752C4;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.discord-link:hover {
    background-color: #3C45A5;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.discord-note {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #2A2A0A;
    border: 1px solid #B8860B;
    border-radius: 0.5rem;
    color: #FFD700;
    font-size: 0.875rem;
}

/* Legal Section */
.legal-section {
    padding: 5rem 0;
    background-color: var(--bg-surface);
}

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

.legal-card {
    padding: 2rem;
    background-color: var(--bg-surface-variant);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.legal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.legal-card.info-card {
    border-color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.1);
}

.legal-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.legal-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.legal-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.disclaimer-box {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: rgba(100, 100, 100, 0.1);
    border: 1px solid rgba(100, 100, 100, 0.3);
    border-radius: 0.75rem;
    text-align: center;
}

.disclaimer-box p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.disclaimer-box strong {
    color: var(--text-dark);
}

/* Footer */
.footer {
    background-color: #0A0A0A;
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    margin-bottom: 1.5rem;
}

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

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

.footer-divider {
    margin: 0 1rem;
    opacity: 0.5;
}

.footer-note {
    margin-top: 0.5rem;
    opacity: 0.7;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 4rem 0;
    }

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

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

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

    .features,
    .screenshots,
    .documentation,
    .community {
        padding: 3rem 0;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
