/* Services Page Styles */

/* Hero Section */
.services-hero {
    text-align: center;
    padding: 4rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}

.services-hero__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.services-hero__eyebrow {
    color: #818cf8;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.services-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.services-hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Service Section */
.service-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-section--alt {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    margin: 2rem auto;
}

.service-section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.service-section__header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin: 1rem 0 0.75rem;
}

.service-section__header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Service Pills */
.service-pill {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-pill--purple {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.service-pill--green {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.service-pill--blue {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.service-pill--orange {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
}

/* Coming Soon Preview */
.coming-soon-preview {
    text-align: center;
    padding: 3rem 2rem;
}

.preview-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(251, 146, 60, 0.2) 100%);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 20px;
    color: #fb923c;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.preview-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.preview-cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.preview-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

/* Service Layout */
.service-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.service-layout--reverse {
    direction: rtl;
}

.service-layout--reverse > * {
    direction: ltr;
}

/* Feature Items */
.service-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-icon--brain { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.feature-icon--voice { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.feature-icon--vision { background: rgba(14, 165, 233, 0.2); color: #38bdf8; }
.feature-icon--sentiment { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.feature-icon--webhook { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.feature-icon--slack { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.feature-icon--email { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.feature-icon--sms { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.feature-icon--compute { background: rgba(251, 146, 60, 0.2); color: #fb923c; }
.feature-icon--lambda { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.feature-icon--database { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.feature-icon--cdn { background: rgba(34, 197, 94, 0.2); color: #4ade80; }

.feature-content h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Service Diagram */
.service-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
}

.diagram-container {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
}

.diagram-title {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

/* Architecture Flow Diagram */
.architecture-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.arch-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 100px;
}

.arch-node--input { border-color: rgba(99, 102, 241, 0.3); }
.arch-node--brain { border-color: rgba(139, 92, 246, 0.3); background: rgba(139, 92, 246, 0.1); }
.arch-node--services { border-color: rgba(251, 191, 36, 0.3); }
.arch-node--output { border-color: rgba(34, 197, 94, 0.3); }

.arch-icon {
    font-size: 1.5rem;
}

.arch-label {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.arch-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.625rem;
}

.arch-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.25rem;
}

.diagram-services {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.diagram-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.diagram-service img {
    width: 32px;
    height: 32px;
    opacity: 0.8;
}

.diagram-service span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.625rem;
}

/* Notification Flow Diagram */
.notification-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.flow-source {
    text-align: center;
}

.flow-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.flow-box--event {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.flow-box--api {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

.flow-icon {
    font-size: 1rem;
}

.flow-examples {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.flow-examples span {
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.5);
}

.flow-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-arrow-down {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.25rem;
}

.flow-destinations {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.flow-dest {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.flow-dest .flow-box {
    width: 48px;
    height: 48px;
    padding: 0;
    font-size: 1rem;
}

.flow-dest span:last-child {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.625rem;
}

.flow-box--slack { background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.3); color: #a78bfa; }
.flow-box--email { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); color: #60a5fa; }
.flow-box--webhook { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.3); color: #4ade80; }
.flow-box--sms { background: rgba(236, 72, 153, 0.15); border: 1px solid rgba(236, 72, 153, 0.3); color: #f472b6; }

/* Infrastructure Stack Diagram */
.infra-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stack-layer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stack-layer--edge { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.2); }
.stack-layer--compute { background: rgba(251, 146, 60, 0.1); border-color: rgba(251, 146, 60, 0.2); }
.stack-layer--data { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.2); }
.stack-layer--observe { background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.2); }

.stack-label {
    width: 70px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stack-layer--edge .stack-label { color: #4ade80; }
.stack-layer--compute .stack-label { color: #fb923c; }
.stack-layer--data .stack-label { color: #60a5fa; }
.stack-layer--observe .stack-label { color: #a78bfa; }

.stack-items {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.stack-item {
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.stack-connector {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
}

/* CTA Section */
.services-cta {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.services-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.services-cta p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.services-cta__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.btn-secondary {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: transparent;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Responsive */
@media (max-width: 900px) {
    .service-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-layout--reverse {
        direction: ltr;
    }

    .services-hero h1 {
        font-size: 2.5rem;
    }

    .architecture-flow {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .arch-node {
        min-width: 80px;
        padding: 0.75rem;
    }

    .arch-arrow {
        display: none;
    }

    .flow-destinations {
        flex-wrap: wrap;
    }

    .services-cta__actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .service-section {
        padding: 2rem 1rem;
    }

    .diagram-container {
        padding: 1.5rem 1rem;
    }

    .diagram-services {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stack-layer {
        flex-direction: column;
        text-align: center;
    }

    .stack-label {
        width: auto;
    }

    .stack-items {
        flex-wrap: wrap;
        justify-content: center;
    }
}
