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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: scroll;
}

html:focus-within {
    scroll-behavior: smooth;
}

/* Prevent scroll anchoring which can cause jumps */
* {
    overflow-anchor: none;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Performance optimizations */
* {
    -webkit-tap-highlight-color: transparent;
}

img, video, canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Smooth transitions for interactive elements */
a, button, .cta-button, .pill, .testimonial-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    position: relative;
    color: white;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-quote {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    max-width: 600px;
}

.hero-quote-text {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
    color: rgba(255, 255, 255, 0.95);
}

.hero-quote-author {
    display: block;
    font-size: 0.95rem;
    font-style: normal;
    text-align: right;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.hero-note {
    margin-top: 1rem;
    font-size: 1rem;
    opacity: 0.8;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #1f2937;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #1f2937;
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CTA Buttons */
.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    color: var(--primary-color);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.cta-button.primary:hover {
    background: var(--primary-dark);
}

.cta-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
    scroll-margin-top: 80px;
    scroll-snap-align: none;
}

/* Ensure sections don't cause scroll jumps */
section:target {
    scroll-margin-top: 80px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    min-height: 3.5rem;
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Problems Section */
.problems {
    background: var(--bg-light);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

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

.problem-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.problem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Unique Value Section */
.unique-value {
    background: var(--bg-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    position: relative;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.badge.exclusive {
    background: var(--accent-color);
}

/* Gamification Section */
.gamification-demo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.demo-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
}

.streak-counter {
    position: relative;
}

.streak-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.streak-label {
    font-size: 1.2rem;
    color: var(--text-light);
}

.streak-fire {
    font-size: 3rem;
    margin-top: 1rem;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.badge-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.badge-image:hover {
    transform: scale(1.1);
}

.badge-icon {
    font-size: 2.5rem;
}

.badge-icon.locked {
    opacity: 0.3;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 2s ease;
}

.progress-text {
    color: var(--text-light);
    font-size: 0.9rem;
}



/* Gallery Section */
.screenshots-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
}

.screenshots-carousel::-webkit-scrollbar {
    height: 8px;
}

.screenshots-carousel::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.screenshots-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.screenshots-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.screenshot-item {
    flex: 0 0 300px;
    scroll-snap-align: center;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #1f2937;
    border-radius: 40px;
    padding: 15px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #1f2937;
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

.screenshot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    display: block;
}

.screenshot-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.screenshot-placeholder span {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Audience Section */
.audience {
    background: var(--bg-light);
}

.audience .section-title {
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.audience-card {
    background-color: #F8FBFE;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.audience-card-tools {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: #F8FBFE;
}

.audience-card-circle {
    padding: 0 4px;
}

.audience-card-box {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.audience-card-box.red {
    background-color: #ff605c;
}

.audience-card-box.yellow {
    background-color: #ffbd44;
}

.audience-card-box.green {
    background-color: #00ca4e;
}

.audience-card-content {
    padding: 20px 24px 28px;
}

.audience-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.audience-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-light);
    overflow: hidden;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
}

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

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    contain: layout style paint;
}

.testimonial-card {
    position: relative;
    width: 100%;
    height: 350px;
    background: linear-gradient(-45deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    opacity: 1;
}

.testimonial-card:hover {
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-card.active {
    opacity: 1;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.testimonial-avatar-img {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px !important;
    min-height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 4px solid white;
    display: block !important;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    z-index: 1;
}

.testimonial-card:hover .testimonial-avatar-img {
    transform: scale(0);
    opacity: 0;
}

.testimonial-card__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 100%;
    height: 100%;
    padding: 30px;
    box-sizing: border-box;
    background-color: #fff;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.testimonial-card:hover .testimonial-card__content {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 1;
}

.testimonial-card__title {
    margin: 0 0 15px 0;
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 700;
}

.testimonial-card__description {
    margin: 0;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    font-style: italic;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
}

/* Pricing Section */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

/* Download Section */
.download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.download-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    color: var(--text-dark);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.download-button:hover:not(.disabled) {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.download-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.download-button.rustore {
    background: white;
    color: var(--text-dark);
}

.download-button.rustore:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.download-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.download-icon {
    font-size: 2.5rem;
}

.download-button small {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
}

.download-button strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

.qr-code {
    display: flex;
    justify-content: center;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-dark);
}

/* Investors Section */
.investors {
    background: var(--bg-light);
}

.investor-content {
    max-width: 800px;
    margin: 3rem auto;
}

.market-opportunity {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

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

.metric {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.metric h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-message {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 999;
    pointer-events: none;
}

.sticky-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

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

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.75rem;
        min-height: 2.5rem;
    }

    .audience .section-title {
        min-height: 3rem;
    }

    .download-content {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 2rem;
    }

    .sticky-cta {
        left: 20px;
        right: 20px;
    }

    .sticky-cta .cta-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
        min-height: 2rem;
    }

    .audience .section-title {
        min-height: 2.5rem;
        font-size: 1.5rem;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
    }
}
