.cpd-page {
    overflow: clip;
    background: radial-gradient(circle at 18% 5%, rgba(103,232,249,.08), transparent 25rem), radial-gradient(circle at 86% 12%, rgba(167,139,250,.12), transparent 30rem);
}

.cpd-hero,
.cpd-section {
    width: min(1380px, calc(100% - 48px));
    margin-inline: auto;
}

.cpd-hero { padding: 15px 0 52px; }
.cpd-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 8px; padding: 0; color: #777b85; list-style: none; font-size: 11px; }
.cpd-breadcrumb li + li::before { margin-right: 7px; content: "/"; }
.cpd-breadcrumb a:hover { color: var(--cp-cyan); }
.cpd-hero-copy { display: grid; grid-template-columns: auto minmax(260px, 640px); align-items: end; gap: 10px 32px; margin-bottom: 14px; }
.cpd-hero-copy .cp-kicker { grid-column: 1 / -1; }
.cpd-hero-copy h1 { margin: 0; font-size: clamp(34px, 4vw, 55px); line-height: .94; letter-spacing: -.055em; }
.cpd-hero-copy p { margin: 0; color: #a9acb5; font-size: 14px; line-height: 1.45; }

.cpd-workspace { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr); min-height: 590px; padding: 10px; border: 1px solid #30323b; border-radius: 27px; background: #0d0e12; box-shadow: 0 36px 100px rgba(0,0,0,.42); }
.cpd-tool { display: flex; flex-direction: column; min-width: 0; padding: 15px 17px; border: 1px solid #282a32; border-radius: 19px; background: #121318; }
.cpd-tool-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.cpd-tool-head span { color: var(--cp-cyan); font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.cpd-tool-head h2 { margin: 0; font-size: 22px; line-height: 1.1; letter-spacing: -.035em; }
.cpd-tool-head .cpd-preview-badge { padding: 5px 8px; border: 1px solid rgba(167,139,250,.28); border-radius: 999px; color: #c4b5fd; background: rgba(167,139,250,.08); font-size: 8px; white-space: nowrap; }

.cpd-input-row { display: grid; grid-template-columns: minmax(190px, .75fr) minmax(0, 1.25fr); gap: 8px; }
.cpd-upload { position: relative; display: flex; align-items: center; gap: 9px; min-height: 58px; padding: 9px 11px; border: 1px dashed #4b4e59; border-radius: 12px; background: #0b0c0f; cursor: pointer; }
.cpd-upload:hover { border-color: var(--cp-purple); background: #100f15; }
.cpd-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cpd-upload svg { width: 23px; height: 23px; flex: 0 0 auto; color: #c4b5fd; }
.cpd-upload span { display: grid; line-height: 1.2; }
.cpd-upload strong { font-size: 11px; }
.cpd-upload small { color: #787b84; font-size: 9px; }
.cpd-uploaded { display: flex; align-items: center; gap: 5px; min-width: 0; min-height: 58px; padding: 6px; overflow-x: auto; border: 1px solid #272931; border-radius: 12px; color: #6f727c; background: #0d0e12; font-size: 10px; scrollbar-width: thin; }
.cpd-file { position: relative; width: 45px; height: 45px; flex: 0 0 auto; border: 1px solid #333640; border-radius: 9px; overflow: hidden; background: #1a1c22; }
.cpd-file img { width: 100%; height: 100%; object-fit: cover; }
.cpd-file button { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(0,0,0,.72); font-size: 12px; line-height: 1; }

.cpd-presets { min-width: 0; margin: 9px 0 0; padding: 0; border: 0; }
.cpd-presets legend { margin-bottom: 5px; color: #b7bac2; font-size: 10px; font-weight: 800; }
.cpd-presets > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.cpd-presets button { position: relative; min-width: 0; height: 48px; padding: 0; overflow: hidden; border: 1px solid #30323a; border-radius: 9px; color: #fff; background: #0c0d10; text-align: left; }
.cpd-presets button::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(0,0,0,.84), transparent 70%); }
.cpd-presets button.is-active { border-color: #c4b5fd; box-shadow: 0 0 0 1px #c4b5fd; }
.cpd-presets img { width: 100%; height: 100%; object-fit: cover; }
.cpd-presets span { position: absolute; left: 6px; right: 4px; bottom: 3px; z-index: 1; overflow: hidden; font-size: 8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }

.cpd-prompt { display: grid; gap: 4px; margin-top: 9px; }
.cpd-prompt > span { display: flex; justify-content: space-between; color: #d8dae0; font-size: 10px; font-weight: 800; }
.cpd-prompt small { color: #6f727c; font-weight: 650; }
.cpd-prompt textarea { width: 100%; min-height: 62px; max-height: 84px; padding: 9px 11px; resize: vertical; border: 1px solid #30323a; border-radius: 11px; color: #f5f5f7; background: #0b0c0f; font-size: 11px; line-height: 1.4; }
.cpd-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.cpd-controls label { display: grid; gap: 3px; min-width: 0; color: #858892; font-size: 8px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.cpd-controls select { width: 100%; min-width: 0; height: 33px; padding: 0 25px 0 8px; border: 1px solid #30323a; border-radius: 9px; color: #e9e9ec; background: #0b0c0f; font-size: 10px; text-transform: none; }
.cpd-toggles { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.cpd-toggles label { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border: 1px solid #2d2f37; border-radius: 999px; color: #a4a7b0; background: #0c0d10; font-size: 8px; font-weight: 750; }
.cpd-toggles input { width: 11px; height: 11px; margin: 0; accent-color: var(--cp-purple); }
.cpd-action-row { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 10px; margin-top: auto; padding-top: 9px; }
.cpd-generate { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 8px 12px; border: 0; border-radius: 11px; color: #090a0d; background: #f6f6f8; font-size: 11px; font-weight: 900; }
.cpd-generate:hover { background: var(--cp-cyan); transform: translateY(-1px); }
.cpd-generate svg { width: 17px; height: 17px; }
.cpd-action-row p { margin: 0; color: #737680; font-size: 9px; line-height: 1.35; }
.cpd-action-row p.is-ready { color: var(--cp-cyan); }

.cpd-stage { min-width: 0; padding: 9px 9px 9px 10px; }
.cpd-stage-image { position: relative; height: 505px; overflow: hidden; border: 1px solid #2d3038; border-radius: 18px; background: #181a20; }
.cpd-stage-image > img { width: 100%; height: 100%; object-fit: cover; transition: opacity .22s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.cpd-stage-image.is-previewing > img { transform: scale(1.045); }
.cpd-stage-image::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.5), transparent 25%, transparent 65%, rgba(0,0,0,.72)); }
.cpd-stage-top { position: absolute; z-index: 2; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; color: #fff; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.cpd-stage-top span { padding: 5px 8px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(0,0,0,.3); backdrop-filter: blur(10px); }
.cpd-play,
.cpd-case-play { display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: #08090b; background: rgba(255,255,255,.9); box-shadow: 0 10px 28px rgba(0,0,0,.32); }
.cpd-play { position: absolute; z-index: 3; top: 50%; left: 50%; width: 52px; height: 52px; padding: 0; transform: translate(-50%,-50%); }
.cpd-play:hover { background: var(--cp-cyan); transform: translate(-50%,-50%) scale(1.06); }
.cpd-play svg { width: 22px; height: 22px; margin-left: 2px; }
.cpd-player-bar { position: absolute; z-index: 3; right: 13px; bottom: 12px; left: 13px; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 7px; color: #fff; font-size: 8px; }
.cpd-player-bar i,
.cpd-case-controls i { display: block; height: 3px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.3); }
.cpd-player-bar b,
.cpd-case-controls b { display: block; width: 28%; height: 100%; border-radius: inherit; background: #fff; }
.cpd-player-bar svg { width: 14px; height: 14px; }
.cpd-flight-line { position: absolute; z-index: 2; top: 43%; left: 25%; width: 42%; height: 22%; opacity: 0; border-top: 2px dashed rgba(255,255,255,.78); border-radius: 50%; transform: rotate(-12deg); transition: opacity .2s; }
.cpd-flight-line i { position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--cp-cyan); box-shadow: 0 0 14px var(--cp-cyan); }
.cpd-stage-image.is-previewing .cpd-flight-line { opacity: 1; }
.cpd-stage-image.is-previewing .cpd-flight-line i { animation: cpd-flight 2.6s ease-in-out infinite; }
@keyframes cpd-flight { 0% { left: 0; } 100% { left: 100%; } }
.cpd-stage-caption { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; padding: 10px 4px 0; }
.cpd-stage-caption > div { display: grid; }
.cpd-stage-caption strong { font-size: 12px; }
.cpd-stage-caption span { color: #7f828b; font-size: 9px; }
.cpd-stage-caption dl { display: flex; gap: 14px; margin: 0; }
.cpd-stage-caption dl div { display: grid; }
.cpd-stage-caption dt { color: #686b73; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.cpd-stage-caption dd { margin: 0; color: #d3d5da; font-size: 9px; font-weight: 800; }

.cpd-section { padding: 78px 0; }
.cpd-section-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 40px; align-items: end; margin-bottom: 28px; }
.cpd-section-head h2 { max-width: 800px; margin: 8px 0 0; font-size: clamp(34px, 5vw, 62px); line-height: 1; letter-spacing: -.055em; }
.cpd-section-head > p { margin: 0; color: #93969f; font-size: 15px; }

.cpd-gallery { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); grid-auto-flow: dense; gap: 12px; }
.cpd-case { grid-column: span 4; margin: 0; overflow: hidden; border: 1px solid #2b2d35; border-radius: 18px; background: #121318; }
.cpd-case:nth-child(1), .cpd-case:nth-child(4), .cpd-case:nth-child(6), .cpd-case:nth-child(8) { grid-column: span 6; }
.cpd-case--9x16 { grid-column: span 3; grid-row: span 2; }
.cpd-case--1x1 { grid-column: span 3; }
.cpd-case-media { position: relative; display: block; width: 100%; min-height: 210px; padding: 0; overflow: hidden; border: 0; color: #fff; background: #181a20; }
.cpd-case--9x16 .cpd-case-media { aspect-ratio: 9 / 13; }
.cpd-case--1x1 .cpd-case-media { aspect-ratio: 1 / 1; }
.cpd-case--16x9 .cpd-case-media { aspect-ratio: 16 / 9; }
.cpd-case-media::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 52%, rgba(0,0,0,.62)); }
.cpd-case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .3s ease; }
.cpd-case-media:hover img { transform: scale(1.035); filter: saturate(1.08); }
.cpd-case-play { position: absolute; z-index: 2; top: 50%; left: 50%; width: 42px; height: 42px; transform: translate(-50%,-50%); transition: transform .2s, background .2s; }
.cpd-case-play svg { width: 18px; height: 18px; margin-left: 2px; }
.cpd-case-media:hover .cpd-case-play { background: var(--cp-cyan); transform: translate(-50%,-50%) scale(1.08); }
.cpd-case-time { position: absolute; z-index: 2; right: 10px; top: 10px; padding: 4px 6px; border-radius: 5px; color: #fff; background: rgba(0,0,0,.65); font-size: 9px; font-weight: 800; }
.cpd-case-controls { position: absolute; z-index: 2; right: 10px; bottom: 9px; left: 10px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; }
.cpd-case-controls svg { width: 15px; height: 15px; }
.cpd-case figcaption { display: grid; padding: 12px 14px 14px; }
.cpd-case figcaption strong { font-size: 14px; }
.cpd-case figcaption span { color: #858892; font-size: 10px; }

.cpd-capabilities { border-top: 1px solid #22242b; }
.cpd-capability-groups { display: grid; gap: 14px; }
.cpd-capability-groups > section { display: grid; grid-template-columns: minmax(210px, .55fr) minmax(0, 1.45fr); gap: 20px; padding: 20px; border: 1px solid #2a2c34; border-radius: 20px; background: #101116; }
.cpd-capability-groups > section > header span { color: var(--cp-purple); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.cpd-capability-groups h3 { margin: 8px 0 0; font-size: 24px; line-height: 1.15; letter-spacing: -.035em; }
.cpd-capability-groups > section > div { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.cpd-capability-groups article { padding: 14px; border: 1px solid #25272f; border-radius: 13px; background: #15171c; }
.cpd-capability-groups h4 { margin: 0 0 5px; font-size: 13px; }
.cpd-capability-groups p { margin: 0; color: #92959e; font-size: 11px; line-height: 1.55; }

.cpd-intents { border-top: 1px solid #22242b; }
.cpd-intent-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.cpd-intent-grid article { min-height: 240px; padding: 22px; border: 1px solid #2b2d35; border-radius: 18px; background: linear-gradient(145deg, #15171c, #0e0f13); }
.cpd-intent-grid article > span { color: #656872; font-size: 11px; font-weight: 900; }
.cpd-intent-grid .cpd-query { min-height: 40px; margin: 22px 0 12px; color: var(--cp-cyan); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.45; }
.cpd-intent-grid h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.15; letter-spacing: -.03em; }
.cpd-intent-grid h3 + p { margin: 0; color: #9497a0; font-size: 12px; }
.cpd-intent-grid article:last-child { grid-column: span 3; min-height: auto; display: grid; grid-template-columns: 34px 1fr 1fr 1.5fr; align-items: center; gap: 20px; }
.cpd-intent-grid article:last-child .cpd-query { min-height: 0; margin: 0; }
.cpd-intent-grid article:last-child h3, .cpd-intent-grid article:last-child p { margin: 0; }

.cpd-input-story { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; border-top: 1px solid #22242b; }
.cpd-input-visual { position: relative; min-height: 520px; }
.cpd-input-visual img { position: absolute; width: 62%; height: 66%; object-fit: cover; border: 5px solid #0a0b0d; border-radius: 22px; box-shadow: 0 26px 60px rgba(0,0,0,.4); }
.cpd-input-visual img:nth-child(1) { top: 0; left: 0; }
.cpd-input-visual img:nth-child(2) { top: 17%; right: 0; z-index: 1; }
.cpd-input-visual img:nth-child(3) { bottom: 0; left: 9%; z-index: 2; width: 48%; height: 48%; }
.cpd-input-story h2 { margin: 9px 0 14px; font-size: clamp(38px,5vw,62px); line-height: 1; letter-spacing: -.055em; }
.cpd-input-story > div > p { color: #999ca5; }
.cpd-input-story ol { display: grid; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: role; }
.cpd-input-story li { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 3px 14px; padding: 12px 14px; border: 1px solid #2c2e36; border-radius: 13px; background: #121318; counter-increment: role; }
.cpd-input-story li::before { grid-row: span 2; content: counter(role, decimal-leading-zero); color: var(--cp-purple); font-size: 11px; font-weight: 900; }
.cpd-input-story li strong { font-size: 13px; }
.cpd-input-story li span { color: #888b94; font-size: 11px; }

.cpd-faq { padding-bottom: 110px; border-top: 1px solid #22242b; }
.cpd-faq > div { border-top: 1px solid #30323a; }
.cpd-faq details { border-bottom: 1px solid #30323a; }
.cpd-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 2px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 800; }
.cpd-faq summary::-webkit-details-marker { display: none; }
.cpd-faq summary svg { width: 20px; height: 20px; flex: 0 0 auto; transition: transform .2s; }
.cpd-faq details[open] summary svg { transform: rotate(45deg); }
.cpd-faq details p { max-width: 900px; margin: -5px 0 22px; color: #9497a0; }

.cpd-lightbox { width: min(1120px, calc(100% - 34px)); max-height: 92vh; padding: 0; overflow: visible; border: 1px solid #444751; border-radius: 20px; color: #fff; background: #101116; box-shadow: 0 40px 120px rgba(0,0,0,.75); }
.cpd-lightbox::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(8px); }
.cpd-lightbox > button { position: absolute; z-index: 2; top: -14px; right: -14px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #555862; border-radius: 50%; color: #fff; background: #111217; }
.cpd-lightbox > button svg { width: 18px; height: 18px; }
.cpd-lightbox figure { margin: 0; }
.cpd-lightbox img { width: 100%; max-height: 78vh; border-radius: 19px 19px 0 0; object-fit: contain; background: #050506; }
.cpd-lightbox figcaption { padding: 12px 16px; font-weight: 800; }

@media (max-width: 1120px) {
    .cpd-workspace { grid-template-columns: 1fr; }
    .cpd-stage { display: none; }
    .cpd-intent-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .cpd-intent-grid article:last-child { grid-column: span 2; grid-template-columns: 34px 1fr 1fr; }
    .cpd-intent-grid article:last-child h3 + p { grid-column: 2 / -1; }
}

@media (max-width: 760px) {
    .cpd-hero, .cpd-section { width: min(100% - 28px, 1380px); }
    .cpd-hero { padding-top: 11px; }
    .cpd-hero-copy { display: block; margin: 15px 0 18px; }
    .cpd-hero-copy h1 { margin: 7px 0 10px; font-size: 42px; }
    .cpd-workspace { padding: 5px; border-radius: 21px; }
    .cpd-tool { padding: 14px; border-radius: 16px; }
    .cpd-input-row { grid-template-columns: 1fr; }
    .cpd-uploaded { min-height: 48px; }
    .cpd-presets > div { display: flex; overflow-x: auto; }
    .cpd-presets button { width: 120px; flex: 0 0 auto; }
    .cpd-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .cpd-action-row { grid-template-columns: 1fr; }
    .cpd-section { padding: 54px 0; }
    .cpd-section-head { display: block; }
    .cpd-section-head h2 { margin-bottom: 16px; font-size: 39px; }
    .cpd-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .cpd-case, .cpd-case:nth-child(n), .cpd-case--9x16, .cpd-case--1x1 { grid-column: span 1; grid-row: auto; }
    .cpd-case:nth-child(1), .cpd-case:nth-child(4), .cpd-case:nth-child(6), .cpd-case:nth-child(8) { grid-column: span 2; }
    .cpd-case--9x16 .cpd-case-media { aspect-ratio: 9 / 13; }
    .cpd-capability-groups > section { grid-template-columns: 1fr; }
    .cpd-capability-groups > section > div { grid-template-columns: 1fr; }
    .cpd-intent-grid { grid-template-columns: 1fr; }
    .cpd-intent-grid article:last-child { grid-column: auto; display: block; }
    .cpd-intent-grid article:last-child .cpd-query { margin: 22px 0 12px; }
    .cpd-input-story { grid-template-columns: 1fr; gap: 34px; }
    .cpd-input-visual { min-height: 390px; }
}

@media (max-width: 420px) {
    .cpd-tool-head { align-items: flex-start; }
    .cpd-preview-badge { display: none; }
    .cpd-toggles { display: grid; grid-template-columns: 1fr 1fr; }
    .cpd-gallery { gap: 8px; }
    .cpd-case figcaption { padding: 10px; }
    .cpd-case figcaption span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .cpd-stage-image.is-previewing .cpd-flight-line i { animation: none; }
    .cpd-stage-image > img, .cpd-case-media img { transition: none; }
}
