/* DeQ Website - Dark Theme from server.py */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --border: #2a2a3a;
    --text-primary: #e0e0e0;
    --text-secondary: #808090;
    --accent: #2ed573;
    --accent-muted: rgba(46, 213, 115, 0.6);
    --danger: #ff4757;
    --warning: #ffa502;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

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

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.15s;
}

a:hover {
    opacity: 0.8;
}

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

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    opacity: 1;
    box-shadow: 0 0 20px var(--accent-muted);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    opacity: 1;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(46, 213, 115, 0.2);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

.nav-logo svg {
    width: 32px;
    height: 32px;
}

.nav-logo svg .icon-accent {
    stroke: var(--accent);
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color 0.15s;
}

.nav-links a:hover {
    color: var(--text-primary);
    opacity: 1;
}

.nav-patreon {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary) !important;
    transition: color 0.15s;
}

.nav-patreon:hover {
    color: #ff424d !important;
}

.nav-patreon svg {
    fill: currentColor;
}

.nav-burger {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
}

.nav-burger:hover {
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .nav-burger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 40px;
        right: 0;
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: 0 0 8px 8px;
        padding: 8px 0;
        min-width: 160px;
        flex-direction: column;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 10px 20px;
    }

    .nav-links a:hover {
        background: var(--bg-tertiary);
    }
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    margin-top: 40px;
    min-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

/* Logo + Title Row */
.hero-brand {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 48px;
}

.logo {
    width: 90px;
    height: 90px;
    color: var(--text-primary);
}

.logo .icon-accent {
    stroke: var(--accent);
}

.hero-brand h1 {
    font-size: 75px;
    letter-spacing: -0.03em;
    margin: 0;
}

/* Screenshots */
.hero-screenshots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    max-width: 100%;
}

.screenshot-desktop {
    max-height: 350px;
    max-width: 70%;
    height: auto;
    width: auto;
    border-radius: 12px;
    border: none;
    background: none;
}

.screenshot-mobile {
    max-height: 350px;
    max-width: 25%;
    height: auto;
    width: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
}

/* Description + Actions */
.hero-content {
    max-width: 800px;
}

.tagline {
    font-size: 1.4rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 16px;
    font-weight: 500;
}

.tagline-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

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

/* Sections */
.section {
    padding: 100px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    margin-top: -40px;
    margin-bottom: 8px;
}

.requirements {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

/* Why Section */
.why {
    background: var(--bg-secondary);
}

.why-story {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.why-story p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.why-story p:last-child {
    margin-bottom: 0;
}

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

.why-card {
    padding: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.why-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(46, 213, 115, 0.1);
}

.why-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.why-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.why-card h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Features Section - Showcase Layout */
.features {
    padding-top: 60px;
}

.features .container {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-showcase.reverse {
    direction: rtl;
}

.feature-showcase.reverse > * {
    direction: ltr;
}

.feature-screenshot {
    margin: 0;
}

.feature-screenshot img {
    width: 100%;
    max-height: 450px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-text h2 {
    text-align: left;
    margin-bottom: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-primary);
}

.feature-text > p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.feature-list li {
    position: relative;
    padding-left: 24px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* Screenshots Section */
.screenshots {
    background: var(--bg-secondary);
}

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

.screenshot-card {
    aspect-ratio: 16/10;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.15s;
}

.screenshot-card:hover {
    border-color: var(--accent);
}

.screenshot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Installation Section */
.installation {
    text-align: center;
}

.code-block {
    max-width: 600px;
    margin: 0 auto 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
}

.copy-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.code-block pre {
    padding: 20px;
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.install-note {
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.install-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-logo {
    width: 32px;
    height: 32px;
    color: var(--text-primary);
}

.footer-logo .icon-accent {
    stroke: var(--accent);
}

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

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.15s;
}

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

.footer-support {
    text-align: right;
}

.footer-support span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.support-links {
    display: flex;
    gap: 12px;
}

.support-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s;
}

.support-btn.patreon {
    background: #ff424d;
    color: white;
}

.support-btn.patreon:hover {
    opacity: 1;
    box-shadow: 0 0 15px rgba(255, 66, 77, 0.4);
}

.support-btn.paypal {
    background: #0070ba;
    color: white;
}

.support-btn.paypal:hover {
    opacity: 1;
    box-shadow: 0 0 15px rgba(0, 112, 186, 0.4);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 900px) {
    .feature-showcase {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-showcase.reverse {
        direction: ltr;
    }

    .feature-text h2 {
        text-align: center;
    }

    .features .container {
        gap: 80px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-support {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-brand {
        gap: 0;
        margin-bottom: 32px;
    }

    .hero-brand .logo {
        width: 48px;
        height: 48px;
    }

    .hero-brand h1 {
        font-size: 48px;
    }

    .hero-screenshots {
        gap: 8px;
        margin-bottom: 24px;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .features .container {
        gap: 60px;
    }

    .feature-text h2 {
        font-size: 1.5rem;
    }

    .why-story p {
        font-size: 1rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .why-card {
        padding: 24px;
    }
}

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

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}

.lightbox-close:hover {
    color: var(--text-primary);
}

.feature-screenshot img {
    cursor: zoom-in;
}
