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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link.cta-button {
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.nav-link.cta-button:hover {
    background: #1d4ed8;
    color: white;
}

/* Hero Section */
.hero {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 1.5rem;
    align-items: center;
    height: 100%;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: #2563eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
}

.system-req {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}

/* App Mockup */
.app-mockup {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-screenshot {
    width: 100%;
    max-width: 1400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.hero-screenshot:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-header p {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Performance Section */
.performance-section {
    background: #f8fafc;
}

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

.performance-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.performance-card:hover {
    transform: translateY(-5px);
}

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

.performance-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.performance-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* AI Section */
.ai-section {
    background: #1f2937;
    color: white;
}

.ai-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ai-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ai-text > p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.ai-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ai-feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ai-feature p {
    opacity: 0.8;
    line-height: 1.6;
}

/* Search Demo */
.search-demo {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(20px);
}

.search-bar {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.search-bar input {
    flex: 1;
    padding: 1rem;
    border: none;
    font-size: 1rem;
    outline: none;
    color: #333;
}

.search-bar button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.2rem;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Fourth card spans full width */
.features-grid .feature-card:nth-child(4) {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.feature-card > p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.9rem;
}

.feature-list li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Feature Badges */
.feature-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-badge.free {
    background: #10b981;
    color: white;
}

.feature-badge.mixed {
    background: linear-gradient(90deg, #10b981 50%, #2563eb 50%);
    color: white;
}

.feature-card {
    position: relative;
}

/* Screenshots Section */
.screenshots-section {
    background: #f8fafc;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.screenshot-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.main-screenshot {
    grid-column: span 2;
}

.screenshot-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    min-height: 300px;
}

.screenshot-caption {
    padding: 1.5rem;
}

.screenshot-caption h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.screenshot-caption p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Pricing Section */
.pricing-section {
    background: #f8fafc;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    border-color: #2563eb;
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
}

.pricing-card.featured {
    border-color: #2563eb;
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.2);
}

.pricing-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.price-period {
    color: #6b7280;
    margin-bottom: 2rem;
}

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

.pricing-features li {
    padding: 0.5rem 0;
    color: #374151;
    display: flex;
    align-items: center;
}

.pricing-features li::before {
    content: none;
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    text-align: center;
}

.download-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.download-content > p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    margin-bottom: 3rem;
}

.download-info {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

.system-requirements {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    max-width: 400px;
    margin: 0 auto;
}

.system-requirements h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.system-requirements ul {
    list-style: none;
    text-align: left;
}

.system-requirements li {
    padding: 0.5rem 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.system-requirements li::before {
    content: "•";
    color: #60a5fa;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #60a5fa;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f3f4f6;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (min-width: 1600px) {
    .hero-screenshot {
        max-width: 1700px;
    }
}

@media (min-width: 1400px) and (max-width: 1599px) {
    .hero-screenshot {
        max-width: 1550px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid .feature-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .features-grid .feature-card:nth-child(4) {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero {
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        height: auto;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-screenshot {
        max-width: 95%;
        transform: none;
    }
    
    .hero-screenshot:hover {
        transform: scale(1.02);
    }
    
    .ai-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .performance-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid .feature-card:nth-child(4) {
        grid-column: 1;
        max-width: none;
        margin: 0;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    .main-screenshot {
        grid-column: span 1;
    }
    
    .screenshot-image {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 80px 0 40px;
        min-height: 100vh;
    }
    
    .hero .container {
        height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-screenshot {
        max-width: 98%;
        transform: none;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .performance-card,
    .feature-card {
        padding: 1.5rem;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshot-image {
        min-height: 200px;
    }
    
    .app-mockup {
        max-width: 100%;
    }
}

/* Payment Modal Styles */
.payment-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.payment-modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.payment-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.payment-modal-close {
    font-size: 2rem;
    font-weight: 300;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.payment-modal-close:hover {
    color: #1f2937;
}

.payment-modal-body {
    padding: 2rem;
}

.payment-info {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
}

.payment-price {
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
}

.price-desc {
    display: block;
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.payment-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-item {
    color: #374151;
    font-size: 0.9rem;
    text-align: left;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group small {
    color: #6b7280;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.stripe-element {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    transition: border-color 0.3s ease;
}

.stripe-element:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.error-message {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    min-height: 1rem;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

.hidden {
    display: none !important;
}

.payment-security {
    margin-top: 2rem;
    text-align: center;
}

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

.security-badge {
    font-size: 0.8rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* Success Modal Styles */
.success-modal {
    text-align: center;
    max-width: 650px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-modal h2 {
    color: #059669;
    margin-bottom: 1rem;
}

.success-modal p {
    color: #374151;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.success-details {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Mobile Responsiveness for Payment Modal */
@media (max-width: 768px) {
    .payment-modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 85vh;
    }
    
    .payment-modal-header,
    .payment-modal-body {
        padding: 1.5rem;
    }
    
    .payment-modal-header {
        padding-bottom: 1rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .security-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .payment-modal-content {
        margin: 2% auto;
        width: 98%;
    }
    
    .payment-modal-header,
    .payment-modal-body {
        padding: 1rem;
    }
}
