/* Dashboard Home — dark social dashboard aesthetic (X-inspired, no brand assets) */

/* Top Navigation Bar */
.home-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.home-nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.home-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 1rem;
    white-space: nowrap;
}

.brand-icon {
    font-size: 1.4rem;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

.brand-text {
    color: var(--text);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link {
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: var(--text);
    background: var(--primary-soft);
}

.nav-link.active {
    color: #fff;
    background: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7rem 1.5rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(29, 155, 240, 0.14), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(0, 186, 124, 0.08), transparent 45%),
        radial-gradient(circle at 50% 100%, rgba(29, 155, 240, 0.08), transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.06); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    animation: fadeUp 0.9s ease forwards;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid rgba(29, 155, 240, 0.3);
    margin-bottom: 1.4rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2.2rem;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(29, 155, 240, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
    background: var(--primary-hover);
    box-shadow: 0 12px 32px rgba(29, 155, 240, 0.45);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 2px;
    height: 48px;
    background: linear-gradient(180deg, var(--primary), transparent);
    animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
    0% { transform: scaleY(0.4); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(0.4); opacity: 0.4; }
}

/* Module Section */
.modules {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.module-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.module-card::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -40%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 155, 240, 0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    background: var(--bg-card-2);
    box-shadow: 0 18px 40px rgba(29, 155, 240, 0.15), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.module-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.4rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    border: 1px solid rgba(29, 155, 240, 0.25);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}

.card-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
}

.card-btn {
    display: inline-block;
    padding: 0.65rem 1.4rem;
    margin-top: 0.5rem;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateX(4px);
    box-shadow: 0 6px 18px rgba(29, 155, 240, 0.35);
}

/* System Flow Section */
.flow-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.flow-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.flow-box {
    min-width: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.2rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.flow-box:hover {
    transform: scale(1.04);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(29, 155, 240, 0.15);
}

.flow-icon {
    font-size: 1.6rem;
}

.flow-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.flow-box.two {
    border-color: rgba(0, 186, 124, 0.4);
    background: rgba(0, 186, 124, 0.06);
}

.flow-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.flow-arrow {
    color: var(--primary);
    font-size: 1.1rem;
    animation: arrowBounce 1.6s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(6px); opacity: 1; }
}

/* Footer */
.home-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.footer-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.footer-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.footer-version {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 860px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .brand-text {
        font-size: 0.9rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        padding: 0.5rem 1rem;
        gap: 0.2rem;
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .module-grid {
        grid-template-columns: 1fr;
    }

    .flow-box {
        min-width: 230px;
        padding: 1rem 1.4rem;
    }
}
