.case-hero {
  max-width: 1412px;
  margin: 38px auto 0;
  padding: 48px 48px 56px;
  border: 1px solid #2c5a83;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 50% 100% at 100% 50%, #1a4979a0, transparent 80%),
    linear-gradient(140deg, #102f51, #0a2038 62%, #081d34);
  position: relative;
  overflow: hidden;
}
.case-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(#94caff0a 1px, transparent 1px), linear-gradient(90deg, #94caff0a 1px, transparent 1px);
  background-size: 34px 34px;
}
.case-hero > * { position: relative; z-index: 1; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 45px; color: #bad2e8; font: 400 .75rem var(--mono); }
.back-link::before { content: '←'; color: var(--blue); font-size: 1.1rem; }
.back-link:hover { color: var(--cyan); }
.case-hero .eyebrow { margin-bottom: 19px; }
.case-hero h1 { max-width: 900px; margin-bottom: 23px; font-size: clamp(3.2rem, 5.2vw, 6.2rem); }
.case-hero .lead { max-width: 810px; }
.case-outcome { display: flex; align-items: flex-start; gap: 14px; max-width: 900px; margin-top: 26px; padding: 16px 19px; border: 1px solid #347bad; border-radius: 10px; background: #0d3152b8; }
.case-outcome > span { flex: none; padding-top: 2px; color: #8bcaff; font: 500 .65rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.case-outcome p { margin: 0; color: #e4f2ff; font-size: 1rem; font-weight: 650; line-height: 1.5; }
.case-hero .hero-actions { margin-top: 29px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px #59adff88; vertical-align: middle; }

.case-summary {
  max-width: 1480px;
  margin: auto;
  padding: 48px 34px 78px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 15px;
}
.case-summary article, .scenario-card, .case-workflow li, .feature-chip {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, #0d2440, #0a1d34);
}
.case-summary article { padding: 28px; }
.case-label, .scenario-number { margin: 0 0 13px !important; color: var(--blue) !important; font: 500 .68rem var(--mono) !important; letter-spacing: .06em; }
.case-summary h2 { margin: 0 0 13px; font-size: 1.24rem; letter-spacing: -.02em; word-spacing: .05em; }
.case-summary p, .case-flow p, .case-workflow p, .case-verified p, .scenario-detail p, .case-end p, .feature-chip { color: var(--muted); font-size: 1rem; line-height: 1.68; }
.case-summary p { margin: 0; }
.case-summary .case-label { margin-bottom: 13px; }
.shawarma-summary { padding-bottom: 32px; }

.case-flow {
  padding: 56px 34px;
  border-block: 1px solid #286399;
  background: linear-gradient(100deg, #0b2644, #123761 60%, #0a2441);
  text-align: center;
}
.case-flow .eyebrow { margin: 0 0 15px; color: var(--cyan); }
.case-flow p:not(.eyebrow) { max-width: 1000px; margin: auto; color: var(--text); font-size: clamp(1.22rem, 2.25vw, 1.95rem); font-weight: 800; line-height: 1.45; letter-spacing: -.045em; }
.case-flow .case-flow-note { max-width: 760px; margin: 15px auto 0; color: #b9d0e5; font-size: .95rem; font-weight: 400; line-height: 1.6; letter-spacing: 0; }
.case-flow > span { display: block; margin-top: 18px; color: #a5c4dc; font: 400 .7rem var(--mono); letter-spacing: .055em; }
.case-stack { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 21px; }
.case-stack span { padding: 7px 10px; border: 1px solid #5086b7; border-radius: 6px; background: #0c2b4a; color: #c5e0f3; font: 400 .66rem var(--mono); }

.case-workflow, .case-scenarios, .case-features { max-width: 1480px; margin: auto; padding: 82px 34px; }
.case-workflow h2, .case-scenarios h2, .case-features h2, .case-verified h2 { margin: 0 0 28px; font-size: clamp(2.15rem, 3.4vw, 3.65rem); letter-spacing: -.035em; word-spacing: .05em; line-height: 1.1; }
.case-workflow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 11px; }
.case-workflow-site ol { grid-template-columns: repeat(4,minmax(0,1fr)); }
.case-workflow-site { padding-top: 32px; padding-bottom: 52px; }
.case-workflow li { padding: 20px; }
.case-workflow li > span { color: var(--blue); font: 500 .7rem var(--mono); }
.case-workflow li p { margin: 24px 0 0; color: #e0eefb; font-size: .92rem; }
.workflow-tools { display: flex; align-items: center; gap: 8px; margin-top: 15px; }
.workflow-tool { display: inline-flex; width: 22px; height: 22px; flex: none; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #ffffff17; border-radius: 6px; background: #123454; }
.workflow-tool svg, .workflow-tool img { display: block; width: 16px; height: 16px; object-fit: contain; }
.workflow-tool.tool-openai { color: #dcefff; background: #175b94; font: 800 9px Arial, sans-serif; letter-spacing: -.4px; }
.workflow-tool.tool-js { color: #172435; border-color: #eed66d; background: #f3db72; font: 800 9px Arial, sans-serif; letter-spacing: -.5px; }
.workflow-tool.tool-sheets { background: #eaf7ee; }
.workflow-tool.tool-calendar, .workflow-tool.tool-gmail { background: #fff; }
.workflow-tool.tool-n8n { background: #102b49; }
.workflow-tool.tool-telegram { background: #102f4e; }
.workflow-tool.tool-site { background: #102f4e; }

.case-verified { max-width: 1480px; margin: auto; padding: 0 34px 84px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; }
.case-verified > div { padding-top: 15px; }
.case-verified h2 { margin-bottom: 17px; }
.case-verified > div > p:last-child { max-width: 470px; margin: 0; }
.case-verified ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.case-verified li { position: relative; padding: 18px 20px 18px 52px; border: 1px solid #2b5d87; border-radius: 12px; background: #0e2948; color: #e3f1ff; font-size: 1rem; line-height: 1.6; }
.case-verified li::before { content: '✓'; position: absolute; left: 20px; top: 18px; color: var(--cyan); font-weight: 800; }

.case-scenarios { border-top: 1px solid #77b7ed1d; }
.scenario-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 23px; }
.scenario-heading h2 { margin-bottom: 0; }
.scenario-count { padding: 9px 12px; flex: none; border: 1px solid #3b6d9b; border-radius: 6px; color: var(--cyan); font: 400 .66rem var(--mono); }
.case-video-note { max-width: 780px; margin: 0 0 29px; color: #a9c5dc; font-size: .9rem; line-height: 1.55; }
.scenario-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.scenario-card { overflow: hidden; }
.scenario-card:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); align-items: stretch; }
.scenario-card:last-child:nth-child(odd) .scenario-media { height: 100%; min-height: 100%; aspect-ratio: auto; }
.scenario-brief { display: flex; flex-direction: column; align-self: stretch; min-width: 0; padding: clamp(22px,3vw,34px); border: 1px solid #2b5d87; border-radius: 12px; background: radial-gradient(ellipse at 92% 0%, #17436b 0, #0e2948 54%, #0a2039 100%); }
.scenario-brief .scenario-number { margin: 0 0 17px; color: var(--blue); font: 500 .68rem var(--mono); }
.scenario-brief h3 { max-width: 440px; margin: 0 0 12px; color: #edf6ff; font-size: clamp(1.35rem,2vw,1.8rem); line-height: 1.22; letter-spacing: -.035em; }
.scenario-brief-intro { max-width: 490px; margin: 0; color: #b3cce2; font-size: .92rem; line-height: 1.65; }
.scenario-brief dl { display: grid; gap: 0; margin: 24px 0 18px; border-top: 1px solid #315c82; }
.scenario-brief dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #315c82; }
.scenario-brief dt { color: #91b2ce; font-size: .82rem; }
.scenario-brief dd { margin: 0; color: #e0efff; font-size: .82rem; font-weight: 700; text-align: right; }
.scenario-brief-foot { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; color: #9fe7c2; font-size: .78rem; }
.scenario-brief-foot i { width: 8px; height: 8px; border-radius: 50%; background: #56dfa0; box-shadow: 0 0 10px #56dfa088; }
.sample-statuses { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 5px 0 20px; }
.sample-statuses span { padding: 7px 9px; border: 1px solid #3772a0; border-radius: 6px; background: #12395f; color: #d8edff; font-size: .72rem; font-weight: 700; }
.sample-statuses b { color: var(--blue); font-size: .85rem; }
.score-compare { display: grid; gap: 10px; margin: 22px 0 16px; }
.score-compare > div { display: flex; align-items: flex-start; gap: 17px; padding: 15px; border: 1px solid #315c82; border-radius: 9px; background: #09233e; }
.score-compare strong { flex: none; min-width: 52px; color: #8ee2b0; font-size: 1.5rem; line-height: 1; }
.score-compare > div + div strong { color: #efb5b5; }
.score-compare span { color: #c9dff0; font-size: .83rem; line-height: 1.45; }
.candidate-notice { padding: 13px 15px; border: 1px solid #3772a0; border-radius: 9px; background: #103b60; }
.candidate-notice > span { color: #87c9ff; font: 500 .62rem var(--mono); }
.candidate-notice p { margin: 8px 0 0; color: #e0efff; font-size: .87rem; line-height: 1.45; }
.sample-message { margin: 14px 0 16px; padding: 15px 17px; border: 1px solid #3772a0; border-radius: 9px; background: #0c3153; }
.sample-message > span { color: #89c8f7; font: 500 .62rem var(--mono); letter-spacing: .025em; }
.sample-message p { margin: 8px 0 0; color: #d8ebfa; font-size: .83rem; line-height: 1.55; }
.scenario-media { aspect-ratio: 16 / 9; background: #08192c; }
.scenario-media iframe { display: block; width: 100%; height: 100%; border: 0; }
.scenario-copy { padding: 22px; }
.scenario-copy h3 { margin: 0 0 18px; font-size: 1.2rem; letter-spacing: -.035em; }
.scenario-detail { padding-top: 12px; margin-top: 12px; border-top: 1px solid #285073; }
.scenario-detail b { display: block; margin-bottom: 5px; color: #d5eaff; font: 500 .78rem var(--mono); }
.scenario-detail p { margin: 0; font-size: .92rem; }

.case-shot { max-width: 1480px; margin: 49px auto 0; padding: 0 34px; }
.case-shot img { display: block; width: 100%; max-height: 590px; object-fit: cover; border: 1px solid #345f84; border-radius: 15px; }
.case-shot figcaption { margin-top: 11px; color: #90b2ce; font: 400 .64rem var(--mono); letter-spacing: .055em; }
.feature-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin-top: 28px; }
.feature-chip { min-height: 140px; padding: 20px; color: #d1e5f5; font-size: .91rem; }
.feature-chip b { display: block; margin-bottom: 20px; color: var(--blue); font: 500 .7rem var(--mono); }
.case-features .case-stack { justify-content: flex-start; margin-top: 26px; }
.order-preview { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 22px; margin-top: 22px; padding: clamp(20px,3vw,32px); border: 1px solid #2b5d87; border-radius: 13px; background: linear-gradient(135deg,#0e2b4a,#0a2039); }
.order-preview h3 { margin: 0 0 12px; font-size: clamp(1.5rem,2.3vw,2rem); line-height: 1.2; }
.order-preview > div > p:last-child { max-width: 450px; margin: 0; color: #b9d0e5; font-size: .91rem; line-height: 1.55; }
.order-message { width: 100%; max-width: 480px; justify-self: end; padding: 18px 20px; border: 1px solid #3481b8; border-radius: 12px 12px 4px 12px; background: #123e62; }
.order-message strong { color: #e6f6ff; font-size: .97rem; }
.order-message p { margin: 11px 0 0; color: #c9e2f3; font-size: .87rem; line-height: 1.7; }
.case-workflow-site > .case-stack { margin-top: 24px; }

.case-end { max-width: 1412px; margin: 0 auto 85px; padding: 43px 47px; border: 1px solid #337ab3; border-radius: 16px; background: radial-gradient(ellipse at 90% 30%, #235185, #102e50 48%, #0c2440 88%); }
.case-end h2 { margin: 0 0 11px; font-size: clamp(2rem,3.1vw,3.2rem); letter-spacing: -.06em; }
.case-end p { max-width: 730px; margin: 0 0 24px; }
.case-buttons { display: flex; flex-wrap: wrap; gap: 11px; }
.case-end .button:not(.secondary) { color: #061629; background: var(--blue); }
.case-end .button:not(.secondary):hover { background: #87c9ff; }

@media (max-width: 1080px) {
  .case-workflow ol { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .case-workflow-site ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .case-workflow:not(.case-workflow-site) ol { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .case-workflow:not(.case-workflow-site) li { grid-column: span 2; }
  .case-workflow:not(.case-workflow-site) li:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
  .case-workflow:not(.case-workflow-site) li:nth-child(5):last-child { grid-column: 4 / span 2; }
}
@media (max-width: 760px) {
  .case-hero { margin: 20px 12px 0; padding: 31px 24px 40px; }
  .back-link { margin-bottom: 33px; }
  .case-hero h1 { font-size: clamp(2.7rem,8.8vw,4rem); }
  .case-outcome { flex-direction: column; gap: 7px; }
  .case-summary { grid-template-columns: 1fr; padding: 32px 20px 58px; }
  .case-flow { padding: 46px 20px; }
  .case-workflow, .case-scenarios, .case-features { padding: 64px 20px; }
  .case-workflow-site { padding-top: 24px; padding-bottom: 48px; }
  .case-workflow ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .case-workflow li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .case-verified { grid-template-columns: 1fr; gap: 18px; padding: 0 20px 64px; }
  .scenario-grid { grid-template-columns: 1fr; }
  .scenario-card:last-child:nth-child(odd) { grid-column: auto; display: block; }
  .scenario-card:last-child:nth-child(odd) .scenario-media { aspect-ratio: 16 / 9; }
  .scenario-brief { min-height: 0; }
  .order-preview { grid-template-columns: 1fr; }
  .order-message { justify-self: start; }
  .case-shot { margin-top: 32px; padding: 0 20px; }
  .case-end { margin: 0 12px 55px; padding: 31px 25px; }
}
@media (max-width: 530px) {
  .case-hero h1 { font-size: clamp(2.35rem,10vw,3.2rem); }
  .case-workflow ol, .feature-grid { grid-template-columns: 1fr; }
  .case-workflow li, .feature-chip { min-height: 0; }
  .case-workflow li p { margin-top: 14px; }
  .scenario-heading { align-items: flex-start; flex-direction: column; }
  .case-summary article, .scenario-copy { padding: 21px; }
  .case-verified li { padding-right: 15px; }
}

.scenario-media { position: relative; overflow: hidden; isolation: isolate; }
.scenario-media video { display: block; width: 100%; height: 100%; object-fit: cover; background: #08192c; }
.scenario-media video[hidden], .video-cover[hidden] { display: none !important; }
.video-cover {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #07182b;
  color: #f0f7ff;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}
.video-cover img, .video-cover-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-cover img { z-index: 0; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.video-cover-shade {
  z-index: 1;
  background: linear-gradient(180deg, #06162962 0%, #0b315b4a 30%, #081e37a3 60%, #061629ec 100%), linear-gradient(115deg, #06172b96 0%, #0b315b70 50%, #06172b9c 100%);
  transition: background-color .25s ease;
}
.video-cover-label {
  position: absolute;
  z-index: 2;
  top: clamp(13px, 2.2vw, 24px);
  left: clamp(14px, 2.4vw, 27px);
  padding: 7px 10px;
  border: 1px solid #78bfff75;
  border-radius: 999px;
  background: #07182bc9;
  color: #b9ddfb;
  font: 500 .64rem var(--mono);
  letter-spacing: .08em;
  line-height: 1.2;
}
.video-cover-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(54px, 7vw, 72px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #a8d9ff;
  border-radius: 50%;
  background: #218df0e8;
  box-shadow: 0 8px 30px #00142c80, inset 0 1px #ffffff55;
  transform: translate(-50%, -50%);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.video-cover-play svg { width: 28px; height: 28px; margin-left: 3px; fill: currentColor; }
.video-cover-title {
  position: absolute;
  z-index: 2;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(40px, 6vw, 62px);
  left: clamp(16px, 3vw, 34px);
  max-width: 680px;
  font-size: clamp(1.1rem, 2.3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.2;
  text-shadow: 0 2px 14px #001020b3;
}
.video-cover-action {
  position: absolute;
  z-index: 2;
  bottom: clamp(14px, 2.3vw, 24px);
  left: clamp(16px, 3vw, 34px);
  color: #b9d6ef;
  font-size: .82rem;
  font-weight: 600;
}
.video-cover-action::after { content: ' ↗'; color: #63b6ff; }
.video-cover-status:empty { display: none; }
.video-cover-status:not(:empty) {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 13px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #07182be8;
  color: #ffd1d1;
  font-size: .75rem;
}
.video-cover:hover img { transform: scale(1.025); filter: saturate(1.08); }
.video-cover:hover .video-cover-play, .video-cover:focus-visible .video-cover-play { background: #39a4ff; box-shadow: 0 9px 34px #00142c99, 0 0 0 5px #81caff36; transform: translate(-50%, -50%) scale(1.06); }
.video-cover:focus-visible { outline: 3px solid #83caff; outline-offset: -4px; }
@media (max-width: 530px) {
  .video-cover-label { top: 10px; left: 12px; padding: 6px 8px; font-size: .57rem; }
  .video-cover-play { top: 30%; width: 44px; }
  .video-cover-play svg { width: 23px; height: 23px; }
  .video-cover-title { right: 14px; bottom: 35px; left: 14px; font-size: .95rem; line-height: 1.15; }
  .video-cover-action { bottom: 11px; left: 14px; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .video-cover img, .video-cover-shade, .video-cover-play { transition: none; }
}

