/* Alibek (Dombyra on Top) web case: short story + the landing shown in a scrollable browser window.
   Palette taken from the landing: deep navy and gold. Relies on .cs / .has-case-story rules from case-summit CSS. */
.ca { --navy: #121722; --navy-2: #0c1018; --card: #1a2130; --gold: #dcb443; --muted: #c4c9d2; background: var(--navy); }

/* Cover */
.ca-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(400px,46vw,560px); overflow: hidden; padding: clamp(32px,5vw,64px) clamp(20px,5.5vw,72px); background: var(--navy-2); }
.ca-hero { background: #050608; }
.ca-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: right 30%; }
.ca-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #050608cc 0%, #05060866 40%, transparent 60%), linear-gradient(0deg, var(--navy) 0%, transparent 22%); }
.ca-hero-inner { position: relative; z-index: 1; max-width: 640px; }
.ca-kicker { margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.ca-title { font-size: clamp(32px,5vw,62px); font-weight: 800; line-height: 1.02; text-transform: uppercase; }
.ca-title span { display: block; color: var(--gold); }
.ca-lead { margin-top: 18px; max-width: 560px; font-size: clamp(15px,1.5vw,18px); line-height: 1.6; color: #e3e6eb; }
.ca-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.ca-tags li { padding: 7px 14px; border: 1px solid #dcb44366; border-radius: 999px; background: #dcb44314; font-size: 13px; color: #f1e3b8; }

/* How we built it */
.ca-sec { padding: clamp(36px,5.5vw,72px) clamp(20px,5.5vw,72px); background: var(--navy); }
.ca-h { font-size: clamp(24px,3.2vw,40px); font-weight: 800; line-height: 1.08; text-transform: uppercase; color: var(--gold); }
.ca-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: ca-step; }
.ca-steps li { position: relative; padding: 22px 20px 24px; border: 1px solid #ffffff14; border-radius: 20px; background: linear-gradient(160deg,#1c2433,#141a26); counter-increment: ca-step; }
.ca-steps li::after { content: '0' counter(ca-step); position: absolute; top: 18px; right: 20px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #ffffff40; }
.ca-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #dcb4431f; color: var(--gold); }
.ca-ico svg { width: 24px; height: 24px; }
.ca-steps h4 { margin: 16px 0 6px; font-size: 17px; font-weight: 700; line-height: 1.25; }
.ca-steps p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.ca-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-top: 16px; }
.ca-facts div { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 18px; background: #dcb443; color: #161b25; }
.ca-facts b { font-size: clamp(34px,3.6vw,46px); font-weight: 800; line-height: 1; }
.ca-facts span { font-size: 13px; font-weight: 600; line-height: 1.3; }

/* The site itself */
.ca-site { padding: clamp(36px,5.5vw,72px) clamp(20px,5.5vw,72px); background: radial-gradient(80% 60% at 50% 0%, #1d2638 0%, transparent 70%), var(--navy-2); }
.ca-site-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 20px; }
.ca-site-head p { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.ca-site-head p span { display: inline-block; color: var(--gold); animation: ca-nudge 1.6s ease-in-out infinite; }
@keyframes ca-nudge { 50% { transform: translateY(4px); } }
.ca-browser { margin-top: 22px; overflow: hidden; border: 1px solid #ffffff21; border-radius: 16px; background: #1a1f2a; box-shadow: 0 30px 80px #000000b3, 0 0 0 6px #ffffff08; }
.ca-bar { display: grid; grid-template-columns: 70px minmax(0,1fr) 70px; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #ffffff12; background: #222938; }
.ca-dots { display: flex; gap: 7px; }
.ca-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.ca-dots i:nth-child(2) { background: #febc2e; }
.ca-dots i:nth-child(3) { background: #28c840; }
.ca-url { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 420px; margin-inline: auto; padding: 6px 14px; border-radius: 8px; background: #141925; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.ca-url svg { width: 13px; height: 13px; flex-shrink: 0; }
.ca-screen { height: min(72dvh,720px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #dcb44380 transparent; background: var(--navy); }
.ca-screen:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.ca-screen img { display: block; width: 100%; max-width: none; height: auto; }

@media (max-width: 1100px) {
  .ca-steps, .ca-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .ca-hero { min-height: 440px; }
  .ca-hero { min-height: 560px; }
  .ca-hero-bg { object-position: 82% top; }
  .ca-hero::after { background: linear-gradient(0deg, var(--navy) 0%, #050608f0 42%, #05060859 68%, transparent 100%); }
  .ca-title { font-size: min(9vw, 38px); }
  .ca-h { font-size: min(6.6vw, 30px); }
  .ca-steps { grid-template-columns: minmax(0,1fr); }
  .ca-facts { grid-template-columns: minmax(0,1fr); }
  .ca-bar { grid-template-columns: 52px minmax(0,1fr) 0; gap: 8px; }
  .ca-screen { height: 64dvh; }
}
@media (prefers-reduced-motion: reduce) { .ca-site-head p span { animation: none; } }
