/* ========================================
   Global Styles & Variables
   ======================================== */
:root {
    --color-bg: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-bg-tertiary: #1a1a25;
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0b0;
    --color-text-tertiary: #707080;
    --color-accent: #6366f1;
    --color-accent-hover: #7c3aed;
    --color-success: #10b981;
    --color-border: #2a2a35;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover {
    color: var(--color-text-primary);
}

.github-link {
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: all 0.2s;
}

.github-link:hover {
    border-color: var(--color-accent);
    background: rgba(99, 102, 241, 0.1);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 160px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

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

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-glow);
    border: 1px solid var(--color-accent);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

.install-command {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 14px;
}

.install-command code {
    color: var(--color-accent);
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.copy-btn:hover {
    color: var(--color-accent);
}

/* ========================================
   Workflow Section - Main Animation
   ======================================== */
.workflow-section {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-secondary) 100%);
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 18px;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 80px;
}

.workflow-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.workflow-stage {
    grid-column: span 1;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.workflow-stage.active {
    opacity: 1;
    transform: translateY(0);
}

.workflow-arrow {
    grid-column: span 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.workflow-arrow.active {
    opacity: 1;
}

.arrow-line {
    width: 100%;
    height: 2px;
    background: var(--color-border);
    position: relative;
    overflow: hidden;
}

.arrow-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    transition: width 1s ease-in-out;
}

.workflow-arrow.active .arrow-progress {
    width: 100%;
}

.workflow-arrow svg {
    position: absolute;
    right: -12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.workflow-arrow.active svg {
    opacity: 1;
}

/* Stage Icons */
.stage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    color: var(--color-accent);
    position: relative;
    transition: all 0.3s;
}

.workflow-stage.active .stage-icon {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.ai-icon {
    animation: ai-rotate 3s ease-in-out infinite;
}

@keyframes ai-rotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
}

.ai-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 2px solid var(--color-accent);
    opacity: 0;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.cloud-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle 2s ease-in-out infinite;
}

.particle:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 50%;
    animation-delay: 0.5s;
}

.particle:nth-child(3) {
    left: 80%;
    animation-delay: 1s;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        transform: translateY(-30px);
        opacity: 1;
    }
}

.success-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 2px solid var(--color-success);
    opacity: 0;
}

.workflow-stage.active .success-ring {
    animation: success-pulse 1s ease-out;
}

@keyframes success-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Stage Content */
.stage-content {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s;
}

.workflow-stage.active .stage-content {
    border-color: var(--color-accent);
    background: rgba(99, 102, 241, 0.05);
}

.stage-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

/* Code Block */
.code-block {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.code-header {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--color-border);
}

.code-lang {
    font-size: 12px;
    color: var(--color-text-tertiary);
    font-family: var(--font-mono);
}

.code-block pre {
    padding: 16px;
    overflow-x: auto;
    margin: 0;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Stage Details */
.stage-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--color-bg);
    border-radius: 6px;
    font-size: 14px;
}

.detail-label {
    color: var(--color-text-tertiary);
}

.detail-value {
    color: var(--color-accent);
    font-weight: 500;
}

/* Typing Animation */
.typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--color-accent);
    animation: typing 2s steps(20) 1s forwards, blink 0.5s step-end infinite;
    max-width: 0;
}

.workflow-stage.active .typing-text {
    animation: typing 2s steps(20) 0.5s forwards, blink 0.5s step-end infinite;
}

@keyframes typing {
    to {
        max-width: 200px;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Analysis Box */
.analysis-box {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.analysis-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--color-text-secondary);
    opacity: 0;
    transform: translateX(-10px);
    animation: slide-in 0.5s ease-out forwards;
}

.workflow-stage.active .analysis-line:nth-child(1) {
    animation-delay: 0.3s;
}

.workflow-stage.active .analysis-line:nth-child(2) {
    animation-delay: 0.6s;
}

.workflow-stage.active .analysis-line:nth-child(3) {
    animation-delay: 0.9s;
}

@keyframes slide-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.analysis-icon {
    font-size: 18px;
}

.ai-recommendation {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    padding: 12px;
}

.recommendation-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-accent);
}

.recommendation-items {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rec-item {
    padding: 4px 12px;
    background: var(--color-bg);
    border: 1px solid var(--color-accent);
    border-radius: 6px;
    font-size: 12px;
    font-family: var(--font-mono);
}

/* Provision Status */
.provision-status {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.status-icon {
    font-size: 18px;
}

.progress-bar {
    height: 6px;
    background: var(--color-bg);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 1.5s ease-out;
    width: 0;
}

.workflow-stage.active .progress-fill {
    width: 100% !important;
}

/* Deployment Info */
.deployment-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
}

.info-label {
    color: var(--color-text-tertiary);
}

.info-value {
    color: var(--color-text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 500;
}

.status-running {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Timeline */
.workflow-timeline {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    padding: 0 40px;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--color-border);
    border-radius: 50%;
    transition: all 0.3s;
}

.timeline-item.active .timeline-dot {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.3);
}

.timeline-item span {
    font-size: 14px;
    color: var(--color-text-tertiary);
    transition: color 0.3s;
}

.timeline-item.active span {
    color: var(--color-accent);
    font-weight: 600;
}

/* Replay Button */
.replay-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    padding: 12px 24px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.replay-btn:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ========================================
   Video Section
   ======================================== */
.video-section {
    padding: 120px 0;
    background: var(--color-bg-secondary);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.video-card {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
}

.video-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.video-header {
    margin-bottom: 24px;
}

.video-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.video-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

.video-description {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: var(--color-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    margin-bottom: 16px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.video-duration {
    font-size: 13px;
    color: var(--color-text-tertiary);
    font-family: var(--font-mono);
}

.video-label {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--color-accent);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.feature-card {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg) 100%);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.cta-code {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.command-line {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    display: flex;
    align-items: center;
}

.command-prompt {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    color: var(--color-text-tertiary);
    margin-right: 12px;
    flex-shrink: 0;
}

.command-text {
    color: var(--color-accent);
    flex: 1;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    margin-bottom: 40px;
}

.footer-description {
    color: var(--color-text-secondary);
    margin-top: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column a {
    display: block;
    color: var(--color-text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-tertiary);
    font-size: 14px;
}

/* Scroll hint for mobile */
.scroll-hint {
    display: none;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-tertiary);
    margin-bottom: 16px;
    font-weight: 500;
    animation: fade-pulse 2s ease-in-out infinite;
}

@keyframes fade-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 56px;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-content {
        height: 64px;
    }

    .logo-text {
        font-size: 18px;
    }

    .nav-links {
        gap: 8px;
        font-size: 13px;
    }

    .nav-links a {
        padding: 6px 10px;
    }

    .github-link {
        padding: 6px 10px;
    }

    .github-link svg {
        width: 16px;
        height: 16px;
    }

    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: 15px;
    }

    .install-command {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
        font-size: 12px;
    }

    .install-command code {
        word-break: break-all;
    }

    /* Workflow Section */
    .workflow-section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .section-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .scroll-hint {
        display: block;
    }

    .workflow-container {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 12px;
        padding: 20px 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .workflow-container::-webkit-scrollbar {
        height: 6px;
    }

    .workflow-container::-webkit-scrollbar-track {
        background: var(--color-bg-secondary);
        border-radius: 3px;
    }

    .workflow-container::-webkit-scrollbar-thumb {
        background: var(--color-border);
        border-radius: 3px;
    }

    .workflow-stage {
        flex: 0 0 280px;
        scroll-snap-align: center;
    }

    .workflow-arrow {
        flex: 0 0 40px;
        transform: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .workflow-arrow svg {
        transform: none;
    }

    .stage-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
    }

    .stage-icon svg {
        width: 32px;
        height: 32px;
    }

    .stage-content {
        padding: 16px;
    }

    .stage-content h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .code-block {
        font-size: 11px;
    }

    .code-block pre {
        padding: 12px;
    }

    .detail-item,
    .analysis-line,
    .status-header,
    .info-box {
        font-size: 11px;
        padding: 6px 10px;
    }

    .analysis-icon,
    .status-icon {
        font-size: 14px;
    }

    .rec-item {
        font-size: 10px;
        padding: 3px 8px;
    }

    .workflow-timeline {
        gap: 20px;
        padding: 0 20px;
    }

    .timeline-item span {
        font-size: 11px;
    }

    .replay-btn {
        font-size: 13px;
        padding: 10px 20px;
    }

    /* Video Section */
    .video-section {
        padding: 80px 0;
    }

    .videos-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .video-card {
        padding: 24px;
    }

    .video-icon {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .video-card h3 {
        font-size: 18px;
    }

    .video-description {
        font-size: 13px;
    }

    .video-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Features Section */
    .features-section {
        padding: 80px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-card {
        padding: 24px;
    }

    .feature-icon {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .feature-card h3 {
        font-size: 18px;
    }

    .feature-card p {
        font-size: 14px;
    }

    /* CTA Section */
    .cta-section {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .cta-content p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .cta-code {
        padding: 16px;
        margin-bottom: 24px;
        max-width: 100%;
        overflow-x: auto;
    }

    .command-line {
        font-size: 11px;
        line-height: 1.6;
        white-space: nowrap;
    }

    .command-prompt {
        margin-right: 8px;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
    }

    /* Footer */
    .footer {
        padding: 60px 0 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-column h4 {
        font-size: 13px;
    }

    .footer-column a {
        font-size: 14px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 15px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-description {
        font-size: 15px;
    }

    .nav-links a {
        font-size: 12px;
        padding: 6px 8px;
    }

    .github-link {
        padding: 6px 8px;
    }

    /* Workflow adjustments for very small screens */
    .workflow-stage {
        flex: 0 0 240px;
    }

    .workflow-arrow {
        flex: 0 0 32px;
    }

    .stage-icon {
        width: 48px;
        height: 48px;
    }

    .stage-icon svg {
        width: 28px;
        height: 28px;
    }

    .stage-content {
        padding: 12px;
    }

    .stage-content h3 {
        font-size: 14px;
    }

    .code-block,
    .detail-item,
    .analysis-line,
    .status-header,
    .info-box {
        font-size: 10px;
    }

    .workflow-timeline {
        flex-wrap: wrap;
        gap: 12px;
    }

    .timeline-item span {
        font-size: 10px;
    }

    .cta-code {
        padding: 12px;
    }

    .command-line {
        font-size: 10px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
