:root {
    --iot-primary: #ff6b00; /* Orange for Commerce */
    --iot-secondary: #0056d2; /* Blue for Trust */
    --iot-dark: #0f172a;
    --iot-dark-alt: #1e293b;
    --iot-light-bg: #f8fafc;
    --iot-text-muted: #94a3b8;
    --iot-text-dark: #334155;
    --iot-text-light: #ffffff;
    --card-bg-dark: rgba(255, 255, 255, 0.03);
    --card-border-dark: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--iot-dark);
    color: var(--iot-text-light);
}

/* Reusing core styles from ai-training.css structure */

/* Page Navigation (Right Side Dots) */
#fp-nav {
    position: fixed;
    z-index: 100;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#fp-nav li {
    position: relative;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

#fp-nav li a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    outline: none;
}

#fp-nav li span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

#fp-nav li.active span,
#fp-nav li:hover span {
    background: var(--iot-primary);
    box-shadow: 0 0 10px var(--iot-primary);
}

#fp-nav li .fp-tooltip {
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.5);
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
}

#fp-nav li:hover .fp-tooltip {
    opacity: 1;
    right: 30px;
}

/* Sections Backgrounds */
.iot-section {
    position: relative;
    background-color: var(--iot-dark);
    color: #fff;
    overflow: hidden;
    transition: background-color 0.5s ease;
}

.iot-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
}

.dark-mode {
    background-color: var(--iot-dark);
}

.dark-mode-alt {
    background-color: var(--iot-dark-alt);
}

/* Typography Overrides */
.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(90deg, #fff, var(--iot-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Section 1: Hero */
.smart-commerce-hero {
    position: relative;
    background: url('https://coresg-normal.trae.ai/api/ide/v1/text_to_image?prompt=Global%20digital%20commerce%20connection%20map%20with%20orange%20and%20blue%20lines%20connecting%20continents%20professional%20business%20style&image_size=landscape_16_9') no-repeat center center/cover;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 1;
}

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

.hero-content h1 {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 0 0 30px rgba(255, 107, 0, 0.3);
}

.hero-content p {
    font-size: 20px;
    color: var(--iot-text-muted);
    margin-bottom: 40px;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    background: var(--iot-primary);
    color: #fff;
    padding: 12px 36px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--iot-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--iot-primary);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--iot-primary);
    padding: 12px 36px;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid var(--iot-primary);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--iot-primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
}

/* Section 2: Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tech-card {
    background: var(--card-bg-dark);
    border: 1px solid var(--card-border-dark);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-10px);
    border-color: var(--iot-primary);
    background: rgba(255, 255, 255, 0.05);
}

.card-icon {
    font-size: 40px;
    color: var(--iot-primary);
    margin-bottom: 20px;
}

.tech-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--white);
}

.tech-card p {
    font-size: 14px;
    color: var(--iot-text-muted);
    line-height: 1.6;
}

/* Section 3: Industry Grid */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.industry-card {
    background: var(--iot-dark);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--card-border-dark);
    transition: all 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: var(--iot-secondary);
}

.industry-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    filter: grayscale(80%);
    transition: all 0.3s ease;
}

.industry-card:hover img {
    filter: grayscale(0%);
}

.industry-info {
    padding: 20px;
}

.industry-info h3 {
    font-size: 18px;
    color: var(--iot-primary);
    margin-bottom: 8px;
}

.industry-info p {
    font-size: 13px;
    color: var(--iot-text-muted);
}

/* Section 4: Comparison */
.comparison-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    background: var(--card-bg-dark);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--card-border-dark);
}

.comparison-column {
    flex: 1;
    padding: 20px;
}

.comparison-column h3 {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.comparison-column.public h3 { color: #ff4d4f; }
.comparison-column.private h3 { color: var(--iot-primary); }

.comparison-column ul li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--iot-text-muted);
    font-size: 16px;
}

.comparison-column.public i { color: #ff4d4f; }
.comparison-column.private i { color: var(--iot-primary); }
.comparison-column.private strong { color: var(--white); font-weight: 500; }

.vs-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4d4f, var(--iot-primary));
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Section 5: Problems */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.problem-item {
    display: flex;
    gap: 20px;
    background: var(--card-bg-dark);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--card-border-dark);
    transition: all 0.3s ease;
}

.problem-item:hover {
    background: rgba(255,255,255,0.08);
}

.prob-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 0, 0.1);
    color: var(--iot-primary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    flex-shrink: 0;
}

.prob-text h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--white);
}

.prob-text p {
    font-size: 14px;
    color: var(--iot-text-muted);
    line-height: 1.6;
}

/* Section 6: Advantages */
.advantage-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.adv-card {
    background: linear-gradient(180deg, var(--card-bg-dark) 0%, rgba(0,0,0,0) 100%);
    border: 1px solid var(--card-border-dark);
    padding: 30px 20px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.adv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--iot-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.adv-card:hover::before {
    opacity: 1;
}

.adv-num {
    font-size: 48px;
    font-weight: 900;
    color: rgba(255,255,255,0.05);
    position: absolute;
    top: 10px;
    right: 20px;
}

.adv-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--iot-primary);
    position: relative;
    z-index: 1;
}

.adv-card p {
    font-size: 14px;
    color: var(--iot-text-muted);
    position: relative;
    z-index: 1;
}

/* Section 7: Architecture */
.architecture-visual {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.arch-layer {
    width: 100%;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: var(--card-bg-dark);
    border: 1px solid var(--card-border-dark);
}

.app-layer { border-top: 3px solid #ff6b00; }
.service-layer { border-top: 3px solid #0056d2; }
.model-layer { border-top: 3px solid #ff4d4f; }
.infra-layer { border-top: 3px solid #ffbd2e; }

.layer-label {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--iot-dark);
    padding: 0 10px;
    font-size: 12px;
    color: var(--iot-text-muted);
    border: 1px solid var(--card-border-dark);
    border-radius: 10px;
}

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

.layer-content span {
    background: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.1);
}

.arch-arrow {
    color: var(--iot-text-muted);
    opacity: 0.5;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

/* Section 8: Footer */
#contact.fp-section {
    height: 100vh;
    overflow-y: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .tech-grid, .industry-grid, .advantage-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 36px; }
    .tech-grid, .industry-grid, .advantage-cards, .problem-grid {
        grid-template-columns: 1fr;
    }
    .comparison-container {
        flex-direction: column;
        padding: 20px;
    }
    .vs-badge {
        transform: rotate(90deg);
        margin: 20px 0;
    }
    #fp-nav { display: none; }
}
