/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-white);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 10px rgba(102, 102, 234, 0.5);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 102, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 102, 234, 0.5);
}

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

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

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

/* Phone Mockup */
.hero-visual {
    position: relative;
    animation: fadeInRight 0.8s ease-out 0.4s backwards;
}

.app-preview {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.app-preview-img {
    width: 100%;
    height: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatSlow 4s ease-in-out infinite;
}

.app-preview-img:hover {
    transform: translateY(-12px) scale(1.02);
}

.phone-mockup {
    width: 320px;
    height: 650px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: 0 auto;
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 32px;
    padding: 50px 20px 20px;
    overflow: hidden;
    position: relative;
}

.card-demo {
    background: white;
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    animation: floatCard 3s ease-in-out infinite;
}

.card-demo.card-1 {
    animation-delay: 0s;
}

.card-demo.card-2 {
    animation-delay: 0.5s;
}

.card-demo.card-3 {
    animation-delay: 1s;
}

.card-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.card-count {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-description {
    font-size: 20px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 102, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover::after {
    width: 300px;
    height: 300px;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.feature-description {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 16px;
}

/* Screenshots Section */
.screenshots {
    padding: 120px 0;
    background: white;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: 60px;
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.8s ease-out;
}

.screenshot-frame {
    width: 100%;
    max-width: 320px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    border-radius: 42px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.screenshot-frame:hover {
    transform: translateY(-16px) scale(1.03) rotate(2deg);
    box-shadow: 0 35px 90px rgba(102, 102, 234, 0.4);
}

.screenshot-frame:hover::before {
    opacity: 1;
}

.screenshot-frame:hover .screenshot-img {
    transform: scale(1.02);
}

.screenshot-img {
    width: 100%;
    height: auto;
    border-radius: 32px;
    display: block;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-caption {
    text-align: center;
    margin-top: 24px;
    padding: 0 16px;
}

.screenshot-caption h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.screenshot-caption p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Highlights Section */
.highlights {
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
}

.highlights-content {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.highlight-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.highlight-item.reverse {
    direction: rtl;
}

.highlight-item.reverse > * {
    direction: ltr;
}

.highlight-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.floating-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: floatSlow 4s ease-in-out infinite;
}

.mini-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.mini-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.mini-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-text h3 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.highlight-text p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -250px;
    right: -150px;
}

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

.cta-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

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

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

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

.cta .btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: white;
}

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

.contact-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.contact-description {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 102, 234, 0.4);
}

.contact-email:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 102, 234, 0.5);
}

.email-icon {
    font-size: 24px;
}

/* Footer */
.footer {
    padding: 40px 0;
    background: var(--text-dark);
    text-align: center;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

/* Scroll Animation Classes */
.scroll-fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-fade-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-fade-left.animated-left {
    opacity: 1;
    transform: translateX(0);
}

.scroll-fade-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-fade-right.animated-right {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-scale.animated-scale {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-5deg) scale(0.95);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .app-preview {
        max-width: 400px;
    }

    .phone-mockup {
        width: 280px;
        height: 570px;
    }

    .section-title {
        font-size: 36px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .screenshot-frame {
        max-width: 280px;
    }

    .highlight-item,
    .highlight-item.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }

    .highlight-text h3 {
        font-size: 28px;
    }

    .cta-title {
        font-size: 36px;
    }

    .contact-title {
        font-size: 36px;
    }

    .contact-email {
        font-size: 16px;
        padding: 16px 32px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .app-preview {
        max-width: 300px;
    }

    .phone-mockup {
        width: 240px;
        height: 490px;
    }

    .card-demo {
        padding: 16px;
    }

    .card-icon {
        font-size: 24px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-count {
        font-size: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-description {
        font-size: 16px;
    }

    .feature-card {
        padding: 30px;
    }

    .feature-icon {
        font-size: 40px;
    }

    .feature-title {
        font-size: 20px;
    }

    .screenshots-grid {
        gap: 30px;
    }

    .screenshot-frame {
        max-width: 240px;
    }

    .screenshot-caption h4 {
        font-size: 18px;
    }

    .screenshot-caption p {
        font-size: 14px;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-description {
        font-size: 16px;
    }

    .contact-title {
        font-size: 28px;
    }

    .contact-description {
        font-size: 16px;
    }
}
