:root {
    --primary: #4a6cf7;
    --primary-dark: #3a5ce5;
    --secondary: #6c757d;
    --success: #28a745;
    --warning: #ffc107;
    --light: #f8f9fa;
    --dark: #343a40;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary), var(--primary-dark));
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f5f7fb;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: var(--gradient);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
}

.logo-icon {
    margin-right: 10px;
    font-size: 2rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav ul li a:hover {
    opacity: 0.8;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), 
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%234a6cf7" opacity="0.1"/></svg>');
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--secondary);
}

.app-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.app-badge {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--dark);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
}

.app-badge:hover {
    transform: translateY(-3px);
    color: var(--white);
}

.app-badge i {
    margin-right: 8px;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--light);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 0;
    background-color: #f0f4ff;
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 1.5rem;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    right: -10%;
    width: 20%;
    height: 2px;
    background: var(--primary);
    opacity: 0.3;
}

/* App Preview Section */
.app-preview {
    padding: 4rem 0;
    background-color: var(--white);
}

.preview-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.preview-image {
    flex: 1;
    text-align: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: var(--gradient);
    border-radius: 40px;
    padding: 20px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-interface {
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.app-header {
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.app-logo {
    font-weight: bold;
    color: var(--primary);
}

.app-balance {
    text-align: center;
    padding: 30px 0;
}

.coin-amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-top: 10px;
}

.app-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
}

.app-btn {
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

.preview-text {
    flex: 1;
}

.preview-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.preview-features {
    list-style: none;
    margin-top: 1.5rem;
}

.preview-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.preview-features li i {
    color: var(--success);
    margin-right: 10px;
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
    background-color: #f0f4ff;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    background: var(--white);
    padding: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    background: var(--light);
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.active {
    padding: 1.2rem;
    max-height: 500px;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 0 0.75rem 0.5rem;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .app-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .preview-content {
        flex-direction: column;
    }
    
    .preview-image {
        order: 2;
    }
    
    .preview-text {
        order: 1;
    }
    
    .mobile-menu {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {
    .app-badges, .mobile-menu, .social-links {
        display: none;
    }
}