:root {
    --primary-color: #4169E1;
    --primary-dark: #2E4C9E;
    --secondary-color: #F8F9FA;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(65, 105, 225, 0.3);
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    animation: float 20s linear infinite;
    z-index: -1;
}

@keyframes float {
    from { transform: translateY(0); }
    to { transform: translateY(-100px); }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

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

.section {
    padding: 20px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(65, 105, 225, 0.2);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.step-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.step-card:hover {
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Horizontal Workflow Styles */
.workflow-horizontal {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    position: relative;
}

.workflow-step-horizontal {
    flex: 1;
    min-width: 180px;
    max-width: 200px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number-badge {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 3px 10px rgba(65, 105, 225, 0.3);
    z-index: 2;
}

.step-card-horizontal {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 630px;
    justify-content: flex-start;
    overflow: hidden;
    box-sizing: border-box;
}

.step-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(65, 105, 225, 0.2);
    border-color: var(--primary-color);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 3px 10px rgba(65, 105, 225, 0.3);
}

.step-card-horizontal h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    min-height: 2.4rem;
    word-wrap: break-word;
}

.step-card-horizontal p {
    font-size: 0.8rem;
    color: var(--text-dark);
    margin: 0.5rem 0;
    line-height: 1.4;
    flex-shrink: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.step-image-wrapper {
    width: 100%;
    background: var(--secondary-color);
    border-radius: 8px;
    padding: 0.6rem;
    margin: 0.5rem 0;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
    box-sizing: border-box;
}

.step-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    max-height: 160px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.img-clickable {
    cursor: pointer;
}

.img-clickable:hover {
    opacity: 0.8;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

.network-settings {
    width: 100%;
    background: var(--secondary-color);
    border-radius: 6px;
    padding: 0.2rem;
    margin: 0.5rem 0;
    font-size: 0.5rem;
    flex-shrink: 0;
    max-height: 200px;
    overflow-y: auto;
    box-sizing: border-box;
}

.net-setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
    font-size: 0.7rem;
    gap: 0.5rem;
    min-height: 1.5rem;
}

.net-setting span {
    color: var(--text-dark);
    font-weight: 500;
    flex-shrink: 0;
    text-align: left;
    font-size: 0.7rem;
}

.net-setting code {
    background: white;
    color: var(--primary-color);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step-card-horizontal small {
    font-size: 0.65rem;
    color: var(--text-light);
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
}

.info-badge {
    background: #e7f3ff;
    border-left: 3px solid var(--primary-color);
    padding: 0.4rem;
    border-radius: 4px;
    margin-top: 0.4rem;
    font-size: 0.65rem;
    color: var(--text-dark);
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    width: 100%;
    flex-shrink: 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.info-badge i {
    color: var(--primary-color);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.arrow-connector {
    position: absolute;
    right: -1.25rem;
    top: 16px;
    color: var(--primary-color);
    font-size: 1.2rem;
    z-index: 1;
    animation: pulse-arrow 2s infinite;
}

@keyframes pulse-arrow {
    0%, 100% { opacity: 0.6; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(3px); }
}

@media (max-width: 1200px) {
    .workflow-horizontal {
        gap: 1rem;
    }
    
    .workflow-step-horizontal {
        min-width: 160px;
        max-width: 180px;
    }
    
    .arrow-connector {
        right: -0.75rem;
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .workflow-horizontal {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .workflow-step-horizontal {
        min-width: 200px;
        max-width: 220px;
        margin-bottom: 2rem;
    }
    
    .arrow-connector {
        display: none;
    }
}

@media (max-width: 768px) {
    .workflow-horizontal {
        flex-direction: column;
        align-items: center;
    }
    
    .workflow-step-horizontal {
        min-width: 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .step-card-horizontal {
        height: auto;
        min-height: 400px;
    }
    
    .step-img {
        max-height: 200px;
    }
    
    .arrow-connector {
        display: block;
        position: static;
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(65, 105, 225, 0.2);
}

.pricing-card.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    transform: scale(1.05);
}

.pricing-card.featured .price {
    color: white;
}

.pricing-card.featured .btn-primary {
    background: white;
    color: var(--primary-color);
}

.pricing-card.featured .btn-primary:hover {
    background: var(--secondary-color);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.pricing-card.featured .pricing-features li {
    border-bottom-color: rgba(255,255,255,0.2);
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.form-control {
    border: 2px solid #E9ECEF;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(65, 105, 225, 0.1);
}

.contact-info {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 3rem;
    border-radius: 20px;
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.5rem;
}

footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: none;
}

.pulse {
    animation: pulse 0.5s;
}

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

