:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #141824;
    --bg-card: #1a1f2e;
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a8;
    --accent-blue: #3BB0D1;
    --accent-cyan: #2E4787;
    --accent-purple: #8b5cf6;
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(59, 130, 246, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    border-bottom: 1px solid var(--border-color);
    background: rgba(26, 31, 46, 0.5);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.robot-icon {
    height: 64px;
    width: 64px;
    object-fit: contain;
}

.title {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin: 0;
}

.steps-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
}

.steps-badge .icon {
    color: var(--accent-blue);
}

.steps-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-blue);
}

/* Main Content */
.main-content {
    padding: 3rem 0;
}

/* Introduction */
.intro-section {
    text-align: center;
    margin-bottom: 3rem;
}

.intro-title {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Carousel */
.carousel {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.step-counter {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10;
    background: #2E4787;
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.step-counter-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

.image-container {
    aspect-ratio: 16/9;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.step-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease-out;
}

.placeholder {
    text-align: center;
    padding: 3rem;
}

.placeholder-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(154, 160, 168, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon span {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-secondary);
}

.placeholder-text {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

/* Controls */
.controls {
    padding: 2rem;
    background: linear-gradient(to top, var(--bg-card), rgba(26, 31, 46, 0.8));
    border-top: 1px solid var(--border-color);
}

.controls-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(20, 24, 36, 0.8);
    border-color: rgba(59, 130, 246, 0.5);
}

.btn-secondary .icon-left {
    transition: transform 0.3s ease;
}

.btn-secondary:hover:not(:disabled) .icon-left {
    transform: translateX(-4px);
}

.btn-primary {
    background: var(--accent-blue);
    color: var(--text-primary);
    border: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.9);
    border-color: var(--accent-cyan);
}

.btn-primary .icon-right {
    transition: transform 0.3s ease;
}

.btn-primary:hover:not(:disabled) .icon-right {
    transform: translateX(4px);
}

.btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Step Indicators */
.indicators {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 1rem;
}

.indicator {
    height: 12px;
    border-radius: 9999px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}

.indicator:not(.active) {
    width: 12px;
    background: var(--text-secondary);
    opacity: 0.3;
}

.indicator:not(.active):hover {
    background: var(--text-secondary);
    opacity: 0.5;
}

.indicator.active {
    width: 48px;
    background: var(--accent-blue);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    background: var(--bg-secondary);
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-cyan));
    transition: width 0.5s ease-out;
    border-radius: 9999px;
}

/* Tips Section */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.tip-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.tip-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
}

.tip-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tip-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tip-text {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
    background: rgba(26, 31, 46, 0.3);
}

.footer-text {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
}

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

    .intro-title {
        font-size: 1.75rem;
    }

    .controls-top {
        flex-direction: column;
    }

    .indicators {
        order: 3;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
