/* ===================================
   CSS Variables & Reset
   =================================== */

:root {
    --primary: #8B5CF6;
    --secondary: #FFD400;
    --bg: #F5F5F7;
    --text: #1C1C3C;
    --accent-light: #FFF9E6;
    --accent-purple: #F3EDFF;
    --white: #FFFFFF;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 16px;
    --radius-md: 20px;
    --radius-lg: 28px;
    
    --shadow-sm: 0 2px 4px rgba(139, 92, 246, 0.1);
    --shadow-md: 0 10px 20px rgba(139, 92, 246, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-in {
    animation: fadeIn 0.4s ease-out;
}

.animate-scale {
    animation: scaleIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===================================
   Header
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(245, 245, 247, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.2));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.language-switcher {
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
}

.lang-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-color: transparent;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-purple) 100%);
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeIn 0.6s ease-out;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text);
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(28, 28, 60, 0.8);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    animation: scaleIn 0.8s ease-out;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--white);
    color: var(--text);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

/* ===================================
   Phone Mockup
   =================================== */

.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-screenshot {
    max-width: 300px;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-screenshot:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* ===================================
   Sections Common Styles
   =================================== */

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text);
}

/* ===================================
   Features Section
   =================================== */

.features {
    padding: 100px 0;
    background: var(--bg);
}

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

.feature-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.2));
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.feature-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(28, 28, 60, 0.7);
}

/* ===================================
   How It Works Section
   =================================== */

.how-it-works {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--accent-purple) 100%);
}

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

.step-card {
    background: var(--white);
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
}

.step-number {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.step-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 24px;
    color: var(--text);
}

.step-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(28, 28, 60, 0.7);
}

/* ===================================
   Design Showcase Section
   =================================== */

.design-showcase {
    padding: 100px 0;
    background: var(--bg);
}

.design-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.design-info h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.color-swatch {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.color-item span {
    font-size: 14px;
    color: rgba(28, 28, 60, 0.7);
    text-align: center;
}

.design-typography-title {
    margin-top: 32px !important;
}

.typography-samples {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.type-sample h4 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.type-sample p {
    font-size: 16px;
    color: rgba(28, 28, 60, 0.7);
}

.design-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.design-card-sample {
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.card-1 {
    background: linear-gradient(135deg, var(--accent-purple), var(--white));
}

.card-2 {
    background: linear-gradient(135deg, var(--accent-light), var(--white));
}

.card-emoji {
    font-size: 36px;
    display: block;
    margin-bottom: 16px;
}

.card-content h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.card-content p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(28, 28, 60, 0.7);
}

/* ===================================
   Download CTA Section
   =================================== */

.download-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
}

.download-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-cta .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.download-cta .btn-primary:hover {
    background: var(--accent-light);
}

.download-cta .btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.download-cta .btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--text);
    color: var(--white);
    padding: 60px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-tagline {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.footer .logo-text {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .app-screenshot {
        max-width: 250px;
    }
    
    .design-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .color-palette {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 36px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .download-cta .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .header {
        padding: 12px 0;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .app-screenshot {
        max-width: 200px;
    }
    
    
    .feature-card,
    .step-card {
        padding: 32px 24px;
    }
}
