/* ============================================================
   SERVIÇOS PAGE — Page-Specific Styles
   Extends base design tokens from styles.css
   ============================================================ */

/* ---------- HERO ---------- */
.srv-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: var(--space-5xl);
    padding-bottom: var(--space-3xl);
}

.srv-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.3), rgba(255, 20, 147, 0.3), transparent);
}

.srv-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.srv-hero__eyebrow {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: var(--space-md);
}

.srv-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
}

.srv-hero__subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-body);
    max-width: 520px;
}

/* ---------- Orbit Animation ---------- */
.srv-hero__orbit {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 420px;
    margin: 0 auto;
}

/* Center Image (replaces empty sphere) */
.orbit-center {
    position: absolute;
    width: 220px;
    height: 220px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow:
        0 0 0 6px rgba(255, 255, 255, 0.4),
        0 0 40px rgba(138, 43, 226, 0.35),
        0 0 80px rgba(255, 20, 147, 0.15);
    overflow: hidden;
    z-index: 3;
    animation: center-pulse 3s ease-in-out infinite;
}

.orbit-center__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes center-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.4), 0 0 40px rgba(138, 43, 226, 0.35), 0 0 80px rgba(255, 20, 147, 0.15);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.04);
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.5), 0 0 60px rgba(138, 43, 226, 0.45), 0 0 100px rgba(255, 20, 147, 0.2);
    }
}

/* Floating Success Badges */
.orbit-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 4;
}

.orbit-badge span {
    white-space: nowrap;
}

.orbit-badge--likes {
    top: 15%;
    right: -5%;
    color: #e91e63;
    animation: badge-float 4s ease-in-out infinite;
}

.orbit-badge--growth {
    bottom: 25%;
    right: -8%;
    color: #00c853;
    animation: badge-float 4s ease-in-out infinite 1.3s;
}

.orbit-badge--views {
    bottom: 10%;
    left: -5%;
    color: var(--purple);
    animation: badge-float 4s ease-in-out infinite 2.6s;
}

@keyframes badge-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* (sphere-pulse removed — replaced by center-pulse) */

.orbit-ring {
    position: absolute;
    inset: 0;
    animation: orbit-spin 20s linear infinite;
}

@keyframes orbit-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.orbit-icon {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    animation: orbit-counter-spin 20s linear infinite;
    color: var(--purple);
}

.orbit-icon svg {
    width: 20px;
    height: 20px;
}

@keyframes orbit-counter-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

.orbit-icon--1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-icon--2 {
    top: 20%;
    right: 5%;
}

.orbit-icon--3 {
    bottom: 20%;
    right: 5%;
}

.orbit-icon--4 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-icon--5 {
    top: 40%;
    left: 0;
}


/* ============================================================
   ECOSYSTEM — 4 Pillars Flip Cards
   ============================================================ */
.srv-ecosystem {
    padding: var(--space-5xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-eyebrow {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: var(--space-sm);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.section-header>p:last-child {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pillar Grid */
.pillar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

/* Flip Card */
.pillar-card {
    perspective: 1000px;
    height: 340px;
    cursor: pointer;
    touch-action: pan-y;
}

.pillar-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.pillar-card:hover .pillar-card__inner,
.pillar-card.flipped .pillar-card__inner {
    transform: rotateY(180deg);
}

.pillar-card__front,
.pillar-card__back {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
}

/* Front */
.pillar-card__front {
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-md);
    justify-content: center;
    align-items: center;
    text-align: center;
}

.pillar-card__number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

/* 3D Glass Icons (large, centered) */
.pillar-card__icon-3d {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-card__icon-3d svg {
    width: 64px;
    height: 64px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover: icon shrinks up to reveal text */
.pillar-card:hover .pillar-card__icon-3d,
.pillar-card.flipped .pillar-card__icon-3d {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-sm);
}

.pillar-card:hover .pillar-card__icon-3d svg,
.pillar-card.flipped .pillar-card__icon-3d svg {
    width: 36px;
    height: 36px;
}

.pillar-card__icon-3d--cyan {
    background: linear-gradient(135deg, rgba(0, 220, 255, 0.18), rgba(0, 220, 255, 0.05));
    border: 1px solid rgba(0, 220, 255, 0.2);
    color: #00dcff;
    box-shadow: 0 4px 24px rgba(0, 220, 255, 0.15), inset 0 0 20px rgba(0, 220, 255, 0.08);
}

.pillar-card__icon-3d--magenta {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.18), rgba(255, 20, 147, 0.05));
    border: 1px solid rgba(255, 20, 147, 0.2);
    color: var(--pink);
    box-shadow: 0 4px 24px rgba(255, 20, 147, 0.15), inset 0 0 20px rgba(255, 20, 147, 0.08);
}

.pillar-card__icon-3d--purple {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.18), rgba(138, 43, 226, 0.05));
    border: 1px solid rgba(138, 43, 226, 0.2);
    color: var(--purple);
    box-shadow: 0 4px 24px rgba(138, 43, 226, 0.15), inset 0 0 20px rgba(138, 43, 226, 0.08);
}

.pillar-card__icon-3d--green {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.18), rgba(0, 230, 118, 0.05));
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: #00e676;
    box-shadow: 0 4px 24px rgba(0, 230, 118, 0.15), inset 0 0 20px rgba(0, 230, 118, 0.08);
}

.pillar-card__front h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.pillar-card__label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Back */
.pillar-card__back {
    background: var(--gradient);
    color: #fff;
    transform: rotateY(180deg);
    justify-content: center;
    padding: var(--space-xl) var(--space-2xl);
}

.pillar-card__back h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.pillar-card__back ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.pillar-card__back li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.9rem;
    line-height: 1.5;
}

.pillar-card__back li span {
    flex-shrink: 0;
    font-size: 1.1rem;
}


/* ============================================================
   TIMELINE — Social Flow
   ============================================================ */
.srv-timeline {
    padding: var(--space-5xl) 0;
    background: #ffffff;
    overflow: hidden;
}

.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: var(--space-3xl);
}

.timeline__line {
    position: absolute;
    top: calc(var(--space-3xl) + 18px);
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 4px;
}

.timeline__progress {
    position: absolute;
    top: calc(var(--space-3xl) + 18px);
    left: 0;
    height: 3px;
    background: var(--gradient-horizontal);
    border-radius: 4px;
    width: 0%;
    transition: width 1.5s var(--ease-out);
}

.timeline.in-view .timeline__progress {
    width: 100%;
}

.timeline__step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 0 var(--space-sm);
}

.timeline__dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid rgba(138, 43, 226, 0.2);
    position: relative;
    z-index: 2;
    transition: all 0.5s var(--ease-out);
    flex-shrink: 0;
}

.timeline.in-view .timeline__dot {
    background: var(--gradient);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.timeline__card {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(138, 43, 226, 0.08);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.timeline__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.timeline__number {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--pink);
    display: block;
    margin-bottom: var(--space-xs);
}

.timeline__card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.timeline__card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}


/* ============================================================
   PRICING — Scopes
   ============================================================ */
.srv-pricing {
    padding: var(--space-5xl) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    align-items: stretch;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Featured Card */
.pricing-card--featured {
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: var(--shadow-md), 0 0 0 2px var(--purple);
    transform: scale(1.04);
    z-index: 2;
}

.pricing-card--featured:hover {
    transform: scale(1.04) translateY(-6px);
}

.pricing-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 20px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.pricing-card__header {
    margin-bottom: var(--space-md);
}

.pricing-card__header h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
}

.pricing-card__for {
    font-size: 0.85rem;
    color: var(--pink);
    font-weight: 600;
}

.pricing-card__ideal {
    font-size: 0.88rem;
    color: var(--text-body);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.pricing-card__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-grow: 1;
}

.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.92rem;
    color: var(--text-body);
}

.pricing-card__features svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--purple);
    stroke-width: 2.5;
    fill: none;
}

.pricing-card__price {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.pricing-card .btn {
    text-align: center;
    width: 100%;
}

/* Outline Button */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid var(--purple);
    color: var(--purple);
    background: transparent;
    transition: all var(--duration-normal) var(--ease-out);
}

.btn-outline:hover {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Large primary CTA */
.btn-primary--lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}


/* ============================================================
   CTA FINAL
   ============================================================ */
.srv-cta {
    padding: var(--space-5xl) 0;
    background: var(--gradient);
    text-align: center;
}

.srv-cta__content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: var(--space-xl);
}

.srv-cta__content .gradient-text {
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.srv-cta .btn-primary {
    background: #fff;
    color: var(--purple);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.srv-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}


/* ============================================================
   BACKGROUND BLOBS — Visual Depth Between Sections
   ============================================================ */
.bg-blob {
    position: relative;
    width: 100%;
    height: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 0;
}

.bg-blob::before,
.bg-blob::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

/* Blob 1 — Between Hero & Ecosystem */
.bg-blob--1::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.12) 0%, transparent 70%);
    top: -200px;
    left: 10%;
}

.bg-blob--1::after {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 20, 147, 0.10) 0%, transparent 70%);
    top: -150px;
    right: 15%;
}

/* Blob 2 — Between Ecosystem & Timeline */
.bg-blob--2::before {
    width: 500px;
    height: 350px;
    background: radial-gradient(ellipse, rgba(0, 220, 255, 0.08) 0%, transparent 70%);
    top: -180px;
    right: 5%;
}

.bg-blob--2::after {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.10) 0%, transparent 70%);
    top: -200px;
    left: 20%;
}

/* Blob 3 — Between Timeline & Pricing */
.bg-blob--3::before {
    width: 450px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(255, 20, 147, 0.09) 0%, transparent 70%);
    top: -200px;
    left: 30%;
}

.bg-blob--3::after {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.07) 0%, transparent 70%);
    top: -150px;
    right: 10%;
}


/* ============================================================
   RESPONSIVE — Services Page
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .srv-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .srv-hero__subtitle {
        max-width: 100%;
        margin: 0 auto;
    }

    .srv-hero__orbit {
        max-width: 300px;
    }

    .pillar-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .pricing-card--featured {
        transform: none;
    }

    .pricing-card--featured:hover {
        transform: translateY(-6px);
    }

    .timeline {
        flex-direction: column;
        gap: var(--space-xl);
        padding-top: 0;
        padding-left: var(--space-2xl);
    }

    .timeline__line {
        top: 0;
        bottom: 0;
        left: var(--space-lg);
        right: auto;
        width: 3px;
        height: 100%;
    }

    .timeline__progress {
        top: 0;
        left: var(--space-lg);
        width: 3px !important;
        height: 0%;
        transition: height 1.5s var(--ease-out);
    }

    .timeline.in-view .timeline__progress {
        width: 3px !important;
        height: 100%;
    }

    .timeline__step {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: var(--space-lg);
    }

    .timeline__dot {
        position: relative;
        left: calc(-1 * var(--space-lg));
    }

    .timeline__card {
        margin-top: 0;
        flex: 1;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .pillar-grid {
        grid-template-columns: 1fr;
    }

    .pillar-card {
        height: 300px;
    }

    .srv-hero__orbit {
        max-width: 240px;
    }

    .orbit-sphere {
        width: 72px;
        height: 72px;
    }

    .orbit-icon {
        width: 36px;
        height: 36px;
    }

    .orbit-icon svg {
        width: 16px;
        height: 16px;
    }

    .srv-cta__content h2 {
        font-size: 1.6rem;
    }
}