/* Migration Page Specific Styles */

/* Container class for migration page */
.migration-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    width: 100%;
}

/* Hero Section */
.migration-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    overflow: hidden;
}

.migration-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.migration-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: white !important;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-badge svg {
    color: white !important;
}

/* Hero Buttons */
.migration-hero .cta-primary {
    background: white !important;
    color: #1E3A8A !important;
    border: 2px solid white !important;
    padding: 0.875rem 2rem;
    font-weight: 600;
}

.migration-hero .cta-primary:hover {
    background: rgba(255, 255, 255, 0.9) !important;
}

.migration-hero .cta-secondary {
    background: transparent !important;
    color: white !important;
    border: 2px solid white !important;
    padding: 0.875rem 2rem;
    font-weight: 600;
}

.migration-hero .cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.migration-hero .hero-title {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 3.5rem;
    font-weight: 100; /* Ultra-thin weight like index.html */
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.migration-hero .hero-subtitle {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.25rem;
    font-weight: 100; /* Ultra-thin weight like the title */
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.trust-indicators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.trust-item {
    text-align: center;
    color: white;
}

.trust-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.trust-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Problem Section */
.problem-section {
    padding: 5rem 0;
    background: var(--background-secondary);
}

.problem-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
}

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

.problem-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.problem-icon svg {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
}

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

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

/* Solution Section */
.solution-section {
    padding: 5rem 0;
    background: white;
}

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

.solution-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.solution-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 3rem;
}

.solution-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.step h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

/* Migration Diagram */
.migration-diagram {
    background: var(--background-secondary);
    padding: 3rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.diagram-element {
    text-align: center;
}

.diagram-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.diagram-icon svg {
    width: 64px;
    height: 64px;
    color: var(--primary-color);
}

.diagram-label {
    font-weight: 600;
    color: var(--text-primary);
}

.diagram-flow {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.flow-arrow {
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    position: relative;
}

.flow-arrow::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid var(--primary-color);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.flow-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

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

.destination-options span {
    padding: 0.25rem 0.75rem;
    background: white;
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Technical Section */
.technical-section {
    padding: 5rem 0;
    background: var(--background-secondary);
}

.technical-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
}

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

.tech-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tech-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.tech-card ul {
    list-style: none;
    padding: 0;
}

.tech-card li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.6;
}

.tech-card li:last-child {
    border-bottom: none;
}

/* ROI Section */
.roi-section {
    padding: 5rem 0;
    background: white;
}

.roi-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
}

.roi-calculator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.roi-inputs,
.roi-outputs {
    background: var(--background-secondary);
    padding: 2.5rem;
    border-radius: 16px;
    flex: 1;
    max-width: 400px;
}

.roi-inputs h3,
.roi-outputs h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.roi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.roi-item:last-child {
    border-bottom: none;
}

.roi-item strong {
    font-weight: 700;
    color: var(--text-primary);
}

.roi-item.savings {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--primary-color);
}

.roi-item.savings strong {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.roi-arrow {
    font-size: 2rem;
    color: var(--primary-color);
}

.roi-note {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Case Study Section */
.case-study-section {
    padding: 5rem 0;
    background: var(--background-secondary);
}

.case-study-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.case-study-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.case-study-content blockquote {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 1rem;
}

.case-study-content cite {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: normal;
    margin-bottom: 3rem;
}

.case-study-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.case-study-stats .stat {
    text-align: center;
}

.case-study-stats .stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: white;
}

.faq-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
}

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

.faq-item {
    padding: 2rem;
    background: var(--background-secondary);
    border-radius: 12px;
}

.faq-item h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* CTA Section */
.migration-cta-section {
    padding: 5rem 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content > p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* New modal button approach */
.cta-actions {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.migration-cta-section .cta-primary {
    padding: 1.25rem 3rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.migration-cta-section .cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.cta-note {
    font-size: 1rem;
    opacity: 0.9;
}

.cta-note a {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .migration-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .migration-hero .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .trust-indicators {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .trust-number {
        font-size: 1.75rem;
    }
    
    .solution-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .migration-diagram {
        flex-direction: column;
        padding: 2rem;
    }
    
    .flow-arrow {
        width: 4px;
        height: 60px;
    }
    
    .flow-arrow::after {
        right: 50%;
        bottom: -8px;
        top: auto;
        transform: translateX(50%);
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 12px solid var(--primary-color);
        border-bottom: none;
    }
    
    .roi-calculator {
        flex-direction: column;
        gap: 2rem;
    }
    
    .roi-arrow {
        transform: rotate(90deg);
    }
    
    /* Removed old cta-form responsive styles */
    
    .case-study-content blockquote {
        font-size: 1.25rem;
    }
    
    .case-study-stats {
        gap: 2rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation */
.problem-card,
.step,
.tech-card,
.faq-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.problem-card:nth-child(1),
.step:nth-child(1),
.tech-card:nth-child(1),
.faq-item:nth-child(1) { animation-delay: 0.1s; }

.problem-card:nth-child(2),
.step:nth-child(2),
.tech-card:nth-child(2),
.faq-item:nth-child(2) { animation-delay: 0.2s; }

.problem-card:nth-child(3),
.step:nth-child(3),
.tech-card:nth-child(3),
.faq-item:nth-child(3) { animation-delay: 0.3s; }

.problem-card:nth-child(4),
.step:nth-child(4),
.faq-item:nth-child(4) { animation-delay: 0.4s; }

.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}