/* Motor Transaccional Styles */

/* Hero Section */
.motor-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.motor-hero .container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.motor-hero .hero-content {
    position: relative;
    z-index: 2;
}

.motor-hero .hero-visual {
    position: absolute;
    top: 50%;
    right: -150px;
    transform: translateY(-50%);
    opacity: 0.3;
    z-index: 1;
}

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

.hero-title .highlight {
    color: #FF7717;
    position: relative;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-features .feature i {
    color: #FF7717;
    font-size: 18px;
}

.hero-features .feature span {
    color: white;
    font-size: 13px;
    white-space: nowrap;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
    justify-content: center;
}

.hero-cta .btn {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.hero-cta .btn-primary {
    background: #FF7717;
    color: white;
    border: 2px solid #FF7717;
}

.hero-cta .btn-primary:hover {
    background: #e56a10;
    border-color: #e56a10;
}

.hero-cta .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Engine Animation */
.engine-animation {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.engine-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.core-ring {
    position: absolute;
    border: 2px solid #FF7717;
    border-radius: 50%;
    opacity: 0.3;
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation: rotate 15s linear infinite;
}

.ring-2 {
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    animation: rotate-reverse 20s linear infinite;
}

.ring-3 {
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    animation: rotate 25s linear infinite;
}

.core-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #FF7717;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(255, 119, 23, 0.8);
}

.core-center i {
    font-size: 36px;
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes rotate-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Statement Section */
.statement-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2942 100%);
    position: relative;
    overflow: hidden;
}

.statement-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 119, 23, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.statement-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.statement-intro {
    font-size: 28px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.4;
}

.statement-main {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-weight: 400;
}

.statement-main strong,
.statement-intro strong {
    color: #FF7717;
}

@media (max-width: 768px) {
    .statement-section {
        padding: 60px 0;
    }

    .statement-intro {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .statement-main {
        font-size: 18px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .statement-intro {
        font-size: 20px;
    }

    .statement-main {
        font-size: 16px;
    }
}

/* SAGA Section */
.saga-section {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.section-header h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

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

.saga-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.saga-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF7717, #e05f00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 28px;
    color: white;
}

.saga-card h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.saga-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.saga-card ul li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.saga-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #FF7717;
    font-weight: bold;
}

/* Architecture Section */
.architecture-section {
    padding: 80px 0;
    background: white;
}

.architecture-diagram {
    margin-top: var(--space-md, 20px);
    text-align: center;
    padding: var(--space-sm, 10px) 0;
}

.arch-diagram-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg, 12px);
}

/* Business Architecture Section - Executive View */
.architecture-section.business-view {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.architecture-section .section-header {
    margin-bottom: 20px;
}

.architecture-section.business-view .section-header h2 {
    color: #1e3a5f;
}

.business-diagram {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

/* Technical Architecture Section */
.architecture-section.technical-view {
    padding-top: 60px;
}

.arch-layer {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #FF7717;
}

.arch-layer h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.tech-stack {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tech-item {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
    border: 1px solid #ddd;
}

/* Performance Section */
.performance-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
}

.performance-section .section-header h2,
.performance-section .section-header p {
    color: white;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.metric-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.metric-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 119, 23, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.metric-icon i {
    font-size: 28px;
    color: #FF7717;
}

.metric-value {
    font-size: 48px;
    font-weight: 700;
    color: #FF7717;
    margin-bottom: 10px;
}

.metric-label {
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.features-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item .feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF7717, #e05f00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-item .feature-icon i {
    font-size: 36px;
    color: white;
}

.feature-item h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* ServiceComb Section */
.servicecomb-section {
    padding: 80px 0;
    background: white;
}

.servicecomb-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    align-items: center;
}

.servicecomb-info h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.servicecomb-info p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 12px 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 15px;
}

.benefits-list li i {
    color: #FF7717;
    font-size: 18px;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, #FF7717, #e05f00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 18px;
    color: #333;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.step-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Legacy flow styles (kept for compatibility) */
.saga-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 100px;
}

.flow-step span {
    text-align: center;
    font-size: 14px;
    color: #555;
    min-height: 40px;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: #FF7717;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.flow-arrow {
    font-size: 24px;
    color: #FF7717;
    margin-top: 12px;
}

/* Migration Section */
.migration-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.migration-timeline {
    margin-top: 60px;
    position: relative;
    padding: 20px 0;
}

.migration-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding: 40px;
    width: 45%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 55%;
}

.timeline-marker {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #FF7717;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    top: 40px;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -70px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -70px;
}

.timeline-item h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}

.timeline-item p {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #FF7717 0%, #e05f00 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 40px;
    color: white;
    margin-bottom: 20px;
}

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

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

.cta-buttons .btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background: white;
    color: #FF7717;
    border: 2px solid white;
}

.cta-buttons .btn-primary:hover {
    background: transparent;
    color: white;
}

.cta-buttons .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-outline:hover {
    background: white;
    color: #FF7717;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .motor-hero .hero-visual {
        display: none;
    }

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

    .timeline-item {
        width: 100%;
        left: 0 !important;
        margin-bottom: 60px;
    }

    .timeline-item .timeline-marker {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
        top: -30px;
    }

    .migration-timeline::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .motor-hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 16px;
        padding: 0 10px;
    }

    .engine-animation {
        width: 250px;
        height: 250px;
        margin-top: 30px;
    }

    .core-center {
        width: 60px;
        height: 60px;
    }

    .core-center i {
        font-size: 28px;
    }

    .saga-grid,
    .metrics-grid,
    .features-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .saga-card,
    .feature-item {
        padding: 30px 20px;
    }

    .saga-card h3,
    .feature-item h3 {
        font-size: 20px;
    }

    .hero-features {
        justify-content: center;
        gap: 10px;
        margin-bottom: 25px;
    }

    .hero-features .feature {
        padding: 8px 16px;
    }

    .hero-features .feature i {
        font-size: 16px;
    }

    .hero-features .feature span {
        font-size: 12px;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 260px;
        text-align: center;
        padding: 12px 24px;
        font-size: 15px;
    }

    .section-header h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    .section-header p {
        font-size: 15px;
        padding: 0 10px;
    }

    /* Performance Section Mobile */
    .performance-section,
    .saga-section,
    .architecture-section,
    .features-section,
    .servicecomb-section,
    .migration-section {
        padding: 60px 0;
    }

    .metric-card {
        padding: 30px 15px;
    }

    .metric-value {
        font-size: 36px;
    }

    .metric-label {
        font-size: 14px;
    }

    /* Architecture Mobile */
    .arch-layer {
        padding: 20px 15px;
    }

    .tech-stack {
        gap: 10px;
    }

    .tech-item {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* CTA Section Mobile */
    .cta-section {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 26px;
        line-height: 1.3;
    }

    .cta-content p {
        font-size: 16px;
        padding: 0 10px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 30px;
        font-size: 16px;
    }

    /* SAGA Flow Mobile */
    .saga-flow {
        flex-direction: column;
        padding: 25px 20px;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    /* Process Steps Mobile */
    .process-steps {
        padding: 20px 15px;
        gap: 15px;
    }

    .process-step {
        padding: 15px;
        gap: 15px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 16px;
    }

    .step-content h4 {
        font-size: 16px;
    }

    .step-content p {
        font-size: 13px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .engine-animation {
        width: 200px;
        height: 200px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .metric-value {
        font-size: 30px;
    }

    .cta-content h2 {
        font-size: 22px;
    }
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    position: relative;
    transition: 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #333;
    transition: 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
}