:root {
    --bg-base: #09090b;
    --bg-sidebar: #101012;
    --bg-surface: #18181b;
    --bg-surface-hover: #27272a;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.3);
    --accent-gradient: linear-gradient(135deg, #8b5cf6, #6366f1);
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-tertiary: #52525b;
    --border: #27272a;
    --border-hover: #3f3f46;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    outline: none;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

html {
    scroll-behavior: smooth;
}



.brand-logo {
    height: 48px;
    display: flex;
    align-items: center;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    cursor: default;
    gap: 1rem;
}


.brand-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}


.brand-icon {
    min-width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 20px var(--accent-glow);
    color: white;

    display: none;
}

.brand-icon.fallback-active {
    display: flex;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.settings-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.settings-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    background: var(--bg-surface-hover);
}

.settings-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.gallery-masonry {
    column-count: 1;
    column-gap: 1.5rem;
}

@media (min-width: 640px) {
    .gallery-masonry {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .gallery-masonry {
        column-count: 3;
    }
}

.image-entry {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: var(--bg-surface);
    break-inside: avoid;
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.image-entry:hover {
    transform: scale(1.02);
    z-index: 2;
    border-color: var(--accent);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.image-entry img {
    width: 100%;
    height: auto;
    display: block;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    color: white;
    background: var(--accent-gradient);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 0 20px var(--accent-glow);
    gap: 0.75rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow);
}

.cta-button.secondary {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--text-secondary);
}


.cta-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-surface);
    color: var(--text-tertiary);
    box-shadow: none;
}

.cta-button.disabled:hover {
    transform: none;
    border-color: var(--border);
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.5s ease-out;
}

.hero-section {
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--accent);
    filter: blur(150px);
    opacity: 0.1;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

h1.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

p.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-title p {
    color: var(--text-secondary);
}

.features-section {
    padding: 4rem 0;
}

.downloads-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.05), transparent);
}

.showcase-section {
    padding: 4rem 0 8rem 0;
}


.faq-section {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-item.active {
    border-color: var(--accent);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    user-select: none;
    transition: color 0.2s;
}

.faq-question:hover {
    background: var(--bg-surface-hover);
}

.faq-item.active .faq-question {
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    background: var(--bg-sidebar);
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}


.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 0.5s ease-in-out;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--text-tertiary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--accent);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.badge.loading {
    opacity: 0.7;
    cursor: wait;
}

footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-tertiary);
    margin-top: auto;
}

footer p {
    margin: 0.5rem 0;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}


.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    h1.hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 4rem 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button {
        justify-content: center;
    }
}