/* Flux Website Styles - Matching App Aesthetic */

:root {
    /* Light theme colors (matching app) */
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --surface-variant: #F5F5F0;
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --text-tertiary: #B2BEC3;
    --border: #DFE6E9;
    --border-dark: #B2BEC3;
    --accent: #000000;
    --accent-light: #636E72;
    --danger: #EF4444;
    --success: #14B8A6;
    --shadow-light: rgba(0, 0, 0, 0.04);
    --shadow-medium: rgba(0, 0, 0, 0.07);
}

/* Dark theme colors (matching app dark mode) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0A0A0F;
        --surface: #121214;
        --surface-variant: #161618;
        --text-primary: #E8E8E3;
        --text-secondary: #A0A5A8;
        --text-tertiary: #6B7074;
        --border: #2A2A2F;
        --border-dark: #404045;
        --accent: #FFFFFF;
        --accent-light: #B0B0B0;
        --danger: #EF4444;
        --success: #14B8A6;
        --shadow-light: rgba(0, 0, 0, 0.2);
        --shadow-medium: rgba(0, 0, 0, 0.3);
    }

    .app-icon {
        background: #FFFFFF;
    }
}

/* Reset and base styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    padding: 80px 24px 60px;
    text-align: center;
    background: var(--bg);
}

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

.app-icon {
    width: 120px;
    height: 120px;
    box-sizing: border-box;
    border-radius: 28px;
    box-shadow: 0 8px 32px var(--shadow-medium);
    margin-bottom: 24px;
    border: 2px solid var(--border);
    background: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.app-icon img.app-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    background: transparent;
}

h1 {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tagline {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 15px;
    color: var(--text-tertiary);
    max-width: 400px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn.primary {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    box-shadow: 0 4px 16px var(--shadow-medium);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-medium);
}

.btn.primary:active {
    transform: translateY(0);
}

.btn.outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-dark);
}

.btn.outline:hover {
    background: var(--surface-variant);
    border-color: var(--text-tertiary);
}

.btn.outline.danger {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn.outline.danger:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Section Styles */
section {
    padding: 60px 24px;
}

.section-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

/* Features Section */
.features {
    background: var(--surface-variant);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.feature-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: var(--border-dark);
    box-shadow: 0 4px 20px var(--shadow-light);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
    line-height: 1;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

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

/* Privacy Section */
.privacy {
    background: var(--bg);
}

.privacy-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.privacy-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.privacy-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.privacy-content p:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--text-primary);
}

/* Data Section */
.data-section {
    background: var(--surface-variant);
    border-top: 1px solid var(--border);
}

.data-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.data-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.data-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 32px 24px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

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

.copyright {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-links .divider {
    color: var(--text-tertiary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px 48px;
    }

    .app-icon {
        width: 100px;
        height: 100px;
        border-radius: 24px;
    }

    h1 {
        font-size: 42px;
    }

    .tagline {
        font-size: 16px;
    }

    .subtitle {
        font-size: 14px;
    }

    section {
        padding: 48px 20px;
    }

    .features-grid {
        gap: 16px;
    }

    .feature-card {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 48px 16px 40px;
    }

    .app-icon {
        width: 88px;
        height: 88px;
        border-radius: 20px;
    }

    h1 {
        font-size: 36px;
    }

    .btn {
        width: 100%;
        padding: 14px 24px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    section {
        padding: 40px 16px;
    }

    .section-title {
        font-size: 11px;
        margin-bottom: 24px;
    }

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

/* Animation for cards on load (without JS fallback) */
@media (prefers-reduced-motion: no-preference) {
    .feature-card {
        transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }
}

@media (prefers-reduced-motion: reduce) {

    .feature-card,
    .privacy-content,
    .data-content {
        opacity: 1;
        transform: none;
        transition: none;
    }
}