/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* CSS Variables for Consistent Color Palette */
:root {
    --primary-color: #7B68EE; /* Medium Slate Blue */
    --primary-hover-color: #6A5ACD; /* Slate Blue */
    --success-color: #4CAF50; /* Green for success messages */
    --background-color: #121212;
    --surface-color: #1E1E1E;
    --text-color: #EAEAEA;
    --text-muted-color: #9E9E9E;
    --border-color: #333333;
}

/* General Reset and Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header/Navigation */
.navbar {
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.navbar .nav-links a {
    color: var(--text-muted-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: var(--primary-color);
}


/* Hero Section (Homepage) */
.hero {
    text-align: center;
    padding: 8rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .highlight {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--text-muted-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-3px);
}

/* Features Section (Homepage) */
.features {
    padding: 6rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

.feature-card p {
    color: var(--text-muted-color);
    font-size: 1rem;
}

/* Content Page (Terms, Privacy) */
.content-page {
    padding: 4rem 0;
}

.content-page h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.content-page h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.content-page p, .content-page ul {
    margin-bottom: 1rem;
    color: var(--text-muted-color);
}

.content-page ul {
    padding-left: 20px;
}

.content-page strong {
    color: var(--text-color);
}

/* Success Page */
.success-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh; /* Takes up most of the vertical height */
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 2rem;
    opacity: 0; /* Hidden by default for animation */
    animation: fadeIn 1s 0.2s ease-out forwards, bounceIn 0.8s 0.2s ease-out;
}

.success-page h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 1s 0.4s ease-out forwards;
}

.success-page p {
    font-size: 1.2rem;
    color: var(--text-muted-color);
    max-width: 600px;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeIn 1s 0.6s ease-out forwards;
}

.success-page .cta-button {
    opacity: 0;
    animation: fadeIn 1s 0.8s ease-out forwards;
}

/* Keyframe animations for Success Page */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}


/* Footer */
.footer {
    background-color: var(--surface-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-muted-color);
}

.footer .footer-links {
    margin-bottom: 1rem;
}

.footer .footer-links a {
    color: var(--text-muted-color);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer .footer-links a:hover {
    color: var(--primary-color);
}


/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .navbar .nav-links {
        display: none; /* Hides nav links on mobile. A hamburger menu (JS required) is a good next step. */
    }

    .hero {
        padding: 6rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    
    .features {
        padding: 4rem 0;
    }

    .features h2 {
        font-size: 2rem;
    }

    .content-page h1 {
        font-size: 2.2rem;
    }
    .content-page h2 {
        font-size: 1.5rem;
    }
    
    .success-page h1 {
        font-size: 2.2rem;
    }
    
    .success-icon {
        font-size: 4rem;
    }

    .footer .footer-links a {
        margin: 0 0.5rem;
    }
}