/* Dedicated /outsource/ pages. Brand: Void #0B0F19, Orange #DE962C, Purple #6E4892. */

:root {
    --void: #0b0f19;
    --void-raise: #121826;
    --ink: #e8eaef;
    --muted: #9aa3b5;
    --line: rgba(255, 255, 255, 0.08);
    --orange: #de962c;
    --orange-deep: #c88525;
    --purple: #6e4892;
    --font-display: "Space Grotesk", "Segoe UI", sans-serif;
    --font-body: Inter, "Segoe UI", sans-serif;
    --wrap: 1120px;
    --header: 4.25rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--void);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.skip {
    position: absolute;
    left: 0.75rem;
    top: -3rem;
    z-index: 20;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: var(--orange);
    color: var(--void);
    font-weight: 700;
    text-decoration: none;
}

.skip:focus {
    top: 0.75rem;
}

.top-line {
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--purple));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(11, 15, 25, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.wrap {
    width: min(var(--wrap), calc(100% - 2rem));
    margin-inline: auto;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: var(--header);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-decoration: none;
}

.brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.back,
.lang-switch a,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.2rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
}

.back:hover,
.lang-switch a:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.lang-switch {
    display: inline-flex;
    gap: 0.35rem;
}

.lang-switch a[aria-current="page"] {
    color: var(--void);
    background: var(--orange);
    border-color: var(--orange);
}

.badge {
    color: var(--orange);
    border-color: rgba(222, 150, 44, 0.45);
    background: rgba(222, 150, 44, 0.08);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 2.4rem 0 1.2rem;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.hero::before {
    top: -12rem;
    left: -8rem;
    background: rgba(222, 150, 44, 0.16);
}

.hero::after {
    top: -14rem;
    right: -10rem;
    background: rgba(110, 72, 146, 0.2);
}

.hero .wrap,
.section .wrap {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 0.8rem;
}

h1 {
    margin: 0;
    max-width: 16em;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 3.15rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    max-width: 100%;
    padding: 0.9rem 1.15rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

.btn svg {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
}

.btn-primary {
    background: var(--orange);
    color: var(--void);
    box-shadow: 0 10px 28px rgba(222, 150, 44, 0.22);
}

.btn-primary:hover {
    background: var(--orange-deep);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn:focus-visible,
.back:focus-visible,
.lang-switch a:focus-visible,
.brand:focus-visible,
.contact-list a:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.kpi {
    min-width: 0;
    padding: 0.95rem 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.kpi-value {
    margin: 0;
    color: var(--orange);
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    overflow-wrap: break-word;
}

.kpi-label {
    margin: 0.45rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.section {
    padding: 2.6rem 0;
}

.kicker {
    margin: 0;
    color: var(--orange);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.kicker.quiet {
    color: var(--muted);
    letter-spacing: 0.12em;
}

h2.kicker {
    margin: 0 0 0.15rem;
    font-size: 0.92rem;
}

h2.kicker + .kicker {
    margin-top: 0.35rem;
}

h2 {
    margin: 0.4rem 0 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.card-grid,
.why-grid,
.case-grid,
.step-grid {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.15rem;
}

.card {
    min-width: 0;
    padding: 1.2rem 1.15rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--void-raise);
}

.card h3 {
    margin: 0.35rem 0 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.card p,
.step p {
    margin: 0.7rem 0 0;
    color: #d5d8e0;
}

.index {
    margin: 0;
    color: var(--orange);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.tone-purple .index {
    color: #b794d6;
}

.tone-orange {
    border-color: rgba(222, 150, 44, 0.45);
}

.tone-purple {
    border-color: rgba(110, 72, 146, 0.65);
}

.why-grid .card {
    border-color: var(--line);
    border-left-width: 3px;
}

.why-grid .tone-orange {
    border-left-color: var(--orange);
}

.why-grid .tone-purple {
    border-left-color: var(--purple);
}

.benchmark {
    margin-top: 0.95rem;
    color: var(--orange);
    font-weight: 600;
}

.case-grid .card h3 {
    font-size: 1.08rem;
}

.step-grid {
    list-style: none;
    padding: 0;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
    min-width: 0;
    padding: 1rem 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.step-index {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: rgba(222, 150, 44, 0.14);
    color: var(--orange);
    font-family: var(--font-display);
    font-weight: 700;
}

.step p {
    margin: 0.15rem 0 0;
}

.cta {
    margin: 0.4rem 0 2.4rem;
}

.cta-panel {
    display: grid;
    gap: 1.25rem;
    padding: 1.3rem 1.15rem 1.35rem;
    border: 1px solid rgba(222, 150, 44, 0.4);
    border-radius: 1.15rem;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(110, 72, 146, 0.22), transparent 46%),
        radial-gradient(ellipse at 0% 100%, rgba(222, 150, 44, 0.12), transparent 42%),
        #101624;
}

.cta-copy h2 {
    max-width: 18em;
}

.contact-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 1rem 0 0;
}

.contact-list a {
    color: #fff;
    font-weight: 600;
    text-underline-offset: 0.18em;
    overflow-wrap: anywhere;
}

.contact-list a:hover {
    color: var(--orange);
}

.cta-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.16em;
}

.cta-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.1rem 0 1.4rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.4rem 1rem;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.rise {
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.12s; }
.d3 { animation-delay: 0.18s; }

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.card,
.kpi,
.step {
    transition: transform 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) {
    .card:hover,
    .kpi:hover,
    .step:hover {
        transform: translateY(-2px);
    }
}

@media (min-width: 640px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kpi:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (min-width: 800px) {
    .card-grid,
    .why-grid,
    .step-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .step-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .cta-panel {
        grid-template-columns: 1fr auto;
        align-items: end;
        padding: 1.6rem 1.5rem;
    }
}

@media (min-width: 960px) {
    .case-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .kpi-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .kpi:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
