/* CSS Variables */
:root {
    --bg-dark: #050505;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --accent: #3b82f6;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Gradients */
.gradient-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
    z-index: -1;
    animation: pulse 15s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: white;
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
}

.badge {
    background: rgba(139, 92, 246, 0.1);
    color: #c4b5fd;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.2);
    margin-bottom: 24px;
    display: inline-block;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px;
}

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

.btn {
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn.primary {
    background: white;
    color: black;
}

.btn.primary:hover {
    transform: translateY(-2px);
    background: #f0f0f0;
    box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.1);
}

.btn.secondary {
    background: var(--glass);
    color: white;
    border: 1px solid var(--border);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Visual Mockup */
.hero-visual {
    margin-top: 80px;
    perspective: 1000px;
}

.browser-mockup {
    width: 600px;
    height: 380px;
    background: #111;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotateX(5deg);
    overflow: hidden;
    position: relative;
}

.browser-header {
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #22c55e;
}

.browser-body {
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.app-interface {
    width: 320px;
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
}

.app-header {
    font-weight: 600;
    margin-bottom: 16px;
    border-bottom: 1px solid #333;
    padding-bottom: 12px;
}

.progress-bar {
    height: 8px;
    background: #333;
    border-radius: 4px;
    margin: 12px 0 24px;
    overflow: hidden;
}

.progress-fill {
    width: 35%;
    height: 100%;
    background: var(--accent);
    animation: load 2s infinite ease-in-out;
}

@keyframes load {
    0% {
        width: 35%;
    }

    50% {
        width: 60%;
    }

    100% {
        width: 35%;
    }
}

.app-logs {
    font-family: monospace;
    font-size: 0.8rem;
    color: #888;
}

.log-item {
    margin-bottom: 4px;
}

.log-item:nth-child(3) {
    color: var(--accent);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
}

.feature-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 24px;
    transition: transform 0.2s;
}

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

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-box.purple {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

.icon-box.blue {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.icon-box.green {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.features h3 {
    margin: 0 0 12px;
}

.features p {
    color: var(--text-muted);
    margin: 0;
}

/* Slideshow Section */
.slideshow-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
    text-align: center;
}

.slideshow-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.slideshow-wrapper {
    position: relative;
    max-width: 600px;
    /* Reduced width for vertical screenshots */
    height: 700px;
    /* Fixed height to prevent jumping */
    margin: 0 auto;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    /* Contain slides */
}

.slide {
    position: absolute;
    top: 50px;
    /* Top padding */
    left: 0;
    width: 100%;
    height: calc(100% - 100px);
    /* Leave space for dots */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    /* Prevent clicking hidden slides */
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    max-width: 90%;
    max-height: 500px;
    /* Constraint image height */
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    object-fit: contain;
}

.caption {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-heading);
    padding: 0 20px;
}

.dots-container {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    gap: 12px;
    justify-content: center;
    z-index: 10;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: var(--text-muted);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    opacity: 0.3;
}

.dot.active,
.dot:hover {
    background-color: #8b5cf6;
    opacity: 1;
    transform: scale(1.2);
}


/* Filtering Guide */
.filtering-guide {
    max-width: 800px;
    margin: 100px auto;
    padding: 0 24px;
    text-align: center;
}

.filtering-guide h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 48px;
    font-size: 1.1rem;
}

.filter-examples {
    display: grid;
    gap: 16px;
    text-align: left;
}

.example {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.example code {
    font-size: 1.1rem;
    color: #c4b5fd;
    align-self: flex-start;
}

.example span {
    color: var(--text-muted);
    font-size: 0.95rem;
}


/* Support Section */
.support-section {
    text-align: center;
    padding: 80px 24px;
    background: rgba(255, 255, 255, 0.02);
    margin-top: 80px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center horizontally */
}

.support-section h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.support-section p {
    color: var(--text-muted);
    margin: 0 auto 32px;
    max-width: 400px;
}

.support-section .btn {
    width: auto;
    min-width: 200px;
}

.support-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Modal */
/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 10, 0.75);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #000;
    width: 95%;
    max-width: 800px;
    height: 90vh;
    border-radius: 24px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 40px 80px -20px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(124, 58, 237, 0.15);
    position: relative;
    overflow: hidden;
    transform: scale(0.96) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    background: white;
    color: black;
    transform: rotate(90deg) scale(1.1);
}

iframe {
    background: transparent;
}

/* Install */
.install-guide {
    max-width: 800px;
    margin: 100px auto;
    padding: 0 24px;
    text-align: center;
}

.install-guide h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.steps-container {
    display: grid;
    gap: 40px;
    text-align: left;
}

.step {
    background: var(--glass);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    border: 1px solid var(--border);
}

.step-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-muted);
    opacity: 0.3;
}

.step h4 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.step p {
    margin: 0;
    color: var(--text-muted);
}

code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #fff;
}

footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

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

    .browser-mockup {
        width: 100%;
        height: auto;
        aspect-ratio: 16/10;
    }

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

    .step {
        flex-direction: column;
        text-align: center;
    }
}