/* =========================================================
   Case Study — Drafting Firm + Egnyte Job Tracker
   ========================================================= */

:root {
    --cs-accent: #2563eb;
    --cs-accent-2: #06b6d4;
    --cs-accent-3: #a78bfa;
    --cs-egnyte: #7c3aed;
    --cs-warn: #f59e0b;
    --cs-danger: #ef4444;
    --cs-success: #10b981;
    --cs-card: #111827;
    --cs-card-2: #0b1220;
    --cs-border: rgba(255, 255, 255, 0.08);
}

.case-study-page {
    overflow-x: hidden;
}

.case-study-page .text-muted-soft {
    color: rgba(248, 250, 252, 0.72);
    font-size: 1.05rem;
    line-height: 1.65;
}

.case-study-page .gradient-text {
    background: linear-gradient(90deg, #60a5fa 0%, #06b6d4 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.case-study-page .cs-section {
    padding: 5rem 0;
}

.case-study-page .cs-h2 {
    font-size: clamp(1.85rem, 3.2vw, 2.6rem);
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.case-study-page .cs-section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #60a5fa;
    margin-bottom: 0.75rem;
}

.case-study-page .btn-xl {
    padding: 1rem 1.85rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: -0.005em;
}

/* =========================================================
   HERO
   ========================================================= */
.cs-hero {
    position: relative;
    padding: 130px 0 5rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse at top right, rgba(124, 58, 237, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(6, 182, 212, 0.12) 0%, transparent 55%),
        var(--dark);
}

.cs-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
}

.cs-hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
    top: -200px;
    right: -150px;
    pointer-events: none;
}

.cs-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    color: rgba(248, 250, 252, 0.5);
    font-size: 0.85rem;
}

.cs-breadcrumb a {
    color: rgba(248, 250, 252, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cs-breadcrumb a:hover {
    color: #60a5fa;
}

.cs-breadcrumb i {
    font-size: 0.65rem;
    opacity: 0.5;
}

.cs-tag {
    display: inline-block;
    background: rgba(124, 58, 237, 0.12);
    color: #c4b5fd;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
}

.cs-title {
    font-size: clamp(2.2rem, 4.5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cs-strike {
    text-decoration: line-through;
    text-decoration-thickness: 4px;
    text-decoration-color: rgba(239, 68, 68, 0.7);
    color: rgba(248, 250, 252, 0.55);
    font-weight: 800;
}

.cs-lede {
    font-size: 1.12rem;
    color: rgba(248, 250, 252, 0.78);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Hero meta grid */
.cs-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 600px;
}

.cs-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cs-meta-label {
    color: rgba(248, 250, 252, 0.45);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cs-meta-value {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Hero visual: flow diagram */
.cs-hero-visual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--cs-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.cs-flow-node {
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
    transition: all 0.3s ease;
}

.cs-flow-node:hover {
    transform: translateX(4px);
    border-color: rgba(96, 165, 250, 0.3);
}

.cs-flow-node i {
    font-size: 1.5rem;
    width: 36px;
    text-align: center;
    color: #60a5fa;
}

.cs-flow-node .cs-flow-sub {
    display: block;
    font-size: 0.78rem;
    color: rgba(248, 250, 252, 0.55);
    font-weight: 400;
    margin-left: auto;
}

.cs-flow-app {
    border-color: rgba(96, 165, 250, 0.35);
    background: linear-gradient(135deg, #111827 0%, #1e3a8a55 100%);
}

.cs-flow-egnyte {
    border-color: rgba(124, 58, 237, 0.4);
    background: linear-gradient(135deg, #111827 0%, #5b21b655 100%);
}

.cs-flow-egnyte i {
    color: #c4b5fd;
}

.cs-flow-line {
    height: 24px;
    width: 2px;
    background: linear-gradient(180deg, #60a5fa, #c4b5fd);
    margin: 0 auto;
    position: relative;
}

.cs-flow-line::before,
.cs-flow-line::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
}

.cs-flow-line::before { top: -4px; }
.cs-flow-line::after { bottom: -4px; background: #c4b5fd; }

/* =========================================================
   AT A GLANCE
   ========================================================= */
.cs-glance {
    padding: 3rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.04) 100%);
    border-top: 1px solid var(--cs-border);
    border-bottom: 1px solid var(--cs-border);
}

.cs-glance-card {
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 14px;
    padding: 1.5rem 1rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.cs-glance-card:hover {
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateY(-3px);
}

.cs-glance-num {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #60a5fa 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.cs-glance-label {
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.7);
    line-height: 1.4;
}

/* =========================================================
   "BEFORE" SPREADSHEET CARD
   ========================================================= */
.cs-before-card {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    border: 1px solid var(--cs-border);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}

.cs-before-card:hover { transform: rotate(0); }

.cs-before-tab {
    background: #1f2937;
    padding: 0.6rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid var(--cs-border);
}

.cs-tab-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #475569;
}

.tab-dot-red { background: #ef4444; }
.tab-dot-yellow { background: #f59e0b; }
.tab-dot-green { background: #10b981; }

.cs-tab-title {
    font-size: 0.7rem;
    color: rgba(248, 250, 252, 0.55);
    margin-left: 0.5rem;
    font-family: 'Fira Code', monospace;
}

.cs-before-toolbar {
    background: #111827;
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--cs-border);
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
}

.cs-cell-ref {
    background: #0b1220;
    border: 1px solid var(--cs-border);
    padding: 0.15rem 0.5rem;
    color: rgba(248, 250, 252, 0.7);
    border-radius: 3px;
    min-width: 38px;
    text-align: center;
}

.cs-formula {
    color: rgba(248, 250, 252, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.cs-before-grid {
    background: #0b1220;
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: rgba(248, 250, 252, 0.85);
}

.cs-row {
    display: grid;
    grid-template-columns: 28px 1fr 1.3fr 1fr 1fr 0.9fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cs-row span {
    padding: 0.4rem 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-row span:first-child {
    background: #111827;
    color: rgba(248, 250, 252, 0.45);
    text-align: center;
}

.cs-row-header {
    background: #111827;
}

.cs-row-header span {
    color: #60a5fa;
    font-weight: 600;
}

.cs-row-edit {
    background: rgba(245, 158, 11, 0.08);
    box-shadow: inset 0 0 0 2px var(--cs-warn);
}

.cs-row-conflict {
    background: rgba(239, 68, 68, 0.06);
}

.cs-cell-error {
    color: var(--cs-danger);
    background: rgba(239, 68, 68, 0.1);
    font-weight: 600;
}

.cs-cell-warn { color: var(--cs-warn); }

.cs-before-tabs {
    background: #111827;
    padding: 0.35rem 0.4rem;
    display: flex;
    gap: 0.25rem;
    border-top: 1px solid var(--cs-border);
    overflow: hidden;
}

.cs-sheet-tab {
    background: #0b1220;
    color: rgba(248, 250, 252, 0.55);
    padding: 0.25rem 0.5rem;
    border-radius: 3px 3px 0 0;
    font-size: 0.62rem;
    font-family: 'Fira Code', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.cs-sheet-tab-active {
    background: #1f2937;
    color: var(--text-light);
}

.cs-before-stamp {
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%) rotate(-12deg);
    background: var(--cs-danger);
    color: white;
    padding: 0.4rem 0.9rem;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* =========================================================
   CHALLENGE LIST
   ========================================================= */
.cs-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.cs-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.65rem 0;
    color: rgba(248, 250, 252, 0.85);
    font-size: 0.98rem;
    line-height: 1.55;
}

.cs-list li i {
    color: var(--cs-warn);
    font-size: 0.95rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.cs-list li i.fa-circle-check {
    color: var(--cs-success);
}

/* =========================================================
   SOLUTION + ARCHITECTURE
   ========================================================= */
.cs-solution-section {
    padding: 5rem 0;
    background:
        radial-gradient(ellipse at center, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
    border-top: 1px solid var(--cs-border);
}

.cs-arch {
    max-width: 880px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.cs-arch-tier {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
    position: relative;
    padding-left: 120px;
}

.cs-arch-label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 105px;
    padding-right: 0.5rem;
    font-size: 0.7rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(248, 250, 252, 0.5);
    font-weight: 700;
}

.cs-arch-card {
    flex: 1;
    min-width: 130px;
    background: var(--cs-card-2);
    border: 1px solid var(--cs-border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;
    color: var(--text-light);
    font-weight: 600;
    transition: all 0.25s ease;
}

.cs-arch-card:hover {
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateY(-2px);
}

.cs-arch-card i {
    color: #60a5fa;
    font-size: 1.1rem;
}

.cs-arch-card-app {
    border-color: rgba(96, 165, 250, 0.25);
    background: linear-gradient(135deg, #0b1220 0%, #1e3a8a33 100%);
}

.cs-arch-card-egnyte {
    border-color: rgba(124, 58, 237, 0.4);
    background: linear-gradient(135deg, #0b1220 0%, #5b21b633 100%);
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
}

.cs-arch-card-egnyte i {
    color: #c4b5fd;
    font-size: 1.4rem;
}

.cs-arch-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cs-arch-card-desc {
    font-size: 0.78rem;
    color: rgba(248, 250, 252, 0.6);
    font-weight: 400;
}

.cs-arch-arrow {
    text-align: center;
    padding: 1rem 0;
    color: #60a5fa;
    font-size: 1.4rem;
}

.cs-arch-arrow span {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(248, 250, 252, 0.45);
    margin-top: 0.25rem;
    font-weight: 600;
}

/* =========================================================
   CODE SNIPPET CARD
   ========================================================= */
.cs-code-card {
    background: #0b1220;
    border: 1px solid var(--cs-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.cs-code-header {
    background: #1f2937;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid var(--cs-border);
}

.cs-code-file {
    font-size: 0.78rem;
    color: rgba(248, 250, 252, 0.7);
    margin-left: 0.7rem;
    font-family: 'Fira Code', monospace;
}

.cs-code {
    margin: 0;
    padding: 1.25rem 1.4rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.82rem;
    line-height: 1.65;
    color: #e2e8f0;
    overflow-x: auto;
}

.cs-code .c-c { color: #64748b; font-style: italic; }
.cs-code .c-k { color: #a78bfa; font-weight: 600; }
.cs-code .c-fn { color: #60a5fa; }
.cs-code .c-v { color: #f472b6; }
.cs-code .c-s { color: #34d399; }

.cs-code-caption {
    color: rgba(248, 250, 252, 0.55);
    font-size: 0.85rem;
    margin-top: 0.85rem;
    text-align: center;
    padding: 0 0.5rem;
}

/* =========================================================
   FEATURES
   ========================================================= */
.cs-features-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.04) 100%);
}

.cs-feature {
    background: var(--cs-card-2);
    border: 1px solid var(--cs-border);
    border-radius: 16px;
    padding: 1.85rem;
    height: 100%;
    transition: all 0.3s ease;
}

.cs-feature:hover {
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.cs-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(124, 58, 237, 0.15));
    border: 1px solid rgba(96, 165, 250, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 1.25rem;
    margin-bottom: 1.1rem;
}

.cs-feature h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.cs-feature p {
    color: rgba(248, 250, 252, 0.7);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

/* =========================================================
   STACK + TIMELINE
   ========================================================= */
.cs-stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.cs-stack-pill {
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.cs-stack-pill:hover {
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateY(-2px);
}

.cs-stack-pill i {
    color: #60a5fa;
    font-size: 1.05rem;
}

.cs-timeline {
    position: relative;
    padding-left: 1rem;
}

.cs-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(180deg, #60a5fa, #c4b5fd);
    opacity: 0.5;
}

.cs-timeline-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cs-timeline-marker {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e3a8a 0%, #5b21b6 100%);
    border: 1px solid rgba(96, 165, 250, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.92rem;
}

.cs-timeline-body h4 {
    font-size: 1.05rem;
    color: var(--text-light);
    font-weight: 700;
    margin: 0.25rem 0 0.4rem;
    letter-spacing: -0.01em;
}

.cs-timeline-body p {
    color: rgba(248, 250, 252, 0.7);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

/* =========================================================
   RESULTS
   ========================================================= */
.cs-results-section {
    padding: 5rem 0;
    background:
        radial-gradient(ellipse at center, rgba(16, 185, 129, 0.06) 0%, transparent 60%),
        var(--dark);
    border-top: 1px solid var(--cs-border);
}

.cs-result-card {
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 16px;
    padding: 1.85rem 1.5rem;
    height: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.cs-result-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-4px);
}

.cs-result-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    font-size: 1.4rem;
    margin: 0 auto 1.1rem;
}

.cs-result-card h3 {
    font-size: 1.05rem;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cs-result-card p {
    color: rgba(248, 250, 252, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Pull quote */
.cs-quote {
    position: relative;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 18px;
    padding: 2.5rem 2.5rem 2rem;
    text-align: center;
    margin: 0;
}

.cs-quote-mark {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #60a5fa 0%, #c4b5fd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.4);
}

.cs-quote p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-light);
    line-height: 1.55;
    font-style: italic;
    font-weight: 500;
    margin: 0 0 1.25rem;
}

.cs-quote footer {
    color: rgba(248, 250, 252, 0.65);
    font-size: 0.92rem;
    font-weight: 600;
    font-style: normal;
}

/* =========================================================
   CTA SECTION + FORM
   ========================================================= */
.cs-cta-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.06) 100%);
}

.cs-cta-card {
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.cs-cta-left {
    background: linear-gradient(135deg, #5b21b6 0%, #1e3a8a 100%);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.cs-cta-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.cs-cta-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    position: relative;
}

.cs-cta-title {
    font-size: clamp(1.65rem, 2.7vw, 2.2rem);
    font-weight: 900;
    color: white;
    line-height: 1.15;
    margin-bottom: 1rem;
    position: relative;
    letter-spacing: -0.02em;
}

.cs-cta-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
    position: relative;
}

.cs-cta-sub em {
    color: white;
    font-weight: 600;
    font-style: normal;
}

.cs-cta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.cs-cta-list li {
    padding: 0.5rem 0;
    color: white;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 500;
}

.cs-cta-list i {
    color: #34d399;
    font-size: 0.85rem;
}

.cs-cta-right {
    padding: 3rem 2.5rem;
    background: var(--cs-card);
}

.cs-form .form-label {
    color: rgba(248, 250, 252, 0.85);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.cs-form .form-control {
    background: var(--dark);
    border: 1px solid var(--cs-border);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.cs-form .form-control:focus {
    background: var(--dark);
    border-color: var(--cs-accent);
    color: var(--text-light);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.cs-form textarea.form-control {
    resize: vertical;
    min-height: 90px;
}

.cs-form .form-control.is-invalid {
    border-color: var(--cs-danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cs-form-disclaimer {
    font-size: 0.8rem;
    color: rgba(248, 250, 252, 0.55);
    text-align: center;
    margin-top: 0.5rem;
}

.cs-form-status {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
}

.cs-form-status-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.cs-form-status-error {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.cs-form-status-error a { color: #fca5a5; text-decoration: underline; }

#lead-submit {
    position: relative;
    overflow: hidden;
}

#lead-submit.is-loading .btn-label { display: none; }
#lead-submit.is-loading .btn-spinner { display: inline-flex !important; }

/* =========================================================
   RELATED CARDS
   ========================================================= */
.cs-related-card {
    display: block;
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 16px;
    padding: 1.85rem;
    height: 100%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cs-related-card:hover {
    border-color: rgba(96, 165, 250, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.cs-related-tag {
    display: inline-block;
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.cs-related-card h3 {
    font-size: 1.15rem;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.cs-related-card p {
    color: rgba(248, 250, 252, 0.7);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 0.85rem;
}

.cs-related-arrow {
    color: #60a5fa;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s ease;
}

.cs-related-card:hover .cs-related-arrow {
    gap: 0.7rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991.98px) {
    .cs-hero {
        padding-top: 110px;
    }

    .cs-hero-visual {
        margin-top: 2rem;
    }

    .cs-cta-left,
    .cs-cta-right {
        padding: 2.25rem 1.75rem;
    }

    .cs-meta {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .cs-section {
        padding: 3.5rem 0;
    }

    .cs-title {
        font-size: 2rem;
    }

    .cs-arch-tier {
        padding-left: 0;
        padding-top: 1.75rem;
    }

    .cs-arch-label {
        position: static;
        transform: none;
        display: block;
        width: auto;
        padding-right: 0;
        margin-bottom: 0.5rem;
    }

    .cs-arch-card {
        min-width: 100%;
    }

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

    .cs-before-stamp {
        right: 10px;
    }

    .cs-cta-title {
        font-size: 1.6rem;
    }
}
