:root {
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.4);
    --secondary: #64748b;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

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

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Utility Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    margin-left: 1rem;
}

.btn-secondary.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-left: 0;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 1rem 2rem;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.navbar-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    color: var(--primary);
}

.navbar nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.navbar nav ul li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.navbar nav ul li a:hover {
    color: var(--text-light);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-text {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-text:hover {
    color: var(--text-light);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content horizontally */
    padding: 10rem 2rem 6rem;
    /* More top padding for fixed nav */
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    gap: 6rem;
    /* Bring them closer to center but separate */
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    /* Changed to right for better balance */
    left: auto;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
}

.hero-content {
    flex: 0 1 550px;
    /* Don't stretch, stick to width */
    max-width: 550px;
}

.hero-buttons {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
}

.stats-container {
    margin-top: 4rem;
    display: flex;
    gap: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    /* Align icon and text horizontally if wanted, but column is fine too */
    gap: 1rem;
}

.stat-number {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.hero-visual {
    flex: 0 1 auto;
    /* Allow sizing based on content */
    display: flex;
    justify-content: center;
    position: relative;
}

.image-wrapper {
    position: relative;
    perspective: 1000px;
    transition: transform 0.5s ease;
    width: 100%;
    display: flex;
    justify-content: center;
    /* Soften the edges of the image container to blend into the background */
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.image-wrapper:hover {
    transform: translateY(-10px);
}

.hero-image {
    width: 100%;
    max-width: 700px;
    /* MUCH BIGGER */
    height: auto;
    display: block;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.2;
    z-index: -1;
}

/* Features Section */
.features {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-header {
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    padding: 3rem;
    text-align: left;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.03);
    /* Subtler border */
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.icon-box {
    width: 56px;
    height: 56px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

/* Mission Section */
.mission {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-content {
    padding: 5rem;
    text-align: center;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Blog Section */
.blog-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.blog-card {
    background: #1e293b;
    border-radius: 20px;
    overflow: hidden;
    max-width: 600px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.blog-image {
    height: 300px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 2rem;
}

.blog-tag {
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 1.5rem;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Problem Section */
.problem-section {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(30, 41, 59, 0.3) 100%);
}

.problem-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.problem-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.problem-text p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.highlight {
    color: #ef4444;
    /* Alert color for 'variable rewards' */
    font-weight: 700;
}

.problem-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.p-stat {
    display: flex;
    flex-direction: column;
}

.p-stat strong {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--text-light);
}

.p-stat span {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Community Section */
.community-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.testimonial-card {
    padding: 2.5rem;
    background: rgba(30, 41, 59, 0.4);
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: #cbd5e1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
    padding: 8rem 2rem;
    text-align: center;
    background: linear-gradient(0deg, rgba(16, 185, 129, 0.03) 0%, transparent 100%);
}

.cta-section h2 {
    margin-bottom: 1.5rem;
}

.cta-section p {
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    margin-top: auto;
    background: #0b1120;
    /* Slightly darker */
}

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

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.2rem;
    color: var(--text-muted);
}

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

/* Modal and Utilities */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Lighter backdrop */
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1e293b;
    padding: 2.5rem;
    width: 90%;
    max-width: 420px;
    position: relative;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #fff;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.875rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-family: var(--font-body);
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.3);
}

.hidden {
    display: none;
}

#success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: #fff;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .navbar {
        padding: 1rem 0;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
        gap: 3rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }

    .stats-container {
        justify-content: center;
        gap: 2rem;
    }

    .hero-visual {
        width: 100%;
        margin-top: 2rem;
    }

    .hero-image {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .navbar nav {
        display: none;
    }

    .nav-buttons .btn-text {
        display: none;
    }
}