/* Global Styles */
:root {
    --primary-color: #10B981;
    --secondary-color: #059669;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --dark-color: #1F2937;
    --light-color: #F9FAFB;
    --text-color: #374151;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--light-color);
}

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

/* Navigation */
.navbar {
    background: white;
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.5rem;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Navigation Search */
.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light-color);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    margin-left: 20px;
}

.nav-search:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.nav-search-input {
    border: none;
    background: none;
    outline: none;
    width: 150px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.nav-search-input::placeholder {
    color: var(--text-color);
    opacity: 0.6;
}

.nav-search i {
    color: var(--text-color);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    gap: 10px;
    margin-bottom: 20px;
}

.badge-status,
.badge-version {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

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

.gradient-text {
    display: block;
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 700px;
    opacity: 0.95;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    max-width: 600px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

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

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Hero Animation */
.hero-animation {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.integration-flow {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.app-icon img {
    width: 60px;
    height: 60px;
    background: white;
    padding: 12px;
    border-radius: 12px;
}

.app-icon span {
    font-size: 0.875rem;
    font-weight: 500;
}

.flow-arrow {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(5px); }
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: white;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

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

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

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

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

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-color);
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.feature-list i {
    color: var(--success-color);
}

.time-comparison {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 20px;
    padding: 20px;
    background: var(--light-color);
    border-radius: 8px;
}

.time-before,
.time-after {
    text-align: center;
}

.time-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.time-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.time-before .time-value {
    color: var(--danger-color);
}

.time-after .time-value {
    color: var(--success-color);
}

.time-arrow {
    font-size: 1.5rem;
    color: var(--text-color);
}

.error-reduction {
    margin-top: 20px;
}

.progress-bar {
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--success-color), #059669);
    transition: width 1s ease;
    animation: progressAnimation 2s ease;
}

@keyframes progressAnimation {
    from { width: 0; }
}

.reduction-text {
    display: block;
    text-align: center;
    font-weight: 600;
    color: var(--success-color);
}

/* Architecture Section */
.architecture {
    padding: 80px 20px;
    background: var(--light-color);
}

.architecture-diagram {
    max-width: 800px;
    margin: 0 auto;
}

.arch-layer {
    background: #F8F8FF;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.arch-layer h3 {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.arch-apps {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.arch-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--light-color);
    border-radius: 8px;
    min-width: 120px;
    position: relative;
}

.arch-app.main {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.arch-app i {
    font-size: 2rem;
    color: var(--primary-color);
}

.arch-app.main i {
    color: white;
}

.arch-app span {
    font-weight: 600;
}

.arch-app small {
    font-size: 0.75rem;
    opacity: 0.7;
}

.arch-link {
    margin-top: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.arch-link:hover {
    transform: translateX(3px);
    display: inline-block;
}

.arch-link-white {
    color: white !important;
    opacity: 0.9;
}

.arch-link-white:hover {
    opacity: 1;
}

.arch-flow-down {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 10px 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Scenarios Section */
.scenarios {
    padding: 80px 20px;
    background: white;
    overflow: hidden;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
}

/* Mobile Carousel for Scenarios */
@media (max-width: 768px) {
    .scenarios-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px;
        margin: 0 -20px;
        padding: 0 20px 20px;
    }
    
    .scenario-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        margin-right: 20px;
    }
    
    .scenarios-grid::-webkit-scrollbar {
        height: 8px;
    }
    
    .scenarios-grid::-webkit-scrollbar-track {
        background: var(--light-color);
        border-radius: 4px;
    }
    
    .scenarios-grid::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }
}

.scenario-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: var(--transition);
}

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

.scenario-number {
    position: absolute;
    top: -20px;
    left: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.scenario-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    margin-top: 10px;
    color: var(--dark-color);
}

.scenario-card p {
    color: var(--text-color);
    margin-bottom: 20px;
}

.scenario-details {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-color);
}

.detail-item i {
    color: var(--primary-color);
}

.scenario-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.scenario-link:hover {
    transform: translateX(5px);
}

/* Video Presentation Section */
.video-presentation {
    padding: 80px 20px;
    background: white;
}

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

.video-wrapper {
    background: var(--light-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.video-placeholder {
    padding: 60px;
    text-align: center;
    background: linear-gradient(135deg, #667eea20, #764ba220);
}

.video-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.video-placeholder h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.video-placeholder code {
    display: inline-block;
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    margin: 20px 0;
    color: var(--text-color);
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.video-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.video-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.video-badge i {
    font-size: 1rem;
    color: var(--primary-color);
}

.video-topics {
    margin-top: 40px;
}

.video-topics h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--dark-color);
    text-align: center;
}

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

.topic-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.topic-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.topic-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.topic-card span {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.4;
}

/* CTA Section */
.cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

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

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h4,
.footer-links h4,
.footer-tech h4 {
    margin-bottom: 15px;
}

.footer-info p {
    opacity: 0.8;
    margin-bottom: 5px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(5px);
    display: inline-block;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }
    
    .nav-search {
        display: none;
    }

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

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .integration-flow {
        flex-direction: column;
    }

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

    .features-grid,
    .scenarios-grid {
        grid-template-columns: 1fr;
    }

    .arch-apps {
        flex-direction: column;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
    z-index: 999;
    font-size: 1.25rem;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}