/* 
 * Fluxy - Premium Landing Page CSS v2
 */

:root {
    --primary: #7c6bf5;
    --primary-dark: #5a47e0;
    --primary-light: #a78bfa;
    --bg-deep: #06060f;
    --bg-card: rgba(18, 18, 30, 0.65);
    --glass-border: rgba(255, 255, 255, 0.07);
    --text-main: #f0f0ff;
    --text-muted: #7b7b9d;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ── NAVBAR ── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(6, 6, 15, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 0 20px rgba(124, 107, 245, 0.4);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.25s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.btn-login {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    backdrop-filter: blur(8px);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    padding: 130px 8% 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

/* REVEAL ANIMATIONS */
.reveal,
.reveal-slow,
.reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-slow {
    transition-duration: 1.1s;
    transition-delay: 0.2s;
}

.reveal-card {
    transition-duration: 0.7s;
}

.reveal.visible,
.reveal-slow.visible,
.reveal-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(124, 107, 245, 0.12);
    border: 1px solid rgba(124, 107, 245, 0.3);
    color: var(--primary-light);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: 62px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 20%, var(--primary-light) 60%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(124, 107, 245, 0.4);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary-large::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    100% {
        left: 140%;
    }
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(124, 107, 245, 0.5);
}

.btn-secondary-large {
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}

.btn-secondary-large:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ── HERO STATS ── */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.stat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.stat-dot.green {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.stat-item {
    font-size: 14px;
    color: var(--text-muted);
}

.stat-item strong {
    color: var(--text-main);
    font-weight: 700;
    margin-right: 4px;
}

/* ── HERO MOCKUP ── */
.hero-mockup {
    position: relative;
}

.mockup-window {
    background: rgba(14, 14, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: floatMockup 6s ease-in-out infinite;
}

@keyframes floatMockup {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.mockup-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #28c840;
}

.mockup-title {
    margin-left: 10px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.mockup-body {
    display: flex;
    height: 280px;
}

.mockup-sidebar {
    width: 58px;
    background: rgba(0, 0, 0, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
}

.mock-server {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 50%;
}

.mock-server.active {
    background: var(--primary);
    color: #fff;
    border-radius: 13px;
    box-shadow: 0 0 15px rgba(124, 107, 245, 0.5);
}

.mockup-chat {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.mock-msg {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.mock-msg.right {
    flex-direction: row-reverse;
}

.mock-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.mock-bubble {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mock-name {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.mock-text {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px 10px 10px 2px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-main);
}

.mock-msg.right .mock-text {
    background: rgba(124, 107, 245, 0.25);
    border-color: rgba(124, 107, 245, 0.2);
    border-radius: 10px 10px 2px 10px;
}

.mock-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 42px;
    margin-top: 4px;
}

.typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* ── FLOATING BADGES ── */
.float-badge {
    position: absolute;
    background: rgba(14, 14, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.badge-count {
    background: rgba(124, 107, 245, 0.2);
    color: var(--primary-light);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
}

.badge-1 {
    bottom: -20px;
    left: -30px;
    animation: badgeFloat1 5s ease-in-out infinite;
}

.badge-2 {
    top: -20px;
    right: -30px;
    animation: badgeFloat2 6s ease-in-out infinite;
}

@keyframes badgeFloat1 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes badgeFloat2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* ── SECTION LABELS ── */
.section-label {
    display: inline-block;
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 56px;
    letter-spacing: -1px;
}

/* ── FEATURES ── */
.features {
    padding: 100px 8%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
}

.feature-card {
    background: var(--bg-card);
    padding: 36px 32px;
    border-radius: 22px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 107, 245, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(124, 107, 245, 0.25);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 54px;
    height: 54px;
    background: rgba(124, 107, 245, 0.1);
    border: 1px solid rgba(124, 107, 245, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 15px;
}

/* ── DOWNLOAD ── */
.download-section {
    padding: 80px 8% 120px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.download-card {
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.9) 0%, rgba(10, 10, 20, 0.95) 100%);
    padding: 80px 40px;
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 107, 245, 0.5), transparent);
}

.download-card h2 {
    font-family: 'Syne', sans-serif;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 48px;
    line-height: 1.25;
    letter-spacing: -1px;
}

.download-platforms {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.platform-btn:hover {
    background: rgba(124, 107, 245, 0.15);
    border-color: rgba(124, 107, 245, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* ── FOOTER ── */
footer {
    padding: 80px 8% 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--text-muted);
    max-width: 280px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-group h4 {
    margin-bottom: 20px;
    font-weight: 700;
}

.link-group ul {
    list-style: none;
}

.link-group ul li {
    margin-bottom: 12px;
}

.link-group ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s;
}

.link-group ul li a:hover {
    color: var(--text-main);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }

    .hero p {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero-mockup {
        max-width: 600px;
        margin: 0 auto;
    }

    .badge-1 {
        left: 0;
    }

    .badge-2 {
        right: 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 38px;
        letter-spacing: -0.5px;
    }

    .section-title {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-card h2 {
        font-size: 28px;
    }

    .download-card {
        padding: 50px 24px;
        border-radius: 24px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }

    .float-badge {
        display: none;
    }
}