:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #334155;
    --accent-primary: #3b82f6;
    --accent-secondary: #60a5fa;
    --accent-hover: #93c5fd;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

.how-it-works-page {
    padding: 130px 0 40px;
    min-height: 100vh;
}

.hiw-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.hiw-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hiw-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.hiw-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hiw-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hiw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hiw-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #3b82f6 100%);
    border-radius: 50%;
    color: white;
}

.hiw-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.hiw-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.hiw-card code {
    background: var(--code-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #667eea;
    font-size: 0.9em;
}

.hiw-commands {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.hiw-commands h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--text-primary);
}

.commands-table {
    max-width: 600px;
    margin: 0 auto;
}

.command-row {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1.5rem;
}

.command-row:last-child {
    border-bottom: none;
}

.command {
    background: linear-gradient(135deg, #3b82f6 0%, #3b82f6 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

.command-desc {
    color: var(--text-muted);
    flex: 1;
}

.hiw-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #3b82f6 100%);
    border-radius: 12px;
}

.hiw-cta h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.hiw-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.btn-cta {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .hiw-hero h1 {
        font-size: 2rem;
    }

    .hiw-section {
        grid-template-columns: 1fr;
    }

    .command-row {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .command {
        width: 100%;
    }
}