/* General Body and Background Styles */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(300deg, #f5f3ff, #eef2ff, #fde2e4);
    background-size: 180% 180%;
    animation: dreamy-gradient-animation 18s ease infinite;
    color: #334155; /* slate-700 */
    margin: 0;
    overflow-x: hidden;
}

@keyframes dreamy-gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem; /* 24px */
    padding-right: 1.5rem;
}

/* Header and Navigation */
.site-header {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
.logo-link {
    font-size: 1.5rem; /* 24px */
    font-weight: 800;
    color: #1e293b; /* slate-800 */
    text-decoration: none;
}
.nav-links {
    display: none; /* Hidden on mobile */
}
@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2rem; /* 32px */
    }
}
.nav-links a {
    font-weight: 500;
    color: #475569; /* slate-600 */
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #7c3aed; /* violet-600 */
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.login-button {
    background-color: #7c3aed;
    color: white;
    padding: 0.625rem 1.25rem; /* 10px 20px */
    border-radius: 0.5rem; /* 8px */
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}
.login-button:hover {
    background-color: #6d28d9;
}

/* Logout button styles (shared) */
.logout-button {
    background-color: #ef4444; /* red-500 */
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}
.logout-button:hover { background-color: #dc2626; }

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
    text-align: center;
}
@media (min-width: 1024px) {
    .hero-section {
        text-align: left;
    }
    .hero-content-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        align-items: center;
    }
}
.hero-text {
    max-width: 36rem; /* 576px */
    margin: 0 auto;
}
@media (min-width: 1024px) {
    .hero-text {
        margin: 0;
    }
}
.hero-headline {
    font-size: 2.25rem; /* 36px */
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}
@media (min-width: 768px) {
    .hero-headline {
        font-size: 3.75rem; /* 60px */
    }
}
.hero-headline .highlight {
    color: #7c3aed;
}
.hero-description {
    margin-top: 1.5rem;
    font-size: 1.125rem; /* 18px */
    line-height: 1.75;
    color: #475569;
    max-width: 32rem; /* 512px */
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 1024px) {
    .hero-description {
        margin-left: 0;
        margin-right: 0;
    }
}
.hero-cta-button {
    display: inline-block;
    margin-top: 2.5rem;
    background-color: #1e293b;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}
.hero-cta-button:hover {
    background-color: #334155;
}
.sparkle {
position: absolute; /* Allows placing stars anywhere */
width: 4px;
height: 4px;
background-color: white;
border-radius: 50%;
box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.7); /* The glow */
animation: sparkle-animation 5s infinite;
opacity: 0; /* Starts invisible */
}

/* Hero Image Carousel */
.hero-image-container {
    position: relative;
    margin-top: 4rem;
}
@media (min-width: 1024px) {
    .hero-image-container {
        margin-top: 0;
    }
}
.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 1rem;
}
.carousel-item.active {
    opacity: 1;
    position: relative; /* Take up space in the layout */
}
.hero-image {
    width: 100%;
    max-width: 28rem; /* 448px */
    margin: 0 auto;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: gentle-float 6s ease-in-out infinite;
}
.hero-image-bg-shape {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 70%;
    height: 70%;
    background-color: rgba(167, 139, 250, 0.3); /* violet-300 with opacity */
    border-radius: 1.5rem;
    z-index: -1;
    filter: blur(24px);
    animation: gentle-float-reverse 8s ease-in-out infinite;
}
.sparkle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 50%; left: 30%; animation-delay: 0.5s; }
.sparkle:nth-child(3) { top: 70%; left: 5%; animation-delay: 0.5s; }
.sparkle:nth-child(4) { top: 40%; left: 60%; animation-delay: 1s; }
.sparkle:nth-child(5) { top: 25%; left: 80%; animation-delay: 1.5s; }
.sparkle:nth-child(6) { top: 60%; left: 75%; animation-delay: 2s; }


@keyframes gentle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
@keyframes gentle-float-reverse {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(15px) scale(1.05); }
}
@keyframes sparkle-animation {
0% { transform: scale(0.5) translateY(0); opacity: 0; }
50% { transform: scale(1.2) translateY(-20px); opacity: 1; }
100% { transform: scale(0.5) translateY(0); opacity: 0; }
}

/* Features Section */
.features-section {
    padding: 6rem 0;
}
.features-header {
    text-align: center;
    max-width: 48rem; /* 768px */
    margin: 0 auto 4rem auto;
}
.features-title {
    font-size: 2.25rem; /* 36px */
    font-weight: 800;
    color: #1e293b;
}
.features-description {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: #475569;
}
.features-grid {
    display: grid;
    gap: 2rem;
}
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.feature-card {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0; /* slate-200 */
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.feature-icon-container {
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-icon {
    width: 2rem;
    height: 2rem;
}
.icon-discover { background-color: #ede9fe; color: #8b5cf6; }
.icon-connect { background-color: #dcfce7; color: #22c55e; }
.icon-manage { background-color: #e0f2fe; color: #0ea5e9; }

.feature-title {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}
.feature-description {
    margin-top: 0.5rem;
    color: #475569;
}

/* Footer */
.site-footer {
    padding: 4rem 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-top: 1px solid #e2e8f0;
}
.footer-content {
    text-align: center;
}
.footer-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
}
.footer-text {
    margin-top: 0.5rem;
    color: #475569;
}
