/* assets/css/landing.css */

/* --- Variables & Reset --- */
:root {
    /* Brand Colors */
    --primary-purple: #311955;
    --accent-magenta: #AF469A;
    --accent-hover: #8F2A72;
    --bg-cream: #FFF9F0;
    --bg-white: #FFFFFF;
    --bg-pale-purple: #F8F4FB;
    --text-primary: #311955;
    --text-secondary: #5A4464;
    --text-light: #8B7A93;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    
    /* Shadows */
    --shadow-soft: 0 10px 40px -10px rgba(49, 25, 85, 0.1);
    --shadow-hover: 0 20px 50px -10px rgba(49, 25, 85, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--border-radius-lg);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-purple);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    text-align: center;
}

p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(270deg, var(--primary-purple), var(--accent-magenta), #6b4c9a);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 6s ease infinite;
}

/* --- Animations --- */
@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes float-slow {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    33% { transform: translate(20px, -20px) rotate(5deg); }
    66% { transform: translate(-10px, 20px) rotate(-5deg); }
    100% { transform: translate(0px, 0px) rotate(0deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.5; }
}

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

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float-slow 20s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(175, 70, 154, 0.2), rgba(255, 255, 255, 0));
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(49, 25, 85, 0.15), rgba(255, 255, 255, 0));
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(107, 76, 154, 0.1), rgba(255, 255, 255, 0));
    animation-delay: -10s;
}


/* --- Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-purple);
    color: white;
    box-shadow: 0 4px 15px rgba(49, 25, 85, 0.3);
}

.btn-primary:hover {
    background: var(--accent-magenta);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(175, 70, 154, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
}

.btn-outline:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-3px);
}

/* --- Custom Header --- */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

.landing-header.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent-magenta);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    position: relative;
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-purple);
    cursor: pointer;
}

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

/* Original simple bg shape (kept for layer depth) */
.hero-bg-shape {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(175, 70, 154, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 10s infinite ease-in-out;
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    color: var(--accent-magenta);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(175, 70, 154, 0.1);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image-wrapper {
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d; /* Enable 3D space */
}

.hero-image {
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-hover);
    transition: transform 0.1s ease-out; /* Smoother mouse follow */
    width: 100%;
    height: auto;
    object-fit: cover;
    transform: translateZ(0); /* Hardware acceleration */
}

.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
    transform: translateZ(20px); /* Lift off image */
}

.float-card.top-left {
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.float-card.bottom-right {
    bottom: 15%;
    right: -5%;
    animation-delay: 2s;
}

.float-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-pale-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-magenta);
}

/* --- Scroll Experience --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* --- Features Section --- */
.features-section {
    padding: 8rem 0;
    background: rgba(255, 255, 255, 0.8); /* See-through for blobs */
    position: relative;
    backdrop-filter: blur(2px);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.features-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    perspective: 1000px; /* For tilt effect */
}

.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    transition: transform 0.1s ease-out, box-shadow 0.3s ease; /* Quick transform for tilt */
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(49, 25, 85, 0.05);
    transform-style: preserve-3d;
}

.feature-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: transparent;
    /* Transform handled by JS */
}

.feature-content-layer {
    transform: translateZ(20px); /* Lift content off card */
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--bg-pale-purple);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-purple);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--primary-purple);
    color: white;
    transform: rotate(5deg) scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* --- Dashboard Preview Section --- */
.dashboard-section {
    padding: 8rem 0;
    background: transparent;
    overflow: hidden;
}

.dashboard-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dashboard-mockup {
    position: relative;
    margin-top: 4rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    background: white;
    padding: 1rem;
    width: 100%;
    max-width: 1000px;
    transform: perspective(1000px) rotateX(5deg);
    transition: transform 0.5s ease;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.02);
}

.dashboard-mockup img {
    border-radius: 12px;
    width: 100%;
}

/* --- Stats Section --- */
.stats-section {
    padding: 5rem 0;
    background: var(--primary-purple);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Add a pattern or gradient overlay to stats */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.05) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    opacity: 0.3;
}

.stats-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-item h3 {
    color: var(--accent-magenta);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* --- Footer --- */
.landing-footer {
    background: white;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-col ul li a:hover {
    color: var(--accent-magenta);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--text-light);
}

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

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-bg-shape {
        width: 100vw;
        height: 100vw;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .blob {
        opacity: 0.3; /* Reduce opacity on mobile */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide menu for now, simplified */
    }
    
    .mobile-menu-btn {
        display: block;
    }

    h1 {
        font-size: 2.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .dashboard-mockup {
        transform: none;
    }
    
    .dashboard-mockup:hover {
        transform: scale(1.02);
    }
}
