/* How It Works Page Styles */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    text-align: left;
}

.hero-subtitle .no-wrap {
    white-space: nowrap;
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    color: white;
    transform: scale(1.1);
}

.scroll-arrow svg {
    width: 100%;
    height: 100%;
}

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

.how-it-works-section {
    padding: 100px 0;
    background: #f8fafc;
}

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

.step-container {
    margin-bottom: 120px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.step-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.step-content.reverse {
    direction: rtl;
}

.step-content.reverse > * {
    direction: ltr;
}

.step-info {
    padding: 40px;
}

.step-number {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.step-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.step-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.step-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.step-visual {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Step 1: Integration Scene */
.integration-scene {
    width: 100%;
    position: relative;
}

.integration-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.integration-path {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.integration-path:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.path-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.path-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-blue);
}

.path-icon svg {
    width: 100%;
    height: 100%;
}

.path-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.integration-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #cbd5e1;
}

.divider-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0 10px;
}

.code-editor {
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Terminal Window Styles */
.terminal-window {
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.terminal-header {
    background: #1e293b;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-controls {
    display: flex;
    gap: 6px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ef4444; }
.control.yellow { background: #f59e0b; }
.control.green { background: #10b981; }

.terminal-title {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.terminal-content {
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.terminal-line {
    color: #e2e8f0;
    margin-bottom: 6px;
    line-height: 1.4;
}

.terminal-line:first-child {
    color: #22d3ee;
}

.terminal-line.status-ok {
    color: #34d399;
}

.editor-header {
    background: #334155;
    padding: 12px 20px;
}

.editor-tabs {
    display: flex;
}

.tab {
    background: #475569;
    color: white;
    padding: 8px 16px;
    border-radius: 6px 6px 0 0;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

.tab.active {
    background: #1e293b;
}

.code-content {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.code-line {
    color: #e2e8f0;
    margin-bottom: 8px;
    line-height: 1.4;
}

.code-line:first-child {
    color: #22d3ee;
}

.code-line:nth-child(3) {
    color: #fbbf24;
}

.code-line:last-child {
    color: #34d399;
}

.sdk-package {
    background: var(--primary-blue);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.package-icon {
    width: 24px;
    height: 24px;
    color: white;
}

.package-icon svg {
    width: 100%;
    height: 100%;
}

/* Integration Note */
.integration-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: #eff6ff;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.note-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.note-icon svg {
    width: 100%;
    height: 100%;
}

.integration-note span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Step 2: Deployment Scene */
.deployment-scene {
    width: 100%;
    height: 100%;
    position: relative;
}

.global-map {
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    min-height: 320px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    align-items: center;
    justify-items: center;
}

.global-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.deployment-location {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    z-index: 2;
    transition: transform 0.3s ease;
}

.deployment-location:hover {
    transform: translateY(-5px);
}

/* Grid positioning - no absolute positioning needed */
.deployment-location.ocean {
    grid-column: 1;
    grid-row: 1;
}

.deployment-location.mountain {
    grid-column: 2;
    grid-row: 1;
}

.deployment-location.factory {
    grid-column: 1;
    grid-row: 2;
}

.deployment-location.vehicle {
    grid-column: 2;
    grid-row: 2;
}

.location-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-icon svg {
    width: 100%;
    height: 100%;
}

.location-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.signal-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    border-radius: 50%;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Step 3: Operations Scene */
.operations-scene {
    width: 100%;
    position: relative;
}

.noc-center {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.noc-header {
    background: #334155;
    color: white;
    padding: 15px 25px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid var(--primary-blue);
}

.monitoring-dashboard {
    padding: 25px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.metric-card {
    background: #475569;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    color: white;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.device-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.device-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: #475569;
    border-radius: 6px;
    color: white;
    font-size: 0.9rem;
}

.device-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
}

.device-item.warning .device-status {
    background: #fbbf24;
}

.device-item.offline .device-status {
    background: #ef4444;
}

/* Connection Arrows */
.connection-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px 0;
    position: relative;
}

.arrow-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 2px;
}

.arrow-head {
    width: 0;
    height: 0;
    border-left: 12px solid var(--accent-blue);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: -2px;
}

/* Benefits Section */
.benefits-section {
    padding: 100px 0;
    background: white;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 60px;
}

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

.benefit-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-blue);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
}

.benefit-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .step-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .step-content.reverse {
        direction: ltr;
    }

    .step-title {
        font-size: 2rem;
    }

    .integration-options {
        gap: 15px;
    }

    .integration-path {
        padding: 15px;
    }

    .code-content,
    .terminal-content {
        font-size: 0.8rem;
        padding: 12px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}
