/* D3X Messenger — landing page */

:root {
    --bg-dark: #07080d;
    --bg-card: rgba(255, 255, 255, 0.04);
    --text-primary: #ffffff;
    --text-secondary: #9aa8c8;
    --accent-cyan: #00d9ff;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --border: rgba(255, 255, 255, 0.08);
}

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

body.landing-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

.landing-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.landing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.28;
    animation: landing-float 22s ease-in-out infinite;
}

.landing-orb--cyan {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
    top: -180px;
    left: -120px;
}

.landing-orb--purple {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, var(--accent-purple), transparent 70%);
    bottom: -140px;
    right: -100px;
    animation-delay: 6s;
}

.landing-orb--pink {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, var(--accent-pink), transparent 70%);
    top: 42%;
    left: 55%;
    animation-delay: 11s;
}

@keyframes landing-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(24px, -20px) scale(1.06); }
}

.landing-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
    z-index: 1;
    pointer-events: none;
}

.landing-particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.landing-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--accent-cyan);
    opacity: 0.5;
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.6);
    animation: landing-particle-rise 14s linear infinite;
}

@keyframes landing-particle-rise {
    0% { transform: translateY(105vh); opacity: 0; }
    12% { opacity: 0.55; }
    88% { opacity: 0.55; }
    100% { transform: translateY(-10vh); opacity: 0; }
}

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 1.5rem;
    background: rgba(7, 8, 13, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.landing-nav {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.landing-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
}

.landing-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.35));
}

.landing-logo span {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.landing-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s ease;
}

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

.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.15rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.landing-btn--ghost:hover {
    border-color: rgba(0, 217, 255, 0.35);
    transform: translateY(-1px);
}

.landing-btn--primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(0, 217, 255, 0.22);
}

.landing-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 217, 255, 0.32);
}

.landing-main {
    position: relative;
    z-index: 2;
}

.landing-hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    align-items: center;
    gap: 3rem;
    max-width: 1240px;
    margin: 0 auto;
    padding: 7rem 1.5rem 4rem;
}

.landing-hero-copy {
    max-width: 620px;
}

.landing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.22);
    color: var(--accent-cyan);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.landing-title {
    font-size: clamp(2.6rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 45%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-lead {
    font-size: clamp(1.02rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.landing-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.landing-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.landing-stat {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.landing-stat strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.landing-stat span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.landing-mockup {
    display: flex;
    justify-content: center;
}

.landing-phone {
    width: min(100%, 320px);
    padding: 12px;
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(0, 217, 255, 0.12);
}

.landing-phone-notch {
    width: 96px;
    height: 22px;
    margin: 0 auto 8px;
    border-radius: 0 0 14px 14px;
    background: rgba(0, 0, 0, 0.55);
}

.landing-phone-screen {
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.2), transparent 40%),
        radial-gradient(circle at bottom left, rgba(0, 217, 255, 0.18), transparent 38%),
        #0c1018;
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.landing-phone-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.landing-phone-avatar {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
}

.landing-phone-meta h3 {
    font-size: 0.95rem;
}

.landing-phone-meta span {
    font-size: 0.75rem;
    color: #7cffb2;
}

.landing-chat {
    flex: 1;
    padding: 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.landing-bubble {
    max-width: 82%;
    padding: 0.7rem 0.85rem;
    border-radius: 16px;
    font-size: 0.84rem;
    line-height: 1.45;
    animation: landing-bubble-in 0.6s ease backwards;
}

.landing-bubble--in {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.07);
    border-bottom-left-radius: 4px;
}

.landing-bubble--out {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-bottom-right-radius: 4px;
}

.landing-bubble:nth-child(1) { animation-delay: 0.1s; }
.landing-bubble:nth-child(2) { animation-delay: 0.25s; }
.landing-bubble:nth-child(3) { animation-delay: 0.4s; }
.landing-bubble:nth-child(4) { animation-delay: 0.55s; }

@keyframes landing-bubble-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.landing-phone-input {
    margin: 0 0.75rem 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.landing-phone-send {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
}

.landing-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}

.landing-section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

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

.landing-feature {
    padding: 1.5rem;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.landing-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 217, 255, 0.22);
}

.landing-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(139, 92, 246, 0.2));
    color: var(--accent-cyan);
    font-size: 1.2rem;
}

.landing-feature h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.landing-feature p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.landing-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.landing-step {
    padding: 1.25rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.landing-step-num {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 217, 255, 0.15);
    color: var(--accent-cyan);
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 0.65rem;
}

.landing-step h4 {
    margin-bottom: 0.35rem;
}

.landing-step p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.landing-footer {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border);
    background: rgba(5, 6, 10, 0.85);
}

.landing-footer p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.landing-social {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.landing-social a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.2s ease;
}

.landing-social a:hover {
    color: #fff;
    border-color: rgba(0, 217, 255, 0.35);
    transform: translateY(-2px);
}

@media (max-width: 960px) {
    .landing-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 6.5rem;
    }

    .landing-hero-copy {
        margin: 0 auto;
    }

    .landing-cta,
    .landing-stats {
        justify-content: center;
    }

    .landing-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .landing-stats {
        grid-template-columns: 1fr;
    }

    .landing-nav-actions .landing-nav-link {
        display: none;
    }

    .landing-btn {
        width: 100%;
    }

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

.landing-legal-links {
    margin: 0 0 12px;
    font-size: 0.9rem;
}

.landing-legal-links a {
    color: #94a3b8;
    text-decoration: none;
    margin: 0 6px;
}

.landing-legal-links a:hover {
    color: #00d9ff;
}

@media (prefers-reduced-motion: reduce) {
    .landing-orb,
    .landing-particle,
    .landing-bubble {
        animation: none !important;
    }
}
