/* ============================================
   Serverless Fleets Landing Page Styles
   Built with Bootstrap 5.3
   ============================================ */

/* ============================================
   CSS Variables & Theme
   ============================================ */
:root {
    --primary-blue: #0f62fe;
    --primary-purple: #8a3ffc;
    --primary-teal: #009d9a;
    --primary-magenta: #ee5396;
    --success-green: #42be65;
    --warning-yellow: #f1c21b;
    --text-primary: #161616;
    --text-secondary: #525252;
    --background-white: #ffffff;
    --background-gray: #f4f4f4;
    --background-light: #fafafa;
    --border-subtle: #e0e0e0;
}

/* ============================================
   Base Styles
   ============================================ */
body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, #f4f4f4 0%, #ffffff 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero h1 {
    line-height: 1.1;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.grid-item {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: 8px;
    animation: pulse 2s ease-in-out infinite;
}

.grid-item:nth-child(1) { animation-delay: 0s; }
.grid-item:nth-child(2) { animation-delay: 0.1s; }
.grid-item:nth-child(3) { animation-delay: 0.2s; }
.grid-item:nth-child(4) { animation-delay: 0.3s; }
.grid-item:nth-child(5) { animation-delay: 0.4s; }
.grid-item:nth-child(6) { animation-delay: 0.5s; }
.grid-item:nth-child(7) { animation-delay: 0.6s; }
.grid-item:nth-child(8) { animation-delay: 0.7s; }
.grid-item:nth-child(9) { animation-delay: 0.8s; }

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   GPU Highlight Section
   ============================================ */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
}

/* ============================================
   Workflow Diagram
   ============================================ */
.workflow-diagram {
    padding: 1rem;
}

.workflow-step {
    margin-bottom: 1rem;
    text-align: center;
}

.step-label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.workflow-step .d-flex {
    justify-content: center;
}

/* ============================================
   Feature Cards
   ============================================ */
.feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
    display: inline-block;
}

/* ============================================
   Step Numbers
   ============================================ */
.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================
   Code Blocks
   ============================================ */
pre {
    margin: 0;
    position: relative;
}

pre code {
    display: block;
    padding: 0;
    background: none;
    color: #f4f4f4;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s ease;
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Pricing Table
   ============================================ */
.table-hover tbody tr:hover {
    background-color: rgba(15, 98, 254, 0.05);
}

/* ============================================
   Scroll Animations
   ============================================ */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.card,
.feature-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.animate-in,
.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Utilities
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 991px) {
    .hero {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .visual-grid {
        grid-template-columns: repeat(3, 60px);
        gap: 1rem;
    }
    
    .grid-item {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 767px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ============================================
   Smooth Scrolling
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* ============================================
   Accessibility
   ============================================ */
.btn:focus,
a:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    .hero-visual,
    .btn,
    .bg-gradient-primary {
        display: none;
    }
    
    body {
        color: black;
    }
}

/* ============================================
   Bootstrap Overrides
   ============================================ */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: #0353e9;
    border-color: #0353e9;
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.text-primary {
    color: var(--primary-blue) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.badge.bg-primary {
    background-color: var(--primary-blue) !important;
}

.badge.bg-success {
    background-color: var(--success-green) !important;
}

/* ============================================
   Custom Bootstrap Components
   ============================================ */
.card {
    border-radius: 8px;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12) !important;
}

/* Made with Bob */
