/*
 * Hero Section — Modern developer documentation style
 * Used on index.html landing page
 */

/* ========================================
   Hero Section
   ======================================== */

.hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    color: #F8FAFC;
    padding: 80px 40px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative grid pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Accent glow */
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 118, 0, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #F8FAFC;
}

.hero-title-accent {
    color: var(--color-aws-orange, #dc7600);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #94A3B8;
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.hero-btn-primary {
    background: var(--color-aws-orange, #dc7600);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(220, 118, 0, 0.3);
}

.hero-btn-primary:hover {
    background: var(--color-aws-orange-hover, #EC7211);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 118, 0, 0.4);
    color: #FFFFFF;
}

.hero-btn-secondary {
    background: transparent;
    color: #CBD5E1;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    transform: translateY(-2px);
}


/* ========================================
   Stats Bar — compact horizontal
   ======================================== */

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 24px 40px;
    background: var(--ds-bg-card, #FFFFFF);
    border-bottom: 1px solid var(--ds-border, #E2E8F0);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-aws-orange, #dc7600);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--ds-text-tertiary, #6B7280);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}


/* ========================================
   Dark Mode
   ======================================== */

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #020617 0%, #0F172A 50%, #020617 100%);
}

[data-theme="dark"] .stats-bar {
    background: var(--ds-bg-card);
    border-color: var(--ds-border);
}

[data-theme="dark"] .stat-label {
    color: var(--ds-text-tertiary);
}


/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .hero {
        padding: 60px 24px 40px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .stats-bar {
        flex-wrap: wrap;
        gap: 24px;
        padding: 20px 24px;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 48px 16px 32px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .stats-bar {
        gap: 16px;
    }

    .stat-item {
        flex: 1;
        min-width: 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-btn:hover {
        transform: none;
    }
    .hero::before,
    .hero::after {
        display: none;
    }
}
