/* ===== CSS Reset and Root Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #1f2937;
    --light-bg: #f9fafb;
    --text-dark: #111827;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --spacing-unit: 1rem;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header / Navigation ===== */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.logo .tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
    margin-top: -2px;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.nav a:hover {
    color: var(--primary-color);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><style>.blob1 {opacity: 0.1; animation: float 6s ease-in-out infinite;} .blob2 {opacity: 0.08; animation: float 8s ease-in-out infinite 1s;} @keyframes float {0%25, 100%25 {transform: translateY(0px);} 50%25 {transform: translateY(-30px);}}</style></defs><circle cx="100" cy="100" r="120" fill="white" class="blob1"/><circle cx="1100" cy="500" r="150" fill="white" class="blob2"/><path d="M 600 50 Q 700 150 600 250 Q 500 150 600 50" fill="white" opacity="0.05"/></svg>'),
    linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-attachment: fixed;
    background-size: cover;
    color: #ffffff;
    padding: 6rem 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(5px);
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Buttons ===== */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ===== About Section ===== */
.about {
    padding: 4rem 20px;
    background-color: var(--light-bg);
}

.about .container {
    max-width: 900px;
}

.about h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-light);
    text-align: center;
}

/* ===== Features Section ===== */
.features {
    padding: 5rem 20px;
    background-color: #ffffff;
}

.features h3 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== Joy Coins Section ===== */
.joy-coins {
    padding: 5rem 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #fef3c7 100%);
}

.joy-coins h3 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-dark);
}

.coins-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.coin-item {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all var(--transition);
}

.coin-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.15);
}

.coin-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.coin-item h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.coin-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== Tasks Section ===== */
.tasks {
    padding: 5rem 20px;
    background-color: #ffffff;
}

.tasks h3 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-dark);
}

.tasks-list {
    max-width: 900px;
    margin: 0 auto;
}

.task-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.task-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.task-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
}

.task-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.task-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== Roadmap Section ===== */
.roadmap {
    padding: 5rem 20px;
    background-color: var(--light-bg);
}

.roadmap h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-dark);
}

.roadmap-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.roadmap-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.roadmap-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition);
}

.roadmap-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.roadmap-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.roadmap-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== CTA Section ===== */
.cta {
    padding: 4rem 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    text-align: center;
}

.cta h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-bg);
    color: #ffffff;
    padding: 3rem 20px 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .features h3,
    .about h3,
    .tasks h3,
    .roadmap h3,
    .cta h3,
    .joy-coins h3 {
        font-size: 1.8rem;
    }

    .task-item {
        flex-direction: column;
        gap: 1rem;
    }

    .task-number {
        align-self: flex-start;
    }

    .features-grid,
    .coins-benefits,
    .roadmap-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero {
        padding: 3rem 20px;
    }

    .features,
    .roadmap,
    .joy-coins,
    .tasks,
    .about {
        padding: 3rem 20px;
    }

    .feature-card,
    .coin-item,
    .roadmap-card {
        padding: 1.5rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .nav {
        gap: 0.8rem;
    }

    .nav a {
        font-size: 0.85rem;
    }
}

/* ===== Animations ===== */
@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: var(--spacing-unit);
}

.mt-2 {
    margin-top: calc(var(--spacing-unit) * 2);
}

.mb-1 {
    margin-bottom: var(--spacing-unit);
}

.mb-2 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}
