.counter-case {
    --counter-ink: #15191f;
    --counter-muted: #5e6672;
    --counter-line: #dce1e6;
    --counter-blue: #0e4d92;
    --counter-gold: #f6c847;
    background: #f7f8fa;
    color: var(--counter-ink);
    overflow: hidden;
}

.counter-case * { box-sizing: border-box; }

.counter-case__shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.counter-case__hero {
    position: relative;
    padding: 72px 0 0;
    background: linear-gradient(145deg, #f9fbfd 0%, #eef3f8 55%, #f8f4e9 100%);
    border-bottom: 1px solid var(--counter-line);
}

.counter-case__orb {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
    opacity: .55;
}

.counter-case__orb--one { top: -250px; right: 12%; background: rgba(50, 117, 188, .17); }
.counter-case__orb--two { bottom: -300px; left: -170px; background: rgba(246, 200, 71, .2); }

.counter-case__hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(330px, .7fr);
    gap: 72px;
    align-items: center;
    padding-bottom: 64px;
}

.counter-case__back,
.counter-case__text-link {
    display: inline-flex;
    color: #39424d;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.counter-case__back { margin-bottom: 54px; }
.counter-case__eyebrow,
.counter-case__section-label,
.counter-case__demo-label {
    display: block;
    color: var(--counter-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.counter-case__hero h1 {
    max-width: 760px;
    margin: 16px 0 24px;
    font-size: clamp(48px, 6.2vw, 82px);
    line-height: .98;
    letter-spacing: -.045em;
}

.counter-case__hero-copy > p {
    max-width: 690px;
    margin: 0;
    color: var(--counter-muted);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.55;
}

.counter-case__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-top: 34px;
}

.counter-case__demo {
    position: relative;
    padding: 28px;
    border: 1px solid rgba(125, 139, 153, .28);
    border-radius: 22px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 28px 80px rgba(28, 47, 68, .13);
    backdrop-filter: blur(16px);
}

.counter-case__demo-stage {
    display: grid;
    min-height: 218px;
    margin: 20px 0;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(145deg, #23282e, #15181c);
}

.counter-case__demo-stage img {
    width: 88px;
    height: 31px;
    image-rendering: auto;
    opacity: .9;
    transform: scale(1.45);
}

.counter-case__demo-legend {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #69717b;
    font-size: 12px;
}

.counter-case__demo-legend i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: #99a0a7;
}

.counter-case__facts {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(110, 125, 139, .22);
}

.counter-case__facts div { padding: 28px 0 32px; }
.counter-case__facts div + div { padding-left: 36px; border-left: 1px solid rgba(110, 125, 139, .22); }
.counter-case__facts strong { display: block; font-size: 25px; }
.counter-case__facts span { color: var(--counter-muted); font-size: 14px; }

.counter-case__section { padding: 112px 0; }
.counter-case__section--intro { background: #fff; }
.counter-case__intro-grid,
.counter-case__detail-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 100px;
    align-items: start;
}

.counter-case h2 {
    margin: 14px 0 0;
    font-size: clamp(34px, 4vw, 55px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.counter-case__lead p,
.counter-case__detail-grid p {
    margin: 0 0 22px;
    color: var(--counter-muted);
    font-size: 18px;
    line-height: 1.75;
}

.counter-case__visual,
.counter-case__section--workflow { padding: 32px 0 112px; background: #fff; }
.counter-case__section--workflow { padding: 0 0 112px; background: #f7f8fa; }

.counter-case__figure {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--counter-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(24, 38, 53, .09);
}

.counter-case__figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.counter-case__figure figcaption {
    padding: 18px 8px 4px;
    color: #737b84;
    font-size: 13px;
}

.counter-case__figure--flat { box-shadow: none; }
.counter-case__heading { max-width: 760px; margin-bottom: 58px; }
.counter-case__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.counter-case__steps article {
    min-height: 300px;
    padding: 30px;
    border: 1px solid var(--counter-line);
    border-radius: 18px;
    background: #fff;
}

.counter-case__steps article > span { color: var(--counter-blue); font-size: 13px; font-weight: 800; }
.counter-case__steps h3 { margin: 58px 0 16px; font-size: 23px; line-height: 1.2; }
.counter-case__steps p { margin: 0; color: var(--counter-muted); font-size: 15px; line-height: 1.7; }
.counter-case code { padding: 2px 5px; border-radius: 4px; background: #edf1f5; font-size: .9em; }

.counter-case__section--details { background: #17212b; color: #fff; }
.counter-case__section--details .counter-case__section-label { color: #8ebce9; }
.counter-case__section--details p { color: #b8c2cd; }
.counter-case__checks { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.counter-case__checks li { position: relative; margin: 0; padding: 18px 0 18px 34px; border-bottom: 1px solid rgba(255,255,255,.13); color: #e9edf1; font-size: 16px; }
.counter-case__checks li::before { content: "✓"; position: absolute; left: 0; color: var(--counter-gold); font-weight: 900; }

.counter-case__cta { padding: 88px 0; background: #f0c94d; }
.counter-case__cta-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 70px; align-items: center; }
.counter-case__cta .counter-case__section-label { color: #64500d; }
.counter-case__cta h2 { max-width: 760px; }
.counter-case__cta p { max-width: 720px; color: #4f451f; font-size: 17px; line-height: 1.65; }
.counter-case__cta .counter-case__actions { justify-content: flex-end; }

@media (max-width: 900px) {
    .counter-case__hero-grid,
    .counter-case__intro-grid,
    .counter-case__detail-grid,
    .counter-case__cta-inner { grid-template-columns: 1fr; gap: 48px; }
    .counter-case__steps { grid-template-columns: 1fr; }
    .counter-case__steps article { min-height: 0; }
    .counter-case__steps h3 { margin-top: 30px; }
    .counter-case__cta .counter-case__actions { justify-content: flex-start; }
}

@media (max-width: 620px) {
    .counter-case__shell { width: min(100% - 28px, 1180px); }
    .counter-case__hero { padding-top: 38px; }
    .counter-case__hero-grid { padding-bottom: 42px; }
    .counter-case__back { margin-bottom: 38px; }
    .counter-case__hero h1 { font-size: clamp(42px, 14vw, 62px); }
    .counter-case__demo { padding: 20px; }
    .counter-case__demo-stage { min-height: 176px; }
    .counter-case__demo-stage img { transform: scale(1.25); }
    .counter-case__facts { grid-template-columns: 1fr; padding: 8px 0 18px; }
    .counter-case__facts div { padding: 18px 0; }
    .counter-case__facts div + div { padding-left: 0; border-top: 1px solid rgba(110,125,139,.22); border-left: 0; }
    .counter-case__section { padding: 78px 0; }
    .counter-case__visual,
    .counter-case__section--workflow { padding-bottom: 78px; }
    .counter-case__figure { padding: 8px; border-radius: 16px; }
    .counter-case__figure img { border-radius: 10px; }
    .counter-case__figure figcaption { padding: 14px 6px 5px; }
    .counter-case__steps article { padding: 24px; }
    .counter-case__actions { align-items: flex-start; flex-direction: column; }
}
