/*
 * ============================================================
 * Services Page — Section-specific styles
 * ============================================================
 * Covers: services hero, service blocks, product-proof panel,
 * included grid, and services pricing notes.
 * ============================================================
 */

/* ============================================================
   SERVICES HERO — compact, spacious, premium
   ============================================================ */

.services-hero {
    padding-block: var(--space-24) var(--space-20);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle ambient glow behind the heading */
.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse at 50% 0%,
            rgba(14, 165, 233, 0.09) 0%,
            transparent 70%);
    pointer-events: none;
}

.services-hero__eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-glow-400);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-5);
}

.services-hero__title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    line-height: var(--leading-tight);
    letter-spacing: -0.025em;
    max-width: 720px;
    margin-inline: auto;
    margin-bottom: var(--space-6);
}

.services-hero__sub {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin-inline: auto;
    line-height: var(--leading-normal);
    margin-bottom: var(--space-10);
}

.services-hero__actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   SERVICE BLOCKS — expanded card layout (stacked)
   ============================================================ */

.service-blocks {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.service-block {
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-10) var(--space-10);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.service-block:hover {
    border-color: rgba(14, 165, 233, 0.2);
}

/* Alternate right-to-left on even blocks */
.service-block:nth-child(even) {
    direction: rtl;
}

.service-block:nth-child(even)>* {
    direction: ltr;
}

@media (max-width: 800px) {
    .service-block {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        padding: var(--space-8);
    }

    .service-block:nth-child(even) {
        direction: ltr;
    }
}

.service-block__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.service-block__icon-wrap {
    width: 3.25rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.service-block__number {
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-glow-400);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.service-block__title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    line-height: var(--leading-snug);
    letter-spacing: -0.015em;
}

.service-block__desc {
    font-size: var(--text-body);
    color: var(--color-text-muted);
    line-height: var(--leading-normal);
}

.service-block__outcome {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-glow-400);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: var(--space-4);
    margin-top: var(--space-2);
}

.service-block__outcome::before {
    content: '→';
    opacity: 0.7;
}

/* Visual panel — right side of block */
.service-block__visual {
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

/* Soft inner glow */
.service-block__visual::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: radial-gradient(ellipse at 50% 100%,
            rgba(14, 165, 233, 0.07),
            transparent 70%);
    pointer-events: none;
}

/* Image Container (Visual Header) */
.service-block__image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    min-height: 160px;
    flex-shrink: 0;
}

.service-block__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    transform: scale(1);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Subtle premium hover zoom — restricted to the image area */
@media (hover: hover) and (pointer: fine) {
    .service-block__image:hover img {
        transform: scale(1.04);
    }
}

.service-block__metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.625rem var(--space-4);
    position: relative;
    z-index: 1;
}

.service-block__metric-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.service-block__metric-value {
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-glow-400);
}

.service-block__metric-value--positive {
    color: #34d399;
}

.service-block__metric-value--neutral {
    color: var(--color-text-primary);
}

/* ============================================================
   PRODUCT-PROOF PANEL — featured workflow section
   ============================================================ */

.product-proof {
    padding-block: var(--section-spacing-md);
}

.product-proof__inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-16);
    align-items: center;
}

@media (max-width: 900px) {
    .product-proof__inner {
        grid-template-columns: 1fr;
    }
}

.product-proof__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.product-proof__eyebrow {
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-glow-400);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-proof__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    line-height: var(--leading-snug);
    letter-spacing: -0.02em;
}

.product-proof__sub {
    font-size: var(--text-body);
    color: var(--color-text-muted);
    line-height: var(--leading-normal);
}

.product-proof__note {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-style: italic;
    opacity: 0.75;
}

/* Premium panel — clean wrapper, no fake OS chrome */
.flow-panel {
    background: var(--color-bg-surface);
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 48px rgba(14, 165, 233, 0.07), 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* Subtle top accent line */
.flow-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(14, 165, 233, 0.45) 30%,
        rgba(56, 189, 248, 0.6) 50%,
        rgba(14, 165, 233, 0.45) 70%,
        transparent
    );
    pointer-events: none;
}

/* Hide the old fake bar entirely */
.flow-panel__bar {
    display: none;
}

.flow-panel__dots {
    display: none;
}

/* Clean premium panel header label */
.flow-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--space-5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: var(--space-5);
    padding-top: var(--space-2);
}

.flow-panel__header-label {
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-glow-400);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.flow-panel__header-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.75rem;
    color: #34d399;
    font-weight: var(--font-weight-medium);
}

.flow-panel__header-status::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
    flex-shrink: 0;
}

/* Hidden — keep for accessibility but not rendered */
.flow-panel__title {
    display: none;
}

/* Flow steps inside the panel */
.flow-panel__steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.flow-panel__step {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-3);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    position: relative;
}

.flow-panel__step:hover {
    background: rgba(14, 165, 233, 0.04);
}

.flow-panel__step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-glow-400);
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.flow-panel__step-text {
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
}

/* Vertical connector between steps */
.flow-panel__connector {
    display: flex;
    align-items: center;
    padding-left: calc(var(--space-3) + 1rem - 1px);
    /* align with number center */
    height: 1.5rem;
}

.flow-panel__connector-line {
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(14, 165, 233, 0.3),
            rgba(56, 189, 248, 0.5));
}

/* Status badges */
.flow-panel__step-badge {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 100px;
    flex-shrink: 0;
}

.flow-panel__step-badge--auto {
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.flow-panel__step-badge--ai {
    color: var(--color-glow-400);
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

/* Ambient panel glow */
.flow-panel::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 80px;
    background: radial-gradient(ellipse at 50% 100%,
            rgba(14, 165, 233, 0.14),
            transparent 70%);
    pointer-events: none;
}

/* ============================================================
   WHAT'S INCLUDED GRID
   ============================================================ */

.included-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

@media (max-width: 900px) {
    .included-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .included-grid {
        grid-template-columns: 1fr;
    }
}

.included-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.included-item__check {
    width: 1.875rem;
    height: 1.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.18);
    border-radius: 50%;
    font-size: 0.875rem;
    color: #34d399;
    flex-shrink: 0;
    margin-top: 1px;
}



.included-item__title {
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-1);
}

.included-item__desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-normal);
}

/* ============================================================
   PRICING NOTE (below pricing cards)
   ============================================================ */

.pricing-note {
    text-align: center;
    margin-top: var(--space-8);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.pricing-note a {
    color: var(--color-glow-400);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pricing-note a:hover {
    color: var(--color-glow-highlight);
}