/* Merge System Page Styles */

:root {
    --primary-color: #ec4899;
    --secondary-color: #f472b6;
    --accent-color: #f97316;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #fdf2f8;
    --border-color: #f3e8ff;
    --shadow-sm: 0 1px 2px rgba(236, 72, 153, 0.05);
    --shadow-md: 0 4px 6px rgba(236, 72, 153, 0.1);
    --shadow-lg: 0 10px 15px rgba(236, 72, 153, 0.1);
    --shadow-xl: 0 20px 25px rgba(236, 72, 153, 0.15);
    --gradient-primary: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    --gradient-secondary: linear-gradient(135deg, #f472b6 0%, #f97316 100%);
    --gradient-glossy: linear-gradient(135deg, #ec4899 0%, #f472b6 50%, #f97316 100%);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

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

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-glossy);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.title-line {
    display: block;
    color: var(--text-primary);
}

.title-highlight {
    display: block;
    background: var(--gradient-glossy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-glossy);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

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

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-glossy);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.hero-badge i {
    font-size: 1rem;
}

/* Merge Demo */
.merge-demo {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.demo-container {
    width: 400px;
    height: 300px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
    position: relative;
}

.demo-container:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.demo-screen {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Upload Screen */
.upload-screen {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: screenTransition 0.5s ease-out;
}

@keyframes screenTransition {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.upload-area {
    border: 3px dashed var(--primary-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1rem;
}

.upload-area:hover {
    border-color: var(--accent-color);
    background: #fef3c7;
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.upload-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Loading Screen */
.loading-screen {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: screenTransition 0.5s ease-out;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.progress-bar {
    width: 80%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-glossy);
    border-radius: 4px;
    animation: progressFill 3s ease-out;
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

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

/* Analytics Screen */
.analytics-screen {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: screenTransition 0.5s ease-out;
}

.analytics-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

.analytics-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.analytics-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.analytics-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Migration Features Section */
.migration-features {
    padding: 6rem 0;
    background: white;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

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

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-glossy);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-glossy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

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

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Migration Journey Section */
.migration-journey {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

.journey-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.journey-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.journey-steps {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.journey-step {
    margin-bottom: 6rem;
    position: relative;
}

.journey-step:last-child {
    margin-bottom: 0;
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.1;
    position: absolute;
    top: -2rem;
    left: -1rem;
    z-index: 0;
}

.journey-step.reverse .step-number {
    left: auto;
    right: -1rem;
}

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

.step-text h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.step-text p {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.step-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.step-features i {
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.card-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-glossy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
}

.card-icon i {
    font-size: 2.5rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.feature-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
}

/* Supported Platforms Section */
.supported-platforms {
    padding: 6rem 0;
    background: white;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.platform-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.platform-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-glossy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

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

.platform-icon i {
    font-size: 2rem;
    color: white;
}

.platform-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.platform-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Migration Benefits Section */
.migration-benefits {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.benefit-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-glossy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

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

.benefit-icon i {
    font-size: 2rem;
    color: white;
}

.benefit-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.cta-buttons .cta-primary {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.cta-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .demo-container {
        width: 320px;
        height: 240px;
    }
    
    .step-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .journey-step.reverse .step-content {
        direction: ltr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
    }
}

/* Comprehensive Mobile Responsiveness Fixes */
@media (max-width: 768px) {
    /* Hide graphics on mobile for cleaner experience */
    .merge-demo,
    .demo-upload-screen,
    .demo-loading-screen,
    .demo-analytics-screen {
        display: none !important;
    }
    
    /* Hide demo content on mobile */
    .demo-container,
    .demo-upload-area,
    .demo-upload-icon,
    .demo-upload-text,
    .demo-upload-subtext,
    .demo-loading-text,
    .demo-analytics-title,
    .demo-analytics-grid,
    .demo-analytics-item,
    .demo-analytics-number,
    .demo-analytics-label {
        display: none !important;
    }
    
    /* Hero section mobile adjustments */
    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-description {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    .hero-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    .cta-primary {
        width: 100% !important;
        max-width: 280px !important;
        padding: 0.875rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
    
    /* Feature cards mobile adjustments */
    .feature-card {
        padding: 1.5rem !important;
    }
    
    .feature-card h4 {
        font-size: 1.2rem !important;
    }
    
    .feature-card p {
        font-size: 0.9rem !important;
    }
    
    /* Journey steps mobile adjustments */
    .journey-step {
        margin-bottom: 3rem !important;
        padding: 0 1rem !important;
    }
    
    .journey-step .step-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    .journey-step.reverse .step-content {
        grid-template-columns: 1fr !important;
    }
    
    .journey-step.reverse .step-text {
        order: 1 !important;
    }
    
    .journey-step.reverse .step-visual {
        order: 2 !important;
    }
    
    .step-number {
        font-size: 2.5rem !important;
        top: -1rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
    }
    
    .journey-step.reverse .step-number {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
    
    .step-text h3 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    
    .step-text p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    /* Benefits grid mobile adjustments */
    .benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .benefit-card {
        padding: 1.5rem !important;
    }
    
    .benefit-card h4 {
        font-size: 1.2rem !important;
    }
    
    .benefit-card p {
        font-size: 0.9rem !important;
    }
    
    /* Platforms grid mobile adjustments */
    .platforms-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .platform-card {
        padding: 1.5rem !important;
        text-align: center !important;
    }
    
    .platform-card h4 {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .platform-card p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    .platform-icon {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* CTA section mobile adjustments */
    .cta-content h2 {
        font-size: 2rem !important;
    }
    
    .cta-content p {
        font-size: 1rem !important;
    }
    
    .cta-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    .cta-buttons .cta-primary {
        width: 100% !important;
        max-width: 280px !important;
        padding: 0.875rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0 !important;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .hero-description {
        font-size: 0.9rem !important;
    }
    
    .merge-demo {
        height: 250px !important;
    }
    
    .demo-container {
        height: 240px !important;
    }
    
    .step-text h3 {
        font-size: 1.6rem !important;
    }
    
    .step-text p {
        font-size: 0.9rem !important;
    }
    
    .feature-card {
        padding: 1.25rem !important;
    }
    
    .feature-card h4 {
        font-size: 1.1rem !important;
    }
    
    .feature-card p {
        font-size: 0.85rem !important;
    }
    
    .benefit-card {
        padding: 1.25rem !important;
    }
    
    .benefit-card h4 {
        font-size: 1.1rem !important;
    }
    
    .benefit-card p {
        font-size: 0.85rem !important;
    }
    
    .cta-content h2 {
        font-size: 1.8rem !important;
    }
    
    .cta-content p {
        font-size: 0.9rem !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .cta-primary:hover,
    .feature-card:hover,
    .benefit-card:hover,
    .merge-demo:hover {
        transform: none !important;
    }
    
    .cta-primary,
    .feature-card,
    .benefit-card {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    .feature-card,
    .benefit-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    .container {
        overflow-x: hidden !important;
        padding: 0 1rem !important;
        max-width: 100% !important;
    }
    
    /* Optimize form elements */
    input,
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px !important;
    }
    
    /* Fix text overflow issues */
    .hero-title,
    .hero-description,
    .section-header h2,
    .section-header p,
    .step-text h3,
    .step-text p,
    .cta-content h2,
    .cta-content p,
    .feature-card h4,
    .feature-card p,
    .benefit-card h4,
    .benefit-card p {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    /* Ensure proper text sizing */
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-description {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    .section-header h2 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }
    
    .section-header p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    /* Fix layout issues */
    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }
    
    .journey-step {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Fix button sizing */
    .cta-primary {
        width: 100% !important;
        max-width: 280px !important;
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    .hero-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
}
