/* Landing page — standalone (no dependency on style.css variables) */
@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

*, *::before, *::after { box-sizing: border-box; }

body.landing-page {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    margin: 0;
    font-family: var(--font-sans);
    background: #0a0a0f;
    color: #e4e4e7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 20px 40px;
    overflow-x: hidden;
    position: relative;
}

body.landing-page::after {
    display: none !important;
}

.landing-page .grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: gridMove 40s linear infinite;
}

.landing-page #threejs-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.landing-page #threejs-bg canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.landing-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.landing-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e4e4e7;
}

.landing-brand .logo-icon {
    width: 28px;
    height: 28px;
    color: #8b5cf6;
    flex-shrink: 0;
}

.landing-top-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.45);
    color: #e4e4e7;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.landing-top-btn:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.55);
}

.landing-top-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.community-user-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.08);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: #e4e4e7;
}

.community-user-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.65);
    flex-shrink: 0;
}

.landing-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.landing-hero {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.landing-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8b5cf6;
    margin-bottom: 12px;
}

.landing-headline {
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px;
    color: #e2e8f0;
    letter-spacing: -0.02em;
}

.landing-lead {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.landing-feature {
    padding: 20px;
    border-radius: 12px;
    background: rgba(15, 15, 23, 0.85);
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-feature:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(20, 18, 32, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(139, 92, 246, 0.18);
}

.landing-feature:hover .landing-feature-icon {
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.5);
    color: #a78bfa;
}

.landing-feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #8b5cf6;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.landing-feature-icon svg {
    width: 20px;
    height: 20px;
}

.landing-feature h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #e4e4e7;
}

.landing-feature p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
}

.landing-footer {
    margin-top: 48px;
    text-align: center;
    position: relative;
}

.landing-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

.landing-footer-link {
    color: #a78bfa;
    text-decoration: none;
}

.landing-footer-link:hover {
    color: #c4b5fd;
    text-decoration: underline;
}

.footer-contact-wrap {
    position: relative;
    display: inline-flex;
}
.footer-contact-panel {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    padding: 12px;
    border-radius: 12px;
    background: #14141f;
    border: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}
.footer-contact-panel[hidden] { display: none; }
.footer-contact-title {
    margin: 0 0 4px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.45);
}
.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(139, 92, 246, 0.08);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}
.footer-contact-item:hover {
    border-color: rgba(139, 92, 246, 0.45);
    background: rgba(139, 92, 246, 0.15);
}
.footer-contact-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.45);
}
.footer-contact-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: #a78bfa;
    font-family: var(--font-sans);
}
.landing-footer-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    font-size: inherit;
    color: #a78bfa;
}
.landing-footer-btn:hover {
    color: #c4b5fd;
    text-decoration: underline;
}

@media (max-width: 640px) {
    body.landing-page {
        padding: 16px 16px 32px;
    }
    .landing-top {
        margin-bottom: 32px;
    }
    .landing-features {
        grid-template-columns: 1fr;
    }
}
