/* =============================================================================
   COMPONENTS BASE CSS
   Shared styles for common component patterns
   Eliminates duplication across 80+ component CSS files
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Layout: Container
   ----------------------------------------------------------------------------- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* -----------------------------------------------------------------------------
   Layout: Sections
   ----------------------------------------------------------------------------- */
.section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.section-alt {
    background: rgba(15, 23, 42, 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #f1f5f9;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: rgba(248, 250, 252, 0.7);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   Hero Section
   ----------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #a5b4fc;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.75rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #f1f5f9;
    margin: 0 0 20px 0;
}

.hero-tagline {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(248, 250, 252, 0.8);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-stats-row {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: rgba(248, 250, 252, 0.6);
    margin-top: 4px;
}

/* -----------------------------------------------------------------------------
   Text Accent Colors
   ----------------------------------------------------------------------------- */
.accent {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cyan {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.purple {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.green {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* -----------------------------------------------------------------------------
   Icons
   ----------------------------------------------------------------------------- */
.icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.icon.cyan {
    background: rgba(34, 211, 238, 0.15);
    color: #22d3ee;
    -webkit-text-fill-color: #22d3ee;
}

.icon.purple {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    -webkit-text-fill-color: #a78bfa;
}

.icon.green {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    -webkit-text-fill-color: #4ade80;
}

.icon.gold {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    -webkit-text-fill-color: #fbbf24;
}

.icon.accent {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    -webkit-text-fill-color: #818cf8;
}

/* -----------------------------------------------------------------------------
   Stats Grid
   ----------------------------------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.6);
}

/* -----------------------------------------------------------------------------
   FAQ Section
   ----------------------------------------------------------------------------- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.faq-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(15, 23, 42, 0.8);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 12px;
}

.faq-answer {
    font-size: 0.95rem;
    color: rgba(248, 250, 252, 0.7);
    line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   CTA Section
   ----------------------------------------------------------------------------- */
.cta-buttons,
.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* -----------------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

/* -----------------------------------------------------------------------------
   Cards Base
   ----------------------------------------------------------------------------- */
.card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

/* -----------------------------------------------------------------------------
   Spec/Feature Items
   ----------------------------------------------------------------------------- */
.spec-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
}

.spec-label {
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.6);
    margin-top: 4px;
}

/* -----------------------------------------------------------------------------
   Responsive: Tablet
   ----------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 0 24px;
    }

    .hero-visual {
        order: -1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------------------------------------------------
   Responsive: Mobile
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-stats-row {
        flex-direction: column;
        gap: 24px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .cta-buttons,
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}
