/* =============================================================
   CTD Premium Home — design system (compact edition)
   Scoped under .ctd-premium so it never bleeds into other pages.
   ============================================================= */

:root {
    --ctd-midnight: #020817;
    --ctd-navy: #071126;
    --ctd-navy-2: #0B1A33;
    --ctd-navy-3: #102347;
    --ctd-blue: #1473E6;
    --ctd-blue-2: #0A84FF;
    --ctd-cyan: #38BDF8;
    --ctd-cyan-soft: #7DD3FC;
    --ctd-ink: #0F172A;
    --ctd-ink-2: #1E293B;
    --ctd-mute: #64748B;
    --ctd-line: #E5EAF2;
    --ctd-line-soft: #EEF2F7;
    --ctd-line-dark: rgba(255, 255, 255, 0.10);
    --ctd-line-dark-strong: rgba(255, 255, 255, 0.16);
    --ctd-bg-soft: #F7FAFC;
    --ctd-bg-soft-2: #EEF3FA;
    --ctd-text-on-dark: #E6ECF5;
    --ctd-text-on-dark-mute: #93A4BF;
    --ctd-radius-lg: 18px;
    --ctd-radius-md: 12px;
    --ctd-radius-sm: 10px;
    --ctd-shadow-card: 0 14px 30px -16px rgba(7, 17, 38, 0.22);
    --ctd-shadow-glow: 0 0 0 1px rgba(56, 189, 248, 0.16), 0 12px 40px -12px rgba(20, 115, 230, 0.35);
    --ctd-font: "Inter", "Nunito Sans", "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.ctd-premium {
    font-family: var(--ctd-font);
    color: var(--ctd-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #fff;
}

.ctd-premium *,
.ctd-premium *::before,
.ctd-premium *::after {
    box-sizing: border-box;
}

.ctd-premium img {
    max-width: 100%;
    display: block;
}

.ctd-premium a {
    color: inherit;
    text-decoration: none;
}

.ctd-premium ul,
.ctd-premium ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Container */
.ctd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
}

/* Eyebrow / section label */
.ctd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ctd-blue);
    margin-bottom: 14px;
}

    .ctd-eyebrow::before {
        content: "";
        width: 26px;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--ctd-blue));
        opacity: 0.85;
    }

.ctd-premium--dark .ctd-eyebrow {
    color: var(--ctd-cyan);
}

    .ctd-premium--dark .ctd-eyebrow::before {
        background: var(--ctd-cyan);
    }

/* Headings */
.ctd-h1 {
    font-size: clamp(2.4rem, 4.4vw, 3.7rem);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 20px;
    color: #fff;
    max-width: 22ch;
}

.ctd-h2 {
    font-size: clamp(1.8rem, 2.8vw, 2.35rem);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -0.018em;
    margin: 0;
}

.ctd-h3 {
    font-size: 1.15rem;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 8px;
}

.ctd-lead {
    font-size: 1rem;
    line-height: 1.6;
    color: #4A5670;
    margin: 0;
}

.ctd-premium--dark .ctd-lead {
    color: var(--ctd-text-on-dark-mute);
}

.ctd-section-head {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}

    .ctd-section-head .ctd-h2 {
        margin-bottom: 0;
    }

    .ctd-section-head .ctd-eyebrow {
        margin-bottom: 18px;
    }

/* Buttons */
.ctd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--ctd-font);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.005em;
    padding: 14px 24px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease, background 0.22s ease, color 0.18s ease, border-color 0.18s ease;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    isolation: isolate;
}

    .ctd-btn:focus-visible {
        outline: 2px solid var(--ctd-cyan);
        outline-offset: 3px;
    }

.ctd-btn--primary {
    background: linear-gradient(135deg, #1473E6 0%, #0A84FF 50%, #38BDF8 100%);
    color: #fff;
    box-shadow: 0 14px 30px -14px rgba(20, 115, 230, 0.65), 0 0 0 1px rgba(56, 189, 248, 0.18) inset;
    padding: 16px 28px;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.005em;
}

    .ctd-btn--primary::after {
        content: "→";
        font-weight: 600;
        margin-left: 2px;
        transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .ctd-btn--primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 38px -14px rgba(20, 115, 230, 0.85), 0 0 0 1px rgba(56, 189, 248, 0.30) inset;
        color: #fff;
    }

        .ctd-btn--primary:hover::after {
            transform: translateX(4px);
        }

.ctd-btn--ghost {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-weight: 600;
}

    .ctd-btn--ghost:hover {
        background: rgba(56, 189, 248, 0.08);
        border-color: rgba(56, 189, 248, 0.45);
        color: #fff;
        transform: translateY(-1px);
    }

.ctd-btn--block {
    width: 100%;
}

.ctd-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ctd-blue);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}

    .ctd-link::after {
        content: "→";
        transition: transform 0.18s ease;
    }

    .ctd-link:hover {
        color: var(--ctd-blue-2);
    }

        .ctd-link:hover::after {
            transform: translateX(4px);
        }

.ctd-premium--dark .ctd-link {
    color: var(--ctd-cyan);
}

    .ctd-premium--dark .ctd-link:hover {
        color: var(--ctd-cyan-soft);
    }

/* =============================================================
   1. HERO
   ============================================================= */
.ctd-hero {
    position: relative;
    background: radial-gradient(1200px 600px at 78% -12%, rgba(56, 189, 248, 0.18), transparent 60%), radial-gradient(1000px 540px at 0% 110%, rgba(20, 115, 230, 0.20), transparent 60%), linear-gradient(180deg, #050D1F 0%, #071126 55%, #08152F 100%);
    color: #fff;
    padding: 124px 0 116px;
    overflow: hidden;
    isolation: isolate;
}

    .ctd-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
        background-size: 56px 56px;
        mask-image: radial-gradient(1000px 540px at 50% 30%, #000, transparent 70%);
        -webkit-mask-image: radial-gradient(1000px 540px at 50% 30%, #000, transparent 70%);
        opacity: 0.50;
        z-index: 0;
        pointer-events: none;
    }

    /* soft bottom fade so hero blends into the next section */
    .ctd-hero::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 80px;
        background: linear-gradient(180deg, transparent, rgba(2, 6, 15, 0.55));
        pointer-events: none;
        z-index: 0;
    }

.ctd-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ctd-hero__copy h1 {
    color: #fff;
}

    .ctd-hero__copy h1 .accent {
        background: linear-gradient(90deg, #38BDF8 0%, #1473E6 70%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.ctd-hero__sub {
    font-size: 1.12rem;
    line-height: 1.65;
    color: rgba(230, 236, 245, 0.78);
    max-width: 560px;
    margin: 0 0 32px;
}

.ctd-hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}

.ctd-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

    .ctd-hero__chips li {
        font-size: 0.8rem;
        font-weight: 600;
        color: rgba(230, 236, 245, 0.88);
        padding: 7px 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.035);
        border: 1px solid rgba(255, 255, 255, 0.14);
        letter-spacing: 0.02em;
        transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    }

        .ctd-hero__chips li:hover {
            border-color: rgba(56, 189, 248, 0.40);
            background: rgba(56, 189, 248, 0.06);
            color: #fff;
        }

/* Hero — visual: command center (compact list version) */
.ctd-cc {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(13, 28, 56, 0.92) 0%, rgba(7, 17, 38, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 22px;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 0 80px -20px rgba(56, 189, 248, 0.18);
    backdrop-filter: blur(10px);
    transform: translateZ(0);
}

    .ctd-cc::before {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: 21px;
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.30), transparent 35%, transparent 65%, rgba(20, 115, 230, 0.28));
        z-index: -1;
        pointer-events: none;
    }

    /* subtle inner highlight along the top edge */
    .ctd-cc::after {
        content: "";
        position: absolute;
        top: 0;
        left: 12%;
        right: 12%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.55), transparent);
        pointer-events: none;
    }

.ctd-cc__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ctd-line-dark);
    margin-bottom: 14px;
}

.ctd-cc__dots {
    display: flex;
    gap: 6px;
}

    .ctd-cc__dots span {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.18);
    }

        .ctd-cc__dots span:nth-child(1) {
            background: #FF5F57;
        }

        .ctd-cc__dots span:nth-child(2) {
            background: #FEBC2E;
        }

        .ctd-cc__dots span:nth-child(3) {
            background: #28C840;
        }

.ctd-cc__title {
    font-size: 0.74rem;
    color: var(--ctd-text-on-dark-mute);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-left: 6px;
}

.ctd-cc__pulse {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--ctd-cyan);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

    .ctd-cc__pulse::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #38BDF8;
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.8);
        animation: ctd-pulse 2s infinite;
    }

@keyframes ctd-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(56, 189, 248, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

.ctd-cc__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .ctd-cc__list li {
        display: grid;
        grid-template-columns: 32px 1fr auto;
        align-items: center;
        gap: 14px;
        padding: 13px 15px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
        border-radius: 11px;
        transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
    }

        .ctd-cc__list li:hover {
            border-color: rgba(56, 189, 248, 0.35);
            background: linear-gradient(180deg, rgba(56, 189, 248, 0.07), rgba(56, 189, 248, 0.02));
            transform: translateX(2px);
        }

.ctd-cc__ico {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(20, 115, 230, 0.45), rgba(56, 189, 248, 0.20));
    border: 1px solid rgba(56, 189, 248, 0.40);
    box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.20);
    position: relative;
}

    .ctd-cc__ico::after {
        content: "";
        position: absolute;
        inset: 8px;
        border-radius: 3px;
        background: rgba(255, 255, 255, 0.78);
        opacity: 0.85;
    }

.ctd-cc__name {
    font-size: 0.94rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.005em;
}

.ctd-cc__meta {
    font-size: 0.76rem;
    color: rgba(147, 164, 191, 0.92);
    letter-spacing: 0.03em;
}

.ctd-cc__halo {
    position: absolute;
    inset: -60px;
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(56, 189, 248, 0.20), transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

/* =============================================================
   2. CAPABILITIES STRIP — single compact line
   ============================================================= */
.ctd-capstrip {
    background: linear-gradient(180deg, #08152F 0%, #050D1F 100%);
    color: #fff;
    padding: 26px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

    .ctd-capstrip::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.30), transparent);
    }

.ctd-capstrip__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.ctd-capstrip__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.20em;
    color: var(--ctd-cyan);
    font-weight: 700;
    padding-right: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .ctd-capstrip__label::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--ctd-cyan);
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
    }

.ctd-capstrip__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

    .ctd-capstrip__items li {
        font-size: 0.88rem;
        color: rgba(230, 236, 245, 0.9);
        line-height: 1.3;
        font-weight: 500;
        letter-spacing: 0.005em;
    }

        .ctd-capstrip__items li::before {
            content: "";
            display: inline-block;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: var(--ctd-cyan);
            margin-right: 10px;
            margin-bottom: 3px;
            opacity: 0.85;
            vertical-align: middle;
        }

/* =============================================================
   3. SOLUTIONS — three pillars
   ============================================================= */
.ctd-pillars-section {
    padding: 110px 0 100px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFCFF 100%);
    position: relative;
}

.ctd-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.ctd-pillar {
    position: relative;
    padding: 36px 30px 32px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--ctd-line);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
}

    /* top accent gradient bar */
    .ctd-pillar::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #1473E6, #38BDF8);
        opacity: 0.85;
        transition: opacity 0.28s ease, height 0.28s ease;
    }

    /* faint corner glow that brightens on hover */
    .ctd-pillar::after {
        content: "";
        position: absolute;
        top: -40px;
        right: -40px;
        width: 180px;
        height: 180px;
        background: radial-gradient(closest-side, rgba(56, 189, 248, 0.10), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: -1;
    }

    .ctd-pillar:hover {
        transform: translateY(-6px);
        box-shadow: 0 24px 50px -22px rgba(7, 17, 38, 0.25), 0 0 0 1px rgba(20, 115, 230, 0.12);
        border-color: rgba(20, 115, 230, 0.22);
    }

        .ctd-pillar:hover::before {
            height: 4px;
            opacity: 1;
        }

        .ctd-pillar:hover::after {
            opacity: 1;
        }

.ctd-pillar__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(20, 115, 230, 0.12), rgba(56, 189, 248, 0.06));
    border: 1px solid rgba(20, 115, 230, 0.20);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ctd-blue);
    margin-bottom: 22px;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.28s ease;
}

    .ctd-pillar__icon svg {
        width: 24px;
        height: 24px;
        stroke-width: 1.8;
    }

.ctd-pillar:hover .ctd-pillar__icon {
    transform: scale(1.06);
    border-color: rgba(20, 115, 230, 0.45);
}

.ctd-pillar__num {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--ctd-blue);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ctd-pillar__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ctd-ink);
    margin: 0 0 10px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.ctd-pillar__text {
    font-size: 0.98rem;
    line-height: 1.62;
    color: #4A5670;
    margin: 0;
}

/* small chip bullets used in pillars */
.ctd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 22px;
}

    .ctd-chips li {
        font-size: 0.76rem;
        font-weight: 600;
        padding: 6px 12px;
        border-radius: 999px;
        background: rgba(20, 115, 230, 0.05);
        color: var(--ctd-blue);
        border: 1px solid rgba(20, 115, 230, 0.16);
        letter-spacing: 0.02em;
        transition: background 0.18s ease, border-color 0.18s ease;
    }

.ctd-pillar:hover .ctd-chips li {
    background: rgba(20, 115, 230, 0.08);
    border-color: rgba(20, 115, 230, 0.25);
}

/* =============================================================
   4. INDUSTRIES — four compact cards (dark)
   ============================================================= */
.ctd-industries {
    padding: 110px 0 100px;
    background: linear-gradient(180deg, #050D1F 0%, #071126 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .ctd-industries::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
        background-size: 64px 64px;
        mask-image: radial-gradient(800px 420px at 50% 0%, #000, transparent 70%);
        -webkit-mask-image: radial-gradient(800px 420px at 50% 0%, #000, transparent 70%);
        opacity: 0.5;
        pointer-events: none;
    }

    /* top hairline accent */
    .ctd-industries::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.30), transparent);
    }

.ctd-industries .ctd-h2 {
    color: #fff;
}

.ctd-ind-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.ctd-ind {
    padding: 30px 26px 28px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.018) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

    /* corner glow */
    .ctd-ind::before {
        content: "";
        position: absolute;
        top: -50px;
        right: -50px;
        width: 200px;
        height: 200px;
        background: radial-gradient(closest-side, rgba(56, 189, 248, 0.16), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .ctd-ind:hover {
        transform: translateY(-5px);
        border-color: rgba(56, 189, 248, 0.42);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(56, 189, 248, 0.025));
        box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(56, 189, 248, 0.15);
    }

        .ctd-ind:hover::before {
            opacity: 1;
        }

.ctd-ind__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.20), rgba(20, 115, 230, 0.10));
    border: 1px solid rgba(56, 189, 248, 0.30);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ctd-cyan);
    margin-bottom: 18px;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.28s ease;
}

    .ctd-ind__icon svg {
        width: 22px;
        height: 22px;
        stroke-width: 1.8;
    }

.ctd-ind:hover .ctd-ind__icon {
    transform: scale(1.06);
    border-color: rgba(56, 189, 248, 0.55);
}

.ctd-ind__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: -0.005em;
}

.ctd-ind__pain {
    font-size: 0.92rem;
    color: rgba(230, 236, 245, 0.92);
    margin: 0 0 12px;
    line-height: 1.58;
}

.ctd-ind__sol {
    font-size: 0.86rem;
    color: rgba(147, 164, 191, 0.95);
    margin: 0 0 22px;
    line-height: 1.58;
}

.ctd-ind .ctd-link {
    margin-top: auto;
}

/* =============================================================
   5. PROCESS — four compact steps
   ============================================================= */
.ctd-process {
    padding: 110px 0 100px;
    background: linear-gradient(180deg, #F7FAFC 0%, #EEF3FA 100%);
    position: relative;
}

.ctd-process__rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    position: relative;
}

    /* connector line behind chips on desktop */
    .ctd-process__rail::before {
        content: "";
        position: absolute;
        top: 56px;
        left: 9%;
        right: 9%;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(20, 115, 230, 0.30) 8%, rgba(56, 189, 248, 0.55) 50%, rgba(20, 115, 230, 0.30) 92%, transparent);
        z-index: 0;
    }

.ctd-process-step {
    position: relative;
    padding: 30px 26px 28px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--ctd-line);
    transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1;
}

    .ctd-process-step:hover {
        border-color: rgba(20, 115, 230, 0.22);
        box-shadow: 0 24px 50px -22px rgba(7, 17, 38, 0.20), 0 0 0 1px rgba(20, 115, 230, 0.08);
        transform: translateY(-4px);
    }

.ctd-process-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1473E6 0%, #38BDF8 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
    box-shadow: 0 12px 24px -10px rgba(20, 115, 230, 0.55);
    position: relative;
}

    /* faint outer ring */
    .ctd-process-step__num::before {
        content: "";
        position: absolute;
        inset: -5px;
        border-radius: 18px;
        border: 1px dashed rgba(20, 115, 230, 0.24);
    }

.ctd-process-step__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ctd-ink);
    margin: 0 0 8px;
    line-height: 1.3;
    letter-spacing: -0.005em;
}

.ctd-process-step__text {
    font-size: 0.94rem;
    color: #4A5670;
    line-height: 1.6;
    margin: 0;
}

/* =============================================================
   6. PROOF — three compact cards
   ============================================================= */
.ctd-proof {
    padding: 110px 0 100px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFCFF 100%);
}

.ctd-proof__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.ctd-proof-card {
    position: relative;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--ctd-line);
    padding: 32px 28px 28px;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    overflow: hidden;
    isolation: isolate;
}

    /* faint top blue bar */
    .ctd-proof-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #1473E6, #38BDF8);
        opacity: 0;
        transition: opacity 0.28s ease;
    }

    /* corner glow */
    .ctd-proof-card::after {
        content: "";
        position: absolute;
        top: -50px;
        right: -50px;
        width: 200px;
        height: 200px;
        background: radial-gradient(closest-side, rgba(56, 189, 248, 0.10), transparent 70%);
        pointer-events: none;
        opacity: 0.4;
        transition: opacity 0.28s ease;
        z-index: -1;
    }

    .ctd-proof-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 26px 50px -22px rgba(7, 17, 38, 0.22), 0 0 0 1px rgba(20, 115, 230, 0.10);
        border-color: rgba(20, 115, 230, 0.22);
    }

        .ctd-proof-card:hover::before {
            opacity: 1;
        }

        .ctd-proof-card:hover::after {
            opacity: 1;
        }

.ctd-proof-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ctd-blue);
    background: rgba(20, 115, 230, 0.07);
    border: 1px solid rgba(20, 115, 230, 0.20);
    margin-bottom: 14px;
}

    .ctd-proof-card__tag::before {
        content: "";
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--ctd-blue);
    }

.ctd-proof-card__title {
    font-size: 1.18rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--ctd-ink);
    line-height: 1.3;
    letter-spacing: -0.008em;
}

.ctd-proof-card p {
    font-size: 0.94rem;
    color: #4A5670;
    line-height: 1.6;
    margin: 0 0 10px;
}

    .ctd-proof-card p:last-child {
        margin-bottom: 0;
    }

    .ctd-proof-card p strong {
        color: var(--ctd-blue);
        font-weight: 700;
        font-size: 0.74rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        margin-right: 6px;
    }

/* =============================================================
   7. CTA — compact two-column
   ============================================================= */
.ctd-cta {
    padding: 110px 0;
    background: radial-gradient(900px 420px at 100% 0%, rgba(56, 189, 248, 0.18), transparent 60%), radial-gradient(1000px 500px at 0% 100%, rgba(20, 115, 230, 0.18), transparent 60%), linear-gradient(160deg, #050D1F 0%, #071126 60%, #0B1A33 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .ctd-cta::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
        background-size: 64px 64px;
        mask-image: radial-gradient(900px 460px at 50% 50%, #000, transparent 70%);
        -webkit-mask-image: radial-gradient(900px 460px at 50% 50%, #000, transparent 70%);
        opacity: 0.40;
        pointer-events: none;
    }

    /* top hairline accent */
    .ctd-cta::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.32), transparent);
    }

.ctd-cta__grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ctd-cta__copy h2 {
    color: #fff;
    font-size: clamp(1.9rem, 2.9vw, 2.45rem);
    margin-bottom: 16px;
    letter-spacing: -0.022em;
    line-height: 1.12;
}

.ctd-cta__lead {
    color: rgba(230, 236, 245, 0.82);
    font-size: 1.06rem;
    line-height: 1.62;
    margin: 0 0 26px;
    max-width: 480px;
}

.ctd-cta__points {
    margin-top: 0;
}

    .ctd-cta__points li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
        color: rgba(230, 236, 245, 0.95);
        font-size: 0.96rem;
    }

        .ctd-cta__points li::before {
            content: "";
            flex: 0 0 16px;
            height: 16px;
            margin-top: 3px;
            border-radius: 5px;
            background: linear-gradient(135deg, #1473E6, #38BDF8);
            box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
            position: relative;
        }

/* form panel */
.ctd-form {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(14px);
    box-shadow: 0 40px 90px -32px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(56, 189, 248, 0.06);
    position: relative;
}

    /* gradient hairline along top edge */
    .ctd-form::before {
        content: "";
        position: absolute;
        top: 0;
        left: 14%;
        right: 14%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.55), transparent);
    }

.ctd-form__title {
    font-size: 1.12rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
    letter-spacing: -0.005em;
}

.ctd-form__sub {
    color: rgba(147, 164, 191, 0.95);
    margin: 0 0 22px;
    font-size: 0.9rem;
}

.ctd-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ctd-form__field {
    margin-bottom: 14px;
    position: relative;
}

.ctd-form label {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(147, 164, 191, 0.95);
    margin-bottom: 7px;
    font-weight: 700;
}

.ctd-form input,
.ctd-form select,
.ctd-form textarea {
    width: 100%;
    padding: 13px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: #fff;
    font-family: var(--ctd-font);
    font-size: 0.95rem;
    transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
    outline: none;
}

    .ctd-form input::placeholder,
    .ctd-form textarea::placeholder {
        color: rgba(255, 255, 255, 0.42);
    }

    .ctd-form input:hover,
    .ctd-form select:hover,
    .ctd-form textarea:hover {
        border-color: rgba(255, 255, 255, 0.22);
    }

    .ctd-form input:focus,
    .ctd-form select:focus,
    .ctd-form textarea:focus {
        border-color: var(--ctd-cyan);
        background: rgba(255, 255, 255, 0.07);
        box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
    }

/* Submit button inside form gets bolder treatment */
.ctd-form .ctd-btn--primary {
    width: 100%;
    padding: 16px 22px;
    margin-top: 4px;
    font-size: 1rem;
}

.ctd-form select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--ctd-cyan) 50%), linear-gradient(135deg, var(--ctd-cyan) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

.ctd-form select option {
    background: #0B1A33;
    color: #fff;
}

.ctd-form textarea {
    resize: vertical;
    min-height: 96px;
}

.ctd-form__note {
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--ctd-text-on-dark-mute);
    line-height: 1.5;
}

.ctd-form__msg {
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 0.85rem;
    display: none;
}

    .ctd-form__msg.is-success {
        background: rgba(34, 197, 94, 0.12);
        color: #86EFAC;
        border: 1px solid rgba(34, 197, 94, 0.30);
        display: block;
    }

    .ctd-form__msg.is-error {
        background: rgba(239, 68, 68, 0.12);
        color: #FCA5A5;
        border: 1px solid rgba(239, 68, 68, 0.30);
        display: block;
    }

/* =============================================================
   PREMIUM HEADER NAV — only when body has .ctd-premium-shell
   Legacy _Header.cshtml renders three rows inside <header.main-header>:
     1. .header-top    — contact/social strip (HIDE on premium)
     2. .header-upper  — logo + nav + CTA   (SHOW as the single header)
     3. .sticky-header — legacy scroll clone (HIDE on premium)
   We hide rows 1 and 3, then make row 2 the single sticky premium header.
   ============================================================= */

/* Hide legacy contact/social strip + sticky clone — they cause the
   stacked-headers effect on premium pages. */
.ctd-premium-shell .main-header.header-style-one .header-top,
.ctd-premium-shell .main-header.header-style-one .sticky-header {
    display: none !important;
}

/* Header itself becomes the sticky premium bar */
.ctd-premium-shell .main-header.header-style-one {
    background: rgba(7, 17, 38, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: none !important;
}

/* The visible upper row — single, compact, vertically centred */
.ctd-premium-shell .header-upper {
    background: transparent;
    box-shadow: none !important;
    padding: 0;
}

    .ctd-premium-shell .header-upper > .auto-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        min-height: 76px;
    }

.ctd-premium-shell .header-upper .logo-box,
.ctd-premium-shell .header-upper .logo-box .logo {
    margin: 0;
    padding: 0;
    float: none;
    display: flex;
    align-items: center;
}

.ctd-premium-shell .header-upper .logo-box .logo img {
    height: 38px;
    width: auto;
    display: block;
}

.ctd-premium-shell .header-upper .nav-outer {
    display: flex;
    align-items: center;
    gap: 18px;
    float: none;
    margin: 0;
}

.ctd-premium-shell .header-upper .main-menu {
    margin: 0;
    padding: 0;
}

.ctd-premium-shell .main-menu .navigation {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ctd-premium-shell .main-menu .navigation > li {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.ctd-premium-shell .main-menu .navigation > li > a {
    color: rgba(230, 236, 245, 0.92) !important;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    padding: 26px 14px !important;
    line-height: 1;
    transition: color 0.18s ease;
}

    .ctd-premium-shell .main-menu .navigation > li > a:hover,
    .ctd-premium-shell .main-menu .navigation > li.current > a,
    .ctd-premium-shell .main-menu .navigation > li:hover > a {
        color: var(--ctd-cyan) !important;
    }

.ctd-premium-shell .header-upper .outer-box {
    margin: 0;
    padding: 0;
    float: none;
    display: flex;
    align-items: center;
}

.ctd-premium-shell .header-upper .btn-box {
    margin: 0;
    padding: 0;
}

.ctd-premium-shell .theme-btn.btn-style-one {
    background: linear-gradient(135deg, #1473E6, #38BDF8) !important;
    border-color: transparent !important;
    box-shadow: 0 12px 26px -10px rgba(20, 115, 230, 0.55) !important;
    border-radius: 11px !important;
    padding: 13px 22px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

    .ctd-premium-shell .theme-btn.btn-style-one .txt {
        font-size: 0.92rem !important;
        font-weight: 700 !important;
    }

/* Mobile menu toggle stays accessible inside the same single row */
.ctd-premium-shell .mobile-nav-toggler {
    color: var(--ctd-text-on-dark);
    font-size: 1.4rem;
    margin: 0;
    padding: 8px;
}

@media (max-width: 992px) {
    .ctd-premium-shell .header-upper > .auto-container {
        min-height: 64px;
    }

    .ctd-premium-shell .header-upper .logo-box .logo img {
        height: 34px;
    }
}

.ctd-premium-shell .scroll-to-top {
    background: linear-gradient(135deg, #1473E6, #38BDF8);
    color: #fff;
    border: none;
}

/* =============================================================
   PREMIUM FOOTER (global)
   ============================================================= */
.ctd-premium-footer {
    background: linear-gradient(180deg, #050D1F 0%, #02060F 100%);
    color: var(--ctd-text-on-dark);
    padding: 80px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

    /* gradient hairline along top */
    .ctd-premium-footer::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.40), transparent);
    }

.ctd-premium-footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    gap: 44px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ctd-premium-footer__brand img {
    width: 168px;
    margin-bottom: 16px;
}

.ctd-premium-footer__tag {
    font-size: 0.95rem;
    line-height: 1.72;
    color: rgba(168, 183, 207, 0.98);
    margin-bottom: 22px;
    max-width: 340px;
}

.ctd-premium-footer h5 {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ctd-cyan);
    margin: 0 0 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .ctd-premium-footer h5::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--ctd-cyan);
        box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
    }

.ctd-premium-footer ul li {
    margin-bottom: 12px;
}

.ctd-premium-footer ul li a {
    color: rgba(232, 238, 247, 0.86);
    font-size: 0.94rem;
    line-height: 1.5;
    transition: color 0.18s ease;
    position: relative;
    display: inline-block;
    padding-bottom: 1px;
}

    .ctd-premium-footer ul li a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        height: 1px;
        width: 0;
        background: var(--ctd-cyan);
        transition: width 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .ctd-premium-footer ul li a:hover {
        color: #fff;
    }

        .ctd-premium-footer ul li a:hover::after {
            width: 100%;
        }

.ctd-premium-footer__contact li {
    color: rgba(232, 238, 247, 0.86);
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 12px;
}

.ctd-premium-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    color: rgba(230, 236, 245, 0.64);
    font-size: 0.86rem;
    flex-wrap: wrap;
    gap: 12px;
}

.ctd-premium-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

    .ctd-premium-footer__social a {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.035);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: rgba(230, 236, 245, 0.88);
        transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
        font-size: 0.95rem;
    }

        .ctd-premium-footer__social a:hover {
            background: rgba(56, 189, 248, 0.10);
            border-color: rgba(56, 189, 248, 0.45);
            color: var(--ctd-cyan);
            transform: translateY(-2px);
        }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1080px) {
    .ctd-ind-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ctd-process__rail {
        grid-template-columns: repeat(2, 1fr);
    }

    .ctd-proof__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1080px) {
    .ctd-process__rail::before {
        display: none;
    }
}

@media (max-width: 960px) {
    .ctd-hero {
        padding: 96px 0 84px;
    }

    .ctd-hero__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .ctd-pillars {
        grid-template-columns: 1fr;
    }

    .ctd-pillars-section,
    .ctd-industries,
    .ctd-process,
    .ctd-proof,
    .ctd-cta {
        padding: 84px 0;
    }

    .ctd-cta__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ctd-premium-footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .ctd-premium-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .ctd-container {
        padding: 0 20px;
    }

    .ctd-hero {
        padding: 80px 0 64px;
    }

    .ctd-h1 {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }

    .ctd-pillars-section,
    .ctd-industries,
    .ctd-process,
    .ctd-proof,
    .ctd-cta {
        padding: 70px 0;
    }

    .ctd-ind-grid {
        grid-template-columns: 1fr;
    }

    .ctd-process__rail {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ctd-proof__grid {
        grid-template-columns: 1fr;
    }

    .ctd-form__row {
        grid-template-columns: 1fr;
    }

    .ctd-form {
        padding: 24px 20px;
    }

    .ctd-premium-footer__top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ctd-premium-footer {
        padding: 60px 0 24px;
    }

    .ctd-pillar,
    .ctd-process-step,
    .ctd-proof-card,
    .ctd-ind {
        padding: 26px 22px;
    }

    .ctd-btn--primary {
        padding: 14px 22px;
        font-size: 0.95rem;
    }

    .ctd-capstrip__label {
        border-right: none;
        padding-right: 0;
    }

    .ctd-capstrip__items {
        gap: 6px 18px;
    }
}

/* =============================================================
   INNER PAGES — shared primitives (heroes, sections, cards,
   blog grid, prose, portfolio, contact, admin polish).
   Scoped under .ctd-premium so it never bleeds.
   ============================================================= */

/* Compact inner-page hero (smaller than home .ctd-hero) */
.ctd-page-hero {
    position: relative;
    background: radial-gradient(900px 420px at 85% -10%, rgba(56, 189, 248, 0.14), transparent 60%), radial-gradient(700px 380px at 0% 110%, rgba(20, 115, 230, 0.16), transparent 60%), linear-gradient(180deg, #050D1F 0%, #071126 60%, #08152F 100%);
    color: #fff;
    padding: 84px 0 70px;
    overflow: hidden;
    isolation: isolate;
}

    .ctd-page-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
        background-size: 56px 56px;
        mask-image: radial-gradient(900px 420px at 50% 30%, #000, transparent 70%);
        -webkit-mask-image: radial-gradient(900px 420px at 50% 30%, #000, transparent 70%);
        opacity: 0.45;
        z-index: 0;
        pointer-events: none;
    }

.ctd-page-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.ctd-page-hero__title {
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 16px;
    max-width: 24ch;
}

    .ctd-page-hero__title .accent {
        background: linear-gradient(90deg, #38BDF8 0%, #1473E6 70%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.ctd-page-hero__sub {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ctd-text-on-dark-mute);
    max-width: 620px;
    margin: 0 0 22px;
}

.ctd-page-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.ctd-page-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

    .ctd-page-hero__chips li {
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--ctd-text-on-dark);
        padding: 6px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--ctd-line-dark-strong);
        letter-spacing: 0.02em;
    }

/* Generic light/dark sections */
.ctd-section {
    padding: 80px 0;
    background: #fff;
}

.ctd-section--soft {
    background: var(--ctd-bg-soft);
}

.ctd-section--dark {
    background: linear-gradient(180deg, #050D1F 0%, #071126 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .ctd-section--dark::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
        background-size: 64px 64px;
        mask-image: radial-gradient(700px 360px at 50% 0%, #000, transparent 70%);
        -webkit-mask-image: radial-gradient(700px 360px at 50% 0%, #000, transparent 70%);
        opacity: 0.4;
        pointer-events: none;
    }

    .ctd-section--dark .ctd-h2,
    .ctd-section--dark h2,
    .ctd-section--dark h3 {
        color: #fff;
    }

.ctd-section__head {
    max-width: 760px;
    margin: 0 0 36px;
}

    .ctd-section__head--center {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .ctd-section__head .ctd-h2 {
        margin-bottom: 10px;
    }

    .ctd-section__head .ctd-lead {
        max-width: 720px;
    }

/* Grid utilities */
.ctd-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    position: relative;
    z-index: 1;
}

.ctd-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    position: relative;
    z-index: 1;
}

.ctd-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    position: relative;
    z-index: 1;
}

/* Generic card */
.ctd-card {
    padding: 26px 24px;
    border-radius: var(--ctd-radius-lg);
    background: #fff;
    border: 1px solid var(--ctd-line);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    display: flex;
    flex-direction: column;
}

    .ctd-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--ctd-shadow-card);
        border-color: rgba(20, 115, 230, 0.18);
    }

.ctd-card__num {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--ctd-blue);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ctd-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ctd-ink);
    margin: 0 0 8px;
    line-height: 1.3;
}

.ctd-card__text {
    font-size: 0.92rem;
    color: #4A5670;
    line-height: 1.55;
    margin: 0;
}

/* Dark variant of card (for dark sections) */
.ctd-card--dark {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--ctd-line-dark-strong);
    backdrop-filter: blur(10px);
    color: var(--ctd-text-on-dark);
}

    .ctd-card--dark:hover {
        border-color: rgba(56, 189, 248, 0.36);
    }

    .ctd-card--dark .ctd-card__title {
        color: #fff;
    }

    .ctd-card--dark .ctd-card__text {
        color: var(--ctd-text-on-dark-mute);
    }

/* Two-column problem/solution layout */
.ctd-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.ctd-split__copy .ctd-h2 {
    margin-bottom: 14px;
}

.ctd-split__copy .ctd-lead {
    margin-bottom: 18px;
}

/* Bullet list (used for "What we build" type sections) */
.ctd-checklist {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

    .ctd-checklist li {
        position: relative;
        padding: 12px 14px 12px 40px;
        background: #fff;
        border: 1px solid var(--ctd-line);
        border-radius: var(--ctd-radius-md);
        font-size: 0.92rem;
        line-height: 1.5;
        color: var(--ctd-ink);
    }

        .ctd-checklist li::before {
            content: "";
            position: absolute;
            left: 14px;
            top: 18px;
            width: 14px;
            height: 14px;
            border-radius: 4px;
            background: linear-gradient(135deg, #1473E6, #38BDF8);
            box-shadow: 0 4px 10px -4px rgba(20, 115, 230, 0.5);
        }

.ctd-section--dark .ctd-checklist li {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--ctd-line-dark-strong);
    color: var(--ctd-text-on-dark);
}

/* Compact narrow CTA inside content */
.ctd-callout {
    background: linear-gradient(135deg, rgba(20, 115, 230, 0.08), rgba(56, 189, 248, 0.05));
    border: 1px solid rgba(20, 115, 230, 0.18);
    border-radius: var(--ctd-radius-lg);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.ctd-callout__copy {
    flex: 1 1 320px;
}

.ctd-callout__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ctd-ink);
    margin: 0 0 6px;
}

.ctd-callout__text {
    font-size: 0.9rem;
    color: #4A5670;
    margin: 0;
}

.ctd-section--dark .ctd-callout {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(20, 115, 230, 0.05));
    border-color: var(--ctd-line-dark-strong);
}

    .ctd-section--dark .ctd-callout .ctd-callout__title {
        color: #fff;
    }

    .ctd-section--dark .ctd-callout .ctd-callout__text {
        color: var(--ctd-text-on-dark-mute);
    }

/* =============================================================
   PORTFOLIO — premium cards with problem / build / value
   ============================================================= */
.ctd-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.ctd-portfolio-card {
    background: #fff;
    border: 1px solid var(--ctd-line);
    border-radius: var(--ctd-radius-lg);
    padding: 28px 26px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

    .ctd-portfolio-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--ctd-shadow-card);
        border-color: rgba(20, 115, 230, 0.18);
    }

.ctd-portfolio-card__tag {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ctd-blue);
    background: rgba(20, 115, 230, 0.08);
    border: 1px solid rgba(20, 115, 230, 0.18);
    margin-bottom: 12px;
}

.ctd-portfolio-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ctd-ink);
    margin: 0 0 14px;
    line-height: 1.3;
}

.ctd-portfolio-card__row {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #4A5670;
    line-height: 1.55;
}

    .ctd-portfolio-card__row:last-child {
        margin-bottom: 0;
    }

    .ctd-portfolio-card__row strong {
        display: inline-block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.10em;
        color: var(--ctd-blue);
        margin-right: 8px;
        min-width: 60px;
    }

/* =============================================================
   CONTACT — premium two-column
   ============================================================= */
.ctd-contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 50px;
    align-items: start;
}

.ctd-contact-info__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
}

    .ctd-contact-info__list li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--ctd-line-dark-strong);
        border-radius: var(--ctd-radius-md);
        color: var(--ctd-text-on-dark);
        font-size: 0.92rem;
        line-height: 1.5;
    }

        .ctd-contact-info__list li::before {
            content: "";
            flex: 0 0 14px;
            height: 14px;
            margin-top: 4px;
            border-radius: 4px;
            background: linear-gradient(135deg, #1473E6, #38BDF8);
        }

/* =============================================================
   BLOG — premium insights hub
   ============================================================= */
.ctd-blog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 30px;
}

.ctd-blog-toolbar__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ctd-mute);
    margin-right: 8px;
}

.ctd-cat-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ctd-line);
    color: var(--ctd-ink);
    font-size: 0.82rem;
    font-weight: 600;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
    line-height: 1.2;
}

    .ctd-cat-chip:hover {
        border-color: rgba(20, 115, 230, 0.32);
        color: var(--ctd-blue);
    }

    .ctd-cat-chip.is-active {
        background: linear-gradient(135deg, #1473E6, #38BDF8);
        border-color: transparent;
        color: #fff;
        box-shadow: 0 8px 18px -10px rgba(20, 115, 230, 0.5);
    }

/* Featured post */
.ctd-blog-featured {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    background: #fff;
    border: 1px solid var(--ctd-line);
    border-radius: var(--ctd-radius-lg);
    padding: 18px;
    margin-bottom: 32px;
    align-items: stretch;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

    .ctd-blog-featured:hover {
        border-color: rgba(20, 115, 230, 0.18);
        box-shadow: var(--ctd-shadow-card);
    }

.ctd-blog-featured__media {
    position: relative;
    overflow: hidden;
    border-radius: var(--ctd-radius-md);
    aspect-ratio: 16 / 10;
    background: var(--ctd-bg-soft);
}

    .ctd-blog-featured__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

.ctd-blog-featured:hover .ctd-blog-featured__media img {
    transform: scale(1.03);
}

.ctd-blog-featured__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 12px 14px 6px;
}

.ctd-blog-featured__tag {
    align-self: flex-start;
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ctd-blue);
    background: rgba(20, 115, 230, 0.08);
    border: 1px solid rgba(20, 115, 230, 0.18);
    margin-bottom: 14px;
}

.ctd-blog-featured__title {
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    line-height: 1.2;
    font-weight: 800;
    color: var(--ctd-ink);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.ctd-blog-featured__excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4A5670;
    margin: 0 0 18px;
}

.ctd-blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    font-size: 0.78rem;
    color: var(--ctd-mute);
    margin-bottom: 14px;
}

    .ctd-blog-meta time {
        font-weight: 600;
        letter-spacing: 0.02em;
    }

    .ctd-blog-meta .dot {
        opacity: 0.45;
    }

/* Post grid */
.ctd-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 36px;
}

.ctd-blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ctd-line);
    border-radius: var(--ctd-radius-lg);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

    .ctd-blog-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--ctd-shadow-card);
        border-color: rgba(20, 115, 230, 0.18);
    }

.ctd-blog-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ctd-bg-soft);
}

    .ctd-blog-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

.ctd-blog-card:hover .ctd-blog-card__media img {
    transform: scale(1.04);
}

.ctd-blog-card__media .ctd-blog-card__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: #fff;
    background: rgba(7, 17, 38, 0.78);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.ctd-blog-card__body {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ctd-blog-card__title {
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--ctd-ink);
    margin: 0 0 10px;
    letter-spacing: -0.005em;
}

    .ctd-blog-card__title a {
        color: inherit;
    }

        .ctd-blog-card__title a:hover {
            color: var(--ctd-blue);
        }

.ctd-blog-card__excerpt {
    font-size: 0.88rem;
    color: #4A5670;
    line-height: 1.55;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ctd-blog-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--ctd-line-soft);
    font-size: 0.78rem;
    color: var(--ctd-mute);
}

/* Empty state */
.ctd-empty {
    text-align: center;
    padding: 60px 24px;
    border: 1px dashed var(--ctd-line);
    border-radius: var(--ctd-radius-lg);
    background: var(--ctd-bg-soft);
}

.ctd-empty__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ctd-ink);
    margin: 0 0 6px;
}

.ctd-empty__text {
    font-size: 0.92rem;
    color: var(--ctd-mute);
    margin: 0 auto 18px;
    max-width: 420px;
    line-height: 1.5;
}

/* Sidebar (categories / search) */
.ctd-blog-aside {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: sticky;
    top: 100px;
}

.ctd-aside-block {
    padding: 22px 22px;
    background: #fff;
    border: 1px solid var(--ctd-line);
    border-radius: var(--ctd-radius-lg);
}

.ctd-aside-block__title {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ctd-blue);
    font-weight: 700;
    margin: 0 0 14px;
}

.ctd-aside-block__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .ctd-aside-block__list li a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 9px 12px;
        border-radius: var(--ctd-radius-sm);
        color: var(--ctd-ink);
        font-size: 0.9rem;
        font-weight: 500;
        transition: background 0.18s ease, color 0.18s ease;
    }

        .ctd-aside-block__list li a:hover {
            background: rgba(20, 115, 230, 0.06);
            color: var(--ctd-blue);
        }

    .ctd-aside-block__list li.is-active a {
        background: linear-gradient(135deg, rgba(20, 115, 230, 0.10), rgba(56, 189, 248, 0.08));
        color: var(--ctd-blue);
        font-weight: 700;
    }

.ctd-aside-search {
    display: flex;
    gap: 8px;
}

    .ctd-aside-search input {
        flex: 1;
        padding: 10px 13px;
        border: 1px solid var(--ctd-line);
        border-radius: var(--ctd-radius-sm);
        font-family: var(--ctd-font);
        font-size: 0.9rem;
        outline: none;
        transition: border-color 0.18s ease;
    }

        .ctd-aside-search input:focus {
            border-color: var(--ctd-blue);
        }

    .ctd-aside-search button {
        padding: 0 14px;
        background: linear-gradient(135deg, #1473E6, #38BDF8);
        color: #fff;
        border: none;
        border-radius: var(--ctd-radius-sm);
        cursor: pointer;
        font-size: 0.82rem;
        font-weight: 600;
    }

/* Blog wrapper layout (content + aside) */
.ctd-blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 36px;
}

/* =============================================================
   BLOG DETAIL — readable narrow column with prose
   ============================================================= */
.ctd-post-hero {
    background: linear-gradient(180deg, #050D1F 0%, #071126 100%);
    color: #fff;
    padding: 70px 0 60px;
    position: relative;
    overflow: hidden;
}

    .ctd-post-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
        background-size: 56px 56px;
        mask-image: radial-gradient(700px 360px at 50% 30%, #000, transparent 70%);
        -webkit-mask-image: radial-gradient(700px 360px at 50% 30%, #000, transparent 70%);
        opacity: 0.4;
        pointer-events: none;
    }

.ctd-post-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.ctd-post-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ctd-cyan);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

    .ctd-post-hero__back:hover {
        color: var(--ctd-cyan-soft);
    }

.ctd-post-hero__title {
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #fff;
    margin: 0 0 16px;
}

.ctd-post-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--ctd-text-on-dark-mute);
    font-size: 0.85rem;
}

    .ctd-post-hero__meta .dot {
        opacity: 0.4;
    }

.ctd-post-body {
    background: #fff;
    padding: 70px 0 80px;
}

.ctd-post-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.ctd-post-cover {
    width: 100%;
    border-radius: var(--ctd-radius-lg);
    margin: -130px 0 36px;
    box-shadow: 0 24px 60px -28px rgba(7, 17, 38, 0.45);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--ctd-bg-soft);
    display: block;
}

/* Lead paragraph that sits between cover and prose body. */
.ctd-post-lead {
    margin: 0 0 24px;
}

.ctd-prose {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #2C3A55;
}

    .ctd-prose > * + * {
        margin-top: 1.1em;
    }

    .ctd-prose h2 {
        font-size: 1.5rem;
        font-weight: 800;
        line-height: 1.25;
        color: var(--ctd-ink);
        margin-top: 1.8em;
        margin-bottom: 0.6em;
        letter-spacing: -0.01em;
    }

    .ctd-prose h3 {
        font-size: 1.18rem;
        font-weight: 700;
        line-height: 1.3;
        color: var(--ctd-ink);
        margin-top: 1.6em;
        margin-bottom: 0.5em;
    }

    .ctd-prose p {
        margin: 0;
    }

    .ctd-prose ul,
    .ctd-prose ol {
        list-style: revert;
        padding-left: 1.2em;
    }

        .ctd-prose ul li,
        .ctd-prose ol li {
            margin-bottom: 0.4em;
        }

    .ctd-prose a {
        color: var(--ctd-blue);
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 3px;
    }

        .ctd-prose a:hover {
            color: var(--ctd-blue-2);
        }

    .ctd-prose blockquote {
        border-left: 3px solid var(--ctd-blue);
        background: var(--ctd-bg-soft);
        padding: 14px 18px;
        margin: 1.4em 0;
        border-radius: 0 8px 8px 0;
        color: var(--ctd-ink-2);
        font-style: italic;
    }

    .ctd-prose img {
        max-width: 100%;
        border-radius: var(--ctd-radius-md);
        margin: 1.4em 0;
    }

    .ctd-prose code {
        background: rgba(20, 115, 230, 0.08);
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 0.9em;
        color: var(--ctd-blue);
    }

    .ctd-prose pre {
        background: var(--ctd-ink);
        color: #E6ECF5;
        padding: 16px 18px;
        border-radius: var(--ctd-radius-md);
        overflow-x: auto;
        font-size: 0.88rem;
    }

        .ctd-prose pre code {
            background: transparent;
            padding: 0;
            color: inherit;
        }

/* Tail CTA inside blog detail */
.ctd-post-cta {
    margin-top: 50px;
    padding: 28px 28px;
    background: linear-gradient(135deg, rgba(20, 115, 230, 0.06), rgba(56, 189, 248, 0.04));
    border: 1px solid rgba(20, 115, 230, 0.18);
    border-radius: var(--ctd-radius-lg);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
}

.ctd-post-cta__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ctd-ink);
    margin: 0 0 4px;
}

.ctd-post-cta__text {
    font-size: 0.9rem;
    color: #4A5670;
    margin: 0;
}

/* =============================================================
   ADMIN POLISH — light, scoped under .ctd-admin
   ============================================================= */
.ctd-admin {
    padding: 32px 0 60px;
    background: var(--ctd-bg-soft);
    min-height: 60vh;
}

.ctd-admin__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.ctd-admin__head h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ctd-ink);
    margin: 0;
    letter-spacing: -0.01em;
}

.ctd-admin-card {
    background: #fff;
    border: 1px solid var(--ctd-line);
    border-radius: var(--ctd-radius-lg);
    padding: 22px;
    box-shadow: var(--ctd-shadow-card);
}

.ctd-admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.92rem;
    color: var(--ctd-ink);
}

    .ctd-admin-table thead th {
        text-align: left;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.10em;
        font-weight: 700;
        color: var(--ctd-mute);
        padding: 10px 12px;
        border-bottom: 1px solid var(--ctd-line);
        background: var(--ctd-bg-soft-2);
    }

    .ctd-admin-table tbody td {
        padding: 12px;
        border-bottom: 1px solid var(--ctd-line-soft);
        vertical-align: middle;
    }

    .ctd-admin-table tbody tr:hover {
        background: rgba(20, 115, 230, 0.03);
    }

    .ctd-admin-table img.ctd-admin-thumb {
        width: 56px;
        height: 56px;
        border-radius: 8px;
        object-fit: cover;
        border: 1px solid var(--ctd-line);
    }

.ctd-admin-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

    .ctd-admin-pill--published {
        background: rgba(34, 197, 94, 0.10);
        color: #15803D;
        border: 1px solid rgba(34, 197, 94, 0.30);
    }

    .ctd-admin-pill--draft {
        background: rgba(100, 116, 139, 0.10);
        color: var(--ctd-mute);
        border: 1px solid rgba(100, 116, 139, 0.30);
    }

.ctd-admin-actions {
    display: inline-flex;
    gap: 8px;
}

    .ctd-admin-actions a,
    .ctd-admin-actions button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        border: 1px solid var(--ctd-line);
        background: #fff;
        color: var(--ctd-ink);
        font-size: 0.85rem;
        transition: border-color 0.15s, color 0.15s, background 0.15s;
    }

        .ctd-admin-actions a:hover {
            border-color: rgba(20, 115, 230, 0.32);
            color: var(--ctd-blue);
            background: rgba(20, 115, 230, 0.04);
        }

        .ctd-admin-actions a.is-danger:hover {
            border-color: rgba(239, 68, 68, 0.36);
            color: #DC2626;
            background: rgba(239, 68, 68, 0.06);
        }

/* Light form (admin) */
.ctd-form-light {
    display: grid;
    gap: 14px;
}

.ctd-form-light label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--ctd-mute);
    margin-bottom: 6px;
    font-weight: 700;
}

.ctd-form-light input,
.ctd-form-light select,
.ctd-form-light textarea {
    width: 100%;
    padding: 11px 13px;
    background: #fff;
    border: 1px solid var(--ctd-line);
    border-radius: var(--ctd-radius-sm);
    color: var(--ctd-ink);
    font-family: var(--ctd-font);
    font-size: 0.94rem;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
}

    .ctd-form-light input:focus,
    .ctd-form-light select:focus,
    .ctd-form-light textarea:focus {
        border-color: var(--ctd-blue);
        box-shadow: 0 0 0 4px rgba(20, 115, 230, 0.10);
    }

.ctd-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 26px;
}

    .ctd-pagination a,
    .ctd-pagination span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        height: 36px;
        padding: 0 12px;
        border-radius: 9px;
        border: 1px solid var(--ctd-line);
        background: #fff;
        color: var(--ctd-ink);
        font-size: 0.86rem;
        font-weight: 600;
        transition: border-color 0.15s, color 0.15s, background 0.15s;
    }

        .ctd-pagination a:hover {
            border-color: rgba(20, 115, 230, 0.32);
            color: var(--ctd-blue);
        }

    .ctd-pagination .is-active {
        background: linear-gradient(135deg, #1473E6, #38BDF8);
        border-color: transparent;
        color: #fff;
    }

/* =============================================================
   INNER PAGES RESPONSIVE
   ============================================================= */
@media (max-width: 1080px) {
    .ctd-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ctd-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ctd-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ctd-blog-layout {
        grid-template-columns: 1fr;
    }

    .ctd-blog-aside {
        position: static;
    }

    .ctd-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .ctd-blog-featured {
        grid-template-columns: 1fr;
    }

        .ctd-blog-featured__media {
            aspect-ratio: 16 / 9;
        }

    .ctd-contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .ctd-page-hero {
        padding: 60px 0 50px;
    }

    .ctd-section {
        padding: 60px 0;
    }

    .ctd-grid-3,
    .ctd-grid-2,
    .ctd-blog-grid {
        grid-template-columns: 1fr;
    }

    .ctd-split {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ctd-post-cover {
        margin-top: -90px;
    }

    .ctd-post-cta {
        grid-template-columns: 1fr;
    }

    .ctd-callout {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =============================================================
   PORTFOLIO / SELECTED WORK
   ============================================================= */

/* ---- Work hero ---- */
.ctd-work-hero {
    position: relative;
    padding: 110px 0 70px;
    background: radial-gradient(1100px 540px at 80% -10%, rgba(56, 189, 248, 0.16), transparent 60%), radial-gradient(900px 500px at 0% 110%, rgba(20, 115, 230, 0.18), transparent 60%), linear-gradient(180deg, #050D1F 0%, #071126 60%, #08152F 100%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

    .ctd-work-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
        background-size: 56px 56px;
        mask-image: radial-gradient(900px 500px at 50% 30%, #000, transparent 70%);
        -webkit-mask-image: radial-gradient(900px 500px at 50% 30%, #000, transparent 70%);
        opacity: 0.40;
        z-index: 0;
        pointer-events: none;
    }

.ctd-work-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
}

.ctd-work-hero h1.ctd-h1 {
    margin-bottom: 18px;
    max-width: 18ch;
}

.ctd-work-hero__sub {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ctd-text-on-dark-mute);
    max-width: 680px;
    margin: 0 0 28px;
}

.ctd-work-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.ctd-work-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

    .ctd-work-hero__chips li {
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--ctd-text-on-dark);
        padding: 6px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--ctd-line-dark-strong);
        letter-spacing: 0.02em;
    }

/* ---- Featured projects ---- */
.ctd-work-featured {
    padding: 80px 0 30px;
    background: #fff;
}

.ctd-work-featured__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-auto-rows: 1fr;
    gap: 18px;
}

.ctd-feat-card {
    position: relative;
    border-radius: var(--ctd-radius-lg);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ctd-line);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    display: flex;
    flex-direction: column;
}

    .ctd-feat-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--ctd-shadow-card);
        border-color: rgba(20, 115, 230, 0.22);
    }

.ctd-feat-card--lead {
    grid-row: 1 / span 2;
}

.ctd-feat-card__media {
    aspect-ratio: 16 / 10;
    background: #0B1A33;
    overflow: hidden;
    position: relative;
}

    .ctd-feat-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.ctd-feat-card:hover .ctd-feat-card__media img {
    transform: scale(1.04);
}

.ctd-feat-card--lead .ctd-feat-card__media {
    aspect-ratio: 16 / 11;
}

.ctd-feat-card__body {
    padding: 22px 26px 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ctd-feat-card__cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ctd-blue);
    font-weight: 700;
}

.ctd-feat-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--ctd-ink);
    line-height: 1.3;
}

.ctd-feat-card--lead .ctd-feat-card__title {
    font-size: 1.45rem;
}

.ctd-feat-card__row {
    font-size: 0.9rem;
    color: #4A5670;
    line-height: 1.55;
    margin: 0;
}

    .ctd-feat-card__row strong {
        color: var(--ctd-blue);
        font-weight: 700;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.10em;
        margin-right: 4px;
    }

.ctd-feat-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ctd-blue);
    margin-top: 8px;
}

    .ctd-feat-card__cta::after {
        content: "→";
        transition: transform 0.18s ease;
    }

.ctd-feat-card:hover .ctd-feat-card__cta::after {
    transform: translateX(4px);
}

.ctd-feat-card a.ctd-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    text-indent: -9999px;
    overflow: hidden;
}

/* ---- Filter pills ---- */
.ctd-work-grid-section {
    padding: 60px 0 90px;
    background: var(--ctd-bg-soft);
}

.ctd-work-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
}

    .ctd-work-filter li {
        padding: 9px 16px;
        border: 1px solid var(--ctd-line);
        background: #fff;
        border-radius: 999px;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--ctd-ink-2);
        cursor: pointer;
        transition: border-color 0.18s, color 0.18s, background 0.18s, box-shadow 0.18s;
        list-style: none;
        user-select: none;
    }

        .ctd-work-filter li:hover {
            border-color: var(--ctd-blue);
            color: var(--ctd-blue);
        }

        .ctd-work-filter li.active,
        .ctd-work-filter li.filter.active,
        .ctd-work-filter li.mixitup-control-active {
            background: linear-gradient(135deg, #1473E6, #38BDF8);
            color: #fff;
            border-color: transparent;
            box-shadow: 0 8px 18px -8px rgba(20, 115, 230, 0.45);
        }

/* ---- Work grid ---- */
.ctd-work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.ctd-work-card {
    position: relative;
    background: #fff;
    border-radius: var(--ctd-radius-lg);
    border: 1px solid var(--ctd-line);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    height: 100%;
}

    .ctd-work-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--ctd-shadow-card);
        border-color: rgba(20, 115, 230, 0.20);
    }

.ctd-work-card__media {
    aspect-ratio: 4 / 3;
    background: #0B1A33;
    position: relative;
    overflow: hidden;
}

    .ctd-work-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
        display: block;
    }

.ctd-work-card:hover .ctd-work-card__media img {
    transform: scale(1.05);
}

.ctd-work-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(7, 17, 38, 0.45));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ctd-work-card:hover .ctd-work-card__media::after {
    opacity: 1;
}

.ctd-work-card__body {
    padding: 18px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ctd-work-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ctd-work-card__cat {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ctd-blue);
    font-weight: 700;
}

.ctd-work-card__capability {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    background: rgba(20, 115, 230, 0.06);
    color: var(--ctd-blue);
    border: 1px solid rgba(20, 115, 230, 0.18);
    border-radius: 999px;
    white-space: nowrap;
}

.ctd-work-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 4px 0 0;
    color: var(--ctd-ink);
    line-height: 1.3;
}

.ctd-work-card__value {
    font-size: 0.86rem;
    color: #4A5670;
    line-height: 1.5;
    margin: 0;
}

.ctd-work-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ctd-blue);
    padding-top: 6px;
}

    .ctd-work-card__cta::after {
        content: "→";
        transition: transform 0.18s ease;
    }

.ctd-work-card:hover .ctd-work-card__cta::after {
    transform: translateX(4px);
}

.ctd-work-card a.ctd-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    text-indent: -9999px;
    overflow: hidden;
}

/* ---- Work CTA ---- */
.ctd-work-cta {
    padding: 90px 0;
    background: radial-gradient(800px 380px at 100% 0%, rgba(56, 189, 248, 0.16), transparent 60%), radial-gradient(900px 460px at 0% 100%, rgba(20, 115, 230, 0.16), transparent 60%), linear-gradient(160deg, #050D1F 0%, #071126 60%, #0B1A33 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .ctd-work-cta::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
        background-size: 64px 64px;
        mask-image: radial-gradient(800px 420px at 50% 50%, #000, transparent 70%);
        -webkit-mask-image: radial-gradient(800px 420px at 50% 50%, #000, transparent 70%);
        opacity: 0.35;
        pointer-events: none;
    }

.ctd-work-cta__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.ctd-work-cta h2 {
    color: #fff;
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    margin: 0 0 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.ctd-work-cta__lead {
    color: var(--ctd-text-on-dark-mute);
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* =============================================================
   CASE STUDY DETAIL
   ============================================================= */

.ctd-case-page {
    background: #fff;
}

/* hero */
.ctd-case-hero {
    position: relative;
    padding: 90px 0 50px;
    background: radial-gradient(900px 460px at 80% -10%, rgba(56, 189, 248, 0.14), transparent 60%), radial-gradient(800px 460px at 0% 100%, rgba(20, 115, 230, 0.16), transparent 60%), linear-gradient(180deg, #050D1F 0%, #071126 60%, #08152F 100%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

    .ctd-case-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
        background-size: 56px 56px;
        mask-image: radial-gradient(900px 500px at 50% 30%, #000, transparent 70%);
        -webkit-mask-image: radial-gradient(900px 500px at 50% 30%, #000, transparent 70%);
        opacity: 0.4;
        z-index: 0;
        pointer-events: none;
    }

.ctd-case-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 0 auto;
}

.ctd-case-hero__crumbs {
    font-size: 0.8rem;
    color: var(--ctd-text-on-dark-mute);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

    .ctd-case-hero__crumbs a {
        color: var(--ctd-cyan);
    }

        .ctd-case-hero__crumbs a:hover {
            color: var(--ctd-cyan-soft);
        }

    .ctd-case-hero__crumbs span {
        opacity: 0.6;
        margin: 0 6px;
    }

.ctd-case-hero__tag {
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ctd-cyan);
    background: rgba(56, 189, 248, 0.10);
    border: 1px solid rgba(56, 189, 248, 0.30);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.ctd-case-hero h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 16px;
    max-width: 26ch;
}

.ctd-case-hero__sub {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ctd-text-on-dark-mute);
    max-width: 680px;
    margin: 0 0 28px;
}

.ctd-case-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.ctd-case-hero__media {
    margin-top: 24px;
    border-radius: var(--ctd-radius-lg);
    overflow: hidden;
    border: 1px solid var(--ctd-line-dark-strong);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(56, 189, 248, 0.08);
    background: #0B1A33;
    position: relative;
}

    .ctd-case-hero__media img {
        width: 100%;
        height: auto;
        display: block;
    }

/* meta strip */
.ctd-case-meta {
    background: linear-gradient(180deg, #08152F, #050D1F);
    border-top: 1px solid var(--ctd-line-dark);
    border-bottom: 1px solid var(--ctd-line-dark);
    padding: 24px 0;
    color: #fff;
}

.ctd-case-meta__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 28px;
}

.ctd-case-meta__item h4 {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ctd-cyan);
    margin: 0 0 4px;
    font-weight: 700;
}

.ctd-case-meta__item p {
    font-size: 0.92rem;
    color: var(--ctd-text-on-dark);
    margin: 0;
    line-height: 1.4;
}

/* body sections */
.ctd-case-body {
    padding: 80px 0 80px;
    background: #fff;
}

.ctd-case-body__inner {
    max-width: 880px;
    margin: 0 auto;
}

.ctd-case-section {
    margin-bottom: 56px;
}

    .ctd-case-section:last-child {
        margin-bottom: 0;
    }

.ctd-case-section__head {
    margin-bottom: 22px;
    max-width: 720px;
}

.ctd-case-section__eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ctd-blue);
    font-weight: 700;
    margin-bottom: 10px;
}

.ctd-case-section__title {
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ctd-ink);
    margin: 0;
    line-height: 1.22;
}

.ctd-case-section p {
    font-size: 1rem;
    line-height: 1.65;
    color: #4A5670;
    margin: 0 0 14px;
    max-width: 720px;
}

    .ctd-case-section p:last-child {
        margin-bottom: 0;
    }

/* premium bullet list */
.ctd-case-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 760px;
}

    .ctd-case-list li {
        position: relative;
        padding-left: 28px;
        font-size: 0.96rem;
        line-height: 1.55;
        color: var(--ctd-ink-2);
    }

        .ctd-case-list li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 6px;
            width: 14px;
            height: 14px;
            border-radius: 4px;
            background: linear-gradient(135deg, rgba(20, 115, 230, 0.20), rgba(56, 189, 248, 0.10));
            border: 1px solid rgba(20, 115, 230, 0.30);
        }

        .ctd-case-list li::after {
            content: "";
            position: absolute;
            left: 4px;
            top: 10px;
            width: 6px;
            height: 6px;
            border-radius: 2px;
            background: var(--ctd-blue);
        }

/* feature cards */
.ctd-case-feature {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.ctd-case-feature__item {
    padding: 18px 20px;
    border: 1px solid var(--ctd-line);
    border-radius: var(--ctd-radius-md);
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

    .ctd-case-feature__item:hover {
        border-color: rgba(20, 115, 230, 0.22);
        box-shadow: var(--ctd-shadow-card);
        transform: translateY(-2px);
    }

.ctd-case-feature__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ctd-ink);
    margin: 0 0 6px;
    line-height: 1.3;
}

.ctd-case-feature__text {
    font-size: 0.85rem;
    color: #4A5670;
    line-height: 1.5;
    margin: 0;
}

/* case CTA */
.ctd-case-cta {
    padding: 70px 0;
    background: radial-gradient(800px 380px at 100% 0%, rgba(56, 189, 248, 0.16), transparent 60%), radial-gradient(900px 460px at 0% 100%, rgba(20, 115, 230, 0.16), transparent 60%), linear-gradient(160deg, #050D1F 0%, #071126 60%, #0B1A33 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    text-align: center;
}

    .ctd-case-cta::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
        background-size: 64px 64px;
        mask-image: radial-gradient(800px 420px at 50% 50%, #000, transparent 70%);
        -webkit-mask-image: radial-gradient(800px 420px at 50% 50%, #000, transparent 70%);
        opacity: 0.30;
        pointer-events: none;
    }

.ctd-case-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.ctd-case-cta h2 {
    color: #fff;
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    margin: 0 0 12px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.ctd-case-cta p {
    color: var(--ctd-text-on-dark-mute);
    margin: 0 0 22px;
    font-size: 1rem;
    line-height: 1.6;
}

/* ---- Responsive (portfolio + case) ---- */
@media (max-width: 1080px) {
    .ctd-work-featured__grid {
        grid-template-columns: 1fr;
    }

    .ctd-feat-card--lead {
        grid-row: auto;
    }

    .ctd-work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ctd-case-meta__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ctd-case-feature {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ctd-work-hero {
        padding: 80px 0 50px;
    }

    .ctd-work-featured {
        padding: 56px 0 18px;
    }

    .ctd-work-grid-section {
        padding: 44px 0 64px;
    }

    .ctd-work-grid {
        grid-template-columns: 1fr;
    }

    .ctd-work-cta {
        padding: 64px 0;
    }

    .ctd-feat-card__body,
    .ctd-work-card__body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ctd-case-hero {
        padding: 70px 0 40px;
    }

    .ctd-case-meta__grid {
        grid-template-columns: 1fr 1fr;
    }

    .ctd-case-body {
        padding: 60px 0;
    }

    .ctd-case-section {
        margin-bottom: 40px;
    }

    .ctd-case-feature {
        grid-template-columns: 1fr;
    }

    .ctd-case-cta {
        padding: 56px 0;
    }
}


/* =============================================================
   CASE STUDY — extras for two-column hero, framed visual,
   inline meta card, results card, tool chips
   ============================================================= */

/* Two-column hero (used when case has a strong visual mockup) */
.ctd-case-hero--split .ctd-case-hero__inner {
    max-width: none;
}

.ctd-case-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.ctd-case-hero__copy {
    min-width: 0;
}

/* Framed visual (premium mockup wrapper around image) */
.ctd-case-visual {
    position: relative;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(11, 26, 51, 0.92), rgba(7, 17, 38, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 0 80px -20px rgba(56, 189, 248, 0.18);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

    .ctd-case-visual::before {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: 19px;
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.30), transparent 35%, transparent 65%, rgba(20, 115, 230, 0.28));
        z-index: -1;
        pointer-events: none;
    }

    .ctd-case-visual__bar {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 4px 6px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 12px;
    }

        .ctd-case-visual__bar .dots {
            display: flex;
            gap: 6px;
        }

            .ctd-case-visual__bar .dots span {
                width: 9px;
                height: 9px;
                border-radius: 50%;
                background: rgba(255, 255, 255, 0.18);
            }

                .ctd-case-visual__bar .dots span:nth-child(1) {
                    background: #FF5F57;
                }

                .ctd-case-visual__bar .dots span:nth-child(2) {
                    background: #FEBC2E;
                }

                .ctd-case-visual__bar .dots span:nth-child(3) {
                    background: #28C840;
                }

        .ctd-case-visual__bar .url {
            font-size: 0.74rem;
            color: rgba(147, 164, 191, 0.92);
            letter-spacing: 0.04em;
            margin-left: 8px;
            font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
        }

.ctd-case-visual__img {
    border-radius: 10px;
    overflow: hidden;
    background: #0B1A33;
}

    .ctd-case-visual__img img {
        width: 100%;
        height: auto;
        display: block;
    }

/* Compact inline meta card — alternative to the dark strip */
.ctd-case-meta--card {
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFCFF 100%);
    border: 1px solid var(--ctd-line);
    border-radius: 18px;
    padding: 22px 26px;
    margin-bottom: 56px;
    color: var(--ctd-ink);
    border-top: 0;
    border-bottom: 0;
    box-shadow: 0 14px 30px -16px rgba(7, 17, 38, 0.12);
}

    .ctd-case-meta--card .ctd-case-meta__grid {
        gap: 18px 32px;
    }

    .ctd-case-meta--card .ctd-case-meta__item h4 {
        color: var(--ctd-blue);
        font-size: 0.7rem;
        letter-spacing: 0.18em;
    }

    .ctd-case-meta--card .ctd-case-meta__item p {
        color: var(--ctd-ink);
        font-size: 0.94rem;
        font-weight: 500;
    }

    .ctd-case-meta--card .ctd-case-meta__item p a {
        color: var(--ctd-blue);
    }

        .ctd-case-meta--card .ctd-case-meta__item p a:hover {
            color: var(--ctd-blue-2);
        }

/* Generic 2-col body grid */
.ctd-case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

/* Premium card (used inside body sections, e.g. results) */
.ctd-case-card {
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--ctd-line);
    padding: 26px 26px 24px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
    position: relative;
    overflow: hidden;
}

    .ctd-case-card:hover {
        border-color: rgba(20, 115, 230, 0.18);
        box-shadow: 0 18px 38px -18px rgba(7, 17, 38, 0.18);
        transform: translateY(-2px);
    }

    .ctd-case-card__label {
        display: inline-block;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--ctd-blue);
        margin-bottom: 10px;
    }

    .ctd-case-card__title {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--ctd-ink);
        margin: 0 0 8px;
        line-height: 1.3;
    }

    .ctd-case-card__text {
        font-size: 0.92rem;
        color: #4A5670;
        line-height: 1.55;
        margin: 0;
    }

/* Tool / capability chips */
.ctd-case-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ctd-case-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ctd-ink);
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ctd-line);
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    letter-spacing: 0.005em;
}

    .ctd-case-chip::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: linear-gradient(135deg, #1473E6, #38BDF8);
        box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
    }

    .ctd-case-chip:hover {
        border-color: rgba(20, 115, 230, 0.30);
        color: var(--ctd-blue);
        box-shadow: 0 6px 14px -6px rgba(20, 115, 230, 0.20);
    }

/* Results — emphasised stat cards */
.ctd-case-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.ctd-case-result {
    position: relative;
    padding: 26px 24px 24px;
    border-radius: 16px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FE 100%);
    border: 1px solid var(--ctd-line);
    overflow: hidden;
    isolation: isolate;
}

    .ctd-case-result::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #1473E6, #38BDF8);
    }

    .ctd-case-result::after {
        content: "";
        position: absolute;
        top: -40px;
        right: -40px;
        width: 160px;
        height: 160px;
        background: radial-gradient(closest-side, rgba(56, 189, 248, 0.12), transparent 70%);
        z-index: -1;
        pointer-events: none;
    }

.ctd-case-result__metric {
    font-size: clamp(1.8rem, 2.6vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ctd-ink);
    line-height: 1;
    margin: 0 0 8px;
}

    .ctd-case-result__metric .unit {
        font-size: 0.6em;
        font-weight: 700;
        color: var(--ctd-blue);
        margin-left: 2px;
    }

.ctd-case-result__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ctd-blue);
    margin: 0 0 12px;
}

.ctd-case-result__note {
    font-size: 0.86rem;
    color: #4A5670;
    line-height: 1.5;
    margin: 0;
}

/* Mini results note under cards (caveat / source line) */
.ctd-case-results-note {
    font-size: 0.82rem;
    color: var(--ctd-mute);
    margin-top: 14px;
    line-height: 1.55;
}

/* Body inner — wider when used with two-col grid */
.ctd-case-body__inner--wide {
    max-width: 1080px;
}

/* Responsive */
@media (max-width: 1080px) {
    .ctd-case-hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ctd-case-results {
        grid-template-columns: repeat(3, 1fr);
    }

    .ctd-case-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .ctd-case-results {
        grid-template-columns: 1fr;
    }

    .ctd-case-meta--card {
        padding: 20px 22px;
        margin-bottom: 40px;
    }

    .ctd-case-visual {
        padding: 10px;
    }

        .ctd-case-visual__bar {
            padding: 4px 4px 10px;
        }
}


/* =============================================================
   PILLAR ROWS — Problem / Build / Outcome inside .ctd-pillar
   (replaces chips with conversion-focused copy framing)
   ============================================================= */
.ctd-pillar__rows {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .ctd-pillar__rows li {
        font-size: 0.92rem;
        line-height: 1.55;
        color: #4A5670;
        padding-left: 14px;
        border-left: 2px solid var(--ctd-line);
        transition: border-color 0.22s ease, color 0.22s ease;
    }

.ctd-pillar:hover .ctd-pillar__rows li {
    border-left-color: rgba(20, 115, 230, 0.30);
}

.ctd-pillar__rows li strong {
    display: inline-block;
    color: var(--ctd-blue);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-right: 6px;
}


/* =============================================================
   WHY CTD — differentiator section
   ============================================================= */
.ctd-why-section {
    padding: 110px 0 100px;
    background: linear-gradient(180deg, #FAFCFF 0%, #F1F6FC 100%);
    position: relative;
}

    .ctd-why-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(20, 115, 230, 0.18), transparent);
    }

.ctd-why__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.ctd-why__copy h2 {
    margin-bottom: 16px;
    letter-spacing: -0.018em;
}

.ctd-why__copy .ctd-lead {
    max-width: 460px;
}

.ctd-why__cta {
    margin-top: 28px;
}

.ctd-why__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.ctd-why-item {
    position: relative;
    padding: 24px 22px 22px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--ctd-line);
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
    isolation: isolate;
}

    .ctd-why-item::before {
        content: "";
        position: absolute;
        top: -40px;
        right: -40px;
        width: 140px;
        height: 140px;
        background: radial-gradient(closest-side, rgba(56, 189, 248, 0.10), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: -1;
    }

    .ctd-why-item:hover {
        transform: translateY(-3px);
        border-color: rgba(20, 115, 230, 0.20);
        box-shadow: 0 18px 38px -18px rgba(7, 17, 38, 0.18);
    }

        .ctd-why-item:hover::before {
            opacity: 1;
        }

.ctd-why-item__num {
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--ctd-blue);
    margin-bottom: 12px;
    background: rgba(20, 115, 230, 0.08);
    border: 1px solid rgba(20, 115, 230, 0.18);
    padding: 4px 10px;
    border-radius: 999px;
}

.ctd-why-item__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.32;
    color: var(--ctd-ink);
    margin: 0 0 8px;
    letter-spacing: -0.005em;
}

.ctd-why-item__text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4A5670;
    margin: 0;
}


/* =============================================================
   INLINE CTA BAR — bridges sections, repeats primary action
   ============================================================= */
.ctd-cta-bar {
    background: linear-gradient(90deg, #050D1F 0%, #08152F 50%, #050D1F 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .ctd-cta-bar::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.32), transparent);
    }

    .ctd-cta-bar::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(700px 200px at 50% 50%, rgba(56, 189, 248, 0.10), transparent 60%);
        pointer-events: none;
    }

.ctd-cta-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 28px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.ctd-cta-bar__text {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(230, 236, 245, 0.95);
    letter-spacing: -0.005em;
    line-height: 1.4;
}


/* =============================================================
   RESPONSIVE for new sections
   ============================================================= */
@media (max-width: 960px) {
    .ctd-why__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ctd-why__list {
        grid-template-columns: 1fr 1fr;
    }

    .ctd-cta-bar__inner {
        padding: 22px 24px;
        gap: 18px;
    }
}

@media (max-width: 640px) {
    .ctd-why-section {
        padding: 70px 0;
    }

    .ctd-why__list {
        grid-template-columns: 1fr;
    }

    .ctd-cta-bar__inner {
        padding: 22px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .ctd-cta-bar__text {
        font-size: 1rem;
    }

    .ctd-pillar__rows li {
        font-size: 0.88rem;
    }
}


/* =============================================================
   TRUST BADGES — third-party listing strip
   Light variant (default) sits above CTA on white pages.
   Dark variant sits inside dark sections.
   ============================================================= */
.ctd-trust-bar {
    padding: 36px 0;
    background: linear-gradient(180deg, #FAFCFF 0%, #F2F6FC 100%);
    border-top: 1px solid var(--ctd-line);
    border-bottom: 1px solid var(--ctd-line);
}

.ctd-trust-bar--dark {
    background: linear-gradient(180deg, #050D1F 0%, #08152F 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

    .ctd-trust-bar--dark::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.30), transparent);
    }

.ctd-trust-bar__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.ctd-trust-bar__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--ctd-blue);
    padding-right: 24px;
    border-right: 1px solid var(--ctd-line);
}

.ctd-trust-bar--dark .ctd-trust-bar__label {
    color: var(--ctd-cyan);
    border-right-color: rgba(255, 255, 255, 0.14);
}

.ctd-trust-bar__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

    .ctd-trust-bar__items li {
        display: inline-flex;
        align-items: center;
    }

    .ctd-trust-bar__items img {
        height: 44px;
        width: auto;
        max-width: 110px;
        object-fit: contain;
        opacity: 0.78;
        filter: grayscale(100%) contrast(0.95);
        transition: opacity 0.22s ease, filter 0.22s ease, transform 0.22s ease;
    }

    .ctd-trust-bar__items img:hover {
        opacity: 1;
        filter: grayscale(0%) contrast(1);
        transform: translateY(-2px);
    }

.ctd-trust-bar--dark .ctd-trust-bar__items img {
    opacity: 0.62;
    filter: grayscale(100%) brightness(2.2) contrast(0.85);
}

    .ctd-trust-bar--dark .ctd-trust-bar__items img:hover {
        opacity: 0.95;
        filter: grayscale(0%) contrast(1);
    }

@media (max-width: 720px) {
    .ctd-trust-bar {
        padding: 28px 0;
    }

    .ctd-trust-bar__inner {
        gap: 18px;
    }

    .ctd-trust-bar__label {
        border-right: none;
        padding-right: 0;
        flex-basis: 100%;
        text-align: center;
    }

    .ctd-trust-bar__items {
        gap: 22px;
        justify-content: center;
    }

    .ctd-trust-bar__items img {
        height: 36px;
        max-width: 90px;
    }
}
