/* Landing Page Module */

/* Global Page Styles */
.public-page {
    background-color: var(--bg-darker);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

/* Layered Background System */
.landing-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-layer-1 {
    /* Deep space base */
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, var(--bg-darker) 60%);
    opacity: 0.8;
}

.bg-layer-2 {
    /* Aurora Glows */
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.15) 0%, transparent 40%);
    filter: blur(60px);
    animation: pulseGlow 10s ease-in-out infinite alternate;
}

.bg-particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Header & Navigation */
.landing-header {
    width: 100%;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    transition: background 0.3s, backdrop-filter 0.3s;
}

.landing-header.scrolled {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: none;
}

.nav-logo {
    height: 36px;
    width: 36px;
}

.nav-links {
    display: flex;
    gap: 32px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 24px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    /* Offset for fixed header */
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.hero-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 100px;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 8px;
    align-self: flex-start;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent) 0%, var(--aurora-purple) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.btn-pill {
    border-radius: 100px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s var(--ease-out-back);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary.btn-pill {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.btn-primary.btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.5);
}

.btn-secondary.btn-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-secondary.btn-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Visuals */
.hero-visuals {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-card {
    position: absolute;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.5s ease;
}

.card-main {
    width: 320px;
    height: 400px;
    z-index: 2;
    transform: rotate(-3deg);
    padding: 20px;
}

.card-floating {
    width: 260px;
    height: 140px;
    z-index: 3;
    bottom: 40px;
    right: -20px;
    transform: rotate(3deg);
    padding: 16px;
    animation: float 6s ease-in-out infinite;
}

.card-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.2) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: rotate(3deg) translateY(0);
    }

    50% {
        transform: rotate(3deg) translateY(-15px);
    }
}

/* Features Section */
.features-section {
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, rgba(88, 101, 242, 0.05) 100%);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent);
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

/* Footer */
.footer {
    padding: 80px 0 24px;
    border-top: 1px solid var(--glass-border);
    background: rgba(2, 6, 23, 0.5);
    backdrop-filter: blur(20px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    margin-top: 16px;
}

.btn-pill {
    border-radius: 100px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s var(--ease-out-back);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary.btn-pill {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.btn-primary.btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.5);
}

.btn-secondary.btn-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-secondary.btn-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Visuals */
.hero-visuals {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-card {
    position: absolute;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.5s ease;
}

.card-main {
    width: 320px;
    height: 400px;
    z-index: 2;
    transform: rotate(-3deg);
    padding: 20px;
}

.card-floating {
    width: 260px;
    height: 140px;
    z-index: 3;
    bottom: 40px;
    right: -20px;
    transform: rotate(3deg);
    padding: 16px;
    animation: float 6s ease-in-out infinite;
}

.card-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.2) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: rotate(3deg) translateY(0);
    }

    50% {
        transform: rotate(3deg) translateY(-15px);
    }
}

/* Features Section */
.features-section {
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, rgba(88, 101, 242, 0.05) 100%);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent);
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

/* Footer */
.footer {
    padding: 80px 0 24px;
    border-top: 1px solid var(--glass-border);
    background: rgba(2, 6, 23, 0.5);
    backdrop-filter: blur(20px);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-visuals {
        height: 460px;
    }
}

@media (max-width: 768px) {
    .landing-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px;
        background: transparent;
    }

    .nav-links {
        display: none;
    }

    .btn-dashboard,
    .dashboard-btn {
        display: inline-flex !important;
        align-items: center;
        padding: 8px 16px;
        font-size: 0.9rem;
        border-radius: 100px;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-pill {
        width: 100%;
        justify-content: center;
    }

    .card-floating {
        right: 10px;
        bottom: 20px;
    }
}
