/* DutyBot Landing Page Styles */

:root {
    /* Brand Colors */
    --color-primary: #003A8F;
    --color-primary-light: #1A5FD1;
    --color-secondary: #2F80ED;

    /* Backgrounds */
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F4F7FB;
    --color-bg-card: #F9FBFF;

    /* Text */
    --color-text-primary: #0B1F44;
    --color-text-secondary: #5B6B82;
    --color-text-muted: #9AA8BC;

    /* CTA */
    --color-cta: #005BFF;
    --color-cta-hover: #0047CC;

    /* Border */
    --color-border: #E1E8F0;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px;
}

/* Dark Theme */
@media (prefers-color-scheme: dark) {
    :root {
        --color-primary: #1A5FD1;
        --color-primary-light: #2F80ED;
        --color-secondary: #56CCF2;

        --color-bg-primary: #0B1F44;
        --color-bg-secondary: #08162F;
        --color-bg-card: #102B55;

        --color-text-primary: #FFFFFF;
        --color-text-secondary: #C7D3E3;
        --color-text-muted: #8FA3C1;

        --color-cta: #2F80ED;
        --color-cta-hover: #1A5FD1;

        --color-border: #1E3A5F;

        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    }
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--color-primary-light);
}

.btn-cta {
    background: var(--color-cta);
    color: #FFFFFF;
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-cta:hover {
    background: var(--color-cta-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.125rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

/* Hero Section */
.hero {
    padding: calc(64px + var(--section-padding)) 0 var(--section-padding);
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
    text-align: center;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Features Section */
.features {
    padding: var(--section-padding) 0;
    background: var(--color-bg-primary);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--color-text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--color-bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Screenshots Slider */
.screenshots {
    padding: var(--section-padding) 0;
    background: var(--color-bg-secondary);
}

.slider-container {
    max-width: 800px;
    margin: 0 auto;
}

.slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
}

.slider::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    text-align: center;
}

.slide-image-container {
    width: 280px;
    height: 500px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    background: var(--color-bg-card);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.slide-image-container:hover {
    transform: scale(1.02);
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 95%;
    max-height: 95%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.slide-caption {
    margin-top: 16px;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    transition: all 0.15s ease;
}

.slider-btn:hover {
    background: var(--color-bg-card);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--color-border);
    cursor: pointer;
    transition: all 0.15s ease;
}

.slider-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

.slider-dot:hover {
    background: var(--color-primary-light);
}

/* CTA Section */
.cta {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    text-align: center;
}

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

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.cta .btn-cta {
    background: #FFFFFF;
    color: var(--color-primary);
}

.cta .btn-cta:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    padding: 32px 0;
    background: var(--color-bg-primary);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.footer-logo .logo-icon {
    width: 24px;
    height: 24px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.15s ease;
}

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

.footer-version {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

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

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

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

    .feature-card {
        padding: 24px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 32px;
    }

    .slider-container {
        padding: 0 16px;
    }

    .slide-image-container {
        width: 240px;
        height: 420px;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
}
