/* ============================================================
   CENTIVA — CASE STUDY / "SUCCESS STUDY" TEMPLATE
   Reusable stylesheet for a single case-study page.
   Palette + fonts mirror src/index.css design tokens.
   ============================================================ */

/* ---- Design tokens ---------------------------------------- */
:root {
    --bg: #080B14;
    --bg-2: #060913;
    --card: #0A0F1C;
    --card-light: #111827;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(59, 130, 246, 0.40);

    --electric: #4F8CFF;
    --cyan: #00C2FF;
    --violet: #7A5CFF;

    --text: #E9EEF7;
    --text-dim: #94A3B8;
    --text-faint: #5B677A;

    --danger: #F87171;

    --font-sans: "Inter", Sans-serif;
    --font-display: "Space Grotesk", sans-serif;
    --font-mono: "JetBrains Mono", monospace;

    --maxw: 1180px;
    --gutter: 24px;
    --radius: 20px;

    --grad-headline: linear-gradient(135deg, #38BDF8 0%, #4F8CFF 45%, #7A5CFF 100%);
    --grad-cyan-blue: linear-gradient(135deg, #38BDF8 0%, #3B82F6 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.cs-container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Small mono "eyebrow" labels used throughout */
.cs-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ============================================================
   HERO
   ============================================================ */
.cs-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 96px var(--gutter) 88px;
    isolation: isolate;
}

/* Background image slot */
.cs-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    opacity: 0.28;
}

/* Dark gradient wash so text stays legible over the photo */
.cs-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(120% 80% at 50% 0%, rgba(8, 11, 20, 0.35), rgba(8, 11, 20, 0.92) 70%),
        linear-gradient(to bottom, rgba(8, 11, 20, 0.55), var(--bg));
}

.cs-hero__badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    /*margin-bottom: 30px;*/
}

.cs-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Solid / filled badge — e.g. the sector tag ("3PL Logistics") */
.cs-badge--solid {
    color: #06121F;
    background: var(--electric);
    border: 1px solid var(--electric);
    font-weight: 600;
}

/* Outline / ghost badge — electric — e.g. the sector tag ("3PL Logistics") */
.cs-badge--outline {
    color: var(--electric);
    background: rgba(79, 140, 255, 0.06);
    border: 1px solid rgba(79, 140, 255, 0.30);
}

/* Text-only badge — cyan — e.g. the status tag ("Production Architecture Deployed") */
.cs-badge--bare {
    color: #05D2EF;
    background: none;
    border: none;
    padding-inline: 0;
}

.cs-badge--dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.cs-hero__title,
.cs-hero__title h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

/* Wrap the second phrase of the headline in this to gradient it */
.cs-hero__title .grad {
    background: var(--grad-headline);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cs-hero__quote {
    font-family: "Inter", Sans-serif;
    max-width: 46ch;
    font-size: 1.12rem;
    color: var(--text-dim);
    font-style: italic;
    font-weight: 300;
    line-height: 1.4em;
}

/* ============================================================
   METRICS / OUTCOMES
   ============================================================ */
.cs-section {
    padding: 80px var(--gutter);
}

.cs-section__head {
    text-align: center;
    margin-bottom: 48px;
}

.cs-section__head h2 {
    margin: 10px 0 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    letter-spacing: -0.01em;
}

.cs-section__head h2 .grad {
    /* background: var(--grad-cyan-blue); */
    background: var(--grad-headline);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cs-section__head p {
    margin: 16px auto 0;
    max-width: 60ch;
    color: var(--text-dim);
}

.cs-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 980px;
    margin-inline: auto;
}

.cs-metric {
    padding: 40px 28px;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.cs-metric:hover {
    border-color: var(--border-strong);
    /*transform: translateY(-3px);*/
}

.cs-metric__value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    line-height: 1;
    /* background: var(--grad-cyan-blue); */
    background: var(--grad-headline);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cs-metric__label {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan);
}

.cs-metric__desc {
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* ============================================================
   TRANSITION — PROBLEM vs SOLUTION
   ============================================================ */
.cs-analysis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1080px;
    margin-inline: auto;
}

.cs-panel {
    position: relative;
    padding: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

/* Soft top glow tinted per panel type */
.cs-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    /*height: 160px;*/
    height: 100%;
    opacity: 0.5;
    pointer-events: none;
}

.cs-panel--problem::before {
    background: radial-gradient(80% 100% at 50% 0%, rgba(248, 113, 113, 0.10), transparent 70%);
}

.cs-panel--solution::before {
    background: radial-gradient(80% 100% at 50% 0%, rgba(0, 194, 255, 0.12), transparent 70%);
}

.cs-panel__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cs-panel--problem .cs-panel__tag {
    color: var(--danger);
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.30);
}

.cs-panel--solution .cs-panel__tag {
    color: var(--cyan);
    background: rgba(0, 194, 255, 0.08);
    border: 1px solid rgba(0, 194, 255, 0.30);
}

.cs-panel__title {
    margin: 22px 0 18px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.6rem;
    line-height: 1.2;
}

.cs-panel__body p {
    margin: 0 0 16px;
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Italic pull-quote (problem) */
.cs-panel__note {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-style: italic;
    font-size: 0.88rem;
    color: rgba(248, 113, 113, 0.85);
}

/* Status footer line (solution) */
.cs-panel__status {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {

    .cs-metrics,
    .cs-analysis {
        grid-template-columns: 1fr;
    }

    .cs-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .cs-topbar {
        grid-template-columns: auto 1fr auto;
    }

    .cs-topbar__title {
        display: none;
    }
}

@media (max-width: 560px) {
    .cs-hero {
        padding-top: 64px;
    }

    .cs-footer__grid {
        grid-template-columns: 1fr;
    }
}