:root {
    --bg-dark: #100f1c;
    --bg-light: #1d1c2d;
    --primary-accent: #c84e89;
    --secondary-accent: #f3c969;
    --text-light: #fdfdfd;
    --text-medium: #a8a7b4;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --border-radius: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Typography & Global --- */

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw + 1rem, 3rem); }
h3 { font-size: 1.5rem; color: var(--secondary-accent); }
p { color: var(--text-medium); margin-bottom: 1rem; }
a { color: var(--primary-accent); text-decoration: none; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 6rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

/* --- Header & Nav --- */
.main-header {
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    background: rgba(16, 15, 28, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: padding 0.3s ease, background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.logo img {
    width: 40px;
    height: 40px;
}

/* --- Buttons --- */
.cta-button {
    background: linear-gradient(45deg, var(--primary-accent), #e78fb3);
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-body);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(200, 78, 137, 0.4);
}

.cta-button.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* --- Hero Section --- */
.hero {
    padding-top: 8rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    background: radial-gradient(circle at 10% 20%, rgba(29, 28, 45, 0.9), transparent 70%),
                radial-gradient(circle at 90% 80%, rgba(200, 78, 137, 0.2), transparent 70%);
}

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

.hero-subtitle {
    max-width: 600px;
    margin: 1.5rem auto 2.5rem;
    font-size: 1.2rem;
}

.hero-image-mobile {
    display: block;
    margin: 2rem auto;
}

.hero-image-mobile img, .hero-image-desktop img {
    max-height: 70vh;
    width: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.hero-image-desktop {
    display: none;
}


/* --- Features Section --- */
.features {
    background-color: var(--bg-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--bg-dark);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.feature-card img {
    border-radius: 12px;
    margin-bottom: 1.5rem;
    aspect-ratio: 9/16;
    object-fit: cover;
    width: 100%;
}

/* --- CTA Section --- */
.community-cta {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--bg-dark) url('./2.jpg') no-repeat center center;
    background-size: cover;
    background-blend-mode: overlay;
    position: relative;
    padding: 8rem 5%;
}

.community-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(16, 15, 28, 0.85);
    z-index: 1;
}

.community-cta > * {
    position: relative;
    z-index: 2;
}

/* --- Footer --- */
footer {
    background-color: var(--bg-light);
    padding: 2rem 5%;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-content .logo {
    font-size: 1.2rem;
}

.footer-content .logo img {
    width: 30px;
    height: 30px;
}

/* --- Animations --- */
.hero-title, .hero-subtitle, .hero .cta-button, .hero-image-mobile, .hero-image-desktop,
.feature-card, .section-title, .community-cta > * {
    opacity: 0;
    transform: translateY(20px);
}


/* --- Media Queries --- */
@media (min-width: 768px) {
    section {
        padding: 8rem 10%;
    }
    
    .hero {
        grid-template-columns: 1.2fr 1fr;
        text-align: left;
        padding-top: 6rem;
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-content {
        align-items: flex-start;
    }
    
    .hero-subtitle {
        margin: 1.5rem 0 2.5rem;
    }
    
    .hero-image-mobile {
        display: none;
    }
    
    .hero-image-desktop {
        display: block;
    }
    
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .community-cta {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        max-width: 1200px;
        margin: 0 auto;
        border-radius: var(--border-radius);
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

